/* QuickExpense — landing page.
   Tokens mirror the app (apps/mobile/lib/unistyles.ts): cool ground, ink, coral.
   Martian Mono is the receipt-printer voice (headlines, amounts); Hanken Grotesk
   carries everything you read. */

:root {
  --ground: #edf0f3;
  --surface: #f8f9fb;
  --card: #ffffff;
  --surface2: #e3e7ec;
  --ink: #17202b;
  --ink2: #566170;
  --ink3: #8a94a1;
  --line: rgba(23, 32, 43, 0.08);
  --coral: #e4604a;
  --coral-ink: #b23f2b;
  --coral-tint: rgba(228, 96, 74, 0.12);
  --good: #23734a;
  --good-tint: rgba(35, 115, 74, 0.12);
  --paper: #fdfdfb;
  --paper-ink: #2a2f36;

  --cat-food: #e9876b;
  --cat-transport: #6fa3d8;
  --cat-groceries: #8fbf6a;
  --cat-travel: #5db3a8;
  --cat-health: #7dbe8a;
  --cat-other: #9aa5b1;

  /* ghost (light: white receipt, ink outline) */
  --gh-paper: #ffffff;
  --gh-outline: var(--ink);
  --gh-outline-w: 22;
  --gh-face: var(--ink);
  --gh-lines: var(--surface2);
  --gh-cheeks: var(--coral);
  --gh-lights: var(--coral);
  --gh-drop: var(--coral);
  --gh-z: var(--ink3);
  --gh-shadow: var(--ink);
  --gh-shadow-o: 0.1;

  --foot: #17202b;
  --night: #11151b;
  --night-surface: #191f28;
  --night-ink: #e6eaef;
  --night-ink2: #9ba5b2;

  --font-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #11151b;
    --surface: #191f28;
    --card: #1e2530;
    --surface2: #232a35;
    --ink: #e6eaef;
    --ink2: #9ba5b2;
    --ink3: #6f7a88;
    --line: rgba(230, 234, 239, 0.08);
    --coral-ink: #f08a76;
    --coral-tint: rgba(228, 96, 74, 0.16);
    --good: #5cc28b;
    --good-tint: rgba(92, 194, 139, 0.14);
    --paper: #f4f5f2;
    --foot: #0b0e12;
    --night: #0b0e12;
    /* night shift: a coral ghost, no outline */
    --gh-paper: var(--coral);
    --gh-outline: transparent;
    --gh-face: #11151b;
    --gh-lines: var(--coral-ink-deep, #b23f2b);
    --gh-cheeks: #b23f2b;
    --gh-lights: var(--coral);
    --gh-drop: var(--ink);
    --gh-shadow: #000;
    --gh-shadow-o: 0.35;
  }
}

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Type ---------- */

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-ink);
}

.display {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-stretch: 75%;
  font-variation-settings: 'wdth' 75;
  font-size: clamp(2.3rem, 4.3vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.h2 {
  margin: 0 0 28px;
  max-width: 18ch;
  font-family: var(--font-mono);
  font-weight: 500;
  font-variation-settings: 'wdth' 85;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lede {
  margin: 26px 0 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink2);
  text-wrap: pretty;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.nav.is-stuck {
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-ghost {
  width: 26px;
  height: 30px;
}
.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variation-settings: 'wdth' 85;
  font-size: 16px;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  gap: 26px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(28px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero-light {
  position: absolute;
  z-index: -1;
  right: -10vw;
  top: -120px;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    rgba(228, 96, 74, 0.26),
    rgba(228, 96, 74, 0.08) 55%,
    transparent
  );
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero-copy {
  max-width: 560px;
}
.display .line {
  display: block;
}
.accent-line {
  color: var(--coral);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.store {
  display: block;
  border-radius: 10px;
  transition: transform 0.2s var(--ease-out);
}
.store:hover {
  transform: translateY(-2px);
}
.store img {
  height: 45px;
  width: auto;
}
/* Google's badge carries its own padding */
.store-play img {
  height: 58px;
  margin: -6.5px -8px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink2);
}
.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

/* Hero load-in */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.8s var(--ease-out) forwards;
}
.js .hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.js .hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.js .hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.js .hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: none;
  }
  .hero-light {
    right: -40vw;
    top: 280px;
    width: 130vw;
  }
}

/* ---------- Stage (hero demo) ---------- */

/* The stage is drawn at 560 × 600 and scaled to fit its column */
.stage-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: center;
  height: calc(600px * var(--s, 1));
}
.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 560px;
  height: 600px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
}

.stage-ghost {
  position: absolute;
  left: 290px;
  top: 6px;
  width: 244px;
  height: 285px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
}

/* Receipt */
.receipt {
  position: absolute;
  left: 18px;
  top: 16px;
  width: 232px;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 18px 28px rgba(23, 32, 43, 0.16))
    drop-shadow(0 2px 4px rgba(23, 32, 43, 0.08));
}
.receipt-paper {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--paper-ink);
  /* torn hem — the ghost's teeth: wide and shallow */
  --tooth-w: 26px;
  --tooth-h: 8px;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -57.26deg at 50% 100%, #000 114.52deg, #0000 0) bottom / var(--tooth-w)
      var(--tooth-h) round no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -57.26deg at 50% 100%, #000 114.52deg, #0000 0) bottom / var(--tooth-w)
      var(--tooth-h) round no-repeat;
}
.receipt-body {
  padding: 20px 18px calc(18px + var(--tooth-h, 8px));
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  white-space: pre;
}
.receipt-body .r {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-radius: 3px;
  transition:
    background-color 0.25s,
    box-shadow 0.25s;
}
.receipt-body .r.c {
  justify-content: center;
}
.receipt-body .r.b {
  font-weight: 700;
}
.receipt-body .r.big {
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0;
}
.receipt-body .r.rule {
  color: #9aa1a9;
  overflow: hidden;
}
.receipt-body .r.hit {
  background: rgba(228, 96, 74, 0.16);
  box-shadow: 0 0 0 3px rgba(228, 96, 74, 0.16);
}
/* printing: each line appears in turn */
.receipt-body .r {
  opacity: 0;
}
.receipt.printing .receipt-body .r,
.receipt.printed .receipt-body .r {
  animation: print 0.2s steps(2) forwards;
  animation-delay: calc(var(--i) * 55ms);
}
.receipt.printed .receipt-body .r {
  animation: none;
  opacity: 1;
}
@keyframes print {
  to {
    opacity: 1;
  }
}

.beam {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  height: 3px;
  background: var(--coral);
  box-shadow:
    0 0 12px 2px rgba(228, 96, 74, 0.7),
    0 0 40px 10px rgba(228, 96, 74, 0.25);
  opacity: 0;
}
.beam::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 60px;
  background: linear-gradient(to top, rgba(228, 96, 74, 0.18), transparent);
}

/* Apple Pay tap banner */
.tap {
  position: absolute;
  left: 30px;
  top: 40px;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 14px 34px rgba(23, 32, 43, 0.16),
    0 0 0 1px var(--line);
  z-index: 2;
  opacity: 0;
}
.tap-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0b0b0c;
}
.tap-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
}
.tap-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.tap-title {
  font-weight: 700;
  font-size: 13px;
}
.tap-sub {
  font-size: 12.5px;
  color: var(--ink2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tap-amt {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* "Logged" chip that pops out of the ghost */
.logged {
  position: absolute;
  left: 250px;
  top: 262px;
  width: 296px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  background: var(--card);
  box-shadow:
    0 16px 36px rgba(23, 32, 43, 0.16),
    0 0 0 1px var(--line);
  z-index: 4;
  opacity: 0;
}
.logged-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--good-tint);
}
.logged-check svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--good);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logged-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.logged-shop {
  font-weight: 700;
  font-size: 15px;
}
.logged-meta {
  font-size: 12.5px;
  color: var(--ink2);
}
.logged-amt {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Today list */
.ledger {
  position: absolute;
  left: 18px;
  right: 14px;
  top: 352px;
  padding: 16px 18px 8px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow:
    0 20px 50px rgba(23, 32, 43, 0.1),
    0 0 0 1px var(--line);
  z-index: 1;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink2);
}
.ledger-total {
  font-size: 20px;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 186px;
  overflow: hidden;
}
.ledger-rows li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  height: 62px;
  border-bottom: 1px solid var(--line);
}
.ledger-rows li:last-child {
  border-bottom: 0;
}
.ledger-rows li.enter {
  animation: row-in 0.5s var(--ease-out);
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-16px);
    background: var(--coral-tint);
  }
}
.dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
}
.dot svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}
.row-shop {
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink2);
}
.src {
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface2);
  color: var(--ink2);
}
.row-amt {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.row-amt small {
  display: block;
  font-size: 11px;
  color: var(--ink3);
}

/* ---------- Ghost ---------- */

.gh {
  display: block;
}
.gh-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gh-shadow {
  fill: var(--gh-shadow);
  opacity: var(--gh-shadow-o);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.gh-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.gh-paper {
  fill: var(--gh-paper);
  stroke: var(--gh-outline);
  stroke-width: 22;
  stroke-linejoin: round;
}
.gh-lines rect {
  fill: var(--gh-lines);
}
.gh-ink {
  fill: var(--gh-face);
}
.gh-stroke {
  fill: none;
  stroke: var(--gh-face);
  stroke-linecap: round;
}
.gh-cheek {
  fill: var(--gh-cheeks);
  opacity: 0.6;
}
.gh-lights rect {
  fill: var(--gh-lights);
}
.gh-drop {
  fill: var(--gh-drop);
}
.gh-z {
  fill: none;
  stroke: var(--gh-z);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.gh-eyes,
.gh-happy {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.gh-look {
  transition: transform 0.25s var(--ease-out);
}
.gh-face {
  display: none;
}
.gh[data-mood='idle'] [data-face='idle'],
.gh[data-mood='hello'] [data-face='idle'],
.gh[data-mood='scanning'] [data-face='scanning'],
.gh[data-mood='found'] [data-face='found'],
.gh[data-mood='sleepy'] [data-face='sleepy'],
.gh[data-mood='oops'] [data-face='oops'] {
  display: inline;
}
.gh[data-mood='sleepy'] .gh-z {
  opacity: 0.9;
}

/* Night shift: the coral ghost on dark surfaces */
.night {
  --gh-paper: var(--coral);
  --gh-outline: transparent;
  --gh-face: #11151b;
  --gh-lines: #b23f2b;
  --gh-cheeks: #b23f2b;
  --gh-z: #9ba5b2;
  --gh-shadow: #000;
  --gh-shadow-o: 0.35;
}

/* ---------- Sections ---------- */

section {
  position: relative;
}

/* Ways */
.ways {
  padding: clamp(72px, 10vw, 128px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 56px;
}
.way {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.way-verb {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variation-settings: 'wdth' 80;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}
.way-verb span {
  color: var(--coral);
}
.way p {
  margin: 0;
  color: var(--ink2);
  max-width: 34ch;
}
.way .way-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink3);
}
@media (max-width: 820px) {
  .ways-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
  }
}

/* Spaces */
.spaces {
  padding: clamp(72px, 10vw, 128px) 0;
}
.spaces-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.spaces-copy p {
  margin: 0 0 16px;
  max-width: 36rem;
  color: var(--ink2);
}
.spaces-copy strong {
  color: var(--ink);
  font-weight: 600;
}
.folders {
  display: grid;
  gap: 18px;
}
.folder {
  --tab: var(--coral);
  position: relative;
}
.folder-project {
  --tab: var(--cat-travel);
  margin-left: clamp(0px, 5vw, 56px);
}
.folder-tab {
  display: inline-block;
  padding: 8px 16px 10px;
  border-radius: 14px 14px 0 0;
  background: color-mix(in srgb, var(--tab) 22%, var(--card));
  color: color-mix(in srgb, var(--tab) 60%, var(--ink));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.folder-body {
  margin-top: -4px;
  padding: 20px 22px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  background: var(--card);
  box-shadow:
    0 18px 40px rgba(23, 32, 43, 0.08),
    0 0 0 1px var(--line),
    inset 0 4px 0 color-mix(in srgb, var(--tab) 22%, var(--card));
}
.folder-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.folder-row .mono {
  font-size: 22px;
  font-weight: 400;
}
.folder-sub {
  margin-top: 2px;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink2);
}
.folder-sub .mono {
  font-size: 14px;
}
.bar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin: 16px 0 12px;
}
.bar i {
  width: var(--w);
  border-radius: 5px;
  background: var(--c);
}
.folder-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--ink2);
}
.folder-legend b {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--c);
}
.faces {
  display: flex;
}
.faces i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -8px;
  border-radius: 50%;
  border: 2px solid var(--card);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--cat-travel) 30%, var(--card));
  color: color-mix(in srgb, var(--cat-travel) 55%, var(--ink));
}
.faces i:nth-child(2) {
  background: color-mix(in srgb, var(--coral) 26%, var(--card));
  color: var(--coral-ink);
}
.faces i:nth-child(3) {
  background: color-mix(in srgb, var(--cat-transport) 30%, var(--card));
  color: color-mix(in srgb, var(--cat-transport) 55%, var(--ink));
}
.fx {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 0;
  margin-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink2);
}
.fx .mono {
  font-size: 13px;
  color: var(--ink);
}
@media (max-width: 900px) {
  .spaces-grid {
    grid-template-columns: 1fr;
  }
}

/* Privacy — always the dark "night shift" band */
.privacy {
  padding: clamp(80px, 11vw, 140px) 0;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}
.privacy::before {
  content: '';
  position: absolute;
  left: -10%;
  top: 10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(228, 96, 74, 0.2), transparent);
  pointer-events: none;
}
.privacy-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.privacy-ghost {
  width: min(100%, 340px);
  aspect-ratio: 720 / 840;
  justify-self: center;
}
.privacy .h2 {
  max-width: 16ch;
}
.privacy-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 36px;
  margin: 44px 0 0;
}
.privacy-list div {
  padding-top: 16px;
  border-top: 1px solid rgba(230, 234, 239, 0.14);
}
.privacy-list dt {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.privacy-list dd {
  margin: 0;
  font-size: 15.5px;
  color: var(--night-ink2);
}
@media (max-width: 900px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .privacy-ghost {
    width: 180px;
    justify-self: start;
  }
}
@media (max-width: 560px) {
  .privacy-list {
    grid-template-columns: 1fr;
  }
}

/* Pricing — two receipts */
.pricing {
  padding: clamp(80px, 11vw, 140px) 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 920px;
  margin-top: 48px;
}
.plan {
  --tooth-w: 36px;
  --tooth-h: 12px;
  position: relative;
  padding: 30px 28px calc(30px + var(--tooth-h));
  background: var(--paper);
  color: var(--paper-ink);
  filter: drop-shadow(0 18px 30px rgba(23, 32, 43, 0.1));
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -57.26deg at 50% 100%, #000 114.52deg, #0000 0) bottom / var(--tooth-w)
      var(--tooth-h) round no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h) + 1px) no-repeat,
    conic-gradient(from -57.26deg at 50% 100%, #000 114.52deg, #0000 0) bottom / var(--tooth-w)
      var(--tooth-h) round no-repeat;
}
.plan-head {
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 2px dashed rgba(42, 47, 54, 0.22);
}
.plan h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-variation-settings: 'wdth' 82;
  font-size: 34px;
  letter-spacing: -0.05em;
}
.plan-pro h3 {
  color: #b23f2b;
}
.plan-price {
  margin: 6px 0 0;
  font-size: 14px;
  color: #5b6470;
}
.items {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.items li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}
.items i {
  flex: 1;
  border-bottom: 2px dotted rgba(42, 47, 54, 0.25);
  transform: translateY(-4px);
}
.items b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.plan-pro .items b {
  color: #9c3524;
}
.plan-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: #5b6470;
}
@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  padding: clamp(72px, 10vw, 120px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 80px);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child {
  border-top: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 24px;
  color: var(--coral);
  transition: transform 0.25s var(--ease-out);
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details p {
  margin: -4px 0 22px;
  max-width: 60ch;
  color: var(--ink2);
}
.faq-list a {
  color: var(--coral-ink);
}
@media (max-width: 820px) {
  .faq-wrap {
    grid-template-columns: 1fr;
  }
}

/* Finale */
.finale {
  padding: clamp(80px, 12vw, 150px) 0 clamp(90px, 12vw, 160px);
  text-align: center;
  overflow: hidden;
}
.finale::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(228, 96, 74, 0.2), transparent);
  pointer-events: none;
}
.finale-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.finale-ghost {
  width: 150px;
  height: 175px;
  margin-bottom: 26px;
}
.finale-title {
  max-width: 17ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}
.finale .lede {
  margin-top: 20px;
}
.finale .stores {
  justify-content: center;
}

/* Footer — the torn edge */
.foot {
  --tooth-w: 36px;
  --tooth-h: 12px;
  position: relative;
  padding: 44px 0 40px;
  background: var(--foot);
  color: #e6eaef;
  font-size: 14px;
}
.foot::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--tooth-h) * -1 + 1px);
  height: var(--tooth-h);
  background: var(--foot);
  -webkit-mask: conic-gradient(from 122.74deg at 50% 0, #000 114.52deg, #0000 0) 0 0 /
    var(--tooth-w) 100% round no-repeat;
  mask: conic-gradient(from 122.74deg at 50% 0, #000 114.52deg, #0000 0) 0 0 / var(--tooth-w) 100%
    round no-repeat;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.foot-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot a {
  color: rgba(230, 234, 239, 0.72);
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
}
.foot-copy {
  margin: 0 0 0 auto;
  color: rgba(230, 234, 239, 0.5);
}

/* Scroll reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .hero-copy > *,
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
