/* fygit landing - hand-rolled CSS over the icon-kit palette.
   No build step; CloudFront + S3 serve this file as-is. */

/* Figtree, vendored locally so the landing doesn't depend on the
   Google Fonts CDN at runtime. Files come from @fontsource/figtree
   (npm) and are copied into landing/fonts/ by the deploy script.
   Closes EX19 from RECOMMENDATIONS.md - no IP leak to Google,
   builds stay hermetic, and visitors behind firewalls / GFW still
   get the brand type instead of the system fallback. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2");
}

/* Fraunces, vendored for the editorial serif H2 pairing. Same hermetic
   policy as Figtree - no Google Fonts dependency. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin-700-normal.woff2") format("woff2");
}

:root {
  /* Canonical app tokens — mirror lib/core/theme/colors.dart so the
     landing's warm-obsidian + cream paper read the same as the iPhone
     surface. Previously used a 2% drift palette; aligned 2026-05-16. */
  --ink: #0f0b0a;            /* obsidian — app canvas */
  --ink-elev: #1c1917;       /* surfaceElevated — cards, hover targets */
  --ink-soft: #2a2623;       /* surfaceBorder — hairlines, accents */
  --cream: #f6f1e7;          /* paper — single biggest identity asset */
  --cream-strong: #faf6ec;   /* brighter for emphasis */
  --cream-soft: rgba(246, 241, 231, 0.78);
  --cream-mute: rgba(246, 241, 231, 0.55);
  --cream-faint: rgba(246, 241, 231, 0.14);
  --cream-bg: #efe8d6;       /* paper-tinted card surface */
  --terracotta: #d87d5d;     /* primary action — bumped to match app */
  --terracotta-deep: #b05636;
  --terracotta-soft: rgba(216, 125, 93, 0.22);
  --terracotta-faint: rgba(216, 125, 93, 0.08);
  --sage: #7ba098;           /* secondary accent — claimed states */
  --sage-soft: rgba(123, 160, 152, 0.22);
  --peach: #f2c994;          /* low-confidence wash, gradient top */
  --max: 1180px;
  --rad-tile: 22px;
  --rad-card: 18px;
  --display: "Fraunces", "Iowan Old Style", "Hoefler Text", "Apple Garamond",
    "Baskerville", "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


* {
  box-sizing: border-box;
}

/* Smooth in-page anchor jumps, offset so #features / #download land clear of
   the sticky topbar instead of tucked underneath it. Disabled under
   reduced-motion below. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper-grain noise overlay - 3.5%, fixed so it doesn't repaint on scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.94  0 0 0 0 0.92  0 0 0 0 0.87  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
body > * {
  position: relative;
  z-index: 1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cream);
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover {
  color: var(--terracotta);
}

button {
  font-family: inherit;
}

.it {
  color: var(--terracotta);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ────────────  Top bar  ──────────── */

.topbar {
  padding: 18px 0;
  padding-top: max(18px, env(safe-area-inset-top));
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-faint);
  transition: background 220ms ease, border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Gains depth once the page scrolls — toggled by the 1px sentinel IO in
   index.html (no scroll listener). Warm-tinted hairline shadow, not pure
   black, so the lighting matches the receipt. */
.topbar.is-stuck {
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  box-shadow: 0 12px 32px -20px rgba(8, 5, 4, 0.85);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 22px;
}

.topbar__brand img {
  width: 32px;
  height: 40px;
}

.topbar__brand .it {
  color: var(--terracotta);
}

.topbar__nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
  align-items: center;
  color: var(--cream-soft);
}

.topbar__nav a {
  font-weight: 500;
}

.topbar__cta {
  background: var(--terracotta);
  color: var(--ink) !important;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 120ms ease, transform 120ms ease;
}

.topbar__cta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .topbar__nav a:not(.topbar__cta) {
    display: none;
  }
}

/* ────────────  Hero  ──────────── */

.hero {
  position: relative;
  overflow: hidden;
  /* dvh avoids the iOS Safari address-bar viewport jump; vh stays as a
     fallback for browsers without dynamic-viewport units. */
  min-height: clamp(620px, 92vh, 1000px);
  min-height: clamp(620px, 92dvh, 1000px);
  display: flex;
  align-items: flex-end;
  /* Trimmed bottom padding so the headline sits closer to the
     bottom-left of the video, Function-Health-style. */
  padding: clamp(96px, 16vw, 180px) 0 clamp(40px, 6vw, 64px);
  isolation: isolate;
}

/* Full-bleed video backdrop. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    /* Vertical: keeps text legible bottom-anchored. */
    linear-gradient(
      180deg,
      rgba(15, 11, 10, 0.55) 0%,
      rgba(15, 11, 10, 0.35) 32%,
      rgba(15, 11, 10, 0.65) 68%,
      rgba(15, 11, 10, 0.95) 100%
    ),
    /* Horizontal: subtle vignette so edges don't blow out. */
    linear-gradient(
      90deg,
      rgba(15, 11, 10, 0.40) 0%,
      transparent 30%,
      transparent 70%,
      rgba(15, 11, 10, 0.40) 100%
    );
  pointer-events: none;
}

/* Bottom-left anchored copy stack — Function Health pattern. The
   .wrap centers the column inside the page, and inside that column
   the text aligns left with a tight max-width so headlines wrap on
   purpose. Vertical anchoring is handled by the parent .hero's
   align-items: flex-end. */
.hero__copy {
  position: relative;
  z-index: 1;
  text-align: left;
  max-width: 720px;
  margin: 0;
}

.hero__headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 18px;
  color: var(--cream-strong);
  text-shadow: 0 2px 30px rgba(15, 11, 10, 0.35);
}

.hero__sub {
  margin: 0 0 26px;
  max-width: 520px;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.55;
  color: var(--cream-soft);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 28px;
}

/* Trust strip — moved into its own band below the hero (taste-skill
   hero-stack discipline keeps the hero at <=4 text elements). No decorative
   dots (the skill bans them); the items read as a clean centered row. */
.trustbar {
  border-top: 1px solid var(--cream-faint);
  padding: 18px 0;
}

.trustbar__list {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: var(--max);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 40px;
  font-size: 13px;
  color: var(--cream-soft);
}

/* Hero video — full-bleed backdrop (Function-Health pattern). Portrait
   source video; object-fit: cover crops sides on wide viewports while
   preserving the phone-and-receipt focal area. The .hero__scrim sits
   on top so the copy reads cleanly without dimming the video globally. */
.hero__video,
.hero__video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
  display: block;
}

.hero__video-fallback {
  display: none;
}

@media (max-width: 760px) {
  .hero {
    padding-top: clamp(80px, 20vw, 140px);
    align-items: center;
  }
  .hero__copy {
    text-align: center;
    margin: 0 auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__headline {
    letter-spacing: -1px;
  }
  .hero__scrim {
    background:
      linear-gradient(
        180deg,
        rgba(15, 11, 10, 0.55) 0%,
        rgba(15, 11, 10, 0.45) 30%,
        rgba(15, 11, 10, 0.75) 70%,
        rgba(15, 11, 10, 0.95) 100%
      );
  }
}

/* Shared store-badge style. Used in hero, download, and footer. */
.store-badge {
  display: inline-block;
  transition: transform 120ms ease, opacity 120ms ease;
  border-radius: 8px;
}

.store-badge img {
  height: 50px;
  width: auto;
  display: block;
}

a.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

/* "coming soon" Google Play variant — same 50px height as the active
   App Store badge but greyscaled + half-opacity. The tiny "coming
   soon" tag is rendered directly above the badge as a ::before, so
   the tag and badge are a single visual unit (immune to flex wrap
   issues at narrow viewports). */
.store-badge--soon {
  position: relative;
  cursor: default;
  filter: grayscale(0.55);
  margin-top: 22px;            /* room for the absolute-positioned tag */
}

.store-badge--soon img {
  opacity: 0.5;
}

.store-badge--soon[data-coming-soon]::before {
  content: "coming soon";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: var(--cream-mute);
  font-weight: 700;
  white-space: nowrap;
}

/* Reusable container that places the App Store badge next to the
   Google Play "coming soon" badge. Side by side on wide viewports;
   stacks vertically on narrow ones so the badges sit cleanly above
   each other, both centered. */
.store-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

@media (max-width: 560px) {
  .store-pair {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
}

/* ────────────  Mock bill (proof)  ──────────── */

.proof {
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--cream-faint);
  text-align: center;
}

.proof__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 50px);
  /* >=1.1 so the italic 'g' descender in "no arguments" never clips. */
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin: 0 auto 56px;
  max-width: 720px;
}

/* ─────────────  Receipt mock — exact app interface  ─────────────
   Mirrors the Flutter `ReceiptPaper` widget at lib/core/theme/receipt_theme.dart
   and the guest_web `ReceiptPaper` at guest_web/src/app/s/[slug]/receipt-paper.tsx.
   Same paper color (#F6F1E7), same 12×6 zigzag teeth, same warm-brown
   shadow, same monospace ink, same dashed dividers, same uppercase items,
   same sage-tinted claim row, same terracotta-inset self row.
   The "cross-surface contract" - so the landing's mock looks the same
   as what the host's iPhone and the guest's browser actually render. */

.receipt {
  --paper: #f6f1e7;
  --paper-ink: #141210;
  --paper-mute: rgba(20, 18, 16, 0.6);
  --paper-faint: rgba(20, 18, 16, 0.18);
  --paper-sage: rgba(123, 160, 152, 0.18);
  --paper-terracotta: rgba(216, 125, 93, 0.10);
  --paper-terracotta-edge: rgba(216, 125, 93, 0.55);

  position: relative;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 32px rgba(26, 14, 8, 0.55));
}

/* Zigzag top + bottom edges - mathematically identical to the Flutter
   _ReceiptEdgeClipper (12px tooth base, 6px height) and the existing
   web ReceiptPaper TopEdge/BottomEdge gradients. */
.receipt__edge {
  height: 6px;
  background-image: linear-gradient(45deg, var(--paper) 25%, transparent 25%),
    linear-gradient(-45deg, var(--paper) 25%, transparent 25%);
  background-size: 12px 12px;
  background-repeat: repeat-x;
}

.receipt__edge--bottom {
  background-image: linear-gradient(225deg, var(--paper) 25%, transparent 25%),
    linear-gradient(135deg, var(--paper) 25%, transparent 25%);
}

.receipt__paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 22px 18px 20px;
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.receipt__header {
  text-align: center;
}

.receipt__merchant {
  margin: 0;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--paper-ink);
}

.receipt__addr {
  margin: 4px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 700;
}

.receipt__rule {
  border: 0;
  height: 14px;
  margin: 12px 0;
  background-image: radial-gradient(
    circle at 4px 50%,
    var(--paper-mute) 0.8px,
    transparent 1.2px
  );
  background-size: 8px 14px;
  background-repeat: repeat-x;
  background-position: 0 center;
  opacity: 0.55;
}

.receipt__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.receipt__item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  column-gap: 8px;
  padding: 6px 4px;
  border-radius: 3px;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.3;
}

.receipt__item.is-claimed {
  background: var(--paper-sage);
}

.receipt__item.is-self {
  background: var(--paper-terracotta);
  box-shadow: inset 0 0 0 1px var(--paper-terracotta-edge);
}

.receipt__qty {
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--paper-mute);
  font-weight: 600;
}

.receipt__name {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  word-break: break-word;
}

.receipt__amt {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: right;
  letter-spacing: 0.02em;
}

.receipt__claimants {
  grid-column: 2 / span 2;
  margin-top: 2px;
  font-size: 12px;
  color: var(--paper-mute);
}

.receipt__totals,
.receipt__split {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 4px;
}

.receipt__row > span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.receipt__row > span:last-child {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.receipt__row--total {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.receipt__split-head {
  margin: 0 0 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.receipt__row--you {
  background: var(--paper-terracotta);
  box-shadow: inset 0 0 0 1px var(--paper-terracotta-edge);
  border-radius: 3px;
  font-weight: 700;
  color: var(--paper-ink);
  margin-top: 2px;
}

.receipt__caption {
  margin: 22px auto 0;
  text-align: center;
  color: var(--cream-mute);
  font-size: 13px;
  max-width: 480px;
}

/* Proof layout — receipt next to the founder note (desktop). On
   mobile the column collapses and the note sits centered below. */
.proof__layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.proof__note {
  text-align: left;
  max-width: 440px;
}

.proof__note-body {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--cream-soft);
  margin: 0 0 18px;
}

.proof__note-sign {
  margin: 0;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: lowercase;
  color: var(--terracotta);
  font-weight: 700;
}

@media (max-width: 880px) {
  .proof__layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .proof__note {
    max-width: 480px;
    text-align: center;
  }
}

/* ────────────  Features — itemized ledger  ────────────
   Replaces the old bento grid (a generic SaaS feature-card pattern).
   Renders the feature list in the brand's receipt language — monospace
   category tags, dashed perforation rules, serif titles, no cards and
   no stroke icons — so it reads as part of the product, not a templated
   feature wall. */

.features {
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--cream-faint);
}

.features__head {
  text-align: center;
  margin-bottom: 8px;
}

.features__eyebrow {
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
  font-weight: 700;
}

.features__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 48px);
  letter-spacing: -1.4px;
  margin: 0 0 14px;
}

.features__sub {
  margin: 0 auto;
  max-width: 580px;
  color: var(--cream-soft);
  font-size: 16px;
}

/* The ledger — feature rows as a two-column itemized receipt. Mono
   category tag, serif title, one-line body, stacked per cell. Dashed
   perforation rules form the grid; no card chrome, no icons. Two columns
   halve the section height vs. the old single-column list. */
.ledger {
  list-style: none;
  margin: 44px auto 0;
  padding: 0;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px dashed var(--cream-faint);
  border-radius: var(--rad-card);
  overflow: hidden;
}

.ledger__row {
  padding: clamp(22px, 2.6vw, 30px);
  border-bottom: 1px dashed var(--cream-faint);
  transition: background 140ms ease;
}
.ledger__row:nth-child(odd) {
  border-right: 1px dashed var(--cream-faint);
}
.ledger__row:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.ledger__row:hover {
  background: var(--terracotta-faint);
}

.ledger__tag {
  display: inline-block;
  font-family: "SF Mono", "Menlo", "Consolas", "Courier New", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 11px;
}

.ledger__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 23px);
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--cream-strong);
}

.ledger__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--cream-soft);
}

@media (max-width: 600px) {
  .ledger {
    grid-template-columns: 1fr;
  }
  .ledger__row:nth-child(odd) {
    border-right: 0;
  }
  .ledger__row:nth-last-child(2) {
    border-bottom: 1px dashed var(--cream-faint);
  }
  .ledger__row:last-child {
    border-bottom: 0;
  }
}

/* ────────────  Inline join card  ──────────── */

.join {
  padding: clamp(48px, 7vw, 90px) 0;
  border-top: 1px solid var(--cream-faint);
}

/* Double-bezel "machined" card (soft-skill §4A): an outer shell cradles an
   inset inner core with concentric radii, a top-edge highlight, and a warm
   ambient shadow — like a glass plate in an aluminium tray. overflow:hidden
   clips the cursor glow to the rounded shell. */
.join__card {
  position: relative;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px;
  background: var(--ink-elev);
  border: 1px solid var(--cream-faint);
  border-radius: calc(var(--rad-card) + 8px);
  box-shadow: 0 32px 64px -44px rgba(8, 5, 4, 0.9);
}

.join__core {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 3.4vw, 32px);
  border-radius: var(--rad-card);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ink-elev) 70%, var(--ink)),
    var(--ink)
  );
  box-shadow: inset 0 1px 0 rgba(246, 241, 231, 0.07);
}

/* Cursor-follow warmth — anchored at the core's top-left, translated to the
   pointer in JS (transform only). Static blur, never animated. */
.join__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta-soft), transparent 70%);
  filter: blur(24px);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.join__card.is-glowing .join__glow {
  opacity: 1;
}

.join__title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.8px;
}

.join__sub {
  color: var(--cream-soft);
  margin: 0;
  font-size: 15px;
}

.join__form {
  display: flex;
  gap: 8px;
}

.join__input {
  width: 130px;
  padding: 12px 14px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1.5px solid var(--cream-faint);
  border-radius: 12px;
  outline: none;
  transition: border-color 120ms ease;
}

.join__input::placeholder {
  color: var(--cream-faint);
  font-weight: 400;
}

.join__input:focus {
  border-color: var(--terracotta);
}

.join__input:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.join__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: var(--ink);
  border: 0;
  padding: 0 8px 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.join__btn:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

/* Button-in-button trailing arrow (soft-skill §4B): the glyph rides in its own
   inset disc and nudges right on hover for internal kinetic tension, instead
   of sitting naked next to the label. */
.join__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(15, 11, 10, 0.14);
  transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1),
    background 200ms ease;
}

.join__btn:hover .join__btn-icon {
  transform: translateX(3px);
  background: rgba(15, 11, 10, 0.24);
}

@media (max-width: 600px) {
  .join__core { grid-template-columns: 1fr; text-align: center; }
  .join__form { justify-content: center; }
}

/* ────────────  Download / closing  ──────────── */

.download {
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 10vw, 120px);
  border-top: 1px solid var(--cream-faint);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 50px);
  letter-spacing: -1.4px;
  margin: 0 0 14px;
}

.download__stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.download__price {
  font-size: 13px;
  color: var(--cream-mute);
  letter-spacing: 0.2px;
  margin: 0;
}

/* ────────────  Footer  ──────────── */

footer {
  border-top: 1px solid var(--cream-faint);
  padding: 32px 0 60px;
  margin-top: 0;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--cream-mute);
}

.foot__brand { letter-spacing: 0.1px; }

footer .links {
  display: flex;
  gap: 22px;
}

.social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social__link {
  color: var(--cream-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--cream-faint);
  transition: color 140ms ease, border-color 140ms ease,
    transform 140ms ease, background 140ms ease;
}

.social__link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  footer .wrap {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
}

/* ────────────  Reveal-on-scroll  ──────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 640ms ease-out,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1), filter 640ms ease-out;
  /* Siblings that opt in via --reveal-i cascade in (e.g. the ledger rows). */
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

/* will-change only while still hidden, so we don't pin idle compositor layers
   after the reveal has fired (baseline-ui: no will-change outside animation). */
[data-reveal]:not(.is-revealed) {
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ────────────  Reduced-motion: swap autoplay video for poster  ──────────── */

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
  .hero__video-fallback {
    display: block;
  }
}

/* ────────────  Headline serif overrides  ──────────── */

.hero__headline,
.proof__title,
.features__title,
.ledger__title,
.join__title,
.download__title {
  font-family: var(--display);
  font-weight: 600;
}

.hero__headline { font-weight: 600; letter-spacing: -1px; }
.proof__title { letter-spacing: -1px; }
.features__title { letter-spacing: -1px; }
.download__title { letter-spacing: -1px; }

/* ────────────  Receipt-edge divider (used between sections)  ──────────── */

.divider-receipt {
  display: block;
  height: 14px;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  border: 0;
  background-image: radial-gradient(
    circle at 7px 100%,
    var(--cream-faint) 5px,
    transparent 6px
  );
  background-size: 14px 14px;
  background-position: center bottom;
  background-repeat: repeat-x;
  opacity: 0.7;
}

/* Lock CTA text colors so the terracotta-on-warm-black contrast
   stays right regardless of where the button shows up. */
.topbar__cta,
.join__btn {
  color: #0f0b0a !important;
}

/* ────────────  Buttons (404 + utility CTAs)  ────────────
   Pill CTAs reused by 404.html (.btn--primary / .btn--ghost) and any
   future static page. Same terracotta-on-obsidian recipe as
   .topbar__cta so the brand button reads identically everywhere. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 120ms ease, border-color 120ms ease,
    color 120ms ease, transform 120ms ease;
}

.btn--primary {
  background: var(--terracotta);
  color: #0f0b0a !important;
}

.btn--primary:hover {
  background: var(--terracotta-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--cream-faint);
  color: var(--cream);
}

.btn--ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
}

/* ════════════════  v2 polish layer — taste-skill + ui-skills  ════════════════
   Redesign in PRESERVE mode: brand tokens, fonts, IA, and the receipt
   cross-surface contract are untouched. This layer adds only the high-leverage
   levers — keyboard focus, tactile feedback, typographic orphan control, a
   staged hero entrance, and an on-brand ledger hover. All transform/opacity,
   all reduced-motion aware. */

/* Keyboard focus ring — one brand-consistent indicator on every focusable
   control (fixing-accessibility: focus must be visible; never removed without
   a replacement). :focus-visible keeps it off for pointer users. */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dark CTAs sit ON terracotta — flip the ring to ink so it stays visible. */
.topbar__cta:focus-visible,
.join__btn:focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--ink);
  outline-offset: 2px;
}

/* Orphan / ragged-line control (baseline-ui typography). */
.hero__headline,
.proof__title,
.features__title,
.ledger__title,
.join__title,
.download__title {
  text-wrap: balance;
}

.hero__sub,
.features__sub,
.ledger__body,
.proof__note-body,
.join__sub {
  text-wrap: pretty;
}

/* Tactile press feedback, ≤200ms (redesign-skill + baseline-ui). Declared after
   the :hover rules so it wins while both states are active. */
.topbar__cta:active,
.join__btn:active,
.btn--primary:active,
.btn--ghost:active {
  transform: translateY(0) scale(0.97);
}

a.store-badge:active {
  transform: translateY(0) scale(0.97);
}

.social__link:active {
  transform: scale(0.93);
}

/* Staged hero entrance — children rise and de-blur in sequence on load. Pure
   CSS (above the fold, no scroll dependency), gated to no-preference so reduced
   motion shows the final state instantly with no flash. */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    opacity: 0;
    animation: hero-rise 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--hero-i, 0) * 90ms + 120ms);
  }
  .hero__headline {
    --hero-i: 0;
  }
  .hero__sub {
    --hero-i: 1;
  }
  .hero__cta {
    --hero-i: 2;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Ledger rows: stagger the scroll-reveal (--reveal-i feeds the [data-reveal]
   transition-delay), and grow a terracotta edge on hover like a selected
   receipt line. scaleY is compositor-only. */
.ledger__row:nth-child(1) {
  --reveal-i: 0;
}
.ledger__row:nth-child(2) {
  --reveal-i: 1;
}
.ledger__row:nth-child(3) {
  --reveal-i: 2;
}
.ledger__row:nth-child(4) {
  --reveal-i: 3;
}
.ledger__row:nth-child(5) {
  --reveal-i: 4;
}
.ledger__row:nth-child(6) {
  --reveal-i: 5;
}

.ledger__row {
  position: relative;
}

.ledger__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--terracotta);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 240ms cubic-bezier(0.32, 0.72, 0, 1);
}

.ledger__row:hover::before {
  transform: scaleY(1);
}

