/* ==========================================================================
   pum.me — shared stylesheet (subpages + legal; the landing film uses
   css/film.css). Ground-flat doctrine since 2026-07-25: flat grounds,
   solid page-coloured pnav, chapter bands. Satoshi 400/500 only.
   Case rule (2026-07-17): grammatical sentences take sentence case and keep
   their full stops; display fragments (h1 wink, kickers, nav, buttons, FAQ
   questions) stay lowercase with no terminal stop. "pum" is always lowercase.
   No em-dashes in visible copy — colons, commas, parentheses, full stops.
   Copy law (2026-07-20): ALL visible copy obeys the constitution at
   docs/marketing/website-copy-constitution.md (sentence discipline, agency
   verbs, banned cadences). Story page + legal policy exempt.
   ========================================================================== */

/* ---------- fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

/* ---------- tokens ---------- */
:root {
  --pum-primary: #14AFC3;
  --pum-primary-light: #6ED0DE;
  --pum-primary-deep: #0F8A9E;
  --pum-atmosphere: #BEB0E8;
  --pum-atmosphere-light: #D2C8EF;
  --pum-signal: #FF4D88;
  --pum-ink: #2A2848;
  --pum-ink-soft: #504F6A;
  --pum-mesh-start: #A4E0EA;
  --pum-mesh-end: #CEBEE8;
  --paper: #fafafa;

  /* ---- type scale (enshrined 2026-07-08) ----
     Two registers share one ramp:
       display — lowercase, Satoshi 500: headings, kickers, nav, buttons,
                 chips, FAQ questions, tagline/verse ledes.
       reading — sentence case, Satoshi 400: any run of grammatical prose
                 (two or more sentences): prose paragraphs, list items,
                 FAQ answers, card bodies, explanatory ledes.
     Every font-size on the site is one of these steps — no ad-hoc px values.
     Floors: reading text never below --fs-body; interactive text never below
     --fs-ui; --fs-micro is reserved for uppercase, tracked-out labels.
     (Exempt: .asset-brief / .copy-gap — dev scaffolding, deleted at capture.) */
  --fs-micro: 12px;                    /* kickers, uppercase tags, footer meta */
  --fs-meta: 14px;                     /* fineprint, chips, footer, form messages */
  --fs-ui: 16px;                       /* nav links, buttons, compact card text.
                                          Never lower on inputs: <16px triggers
                                          iOS Safari's auto-zoom on focus. */
  --fs-body: 17px;                     /* long-form reading default */
  --fs-lede: clamp(17px, 2vw, 20px);   /* ledes */
  --fs-h3: 19px;
  --fs-h2: clamp(26px, 3.4vw, 36px);
  --fs-h1: clamp(34px, 5.4vw, 56px);

  --content: 640px;
  --content-wide: 1020px;
  --radius-card: 20px;
  --radius-pill: 100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--pum-ink);
  background: var(--paper);
  overflow-x: hidden;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pum-primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

/* (legacy #iridescent-bg canvas + floating glass-pill .nav removed 2026-07-25
   at the film port — every page now uses the pnav component below. cta-sheen
   keyframes retained: the pnav CTA rides them.) */

@keyframes cta-sheen {
  0%   { transform: translateX(-110%); }
  13%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-cta::before { animation: none; }
}

/* ---------- section scaffolding ---------- */
main { position: relative; z-index: 1; }

.section {
  position: relative;
  padding: clamp(72px, 11vh, 128px) 0;
}
.section-paper { background: var(--paper); }
.section-glassy { background: transparent; }
.section-veil {
  /* violet flesh accent — the depth beat (D12 mode 3, used once) */
  background: linear-gradient(165deg, rgba(190, 176, 232, 0.35), rgba(210, 200, 239, 0.15) 55%, transparent);
}
.inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}
.inner-wide {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  font-weight: 500;
  font-size: var(--fs-meta); /* was 12px — read as whispering (2026-07-17) */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pum-primary-deep);
  margin-bottom: 16px;
}

h1 {
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
h2 {
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
h3 {
  font-weight: 500;
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--pum-ink-soft);
}
p { color: var(--pum-ink-soft); }
p strong { color: var(--pum-ink); font-weight: 500; }
em { font-style: italic; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  /* fill the viewport exactly — the fold lands on the hero, no next-section
     white peeking underneath on tall screens. (For full-page headless
     captures, set the window height ≈ 900px or the hero inflates with it.) */
  min-height: max(560px, 100svh);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 0 64px;
}
.hero .inner-wide { width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy .lede { margin-bottom: 32px; max-width: 30em; color: var(--pum-ink); opacity: 0.82; }
.hero-fineprint {
  margin-top: 14px;
  font-size: var(--fs-ui); /* was fs-meta/0.85 — whispered under the form (2026-07-17) */
  color: var(--pum-ink-soft);
}

/* ---------- phone frame ---------- */
.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.4;
  margin: 0 auto;
  border-radius: 52px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,0.85), rgba(255,255,255,0.35));
  box-shadow:
    0 2px 6px rgba(42, 40, 72, 0.08),
    0 24px 64px rgba(42, 40, 72, 0.18),
    inset 0 0 0 1px rgba(255,255,255,0.7);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background: linear-gradient(180deg, #BFE9EF, #D8F2F5 60%, #E9F0FA);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::after {
  /* dynamic island */
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  border-radius: 14px;
  background: rgba(20, 30, 40, 0.92);
}

/* ---------- asset-brief placeholders ---------- */
.asset-brief {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 200px;
  padding: 28px 22px;
  text-align: center;
  border-radius: inherit;
}
/* serial badge — the reference handle for discussing each asset ("asset D") */
.asset-brief .serial {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--pum-primary-deep);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 138, 158, 0.35);
}
.asset-brief .tag {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pum-primary-deep);
  border: 1px dashed rgba(15, 138, 158, 0.45);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.asset-brief .brief {
  font-size: 13px;
  line-height: 1.55;
  color: var(--pum-ink-soft);
  max-width: 26em;
}

/* crop placeholder (non-phone feature imagery) */
.crop img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.crop {
  border-radius: var(--radius-card);
  background: linear-gradient(170deg, rgba(255,255,255,0.7), rgba(214, 240, 245, 0.55));
  box-shadow:
    0 1px 3px rgba(42, 40, 72, 0.05),
    0 16px 40px rgba(42, 40, 72, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.65);
  overflow: hidden;
  min-height: 300px;
  display: flex;
}

/* ---------- glass card ---------- */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.10) 100%);
  backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.05);
  border-radius: var(--radius-card);
  padding: 28px 30px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0.5px 0 rgba(255, 255, 255, 0.6),
    0 1px 3px rgba(0, 0, 0, 0.02),
    0 8px 24px rgba(0, 0, 0, 0.04);
}
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  padding: 1px;
  background: linear-gradient(170deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(164, 224, 234, 0.22) 25%,
    rgba(190, 176, 232, 0.16) 50%,
    rgba(255, 255, 255, 0.08) 75%,
    transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-card p { font-size: var(--fs-ui); line-height: 1.55; }

/* ---------- privacy band ---------- */
/* Centred band (2026-07-16): the left-aligned block floated lopsided in a
   transparent section with no visual counterweight; centring anchors it. */
.privacy-band { text-align: center; }
.privacy-band h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.privacy-band .lede { max-width: 34em; margin-left: auto; margin-right: auto; }
.privacy-band .guarantees { justify-content: center; }
/* The category anchor — the one plain "what this literally is" statement,
   folded into the privacy band (its own glassy section read as adrift filler
   between two voids). Emphasis by ink weight, never link-teal. */
.category-anchor {
  max-width: 22em;
  margin: 0 auto clamp(64px, 9vh, 104px);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--pum-ink);
}
.category-anchor strong { color: var(--pum-ink); font-weight: 500; }
.guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}
.chip {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--pum-ink);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
}

/* ---------- feature walk ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vh, 84px) 0;
}
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-copy h2 { max-width: 13em; }
.feature-copy p { font-size: var(--fs-body); line-height: 1.6; max-width: 32em; }
.feature-copy p + p { margin-top: 12px; }
.feature-link {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-ui);
  font-weight: 500;
}
.feature-walk-cta {
  display: flex;
  justify-content: center;
  padding-top: clamp(44px, 6vh, 72px);
}

/* ---------- buttons & CTA ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 30px;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--fs-ui);
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--pum-ink);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--pum-primary-deep); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }

.btn-glass {
  display: inline-block;
  padding: 12px 26px;
  font-family: inherit;
  font-weight: 500;
  font-size: var(--fs-ui);
  color: var(--pum-ink);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.5); text-decoration: none; }

/* waitlist form (pre-launch CTA variant) */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 430px;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 20px;
  font-family: inherit;
  font-size: var(--fs-ui);
  color: var(--pum-ink);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input[type="email"]::placeholder { color: var(--pum-ink-soft); opacity: 0.7; }
.waitlist-form input[type="email"]:focus {
  border-color: rgba(20, 175, 195, 0.6);
  box-shadow: 0 0 0 3px rgba(20, 175, 195, 0.12);
}
.waitlist-form .btn-primary { white-space: nowrap; }
.waitlist-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message { margin-top: 12px; font-size: var(--fs-meta); min-height: 20px; }
.form-message.success { color: var(--pum-primary-deep); }
.form-message.error { color: var(--pum-signal); }

/* app store badge — Apple's official artwork (assets/appstore-badge.svg).
   Never rebuild the badge in Satoshi/HTML: marketing guidelines + the
   glyph is tofu on non-Apple browsers. */
.store-badge { display: inline-block; }
.store-badge img {
  display: block;
  height: 50px;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(42, 40, 72, 0.18));
}
.store-badge:hover { opacity: 0.88; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--content); }
.faq details {
  border-bottom: 1px solid rgba(42, 40, 72, 0.1);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 500;
  font-size: var(--fs-body);
  color: var(--pum-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--pum-primary-deep);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 0 18px;
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 38em;
  /* height/opacity are driven by the JS accordion (site.js) for a smooth
     expand; base stays unstyled so no-JS falls back to native <details>. */
  overflow: hidden;
  transition: height 0.36s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.3s ease;
}

/* ---------- copy-gap brief ---------- */
.copy-gap {
  border: 1.5px dashed rgba(255, 77, 136, 0.5);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 18px 0;
  background: rgba(255, 77, 136, 0.04);
}
.copy-gap .tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pum-signal);
  margin-bottom: 6px;
}
.copy-gap p { font-size: 13.5px; line-height: 1.55; color: var(--pum-ink-soft); }

/* ---------- prose pages (story / science / privacy / circle) ---------- */
.prose { max-width: var(--content); }
.prose h2 { margin-top: 52px; }
.prose p { margin-bottom: 16px; font-size: var(--fs-body); line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--pum-ink-soft); font-size: var(--fs-body); line-height: 1.7; }
.prose li { margin-bottom: 10px; }
.prose li strong { color: var(--pum-ink); font-weight: 500; }
.prose .bar {
  height: 6px; width: 48px;
  background: var(--pum-primary);
  border-radius: 999px;
  margin-bottom: 24px;
}

/* ---------- reference list (science page) ----------
   Selected citations under "grounded in the literature". Kept plain and
   readable — the citation is display-weight ink, the plain-language gloss
   is body-soft. Deliberately understated: it is evidence, not decoration
   (the Endel footnote lesson — commissioned-looking stats erode trust). */
.refs { list-style: none; margin: 24px 0 0; padding: 0; }
.refs li {
  padding: 16px 0;
  border-top: 1px solid rgba(42, 40, 72, 0.1);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--pum-ink-soft);
}
.refs li:last-child { border-bottom: 1px solid rgba(42, 40, 72, 0.1); }
/* finding-first (2026-07-27): the plain-language finding leads, the citation
   trails as a quiet provenance line. Leading with "Author, year, journal"
   read as homework. */
.refs .ref-finding { margin: 0; }
.refs .ref-finding strong { color: var(--pum-ink); font-weight: 500; }
.refs .ref-cite {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
  font-weight: 400;
  color: var(--pum-ink-soft);
  opacity: 0.75;
}
.refs .ref-cite em { font-style: italic; }

.page-hero {
  padding: calc(var(--nav-height) + clamp(48px, 9vh, 96px)) 0 clamp(36px, 6vh, 64px);
}
.page-hero h1 { margin-bottom: 16px; max-width: 15em; }
.page-hero .lede { max-width: 34em; }

/* ---------- 404 ---------- */
.notfound {
  min-height: max(560px, 100svh);
  display: flex;
  align-items: center;
}
.notfound .inner { width: 100%; }
.notfound .code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: var(--fs-meta);
  letter-spacing: 0.14em;
  color: var(--pum-primary-deep);
  margin-bottom: 18px;
}
.notfound h1 { margin-bottom: 16px; max-width: 12em; }
.notfound .lede { max-width: 30em; }
.notfound .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* mechanism blocks (privacy page) */
.mechanism-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.mechanism-grid .glass-card h3 { margin-bottom: 6px; }

/* ---------- legal document page (/privacy-policy/) ----------
   Deliberately un-stylised: a clean body of text, simple section headings,
   no glass, no canvas, no rules. Statutes live here, not on /privacy/. */
.legal { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin-bottom: 6px; }
.legal .effective-top { font-size: var(--fs-meta); color: var(--pum-ink-soft); margin-bottom: 36px; }
.legal .intro { font-size: var(--fs-lede); line-height: 1.6; color: var(--pum-ink); margin-bottom: 28px; }
.legal h2 {
  font-size: 20px;                 /* simple section headings — clearly below h1 */
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.legal p, .legal li { font-size: var(--fs-body); line-height: 1.7; color: var(--pum-ink-soft); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 10px; }
.legal li strong, .legal p strong { color: var(--pum-ink); font-weight: 500; }
.legal a { color: var(--pum-primary-deep); }
.legal code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(20, 175, 195, 0.08);
  padding: 1px 5px;
  border-radius: 5px;
  color: var(--pum-primary-deep);
}
.legal pre {
  background: rgba(20, 175, 195, 0.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.legal pre code { background: none; padding: 0; color: var(--pum-ink); }
.legal .effective { margin-top: 44px; font-size: var(--fs-meta); color: var(--pum-ink-soft); }

/* ---------- support page — editorial single-column stack ---------- */
.support-list {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.support-item h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.support-item p { font-size: var(--fs-body); line-height: 1.7; color: var(--pum-ink-soft); }

/* ---------- final CTA ---------- */
.closer { text-align: center; }
.closer h2 { max-width: 18em; margin-left: auto; margin-right: auto; }
.closer .lede { max-width: 30em; margin: 0 auto 30px; }
.closer .cta-slot { display: flex; justify-content: center; }
.closer .waitlist-form { margin: 0 auto; }

/* ---------- footer ---------- */
/* Compact two-row strip (2026-07-16): links across, meta beneath. The old
   footer carried a "built by one developer" blurb column that inflated it —
   that line lives on /story/, not in every footer. */
footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 28px 0 24px;
  border-top: 1px solid rgba(42, 40, 72, 0.07);
}
.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: var(--fs-meta);
}
.footer-links .footer-ig {
  display: inline-flex;
  align-items: center;
  color: var(--pum-ink-soft);
}
.footer-links .footer-ig svg { width: 17px; height: 17px; display: block; }
.footer-meta {
  font-size: var(--fs-micro);
  color: var(--pum-ink-soft);
  opacity: 0.65;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

/* ---------- fade-up entrance ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-1, .fade-2, .fade-3 { opacity: 0; animation: fade-up 0.9s ease-out forwards; }
.fade-2 { animation-delay: 0.2s; }
.fade-3 { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .fade-1, .fade-2, .fade-3 { animation: none; opacity: 1; }
  .pmenu, .pnav-burger span { transition: none; }
  .pnav-cta::before { animation: none; }
}

/* ==========================================================================
   GROUND-FLAT DOCTRINE (ported from proto, 2026-07-25)
   The material-budget rethink (manifest 2026-07-21/22), propagated to the
   production subpages. Pages opt in with class="ground-flat" on <html>:
   - no animated canvas — flat ground, the material budget spends motion
     nowhere on subpages
   - solid page-coloured full-bleed nav + burger sheet (two-chromes rule:
     never compete with Safari 26's liquid-glass chrome)
   - Safari 26 shape: fixed elements carry NO background/backdrop-filter
     (the chrome-tint sampler reads them); ink lives on absolute children
   - chapter bands: transparent sections sit on the html ground (#E6F4F7),
     .section-paper is the calm near-white body chapter, .band-rich is the
     punchy closer chapter
   - glass calms to soft solids: blur has nothing to refract on flat ground
   The legacy .nav / #iridescent-bg system above remains ONLY for the old
   index.html, which the proto film replaces at ship.
   ========================================================================== */

html.ground-flat { background-color: #E6F4F7; }
html.ground-flat body { background: transparent; }

/* ---------- pnav: solid page-coloured bar (shared vocabulary with proto) ---------- */
.pnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px 20px;
  /* NO background / backdrop-filter here — Safari 26 samples fixed elements
     for its chrome tint; the ink lives on .pnav-glass (absolute child) */
  background: transparent;
}
.pnav-glass {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #E6F4F7;
  box-shadow: 0 1px 0 rgba(42, 40, 72, 0.07);
}

.pnav-brand {
  display: block;
  width: 62px;
  height: 24px;
  margin-right: auto; /* brand left, cta + burger right */
  background-color: var(--pum-ink);
  -webkit-mask: url('/assets/wordmark.svg') left center / contain no-repeat;
  mask: url('/assets/wordmark.svg') left center / contain no-repeat;
}
.pnav-brand:hover { background-color: var(--pum-primary-deep); }
.pnav-cta {
  position: relative;
  overflow: hidden;
  padding: 11px 21px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  /* pinned: nav geometry must not inherit each page's body line-height
     (film body = normal, site body = 1.55 → the bar was ~2px taller on
     subpages and read as a shift crossing pages; 2026-07-27) */
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 6px rgba(15, 138, 158, 0.45);
  text-decoration: none;
  background: linear-gradient(118deg,
    #1FB5C9 0%, #55CBDB 26%, #9D8BE0 60%, #F784B0 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    inset 0 -8px 14px rgba(110, 66, 170, 0.28),
    0 4px 18px rgba(20, 175, 195, 0.45),
    0 2px 8px rgba(247, 132, 176, 0.25);
}
.pnav-cta:hover { text-decoration: none; filter: saturate(1.15) brightness(1.03); }
.pnav-cta::after {
  /* gloss cap */
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 7%;
  height: 42%;
  border-radius: var(--radius-pill);
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0));
  pointer-events: none;
}
.pnav-cta::before {
  /* periodic sheen — reuses the cta-sheen keyframes defined above */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 22%,
    rgba(255,255,255,0.25) 40%, rgba(255,255,255,0.95) 50%,
    rgba(255,255,255,0.25) 60%, transparent 78%);
  transform: translateX(-110%);
  animation: cta-sheen 9s ease-in-out 3s infinite;
  pointer-events: none;
}
.pnav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: none;
  cursor: pointer;
}
.pnav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--pum-ink);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
html.menu-open .pnav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
html.menu-open .pnav-burger span:nth-child(2) { opacity: 0; }
html.menu-open .pnav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- burger sheet ----------
   Below the nav (z 40) so the burger stays tappable to close. Safari-26
   shape: transparent fixed wrapper, the sheet on an absolute child. */
.pmenu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
html.menu-open .pmenu { opacity: 1; pointer-events: auto; }
.pmenu-sheet {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(230, 244, 247, 0.96);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}
.pmenu-links { display: flex; flex-direction: column; }
.pmenu-links a {
  padding: 12px 0;
  font-weight: 500;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--pum-ink);
  text-decoration: none;
}
.pmenu-links a[aria-current="page"] { color: var(--pum-primary-deep); }
.pmenu-cta {
  align-self: flex-start;
  margin-top: 30px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(118deg,
    #1FB5C9 0%, #55CBDB 26%, #9D8BE0 60%, #F784B0 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.55),
    0 4px 18px rgba(20, 175, 195, 0.45);
}

/* ---------- roadmap ---------- */
/* Bands are kicker-labelled lists of glass cards at prose width. No dates,
   no quarters, no countdowns in any band (standing law, workorder
   marketing-website-roadmap); the footer's "updated" stamp is the one
   deliberate date on the page. */
.road-band { max-width: var(--content); }
.road-list { display: grid; gap: 16px; margin-top: 24px; }
.road-item h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.road-item p { font-size: var(--fs-body); line-height: 1.6; color: var(--pum-ink-soft); }
.road-item p a { color: var(--pum-primary-deep); }
.road-shipped-lede,
.road-suggest-lede {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--pum-ink-soft);
  margin-top: 14px;
  max-width: 34em;
}
.road-suggest-lede a { color: var(--pum-primary-deep); }
.road-shipped { margin-top: 22px; }
.suggestion-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-width: 34em;
}
.suggestion-form textarea {
  padding: 14px 20px;
  font-family: inherit;
  font-size: var(--fs-ui); /* never lower: <16px triggers iOS Safari zoom */
  line-height: 1.5;
  color: var(--pum-ink);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-card);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.suggestion-form textarea::placeholder { color: var(--pum-ink-soft); opacity: 0.7; }
.suggestion-form textarea:focus {
  border-color: rgba(20, 175, 195, 0.6);
  box-shadow: 0 0 0 3px rgba(20, 175, 195, 0.12);
}
.suggestion-form .btn-primary { align-self: flex-start; }
.suggestion-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- desktop nav: the floating glass pill returns (Lewis 2026-07-25)
   The solid full-width bar + burger are a MOBILE Safari-26 concession (two
   competing liquid-glass chromes). Desktop browsers have no such chrome to
   clash with, so we restore the original floating pill with a visible link
   row and retire the burger. Mirrors the film.css block; kept in sync. */
.pnav-bar-links { display: none; }
/* instagram chip — desktop nav only (mobile nav is [pum · get pum · ☰]) */
.pnav-ig { display: none; }
@media (min-width: 768px) {
  .pnav {
    top: 16px;
    left: 0; right: 0;
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
    padding: 9px 10px 9px 26px;
    border-radius: var(--radius-pill);
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 20px;
  }
  .pnav-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -8px; /* tuck against the cta; grid gap reads too loose */
    border-radius: var(--radius-pill);
    color: var(--pum-ink-soft);
    justify-self: end;
  }
  .pnav-ig:hover { color: var(--pum-ink); }
  .pnav-ig svg { width: 21px; height: 21px; }
  .pnav-glass {
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.6),
      0 1px 3px rgba(42, 40, 72, 0.06),
      0 12px 32px rgba(42, 40, 72, 0.10);
  }
  .pnav-brand { margin-right: 0; justify-self: start; }
  .pnav-bar-links {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: 30px;
  }
  .pnav-bar-links a {
    font-size: var(--fs-ui);
    font-weight: 500;
    line-height: 1.4; /* pinned — see .pnav-cta note */
    color: var(--pum-ink-soft);
    text-decoration: none;
  }
  .pnav-bar-links a:hover,
  .pnav-bar-links a[aria-current="page"] { color: var(--pum-ink); }
  .pnav-cta { justify-self: end; }
  .pnav-burger { display: none; }
}

/* ---------- chapter bands ----------
   Transparent sections sit directly on the html ground (#E6F4F7): the hero
   chapter. .section-paper stays the calm near-white body chapter. .band-rich
   is the punchy closer chapter — static mesh, hard edges = the chapter cut.
   Static gradient only: the material budget spends motion on the landing
   hero alone. */
.ground-flat .band-rich {
  background:
    radial-gradient(110% 85% at 12% 16%, rgba(164, 224, 234, 0.9) 0%, rgba(164, 224, 234, 0) 60%),
    radial-gradient(95% 75% at 88% 84%, rgba(190, 176, 232, 0.75) 0%, rgba(190, 176, 232, 0) 62%),
    linear-gradient(135deg, #C4E8F0 0%, #C9CCEB 100%);
}

/* ---------- glass calms down on a flat ground ----------
   Blur has nothing to refract, so the cards become soft solids
   (translucency stays for tint, filter goes). On a rich band the filters
   come back — there is finally something behind them worth refracting. */
.ground-flat .glass-card,
.ground-flat .crop,
.ground-flat .chip,
.ground-flat .btn-glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ground-flat .waitlist-form input[type="email"] {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.ground-flat .band-rich .glass-card,
.ground-flat .band-rich .btn-glass,
.ground-flat .band-rich .waitlist-form input[type="email"] {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .mechanism-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .waitlist-form { flex-direction: column; max-width: 100%; }
  .waitlist-form .btn-primary { width: 100%; }
  .closer .waitlist-form { width: 100%; }
  .phone { width: min(280px, 82vw); }
}
