/* Shared styles for every page (header, menu, sections, footer). Needs brand.css loaded first. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
/* Keep the footer at the bottom of the screen even on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
footer { flex-shrink: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 400; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* ---------- Header + menu ---------- */
header { padding: 10px 0; position: sticky; top: 0; z-index: 60; background: rgba(251,247,240,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
header .wrap { display: flex; align-items: center; gap: 12px; position: relative; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav a:hover, .nav a[aria-current="page"] { background: #fff; }
.join-btn { min-height: 44px; padding: 0 22px; font-weight: 800; white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2.5px; background: var(--ink); border-radius: 2px; }
@media (max-width: 820px) {
  .join-btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 6px 12px 0; flex-direction: column; align-items: stretch; background: var(--paper); border-radius: 20px; padding: 10px; box-shadow: 0 10px 30px rgba(27,26,34,.15); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; }
}

/* ---------- Buttons ---------- */
.btn { transition: transform .15s ease, background .15s ease; border: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn:hover { transform: translateY(-2px); background: #ff8e63; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Shared content styles ---------- */
.pill { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #fff; font-weight: 600; font-size: .9rem; box-shadow: 0 2px 0 rgba(27,26,34,.08); }
.pill.planned { background: var(--yellow); font-size: .8rem; padding: 4px 12px; margin-bottom: 12px; }
section { padding: 56px 0; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 8px; }
.sub { color: var(--muted); margin-bottom: 28px; max-width: 560px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { padding: 28px; transition: transform .2s var(--ease-pop); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card .dot { width: 34px; height: 34px; border-radius: 30%; margin-bottom: 18px; }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.card p { color: var(--muted); }
a.path { display: block; text-decoration: none; color: inherit; }
a.path .more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--orange-text); }
.marker { position: relative; padding: 0 .18em; }
.marker::before { content: ""; position: absolute; left: 0; right: 0; top: .08em; bottom: .02em; background: var(--yellow); border-radius: .2em; z-index: -1; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 36px 0 40px; }
.page-hero .wrap { display: grid; gap: 28px; align-items: center; grid-template-columns: 1.3fr 1fr; }
.page-hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); margin: 18px 0; line-height: 1.12; position: relative; isolation: isolate; }
.page-hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 500px; margin-bottom: 28px; }
.page-art { position: relative; display: grid; place-items: center; min-height: 260px; }
.page-art .blob { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 38% 62% 55% 45% / 48% 40% 60% 52%; opacity: .22; background: var(--pink); }
.page-art img { width: min(66%, 250px); position: relative; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }

.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #34323f; }
.pilot { background: var(--yellow); color: var(--ink); border-radius: 36px; padding: 44px 28px; margin: 0 12px; }
.pilot .wrap { display: grid; gap: 28px 40px; grid-template-columns: 1.2fr 1fr; align-items: start; }
.pilot h2 { margin-bottom: 12px; }
.pilot p { font-size: 1.05rem; margin-bottom: 18px; }
.pilot ul { list-style: none; display: grid; gap: 12px; }
.pilot li { background: rgba(255,255,255,.55); border-radius: 18px; padding: 14px 18px; font-weight: 600; }
.pilot li span { display: block; font-weight: 500; font-size: .92rem; color: #4a4730; margin-top: 2px; }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { padding: 24px; }
.step .num { width: 46px; height: 46px; border-radius: 30%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px; color: var(--ink); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; }
.note { margin-top: 22px; color: var(--muted); max-width: 620px; font-weight: 500; }
@media (max-width: 760px) { .pilot .wrap { grid-template-columns: 1fr; } }

.band { background: var(--ink); color: var(--paper); border-radius: 36px; padding: 44px 24px; margin: 0 12px; text-align: center; }
.band h2 { margin-bottom: 10px; }
.band p { color: #b9b6c4; max-width: 520px; margin: 0 auto 24px; }
.band .cta { justify-content: center; }
.band .btn.ghost { color: var(--paper); border-color: var(--paper); }
.band .btn.ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
footer { margin-top: 56px; background: var(--ink); color: var(--paper); border-radius: 36px 36px 0 0; padding: 52px 0 28px; font-size: .98rem; }
.foot { display: grid; gap: 32px; grid-template-columns: 1.5fr repeat(4, 1fr); }
.foot-brand img { height: 46px; width: auto; }
.foot-tag { font-weight: 600; margin: 14px 0 6px; font-size: 1.05rem; }
.foot-small { color: #a9a6b6; font-size: .88rem; }
.foot h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--paper); }
.foot-col a { display: block; color: #cfccd8; text-decoration: none; padding: 9px 0; font-weight: 500; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(251,247,240,.14); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: #a9a6b6; font-size: .9rem; }
.foot-bottom a { color: var(--paper); font-weight: 600; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 760px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-art { order: -1; min-height: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .page-art img { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
