/* Mayes Maths & More — the front page and the About page (the app itself uses app.css) */
:root { --ink: #15292a; --muted: #50696a; --mist: #edf3f1; --paper: #fff; --line: #d3e1dd; --deep: #0e2a2f; --teal: #0f9a87; --gold: #ffc53d; --cream: #fbf7eb;
  --display: 'Fredoka', system-ui, sans-serif; --font: 'Lexend', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; }
a { color: #0b6f62; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.hero { background: var(--deep); color: #fff; padding: 36px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 360px 1fr; gap: 36px; align-items: center; }

.hero h1 { font-size: 2.3em; }
.lede { font-size: 1.12em; color: #d6e6e3; margin: 0 0 18px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 14px; padding: 10px 20px; font: 600 1em var(--display); cursor: pointer; text-decoration: none;
  background: var(--gold); color: #3a2a00; box-shadow: inset 0 -4px 0 #d99a00; }
.btn.big { font-size: 1.15em; padding: 14px 26px; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.btn:focus-visible { outline: 3px solid #7fd8ff; outline-offset: 2px; }
.status { min-height: 1.4em; margin: 12px 0 4px; color: #9fe3d8; font-size: .95em; }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .95em; color: #d6e6e3; }
.ticks li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
main.wrap { padding-top: 28px; padding-bottom: 20px; display: grid; gap: 20px; }
.card { background: var(--paper); border-radius: 18px; padding: 22px 24px; box-shadow: 0 2px 0 var(--line); }
.card h2 { font-size: 1.35em; }
.card p:last-child { margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
details { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; background: #fbfdfc; }
details[open] { border-color: var(--teal); }
summary { cursor: pointer; font-weight: 600; font-family: var(--display); }
details ol { margin: 8px 0 2px; padding-left: 22px; }
.foot { padding: 10px 20px 40px; font-size: .92em; }
.muted { color: var(--muted); }
.about h1 { font-size: 2em; margin-top: 10px; }
.about .card h2 { margin-top: 0; }
.about dt { font-weight: 600; margin-top: 12px; }
.about dd { margin: 2px 0 0; }
.topbar { background: var(--deep); padding: 14px 0; }
.topbar a { color: #fff; font-family: var(--display); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.topbar img { width: 36px; height: 36px; border-radius: 10px; }
/* the way back (js/pages.js): at the right of the top bar, or in its own bar on the front page */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar a.backlink, .backbar a.backlink { font-family: var(--font, inherit); font-weight: 600; font-size: .95em; color: #fbf7eb; text-decoration: underline; text-underline-offset: 3px; padding: 8px 2px; }
.backbar { background: var(--deep); padding: 6px 0; }
.backlink:focus-visible { outline: 3px solid #9fdcff; outline-offset: 2px; border-radius: 6px; }
@media (max-width: 820px) {
  .hero .wrap, .grid3, .grid2 { grid-template-columns: 1fr; }
  .brand-mark { width: 180px; height: 180px; }
  .hero h1 { font-size: 1.8em; }
}
/* the logo: the M³ mark with Pip, the name and the line underneath */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-mark { width: 230px; height: 230px; overflow: visible; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: clamp(1.7em, 3vw, 2.15em); white-space: nowrap; line-height: 1.05; color: #fbf7eb; margin-top: 6px; }
.brand-name span, .topbar .more { color: #7fd3c6; white-space: nowrap; }
.brand-tag { color: #b9cfcb; margin-top: 6px; font-size: 1.02em; }
.topbar svg { flex: none; }
@media (max-width: 820px) { .brand-mark { width: 180px; height: 180px; } }
/* the iPhone/iPad steps light up when "Install on this iPhone" is tapped */
details.pulse { animation: stepsPulse 1.2s ease-in-out 2; }
@keyframes stepsPulse { 50% { box-shadow: 0 0 0 6px rgba(242, 182, 50, .55); } }
details .small { margin: 6px 0 0; font-size: .95em; color: var(--muted, #50696a); }
