/* ============================================================
   Moments — landing page  ·  Warm Keepsake
   Tokens + hero. See DESIGN.md for the committed design system.
   ============================================================ */

:root {
  --cream:      #FEF9ED;
  --surface:    #FFFFFF;
  --ink:        #2E2823;
  --ink2:       #6F6253;
  --terra:      #B05C42;
  --terra-deep: #7F4230;
  --gold:       #F5C754;
  --border:     #EBE1CC;

  /* warm, espresso-tinted shadow stack (never grey) */
  --sh-sm: 0 2px 6px rgba(46,40,35,.08);
  --sh-md: 0 10px 26px rgba(46,40,35,.14), 0 3px 8px rgba(46,40,35,.08);
  --sh-lg: 0 34px 64px rgba(46,40,35,.30), 0 12px 22px rgba(46,40,35,.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* warm cream, lit — not a flat fill */
  background:
    radial-gradient(120% 90% at 86% -12%, #FFFDF7 0%, rgba(255,253,247,0) 56%),
    radial-gradient(110% 80% at -8% 112%, #FBF3E0 0%, rgba(251,243,224,0) 52%),
    var(--cream);
  background-attachment: fixed;
  min-height: 100svh;
  overflow-x: clip; /* decorative elements (glow/push) break the frame — never let that scroll */
}

.serif { font-family: 'Literata', Georgia, serif; }
.mono  { font-family: 'Courier Prime', monospace; }
img { max-width: 100%; display: block; }

/* faint paper grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header (sticky, frosts on scroll) ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; width: 100%;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-head.scrolled {
  background: rgba(254,249,237,.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 8px 22px rgba(46,40,35,.05);
}
.head-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 40px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: block; width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 3px 9px rgba(46,40,35,.20); }
.brand-name { font-family: 'Literata', serif; font-weight: 600; font-size: 19px;
  color: var(--ink); letter-spacing: -.2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { font-size: 14px; font-weight: 500; color: var(--ink2);
  text-decoration: none; transition: color .18s ease; }
.nav > a:hover { color: var(--ink); }
.nav-cta {
  background: var(--terra); color: #fff !important; font-weight: 600 !important;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(176,92,66,.24); transition: background .18s ease, transform .18s ease;
}
.nav-cta:hover { background: #a4502f; transform: translateY(-1px); }
@media (max-width: 720px) { .nav > a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: calc(100svh - 70px);  /* header grew slightly with the 44px nav CTA tap target */
  padding: 28px 40px 86px;
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center;
}
.hero-copy { min-width: 0; } /* allow headline/CTA to shrink + wrap inside the grid track */

.stamp {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--terra-deep); background: rgba(255,255,255,.7);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; margin-bottom: 26px;
}

.headline {
  font-family: 'Literata', serif; font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.08; letter-spacing: -.5px; max-width: 15ch;
}

.sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--ink2);
  max-width: 35ch; margin-top: 22px;
}
.sub b { color: var(--ink); font-weight: 600; }

.cta-row {
  display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap;
}
/* single CTA = the official App Store badge (Apple mandates its form; we keep it Apple-black).
   The .cta-row holds it and is ready for a Google Play badge beside it when Android ships. */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 12px 24px; min-height: 58px;
  box-shadow: var(--sh-md); transition: transform .18s ease, box-shadow .18s ease;
}
.appstore:hover { transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(46,40,35,.20), 0 4px 9px rgba(46,40,35,.12); }
.appstore .apple { width: 22px; height: 26px; }
.as-text small { display: block; font-size: 11px; opacity: .82; letter-spacing: .2px; }
.as-text b { font-size: 19px; font-weight: 600; letter-spacing: .2px; }

a:focus-visible, .appstore:focus-visible, .nav-cta:focus-visible {
  outline: 2.5px solid var(--terra-deep); outline-offset: 3px; border-radius: 14px;
}

/* ---------- waitlist form (pre-launch · Warm Keepsake) ---------- */
.waitlist { width: 100%; max-width: 480px; margin-top: 30px; }
.waitlist-row { display: flex; gap: 10px; align-items: stretch; }
.waitlist-input {
  flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 16px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.waitlist-input::placeholder { color: #A99B85; }
.waitlist-input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(176,92,66,.16); }
.waitlist-btn {
  flex: none; height: 54px; padding: 0 22px; cursor: pointer; white-space: nowrap;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--terra); border: none; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(176,92,66,.26); transition: background .18s ease, transform .18s ease;
}
.waitlist-btn:hover { background: #a4502f; transform: translateY(-1px); }
.waitlist-btn:active { transform: translateY(0); }
.waitlist-btn:disabled { opacity: .7; cursor: default; transform: none; }
.waitlist-btn:focus-visible { outline: 2.5px solid var(--terra-deep); outline-offset: 3px; }
.waitlist-note { font-family: 'Courier Prime', monospace; font-size: 11.5px; letter-spacing: .3px; color: var(--ink2); margin-top: 12px; }
.waitlist-msg { font-size: 14.5px; margin-top: 16px; padding: 12px 15px; border-radius: 10px; line-height: 1.45; }
.waitlist-ok { font-family: 'Literata', serif; color: var(--terra-deep); background: rgba(176,92,66,.08); border: 1px solid rgba(176,92,66,.22); }
.waitlist-err { color: #9A3412; background: #FDEBE3; border: 1px solid #F3C3AE; }
.waitlist--center { margin-left: auto; margin-right: auto; }
.waitlist--center .waitlist-note { text-align: center; }
.waitlist-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }  /* bot honeypot — off-screen, never shown to humans */
@media (max-width: 560px) {
  .waitlist-row { flex-direction: column; }
  .waitlist-btn { width: 100%; }
}

/* ---------- stage (device + push + glow) ---------- */
.hero-stage {
  position: relative; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
}
.glow {
  position: absolute; inset: 0; margin: auto; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,199,84,.30), rgba(245,199,84,0) 66%);
  z-index: 0; will-change: transform, opacity;
}

.phone {
  position: relative; z-index: 2;
  width: 274px; height: 564px; padding: 10px;
  border-radius: 52px; transform: rotate(-1.5deg);
  background: linear-gradient(150deg, #2c2620 0%, #16110d 55%, #221c17 100%);
  box-shadow: var(--sh-lg), inset 0 0 0 1.5px rgba(255,255,255,.07);
  will-change: transform, opacity;
}
/* titanium side buttons */
.phone::before { /* volume rocker (two buttons via the offset shadow) */
  content: ''; position: absolute; left: -2px; top: 152px;
  width: 2.5px; height: 32px; border-radius: 3px 0 0 3px;
  background: #2a241f; box-shadow: 0 44px 0 0 #2a241f;
}
.phone::after { /* power button */
  content: ''; position: absolute; right: -2px; top: 178px;
  width: 2.5px; height: 60px; border-radius: 0 3px 3px 0; background: #2a241f;
}
.island {
  position: absolute; top: 15px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 25px; background: #060504; border-radius: 14px; z-index: 4;
}
.screen {
  position: relative;
  width: 100%; height: 100%; background: var(--cream);
  border-radius: 42px; overflow: hidden; display: flex; flex-direction: column;
}
.screen::after { /* home indicator */
  content: ''; position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%);
  width: 104px; height: 5px; border-radius: 3px; background: rgba(46,40,35,.28); z-index: 3;
}
.topbar {
  font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--ink2);
  display: flex; justify-content: space-between; align-items: center; padding: 17px 22px 6px;
}
.tb-status { display: inline-flex; align-items: center; }

/* ---------- scroll cue (hero) ---------- */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink2);
}
.scroll-cue .label {
  font-family: 'Courier Prime', monospace; font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase;
}
.scroll-cue .track {
  position: relative; width: 1px; height: 38px; background: rgba(111,98,83,.3); overflow: hidden;
}
.scroll-cue .track::after {
  content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 11px; background: var(--ink);
  animation: scrolldot 1.9s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scrolldot {
  0% { transform: translateY(-12px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}
@media (max-width: 880px) { .scroll-cue { display: none; } }
.notif {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  background: rgba(176,92,66,.12); color: var(--terra-deep);
  font-family: 'Courier Prime', monospace; font-size: 10.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin: 6px 20px 10px;
}
.notif .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,199,84,.35); will-change: transform;
}

/* memory photo — a polaroid, but clearly inside a rich entry */
.memphoto {
  margin: 0 18px; background: #fff; padding: 8px 8px 0; border-radius: 3px;
  box-shadow: var(--sh-md); will-change: transform, filter, opacity;
}
.memphoto img { width: 100%; height: 190px; object-fit: cover;
  filter: sepia(.20) saturate(1.06) contrast(1.02); border-radius: 1px; }
.memphoto .pc {
  font-family: 'Courier Prime', monospace; font-size: 10px; color: var(--ink2);
  text-align: center; padding: 7px 2px 9px;
}
.mtitle { font-family: 'Literata', serif; font-weight: 600; font-size: 20px; padding: 14px 20px 2px; }
.mmeta  { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--terra-deep);
  letter-spacing: .5px; padding: 0 20px 10px; }
.people { display: flex; align-items: center; padding: 0 20px 10px; }
.people .av {
  width: 27px; height: 27px; border-radius: 50%; border: 2px solid var(--cream);
  margin-left: -7px; background-size: cover; background-position: center; filter: sepia(.15);
}
.people .av:first-child { margin-left: 0; }
.people .names { font-size: 12px; color: var(--ink2); margin-left: 10px; }
.mnote {
  font-family: 'Literata', serif; font-style: italic; font-size: 14px; color: var(--ink);
  padding: 4px 20px 18px; line-height: 1.5;
}

/* floating iOS-style push notification */
.push {
  position: absolute; top: 14px; left: -66px; z-index: 5; width: 286px;
  display: flex; gap: 11px; padding: 12px 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(9px);
  border-radius: 18px; box-shadow: 0 18px 40px rgba(46,40,35,.22), 0 4px 10px rgba(46,40,35,.12);
  transform: rotate(-2deg); will-change: transform, opacity;
}
.push-icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--terra), var(--terra-deep));
}
.push-icon span { width: 14px; height: 17px; background: #fff; border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(245,199,84,.9); }
.push-body { flex: 1; }
.push-top {
  display: flex; justify-content: space-between;
  font-family: 'Courier Prime', monospace; font-size: 10px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink2);
}
.push-top b { color: var(--ink); }
.push-text { font-size: 13px; color: var(--ink); margin-top: 3px; line-height: 1.35; }

/* ---------- section band: "more than a camera roll" ---------- */
.band { padding: clamp(72px, 9vw, 132px) 40px; position: relative; }
.band-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.band-copy { min-width: 0; }
/* section tonal rhythm — alternating panels so each beat reads as its own chapter.
   Enough value contrast to actually separate (the subtle near-cream tones blended together). */
.band--warm { background: #F3E4C4; }   /* soft sand — the alternating warm panel (stays in the warm family) */
.band + .band, .hero + .band { border-top: 1px solid rgba(46, 40, 35, .07); } /* crisp hairline at each seam (à la Stripe/Stoic) */
.h2 {
  font-family: 'Literata', serif; font-weight: 600; color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.4px; margin-top: 14px;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink2);
  max-width: 40ch; margin-top: 18px;
}
.lead b { color: var(--ink); font-weight: 600; }

/* the "hero memory" card */
.memcard {
  background: var(--surface); border-radius: 14px; padding: 14px;
  box-shadow: var(--sh-lg); max-width: 430px; justify-self: center;
  transform: rotate(-1.2deg); will-change: transform, opacity;
}
.memcard-photo { border-radius: 8px; overflow: hidden; }
.memcard-photo img { width: 100%; height: 300px; object-fit: cover; will-change: filter, transform; }
.memcard figcaption { padding: 16px 8px 8px; }
.mc-title { font-family: 'Literata', serif; font-weight: 600; font-size: 22px; }
.mc-meta { font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--terra-deep);
  letter-spacing: .5px; margin-top: 4px; }
.mc-people { display: flex; align-items: center; margin-top: 13px; }
.mc-people .av { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface);
  margin-left: -8px; background-size: cover; background-position: center; filter: sepia(.12); }
.mc-people .av:first-child { margin-left: 0; }
.mc-names { font-size: 13px; color: var(--ink2); margin-left: 12px; }
.mc-note { font-family: 'Literata', serif; font-style: italic; font-size: 15px; color: var(--ink);
  margin-top: 14px; line-height: 1.55; }

/* ---------- band variants: alternating sides + media wrapper ---------- */
.band-media { min-width: 0; display: flex; justify-content: center; }
.band--flip .band-copy { order: 2; }
.band--flip .band-media { order: 1; }

/* section 3 · resurfacing "spark card" */
.sparkcard {
  position: relative; background: var(--surface); border-radius: 14px; padding: 14px;
  box-shadow: var(--sh-lg); max-width: 400px; transform: rotate(1.4deg);
  will-change: transform, opacity;
}
.sparkcard::before {
  content: ''; position: absolute; inset: -44px -34px; z-index: -1;
  background: radial-gradient(circle at 50% 42%, rgba(245,199,84,.30), rgba(245,199,84,0) 68%);
}
.spark-ribbon {
  position: absolute; top: -13px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; font-family: 'Courier Prime', monospace; font-size: 10.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--terra-deep); box-shadow: var(--sh-sm);
}
.spark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,199,84,.35); }
.sparkcard-photo { border-radius: 8px; overflow: hidden; }
.sparkcard-photo img { width: 100%; height: 280px; object-fit: cover; will-change: filter, transform; }
.sparkcard figcaption { padding: 14px 8px 6px; }

/* section 4 · person view */
.personview {
  background: var(--surface); border-radius: 16px; padding: 22px; max-width: 400px;
  box-shadow: var(--sh-lg); will-change: transform, opacity;
}
.person-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.person-av { width: 56px; height: 56px; border-radius: 50%; flex: none;
  background-size: cover; background-position: center; border: 2px solid var(--cream); filter: sepia(.12); }
.person-name { font-family: 'Literata', serif; font-weight: 600; font-size: 20px; }
.person-sub { font-family: 'Courier Prime', monospace; font-size: 11px; color: var(--terra-deep);
  letter-spacing: .5px; margin-top: 2px; }
.person-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pg { aspect-ratio: 1; border-radius: 7px; background-size: cover; background-position: center;
  filter: sepia(.15) saturate(1.04); }

/* ---------- monogram avatars (on-brand initials — no real faces, no consent needed) ---------- */
/* selectors match the original .people/.mc-people/.person-av specificity so these win when placed later */
.people .av, .mc-people .av, .person-av {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; line-height: 1;
  background-image: none; filter: none; -webkit-user-select: none; user-select: none;
}
.people .av    { font-size: 12px; }
.mc-people .av { font-size: 13px; }
.person-av     { font-size: 22px; }
.av--coral  { background-color: #F2D7CC; color: #8F3D23; }
.av--violet { background-color: #E4DAEC; color: #6A4C7C; }
.av--blue   { background-color: #D6E0EC; color: #3F5872; }
.av--sage   { background-color: #DBE5D4; color: #4F6446; }
.av--gold   { background-color: #F4E4BE; color: #6F5310; }

/* section 5 · centered statement */
.band--center { text-align: center; }
.center-inner { max-width: 660px; margin: 0 auto; }
.h2--center { max-width: 20ch; margin-left: auto; margin-right: auto; }
.lead--center { margin: 18px auto 0; }
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  font-family: 'Courier Prime', monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink2); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
}

/* ---------- section 6 · founder note ---------- */
.founder-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.founder-polaroid {
  display: inline-block; background: var(--surface); padding: 10px 10px 0; border-radius: 3px;
  box-shadow: var(--sh-md); transform: rotate(-2.4deg); margin: 0 0 30px; will-change: transform, opacity;
}
.founder-polaroid img { display: block; width: 128px; height: 170px; object-fit: cover; filter: sepia(.18); }
.founder-cap { font-family: 'Courier Prime', monospace; font-size: 10.5px; color: var(--ink2);
  text-align: center; padding: 8px 2px 9px; }
.founder-note {
  font-family: 'Literata', serif; font-size: clamp(1.18rem, 2.1vw, 1.5rem); line-height: 1.62; color: var(--ink);
}
.founder-note b { font-weight: 600; }
.founder-sign { margin-top: 28px; }
.sign-name { display: block; font-family: 'Literata', serif; font-style: italic; font-weight: 500;
  font-size: 26px; color: var(--ink); }
.sign-role { display: block; font-family: 'Courier Prime', monospace; font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--terra-deep); margin-top: 7px; }

/* ---------- section 7 · the close ---------- */
.band--cta { position: relative; overflow: hidden; }
.cta-glow {
  position: absolute; inset: 0; margin: auto; width: 620px; height: 360px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(245,199,84,.24), rgba(245,199,84,0) 70%);
}
.band--cta .center-inner { position: relative; z-index: 1; }
.cta-headline { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.cta-row--center { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-foot { background: #29231F; color: #E9DCC4; padding: 50px 40px; }
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.foot-name { font-family: 'Literata', serif; font-weight: 600; font-size: 19px; color: #F6ECD8; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: #C9BBA1; text-decoration: none; font-size: 14px; transition: color .18s ease; }
.foot-links a:hover { color: #F6ECD8; }
.foot-copy { font-family: 'Courier Prime', monospace; font-size: 12px; color: #9A8C76; }
@media (max-width: 720px) {
  .foot-inner { flex-direction: column; text-align: center; gap: 20px; }
}

/* ---------- a11y: comfortable tap targets (iOS HIG 44px on touch) ---------- */
.nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; }
.nav > a:not(.nav-cta) { padding: 11px 2px; }      /* enlarge the hit area around the text link */
.foot-links a { display: inline-block; padding: 11px 4px; }
.foot-links a:focus-visible { outline-color: #F6ECD8; }   /* terra-deep ring is too dark on the espresso footer */

/* ---------- initial states for the load choreography (only when JS is on) ---------- */
.js [data-anim], .js [data-reveal] { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  /* stacked mobile hero: center the copy so it aligns with the centered phone */
  .hero-copy { order: 1; text-align: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-copy .waitlist { margin-left: auto; margin-right: auto; }
  .hero-stage { order: 2; min-height: 540px; }
  .headline { max-width: 100%; }
  .glow { width: 300px; height: 300px; }
  .push { left: auto; right: 6px; top: 24px; width: 256px; }
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  /* center section intros to match the centered hero; the card's inner entry stays left */
  .band-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .memcard { justify-self: center; }
  /* every section stacks copy-first on mobile, regardless of desktop side */
  .band--flip .band-copy { order: 0; }
  .band--flip .band-media { order: 0; }
}
@media (max-width: 480px) {
  .site-head, .hero { padding-left: 22px; padding-right: 22px; }
  .head-inner { padding-left: 22px; padding-right: 22px; }
  .band { padding-left: 22px; padding-right: 22px; }
  .push { right: 6px; top: 16px; width: 212px; }
  .push-text { font-size: 12.5px; }
}

/* the phone is a fixed desktop-sized mockup — scale it down on small screens so the
   device + its "wow" + the copy + CTA all fit, and the load animation pays off on-screen */
@media (max-width: 560px) {
  /* zoom (not transform) so the phone's LAYOUT box shrinks with it — no leftover dead space */
  .hero-stage { zoom: .82; min-height: auto; }
  .hero { padding-bottom: 26px; }            /* was 86 — close the gap under the phone */
  .hero-inner { gap: 28px; }                 /* tighten copy ↔ phone so it's not stranded */
  /* section photos: shorter on small screens so they stay proportionate, not towering */
  .memcard-photo img { height: 220px; }
}

/* ---------- accessibility: reduced motion (CSS safety net) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim], .js [data-reveal] { opacity: 1 !important; filter: none !important; }
  .js [data-reveal] img { filter: none !important; }
  .js .glow[data-anim] { opacity: .6 !important; }
  .scroll-cue .track::after { animation: none; }
}
