/* The landing page's header, phone menu and beta banner (copied from public/index.html; keep in step). */
/* Plain pages use a narrower .wrap for their text; the header stays full width like the landing page. */
.top .wrap { max-width: 1240px; }
:root { --coral: #1A7F4E; --coral-soft: #E3F2EA; --ease: cubic-bezier(.2, .7, .2, 1); }
.top a, .sheet a, .announce, .mega a { color: inherit; text-decoration: none; }
.top svg, .sheet svg, .announce svg { display: block; }
.top button { font: inherit; color: inherit; }
.label { font: 600 13px/1.2 var(--sans); color: var(--ink-3); }
/* Header and menu */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, transform .35s var(--ease); }
.top.scrolled { border-bottom-color: var(--line); }
/* Hides on scroll down, comes back on scroll up (see script). */
.top.away { transform: translateY(-100%); }
.bar { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.beta { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--coral-soft); color: var(--coral); font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.logo { flex: none; width: 34px; color: var(--coral); display: grid; place-items: center; }
.logo svg { width: 100%; height: auto; display: block; }
.menu { display: none; gap: 4px; align-items: center; }
.menu > a, .menu > div > button { height: 34px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: background .15s, color .15s; }
.menu > div > button[aria-expanded='true'] { background: var(--bg-3); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .menu > a:hover, .menu > div > button:hover { background: var(--bg-3); color: var(--ink); } }
.menu > div > button svg { transition: transform .2s var(--ease); }
.menu > div > button[aria-expanded='true'] svg { transform: rotate(180deg); }
.bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.bar .right .btn { height: 34px; padding: 0 14px; }
.mega { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.mega.open { opacity: 1; visibility: visible; transform: none; }
.mega .cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.mega .label { margin-bottom: 14px; display: block; }
.mega a.item { display: block; padding: 6px 0; font-weight: 500; font-size: 15px; }
.mega a.item small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .mega a.item { transition: color .15s; } .mega a.item:hover { color: var(--coral); } }
.mega .promo { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.mega .promo p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.mega a.promo { display: block; transition: border-color .15s; }
@media (hover: hover) and (pointer: fine) { .mega a.promo:hover { border-color: var(--coral); } }
.top a.btn-green, .sheet a.btn-green { color: #fff; }
.sheet a.sheet-cta { display: flex; justify-content: center; height: 48px; margin-top: 28px; border: 0; font-size: 16px; font-weight: 600; }
.burger { margin-left: auto; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--bg-3); display: grid; place-items: center; cursor: pointer; }
.sheet { position: fixed; inset: 64px 0 0; background: #fff; z-index: 49; padding: 20px; overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.sheet.open { opacity: 1; visibility: visible; transform: none; }
.sheet .label { display: block; margin: 22px 0 8px; }
.sheet a { display: block; padding: 9px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--bg-3); }
@media (min-width: 900px) { .menu { display: flex; } .burger, .sheet { display: none; } }
@media (max-width: 899px) { .bar .right, .mega { display: none; } }
/* Announcement strip under the header: scrolls sideways, pauses on hover or focus. Five copies of the list, so
   the strip stays full on very wide screens; it moves one copy's width per loop (-20%), then starts again with no
   jump. The copies are hidden from screen readers. With reduced motion (a phone's battery saver can turn this on)
   it stands still: one centred line, the first two messages on tablets and the first one on phones (owner report, 21 Oct 2026). */
.announce { display: block; background: var(--coral-soft); color: #12593A; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.marquee ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.marquee li { white-space: nowrap; padding: 9px 0; font-size: 14px; font-weight: 500; line-height: 1.4; }
.marquee li::after { content: '·'; margin: 0 20px; opacity: .7; }
@keyframes marquee { to { transform: translateX(-20%); } }
.announce:hover .marquee, .announce:focus-visible .marquee { animation-play-state: paused; }
.announce:focus-visible { outline-offset: -3px; outline-color: var(--coral); border-radius: 0; }
@media (prefers-reduced-motion: reduce) {
.marquee { width: auto; animation: none; transform: none; justify-content: center; padding: 0 16px; }
.marquee ul[aria-hidden] { display: none; }
.marquee ul { flex: 0 1 auto; flex-wrap: wrap; justify-content: center; }
.marquee li:last-child::after { content: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
.marquee li:nth-child(n+3) { display: none; }
.marquee li:nth-child(2)::after { content: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 600px) {
.marquee li:nth-child(n+2) { display: none; }
.marquee li:first-child::after { content: none; }
}
