/* ==========================================================================
   apé poruwa — marketing site
   Tokens sourced from the product design system (pencil/apeporuwa-mobile.pen)
   ========================================================================== */

:root {
  /* brand (Pencil variables) */
  --gold: #C9A227;
  --gold-soft: #D4AF6A;
  --gold-container: #F3E6B8;
  --gold-on-container: #574A12;
  --maroon: #7B1E2B;
  --maroon-container: #F6DDDF;
  --ink: #2B2622;
  --muted: #6E6557;
  --outline: #8A7E6C;
  --ivory: #FAF6EF;
  --card: #FFFDF9;
  --container: #F6F1E7;
  --container-high: #F0EADE;
  --border: #E7DFD2;
  --inverse: #FFFDF9;
  --text-on-gold: #2B2622;   /* Pencil token — was hardcoded #2A2205 in 4 places */
  --watch-strap: #3A332C;    /* device chrome, not a system surface */
  /* logo copper bridge — darkened from #B05E1E so small text (eyebrows, .fn)
     clears WCAG AA on every warm ground: 5.12 on ivory, 4.90 on container */
  --copper: #A35314;
  /* status */
  --confirmed: #4F8A6D; --confirmed-soft: #DCEBE3; --confirmed-text: #1E3B2E;
  --pending: #E0A53B;  --pending-soft: #F7E9CC;  --pending-text: #5A4112;
  --declined: #B07A7A; --declined-soft: #EFE0E0; --declined-text: #4A2B2B;
  /* dark section */
  --night: #1B1410;
  --night-2: #241A14;
  --night-deep: #14100C;
  --night-border: #2A211A;
  --night-edge: #3A2B20;
  --night-text: #F2E8D8;
  --night-muted: #B9A88E;
  /* the viz's check-in green, echoed by the live counter — same moment, same colour */
  --checkin: #66B48C;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-si: "Noto Sans Sinhala", sans-serif;

  /* type ramp. the page had 24 literal rem sizes, 18 of them crammed between
     .6 and 1.05rem — differences of .02rem that no eye resolves but that every
     new element multiplied. these 8 steps hold a consistent ~1.1 ratio.
     display/headline/title stay on their own clamps above. */
  --fs-3xs: .68rem;  --fs-2xs: .74rem; --fs-xs: .8rem;  --fs-sm: .875rem;
  --fs-md:  .95rem;  --fs-lg:  1.05rem; --fs-xl: 1.2rem; --fs-2xl: 1.35rem;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 28px; --r-full: 999px;
  --shadow-1: 0 1px 2px rgb(43 38 34 / .05), 0 4px 16px rgb(43 38 34 / .06);
  --shadow-2: 0 2px 6px rgb(43 38 34 / .07), 0 16px 40px rgb(43 38 34 / .10);
  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.si { font-family: var(--font-si); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-variation-settings: "opsz" 120; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.25; }
em { font-style: italic; }
.accent { color: var(--copper); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

.eyebrow {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 18px;
}
.eyebrow.light { color: var(--gold-soft); }

/* footnote superscript links → the sources block in the footer.
   inline-block + padding gives the 4–7px superscript a real tap target
   without shifting the baseline (the box grows around it) */
.fn { text-decoration: none; opacity: .85; position: relative; }
/* the superscript glyph is 4–7px wide — far under a usable tap target, and it's
   the only route to the sources block. an absolutely-positioned overlay grows the
   hit area to ~24px with zero layout impact; padding on the glyph itself opened
   visible gaps before following punctuation ("a plate ² .") */
.fn::after { content: ''; position: absolute; inset: -10px -8px; }
.fn:hover { opacity: 1; text-decoration: underline; }

section { padding: clamp(90px, 12vh, 160px) var(--gutter); }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--inverse); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
.seating-story :focus-visible, .cta-final :focus-visible, .footer :focus-visible,
.mobile-menu :focus-visible, .nav.nav-dark :focus-visible, .nav.menu-open :focus-visible { outline-color: var(--gold-soft); }

body.no-scroll { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  border-radius: var(--r-full); border: 1.5px solid transparent;
  white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn-sm { padding: 11px 20px; font-size: var(--fs-sm); }
.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-primary { background: var(--ink); color: var(--inverse); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-ghost { color: var(--ink); border-color: var(--border); background: transparent; }
.btn-ghost:hover { border-color: var(--outline); background: var(--card); }
.btn-gold { background: var(--gold); color: var(--text-on-gold); box-shadow: 0 4px 24px rgb(201 162 39 / .45); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgb(201 162 39 / .6); }
/* physical press feedback — most visitors are on touch, where :hover never fires */
a, button { -webkit-tap-highlight-color: transparent; }
.btn:active, .store-badge:active, .wa-reply:active, .viz-replay:active {
  transform: translateY(1px) scale(.985); transition-duration: .08s;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
@supports (padding: max(0px)) {
  .nav { padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
}
.nav.scrolled {
  background: rgb(250 246 239 / .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav.nav-dark.scrolled { background: rgb(27 20 16 / .72); box-shadow: 0 1px 0 rgb(255 253 249 / .08); }
.nav.nav-dark .nav-links a { color: var(--night-muted); }
.nav.nav-dark .nav-links a:hover { color: var(--gold-soft); }
.nav.nav-dark .nav-wordmark { color: var(--gold-soft); }
.nav.nav-dark .btn-primary { background: var(--gold); color: var(--text-on-gold); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav-brand img { border-radius: var(--r-md); }
.nav-wordmark { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; color: var(--maroon); white-space: nowrap; }
.nav-wordmark .si { font-size: .95em; margin-right: 2px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { text-decoration: none; font-size: var(--fs-md); font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--copper); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  /* glass blur re-rasterizes every scrolled frame on mid-range phones — go near-solid */
  .nav.scrolled { background: rgb(250 246 239 / .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.nav-dark.scrolled { background: rgb(27 20 16 / .96); }
}
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav-brand { gap: 8px; }
  .nav-brand img { width: 38px; height: 38px; }
  .nav-wordmark { font-size: 1rem; }
  .nav > .btn-sm { padding: 11px 16px; font-size: var(--fs-xs); }
}

/* ---------- mobile menu ---------- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  width: 44px; height: 44px; flex: 0 0 44px;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-sm);
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; border-radius: var(--r-full); background: var(--ink); transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s; }
.nav.nav-dark .nav-toggle-bar, .nav.menu-open .nav-toggle-bar { background: var(--night-text); }
.nav.menu-open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) { .nav-toggle { display: inline-flex; } }
/* while the menu is open the nav floats over the night overlay */
.nav.menu-open, .nav.menu-open.scrolled {
  background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav.menu-open .nav-wordmark { color: var(--gold-soft); }
.nav.menu-open .btn-primary { background: var(--gold); color: var(--text-on-gold); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px max(var(--gutter), env(safe-area-inset-left, 0px)) calc(40px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(123 30 43 / .3), transparent 70%),
    var(--night);
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  color: var(--night-text); text-decoration: none; padding: 10px 0; line-height: 1.15;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu nav a:hover { color: var(--gold-soft); }
.mobile-menu .btn, .mobile-menu-note {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu .btn { margin-top: 30px; align-self: flex-start; }
.mobile-menu-note { margin-top: auto; color: var(--night-muted); font-size: var(--fs-sm); }
.mobile-menu.open nav a, .mobile-menu.open .btn, .mobile-menu.open .mobile-menu-note { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .11s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .16s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .21s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: .26s; }
.mobile-menu.open .btn { transition-delay: .32s; }
.mobile-menu.open .mobile-menu-note { transition-delay: .38s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 140px var(--gutter) 80px; overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 28%, rgb(212 175 106 / .35), transparent 70%),
    radial-gradient(30% 34% at 78% 22%, rgb(246 221 223 / .55), transparent 70%),
    radial-gradient(42% 46% at 70% 78%, rgb(201 162 39 / .18), transparent 70%),
    radial-gradient(28% 30% at 18% 80%, rgb(176 94 30 / .12), transparent 70%);
  filter: blur(40px);
  animation: mesh-drift 36s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
/* main.js toggles this while the hero is scrolled away — no offscreen blur work */
.hero-offscreen .hero-mesh { animation-play-state: paused; }
/* canvas is a replaced element — inset alone doesn't stretch it; explicit 100% does */
#petals { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; max-width: 980px; }
.hero-eyebrow { font-size: var(--fs-md); letter-spacing: .1em; text-transform: none; }
.hero-eyebrow .si { font-size: 1.15em; font-weight: 600; }
.hero-title { margin: 10px 0 28px; }
/* each line is an overflow mask; the inner span slides up through it.
   padding/margin cancel out but keep descenders & italic overhangs unclipped */
.hero-title .line { display: block; overflow: hidden; padding: .08em .1em; margin: -.08em -.1em; }
.hero-title .line-inner { display: block; }
.hero-title .accent em { font-variation-settings: "opsz" 144; }
.hero-sub { max-width: 640px; margin: 0 auto 36px; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fine { margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); opacity: .85; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 2px solid var(--outline); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--copper); border-radius: var(--r-full);
  animation: hint 2.2s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(14px); opacity: 0; } 56% { opacity: 0; } }

/* ---------- chaos ---------- */
.chaos { position: relative; min-height: 90vh; display: grid; place-items: center; overflow: hidden; background: var(--container); }
.chaos-chips { position: absolute; inset: 0; pointer-events: none; }
.chip {
  position: absolute; white-space: nowrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 10px 16px; font-size: var(--fs-sm); color: var(--muted);
  transform: rotate(var(--tilt, -2deg));
}
.si-chip { font-family: var(--font-si); }
.c1 { top: 12%; left: 6%;  --tilt: -4deg; }
.c2 { top: 8%;  right: 8%; --tilt: 3deg; }
.c3 { top: 30%; left: 12%; --tilt: 2deg; background: var(--pending-soft); color: var(--pending-text); }
.c4 { bottom: 26%; left: 7%; --tilt: -3deg; }
.c5 { top: 26%; right: 6%; --tilt: -2deg; }
.c6 { bottom: 14%; right: 12%; --tilt: 4deg; }
.c7 { bottom: 10%; left: 24%; --tilt: 1deg; }
.c8 { bottom: 34%; right: 5%; --tilt: -5deg; }
.c9 { top: 12%; left: 38%; --tilt: 2deg; background: var(--maroon-container); color: var(--maroon); }
@media (max-width: 760px) {
  .c4, .c7, .c8, .c9 { display: none; }
  /* remaining chips: clamp width, confine to top & bottom bands, keep the middle clear */
  .chip { font-size: var(--fs-2xs); padding: 8px 12px; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; }
  .c1 { top: 8%; left: 4%; }
  .c2 { top: 15%; right: 4%; }
  .c3 { top: 21%; left: 10%; }
  .c5 { top: auto; bottom: 19%; right: 5%; }
  .c6 { bottom: 9%; right: auto; left: 7%; }
}
.chaos-copy { position: relative; z-index: 1; max-width: 720px; text-align: center; padding: 40px 0; }
@media (max-width: 760px) {
  .chaos-copy { background: radial-gradient(closest-side, var(--container) 58%, transparent); padding: 56px 10px; }
}
.chaos-copy p { margin-top: 22px; color: var(--muted); max-width: var(--measure); margin-inline: auto; }

/* ---------- seating scrollytell (dark) ---------- */
.seating-story {
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(123 30 43 / .25), transparent 70%),
    var(--night);
  color: var(--night-text);
  padding-bottom: 0;
}
.story-head { max-width: 780px; margin: 0 auto 40px; text-align: center; }
.story-head .muted { color: var(--night-muted); margin-top: 16px; }
.story-layout {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 72px); max-width: 1280px; margin: 0 auto;
}
.story-graphic {
  position: sticky; top: 0; align-self: start;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
#seating-viz { width: 100%; height: min(78vh, 700px); height: min(78svh, 700px); }
.viz-caption {
  text-align: center; color: var(--night-muted); font-size: var(--fs-md); min-height: 1.5em;
  transition: opacity .6s; /* keep in sync with the 600ms caption timer in seating.js */
}
.story-steps { padding-bottom: 20vh; }
.step {
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 420px;
}
.step h3 { color: var(--gold-soft); margin-bottom: 14px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.step p { color: var(--night-muted); }
/* the ask at the emotional peak — the section otherwise has no bottom padding */
.story-cta { text-align: center; padding: 0 0 clamp(70px, 10vh, 120px); display: grid; gap: 14px; justify-items: center; }
.story-cta p { color: var(--night-muted); font-size: var(--fs-sm); }
/* replay pill: "run it again" as a button (injected by seating.js, full-motion only) */
.viz-replay {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  font: 600 .78rem var(--font-body); letter-spacing: .02em;
  color: var(--night-muted); background: rgb(36 26 20 / .8);
  border: 1px solid rgb(212 175 106 / .4); border-radius: var(--r-full);
  padding: 8px 16px; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: opacity .45s, transform .45s, color .2s, border-color .2s;
}
.viz-replay.show { opacity: 1; pointer-events: auto; transform: none; }
.viz-replay:hover { color: var(--gold-soft); border-color: var(--gold-soft); }
@media (max-width: 900px) {
  .story-layout { grid-template-columns: 1fr; }
  .story-graphic {
    height: 56vh; height: 56svh;
    z-index: 1; justify-content: flex-start;
    padding-top: 70px; background: var(--night);
    box-shadow: 0 24px 24px -12px var(--night);
  }
  #seating-viz { height: calc(56vh - 116px); height: calc(56svh - 116px); }
  .viz-caption { font-size: var(--fs-sm); }
  /* on phones the caption sits on the graphic's bottom edge, where the pill lives on
     desktop, so the pill moves to the top-right corner just under the fixed nav */
  .viz-replay { top: 78px; bottom: auto; }
  .step { min-height: 62vh; min-height: 62svh; max-width: 340px; text-align: center; margin: 0 auto; justify-content: flex-end; padding-bottom: 6vh; padding-bottom: 6svh; }
  .step h3 { font-size: var(--fs-2xl); }
  .step p { font-size: var(--fs-md); }
}

/* ---------- rsvp ---------- */
.rsvp {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1200px; margin: 0 auto;
}
@media (max-width: 860px) { .rsvp { grid-template-columns: 1fr; } }
.tick-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.tick-list li { padding-left: 34px; position: relative; color: var(--muted); }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--confirmed-soft); color: var(--confirmed-text);
  font-size: var(--fs-xs); font-weight: 700; display: grid; place-items: center;
}
.rsvp-copy h2 { margin-bottom: 20px; }
.phone {
  justify-self: center; width: min(340px, 86vw);
  border-radius: 44px; padding: 12px; background: var(--ink);
  box-shadow: var(--shadow-2), 0 40px 80px rgb(43 38 34 / .18);
}
.phone-screen { border-radius: 34px; overflow: hidden; background: #EFE6D8; }
.wa-header {
  display: flex; gap: 10px; align-items: center;
  background: var(--maroon); color: #fff; padding: 14px 16px; font-size: var(--fs-sm);
}
.wa-header span:last-child { display: block; font-size: var(--fs-2xs); opacity: .8; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-container); display: grid; place-items: center; font-size: 1rem; }
.wa-body {
  padding: 18px 12px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 320px;
  background-image: radial-gradient(rgb(43 38 34 / .04) 1px, transparent 1px); background-size: 14px 14px;
}
.wa-bubble {
  max-width: 86%; border-radius: 14px; padding: 10px 12px; font-size: var(--fs-xs); line-height: 1.45;
  box-shadow: 0 1px 1px rgb(43 38 34 / .1); position: relative;
}
.wa-bubble.out { align-self: flex-end; background: #E7F6D3; border-top-right-radius: 4px; }
.wa-bubble.in  { align-self: flex-start; background: #fff; border-top-left-radius: 4px; font-family: var(--font-si); }
.wa-time { display: block; text-align: right; font-size: var(--fs-3xs); color: var(--muted); margin-top: 4px; }
.wa-invite-card { display: flex; gap: 10px; align-items: center; }
.wa-invite-art {
  flex: 0 0 44px; height: 44px; border-radius: var(--r-md); font-family: var(--font-si);
  background: linear-gradient(135deg, var(--gold), var(--copper)); color: #fff;
  display: grid; place-items: center; font-size: var(--fs-2xl);
}
.wa-bubble.typing {
  display: none; align-self: flex-start; align-items: center; gap: 5px;
  background: #fff; border-top-left-radius: 4px; padding: 13px 15px;
}
.js .wa-bubble.typing { display: inline-flex; }
.wa-bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--outline);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.wa-bubble.typing span:nth-child(2) { animation-delay: .18s; }
.wa-bubble.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.wa-bubble.status {
  align-self: center; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-full); font-size: var(--fs-2xs); color: var(--muted);
  display: flex; align-items: center; gap: 7px; padding: 8px 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.confirmed { background: var(--confirmed); }
.dot.declined { background: var(--declined); }
/* quick replies: the visitor answers for Nirmala (JS-driven; hidden on the static page) */
.wa-replies { display: none; align-self: flex-end; gap: 8px; margin-top: 2px; }
.js .wa-replies { display: flex; opacity: 0; }
.wa-reply {
  font: 600 .78rem var(--font-body); padding: 8px 14px; cursor: pointer;
  border-radius: var(--r-full); background: #fff; box-shadow: 0 1px 1px rgb(43 38 34 / .1);
  border: 1.5px solid var(--confirmed); color: var(--confirmed-text);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s;
}
.wa-reply:hover { background: var(--confirmed-soft); }
.wa-reply:last-child { border-color: var(--border); color: var(--muted); }
.wa-reply .si { font-size: .95em; }

/* ---------- plate-cost calculator (the money, made tangible) ---------- */
.plate-math {
  grid-column: 1 / -1; margin-top: clamp(24px, 4vw, 44px);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-1); padding: clamp(24px, 3vw, 40px);
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
}
@media (max-width: 860px) { .plate-math { grid-template-columns: 1fr; } }
.pm-head h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.pm-head p { color: var(--muted); font-size: var(--fs-md); margin-top: 10px; }
.pm-controls { display: grid; gap: 20px; }
.pm-controls label {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--muted);
}
.pm-controls strong {
  font-size: var(--fs-lg); color: var(--ink); font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.pm-controls input[type="range"] {
  grid-column: 1 / -1; width: 100%; height: 30px;
  accent-color: var(--copper); cursor: pointer;
}
.pm-result {
  grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: var(--fs-md);
  border-top: 1px dashed var(--border); padding-top: 22px;
}
.pm-result strong {
  display: block; margin: 2px 0 4px;
  font-family: var(--font-body); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--maroon);
  font-variant-numeric: tabular-nums;
}
.pm-note { grid-column: 1 / -1; text-align: center; font-size: var(--fs-sm); color: var(--muted); margin-top: -14px; }
.pm-note::before { content: "→ "; color: var(--copper); }

/* ---------- bento ---------- */
.features { background: var(--container); }
.bento {
  display: grid; gap: 18px; max-width: 1200px; margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}
.cell {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(24px, 2.6vw, 36px); box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  grid-column: span 1;
  /* the three cells carry 4/3/3 lines of copy in an equal-height row, which left
     ~130px of dead white in two of them. flex + the auto margin on .cell-stat
     distributes that slack instead of pooling it at the bottom of the short ones */
  display: flex; flex-direction: column;
}
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cell-wide { grid-column: span 2; }
@media (max-width: 860px) { .cell, .cell-wide { grid-column: span 3; } }
.cell h3 { margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.cell p { color: var(--muted); font-size: var(--fs-md); }
.cell-dark { background: var(--night-2); border-color: var(--night-edge); color: var(--night-text); }
.cell-dark p { color: var(--night-muted); }
.cell-dark .ficon { stroke: var(--gold-soft); }
.ficon {
  width: 44px; height: 44px; fill: none; stroke: var(--copper);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.cell-stat { margin-top: auto; padding-top: 20px; font-family: var(--font-body); font-weight: 600; letter-spacing: -.02em; font-size: var(--fs-2xl); color: var(--ink); font-variant-numeric: tabular-nums; }
.cell .cell-stat-sub { font-size: var(--fs-xs); margin-top: 2px; }
.cell-demo { margin-top: 18px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-right: -9px;
  background: var(--gold-container); color: var(--gold-on-container);
  border: 2px solid var(--card); font-size: var(--fs-3xs); font-weight: 600;
  display: grid; place-items: center;
}
.avatars .more { background: var(--maroon); color: #fff; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border-radius: var(--r-full); padding: 5px 12px; font-size: var(--fs-2xs); font-weight: 600; }
.pill.confirmed { background: var(--confirmed-soft); color: var(--confirmed-text); }
.pill.pending { background: var(--pending-soft); color: var(--pending-text); }
.pill.declined { background: var(--declined-soft); color: var(--declined-text); }
.live-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--confirmed); display: inline-block;
  box-shadow: 0 0 0 0 rgb(79 138 109 / .6); animation: pulse 2s infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 12px rgb(79 138 109 / 0); } }

/* ---------- collab ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.role {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.role:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.role p { color: var(--muted); font-size: var(--fs-md); margin-top: 12px; }
.role-badge {
  font-size: var(--fs-2xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--r-full); padding: 5px 12px;
}
.role-badge.owner   { background: var(--maroon); color: #fff; }
.role-badge.planner { background: var(--gold-container); color: var(--gold-on-container); }
.role-badge.editor  { background: var(--confirmed-soft); color: var(--confirmed-text); }
.role-badge.viewer  { background: var(--container-high); color: var(--muted); }

/* ---------- after they say yes ---------- */
.after-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.moment {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.moment:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
/* reserve a two-line heading block so body copy shares one baseline across the
   row. measured at 1440/1200/1024/900 the four cards started their copy at four
   different heights (36px spread at 1440) because the wrap is content-driven,
   not width-driven — so this is expressed in em and holds at every width */
.moment h3 { font-size: var(--fs-lg); margin: 0 0 10px; min-height: 2.5em; }
.moment p { color: var(--muted); font-size: var(--fs-md); }
/* live check-in leads the day — a dark, full-width feature row */
.moment-live {
  grid-column: 1 / -1;
  background: var(--night-2); border-color: var(--night-edge);
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto;
  gap: clamp(18px, 3vw, 40px); align-items: center;
}
/* the day's-list card spans the row like .moment-live above it: the two of them
   are the same day either side of the doors opening, and a fifth small card would
   orphan the clean four-across row below */
.moment-list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 40px); align-items: center;
}
.moment-list h3 { margin-top: 0; min-height: 0; }
/* a single list row as the card's picture — job, time, name, at a glance.
   Reuses .dl-num/.dl-holder from the day's-list page block below. */
.moment-list-side { display: grid; gap: 14px; justify-items: start; }
.moment-list-demo {
  display: grid; gap: 8px; justify-items: start;
  background: var(--container); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px 18px;
}
.moment-list-demo p { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .moment-list { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

.moment-live h3 { color: var(--gold-soft); display: flex; align-items: center; gap: 10px; margin-top: 0; font-size: var(--fs-xl); }
.moment-live p { color: var(--night-muted); }
.live-count { display: grid; justify-items: center; gap: 4px; padding: 0 clamp(6px, 2vw, 26px); }
.live-count .counter {
  font-family: var(--font-body); font-weight: 600; line-height: 1;
  font-size: clamp(2.4rem, 4vw, 3.2rem); letter-spacing: -.02em;
  color: var(--checkin);
  font-variant-numeric: tabular-nums;
}
.live-count-sub { font-size: var(--fs-xs); color: var(--night-muted); }
@media (max-width: 700px) {
  .moment-live { grid-template-columns: 1fr; }
  .live-count { justify-items: start; padding: 0; }
}

/* ---------- app + web showcase ---------- */
.showcase { background: var(--container); }
.devices {
  position: relative; max-width: 1060px; margin: 0 auto;
  /* room for the phone overlapping the browser's right edge + bottom */
  padding: 0 clamp(90px, 12vw, 150px) 72px 0;
}
.device-browser {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-2);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--container-high); border-bottom: 1px solid var(--border);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-bar em {
  font-style: normal; margin-left: 10px; padding: 3px 14px;
  font-size: var(--fs-2xs); color: var(--muted);
  background: var(--card); border-radius: var(--r-full);
}
.device-browser img { width: 100%; height: auto; }
.device-phone {
  position: absolute; right: 0; bottom: 0;
  width: clamp(180px, 21vw, 250px);
  border-radius: 40px; padding: 10px; background: var(--ink);
  box-shadow: var(--shadow-2), 0 40px 80px rgb(43 38 34 / .22);
}
.device-phone img { width: 100%; height: auto; border-radius: 31px; }
/* the watch is the phone's companion (Things/Todoist pattern): small, tucked
   against the phone's lower-left corner, never a co-equal third device */
.device-watch {
  position: absolute; right: clamp(158px, 18.5vw, 224px); bottom: 26px;
  width: clamp(118px, 12.5vw, 152px);
  filter: drop-shadow(0 22px 44px rgb(43 38 34 / .3));
}
.device-watch img { width: 100%; height: auto; display: block; position: relative; }
/* strap halves tucked behind the round case — the frame is CSS chrome, like the phone's ink body */
.device-watch::before, .device-watch::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); z-index: -1;
  width: 42%; height: 32%;
  background: linear-gradient(180deg, var(--watch-strap), var(--ink));
}
.device-watch::before { bottom: 84%; border-radius: 14px 14px 6px 6px; }
.device-watch::after  { top: 84%; border-radius: 6px 6px 14px 14px; }
.showcase-note { text-align: center; color: var(--muted); font-size: var(--fs-md); margin-top: 40px; }
.store-note { text-align: center; color: var(--muted); font-size: var(--fs-xs); margin-top: 12px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 11px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--inverse); text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
}
.store-badge:hover { background: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.store-badge svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store-badge span { text-align: left; line-height: 1.18; }
.store-badge small { display: block; font-size: var(--fs-3xs); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; opacity: .75; }
.store-badge strong { display: block; font-size: var(--fs-lg); font-weight: 600; }
@media (max-width: 760px) {
  .devices { padding: 0 0 0 0; }
  .device-phone { position: static; width: min(190px, 52vw); margin: -56px auto 0; display: block; }
  /* phone stays centered; the watch overlaps its lower-right like a worn pair */
  .device-watch { right: auto; left: calc(50% + min(95px, 26vw) - 32px); bottom: -8px; width: min(104px, 27vw); }
}

/* ---------- how ---------- */
.how-layout { position: relative; max-width: 760px; margin: 0 auto; display: flex; gap: clamp(18px, 3vw, 40px); }
.how-line { flex: 0 0 40px; width: 40px; height: auto; overflow: visible; }
#how-path { stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
#how-dot { fill: var(--copper); }
.how-steps { list-style: none; display: grid; gap: clamp(48px, 8vh, 88px); }
.how-step { display: flex; gap: 20px; align-items: flex-start; }
.how-num {
  flex: 0 0 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1.5px solid var(--gold);
  color: var(--copper); font-family: var(--font-display); font-size: var(--fs-xl);
  display: grid; place-items: center;
  transition: background .45s, color .45s, box-shadow .45s;
}
.how-num.active { background: var(--gold); color: var(--text-on-gold); box-shadow: 0 4px 18px rgb(201 162 39 / .4); }
.how-step p { color: var(--muted); margin-top: 6px; max-width: 48ch; }
.how-cta { text-align: center; margin-top: clamp(40px, 7vh, 72px); }

/* ---------- stats ---------- */
.stats {
  background: var(--maroon); color: #fff;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px; text-align: center;
  /* a compact numeric band, not a narrative section — the global section padding
     made it 384px tall for 150px of content, which read as a gap, not a climax */
  padding-block: clamp(56px, 7vh, 88px);
}
.stat strong {
  /* Fraunces (GF cut) only ships x-height figures — numerals set in Inter instead */
  display: block; font-family: var(--font-body); font-weight: 600; letter-spacing: -.03em;
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
}
/* direct child only — .counter spans inside <strong> are also :last-child of their parent */
.stat > span:last-child { font-size: var(--fs-sm); opacity: .85; max-width: 26ch; display: inline-block; margin-top: 8px; }

/* ---------- why ---------- */
.why {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 90px); align-items: center; max-width: 1150px; margin: 0 auto;
}
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } .poruwa-art { max-width: 260px; margin: 0 auto; } }
.poruwa-art { width: 100%; max-width: 460px; margin: 0 auto; }
/* emblem mark: copper "sketch" stroke shown while the fills draw on (see main.js) */
.poruwa-art path { stroke: var(--copper); stroke-width: 2.2; }
.why-copy h2 { margin-bottom: 20px; }
.why-copy p + p { margin-top: 18px; }

/* ---------- final cta ---------- */
.cta-final {
  text-align: center; color: var(--night-text);
  background:
    radial-gradient(55% 65% at 50% 110%, rgb(201 162 39 / .35), transparent 70%),
    radial-gradient(40% 50% at 15% -10%, rgb(123 30 43 / .5), transparent 70%),
    var(--night);
  /* asymmetric: the gold radial rises from the bottom edge, so the ask needs
     headroom above it but not a matching 200px of empty night below the fine
     print before the footer starts */
  padding-block: clamp(120px, 18vh, 200px) clamp(80px, 11vh, 128px);
}
.cta-title {
  font-size: clamp(3rem, 8vw, 6.4rem); color: var(--gold-soft);
  font-variation-settings: "opsz" 144; margin-bottom: 20px;
}
.cta-final > p { color: var(--night-muted); margin-bottom: 36px; }
.cta-fine { font-size: var(--fs-xs); margin-top: 22px; opacity: .7; }

/* ---------- footer ---------- */
.footer {
  background: var(--night-deep); color: var(--night-muted);
  padding: 70px var(--gutter) 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 44px; grid-template-columns: minmax(220px, 1fr) 2fr;
}
@media (max-width: 760px) { .footer { grid-template-columns: 1fr; } }
.foot-brand img { margin-bottom: 16px; mix-blend-mode: lighten; }
.foot-brand .si { color: var(--gold-soft); font-size: var(--fs-lg); }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
/* h3 (not h4) so terms.html — which has no body h3s — doesn't skip a level.
   font-family reset because the global h1,h2,h3 rule would otherwise make
   these label-scale heads Fraunces */
.foot-cols h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--fs-xs); line-height: 1.4; letter-spacing: .12em; text-transform: uppercase;
  color: var(--night-text); margin-bottom: 14px;
}
.foot-cols a { display: block; text-decoration: none; font-size: var(--fs-sm); padding: 11px 0; opacity: .8; }
.foot-cols a:hover { opacity: 1; color: var(--gold-soft); }
/* these two carry the page's only citations — they were at .55/.6, which
   measured 3.27 and 3.64 against #14100C. AA needs 4.5; .8 gives 5.61 */
.foot-sources { grid-column: 1 / -1; display: grid; gap: 10px; font-size: var(--fs-xs); opacity: .8; max-width: 72ch; }
.foot-sources p { line-height: 1.65; }
.foot-note { grid-column: 1 / -1; font-size: var(--fs-xs); opacity: .8; border-top: 1px solid var(--night-border); padding-top: 24px; }

/* ---------- seating viz ---------- */
.tbl-outline { fill: none; stroke: rgb(212 175 106 / .55); stroke-width: 1.6; }
.tbl-head { fill: rgb(123 30 43 / .55); stroke: var(--gold-soft); stroke-width: 1.4; }
.tbl-label { fill: var(--night-muted); font: 600 12px var(--font-body); text-anchor: middle; }
.guest-dot { stroke: rgb(27 20 16 / .9); stroke-width: 1; }

/* ---------- reveal defaults (JS enhances) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .cell, .js .role, .js .moment, .js .how-step { opacity: 0; transform: translateY(30px); }
.js .wa-bubble { opacity: 0; transform: translateY(14px) scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .cell, .js .role, .js .moment, .js .how-step, .js .wa-bubble:not(.typing) { opacity: 1; transform: none; }
  .hero-mesh, .scroll-hint span, .live-dot, .wa-bubble.typing span { animation: none; }
  .wa-bubble.typing, .wa-replies, #how-dot { display: none !important; }
  .mobile-menu, .mobile-menu nav a, .mobile-menu .btn, .mobile-menu-note,
  .nav-toggle-bar, .how-num { transition: none; }
}

/* ---------- legal pages (privacy.html) ---------- */
.legal { max-width: 76ch; margin: 0 auto; padding: 132px var(--gutter) 96px; }
.legal .legal-head { margin-bottom: 12px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; margin: 10px 0 10px; }
.legal .updated { color: var(--muted); font-size: var(--fs-sm); }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.25; margin: 52px 0 14px; }
.legal h3 { font-size: var(--fs-md); font-weight: 600; margin: 26px 0 8px; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--maroon); text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-on-container); }
/* contact addresses rendered 19px tall inline. privacy@ is the account-deletion
   route Play Console's data-deletion URL points at — give it a real hit area */
.legal a[href^="mailto:"] { display: inline-block; padding: 6px 2px; }
.legal section { padding: 0; scroll-margin-top: 96px; }
.legal .toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; margin: 30px 0 10px; }
.legal .toc h2 { font-size: var(--fs-xs); font-family: var(--font-body); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.legal .toc ol { padding-left: 20px; margin: 0; }
.legal .toc li { margin-bottom: 4px; }
.legal .toc a { text-decoration: none; color: var(--ink); }
.legal .toc a:hover { color: var(--maroon); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 14px 0 22px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal .callout { background: var(--container); border-radius: var(--r-md); padding: 16px 20px; margin: 0 0 16px; font-size: var(--fs-md); }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==========================================================================
   the-days-list.html — day-of checklist launch page
   Composed from the shared vocabulary: .nav, .btn, .eyebrow, .section-head,
   .phone/.phone-screen/.wa-header (the hero proof device), .chaos/.chip (the
   group-chat problem band), .how-layout/.how-step (the ladder), .moment/
   .after-grid (the rationing cards), .device-browser (the run sheet),
   .store-badges, .cta-final and .footer — all reused as-is. The dl- rules
   below cover only what has no shared home: the checklist rows inside the
   phone, the run-sheet table inside the browser frame, and the ladder's
   time labels. .dl-num and the .dl-holder pills are also used by index.html's
   day's-list moment card.
   ========================================================================== */

/* wall-clock digits: Inter tabular-nums, never Fraunces — its GF cut has no
   lining figures, same reason the stats band is Inter */
.dl-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ---------- hero: the .rsvp two-column shape, copy beside the phone ---------- */
.dl-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1200px; margin: 0 auto;
  padding: clamp(130px, 16vh, 180px) var(--gutter) clamp(70px, 10vh, 120px);
}
/* h1 shares the row with the phone: headline scale, not the full-bleed hero clamp.
   The beats flow and wrap naturally — forced .line blocks turn ragged in a half
   column. Only the accent turn keeps its own line. */
.dl-hero h1 { font-size: clamp(2.1rem, 3.2vw, 2.9rem); font-variation-settings: "opsz" 120; text-wrap: balance; }
.dl-hero h1 .line { display: block; }
.dl-sub { margin-top: 22px; color: var(--muted); max-width: 50ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.dl-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.dl-fine { margin-top: 18px; font-size: var(--fs-xs); color: var(--muted); opacity: .85; }

/* ---------- the checklist inside the phone (the claim proof device) ---------- */
/* the app-bar avatar carries a glyph, not an emoji — needs a readable colour on gold */
.dl-hero .wa-avatar { color: var(--gold-on-container); font-weight: 600; }
.dl-day { background: var(--card); min-height: 320px; display: flex; flex-direction: column; }
.dl-row {
  display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); align-items: start;
}
.dl-at { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding-top: 2px; }
.dl-name { font-weight: 600; font-size: var(--fs-sm); }
.dl-note { font-size: var(--fs-3xs); color: var(--muted); margin-top: 2px; }
/* holder pills deliberately avoid the RSVP status colours — confirmed/pending/
   declined mean RSVP status and nothing else. This is the role-badge vocabulary. */
.dl-holder {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: var(--fs-3xs); font-weight: 600; letter-spacing: .02em;
  border-radius: var(--r-full); padding: 4px 10px;
}
.dl-holder.open  { background: var(--container-high); color: var(--muted); }
.dl-holder.taken { background: var(--gold-container); color: var(--gold-on-container); }
.dl-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }
.dl-dot.waiting { background: var(--copper); animation: dl-pulse 2s ease-in-out infinite; }
@keyframes dl-pulse { 50% { opacity: .3; } }
/* the claim button is a .btn.btn-gold — these rules only add what <button> needs */
.dl-claim { margin-top: 10px; cursor: pointer; }
.dl-claim[disabled] { background: var(--container-high); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.dl-foot {
  margin-top: auto; padding: 12px 16px; min-height: 48px;
  background: var(--container); border-top: 1px solid var(--border);
  font-size: var(--fs-3xs); color: var(--muted); line-height: 1.5;
}
.dl-foot b { color: var(--ink); font-weight: 600; }

/* this page's chaos copy runs two paragraphs taller than index's, so the shared
   chip positions collide with it — nudge the offenders back into the clear bands */
.dl-chaos .c3 { top: 20%; left: 6%; }
@media (max-width: 760px) {
  .dl-chaos .c1 { top: 5%; }
  .dl-chaos .c2 { top: 11%; }
  .dl-chaos .c3 { top: 17%; }
  .dl-chaos .c5 { bottom: 10%; right: 4%; }
  .dl-chaos .c6 { bottom: 2%; }
}

/* the ladder line's scrub dot is GSAP-driven on index; this page loads no GSAP,
   so without this it sits dead at the top of the line */
#ladder #how-dot { display: none; }

/* ---------- ladder time labels (digits stay Inter, headings stay Fraunces) ----------
   p.dl-when: element+class so it outweighs the .how-step p defaults it sits inside */
p.dl-when { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--maroon); }
p.dl-when small {
  font-size: var(--fs-3xs); font-weight: 500; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase; margin-left: 10px;
}

/* ---------- rationed section ground ---------- */
.dl-quiet { background: var(--container); }

/* ---------- run sheet: table inside the .device-browser frame ---------- */
.dl-cols {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1100px; margin: 0 auto;
}
.dl-copy p { margin-top: 18px; color: var(--muted); max-width: var(--measure); }
.dl-sheet { overflow-x: auto; }
.dl-sheet table { border-collapse: collapse; width: 100%; min-width: 24rem; }
.dl-sheet caption {
  text-align: left; padding: 16px 22px; font-size: var(--fs-2xs);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--container);
}
.dl-sheet th, .dl-sheet td { text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
.dl-sheet th { font-size: var(--fs-3xs); letter-spacing: .1em; text-transform: uppercase; color: var(--outline); font-weight: 600; }
.dl-sheet tr:last-child td { border-bottom: 0; }
.dl-sheet td:first-child { color: var(--maroon); font-weight: 600; width: 5.5rem; }

/* ---------- availability: a compact badge band, not a narrative section ---------- */
.dl-availability { padding-block: clamp(60px, 8vh, 96px); text-align: center; }

@media (max-width: 860px) {
  .dl-hero, .dl-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-dot.waiting { animation: none; }
}

/* the day's list — subpage nav. It has no mobile menu (main.js isn't loaded),
   so the way home must survive the 900px breakpoint that hides .nav-links.
   Below 480px the wordmark yields its space to the two buttons; the logo
   still carries the brand and still links home. */
.dl-nav { gap: 20px; }
.dl-nav .dl-back { flex: none; }
@media (max-width: 480px) {
  .dl-nav .nav-wordmark { display: none; }
  .dl-nav { gap: 10px; }
}
