/* Kept website. Light theme in the app's own tokens. */

:root {
  --page: #f5efe4;
  --panel: #efe6d6;
  --ink: #1c1915;
  --body: #4a4239;
  --muted: #6b6152;
  --hair: #dcd2be;
  --amber: #e9b949;
  --badge: #e6dbc6;
  --place: #e27b36;
  --place-tint: #f6d9c2;
  --night: #17140f;
  --night-panel: #1f1b14;
  --night-ink: #f5efe4;
  --night-body: #c9bea8;
  --night-muted: #a89878;
  --night-hair: #3a342a;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, sans-serif;
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Grain: a fixed film over the page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.serif { font-family: var(--serif); font-weight: 400; }
.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(88px, 12vh, 168px) var(--gutter); position: relative; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head .kicker { margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }
h1 { font-size: clamp(52px, 8.2vw, 124px); }
h2 { font-size: clamp(40px, 5.2vw, 72px); }
h3 { font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -0.015em; line-height: 1.12; }
.lede { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--body); max-width: 640px; margin-top: 22px; }
.amber-rule { display: inline-block; position: relative; }
.amber-rule::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.02em;
  height: 0.16em;
  background: var(--amber);
  transform-origin: left center;
  transform: scaleX(var(--rule, 1));
}

/* Split lines: every line sits in its own mask, with room for descenders and the amber rule. */
.split-line-mask { padding-bottom: 0.1em; margin-bottom: -0.1em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--ink); color: var(--page); box-shadow: 0 10px 30px -12px rgba(28, 25, 21, 0.5); }
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(28, 25, 21, 0.55); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--page); }
.btn-amber { background: var(--amber); color: var(--ink); border: 1.5px solid var(--ink); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* The mark. The fill rises inside an empty window; the crosshair sits above it. */
.mark {
  position: relative;
  display: block;
  background: var(--page);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.mark .fill { position: absolute; inset: 0; background: var(--amber); transform-origin: 50% 100%; }
.mark::before, .mark::after { content: ""; position: absolute; background: var(--ink); z-index: 2; }
.mark::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.mark::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.mark.small { width: 18px; height: 24px; border-width: 1.5px; }
.mark.small::before { width: 1.5px; margin-left: -0.75px; }
.mark.small::after { height: 1.5px; margin-top: -0.75px; }
.mark.small .fill { transform: none; }
.glow { box-shadow: 0 0 60px 18px rgba(233, 185, 73, 0.38); }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  background: color-mix(in srgb, var(--page) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent);
  transform: translateY(0);
  transition: transform 0.5s var(--ease);
}
.nav.hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--body); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Hero, shared */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.hero .eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); border: 1.5px solid var(--ink); }
.hero-phone-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-phone-wrap .halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(233, 185, 73, 0.35), rgba(233, 185, 73, 0) 62%); filter: blur(10px); }
.tilt { transform-style: preserve-3d; will-change: transform; }

.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; width: 100%; }
.hero .ghost-mark { position: absolute; right: -6vw; top: 12vh; width: 46vw; max-width: 640px; aspect-ratio: 3 / 4; border: 2px solid var(--hair); pointer-events: none; opacity: 0.8; }
.hero .ghost-mark::before, .hero .ghost-mark::after { content: ""; position: absolute; background: var(--hair); }
.hero .ghost-mark::before { left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; }
.hero .ghost-mark::after { top: 50%; left: 0; right: 0; height: 2px; margin-top: -1px; }
.hero .device { --s: 0.78; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .ghost-mark { display: none; }
  .hero .device { --s: 0.62; }
}

/* Moments: three cards. */
.moments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .moments-grid { grid-template-columns: 1fr; max-width: 520px; } }

.mcard {
  --ring: var(--page);
  background: var(--page);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  padding: 22px 24px 24px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.mcard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(28, 25, 21, 0.45); }
.mcard.active { --ring: var(--panel); background: var(--panel); }
.mcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.mcard .name-row { display: flex; align-items: center; gap: 10px; }
.mcard .name { font-family: var(--serif); font-size: 30px; line-height: 1.05; letter-spacing: -0.015em; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--hair); font-size: 14px; font-weight: 500; color: var(--body); white-space: nowrap; }
.pill.running { background: var(--amber); border-color: var(--ink); color: var(--ink); }
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(28, 25, 21, 0.18); }
.row { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 16px; font-weight: 500; white-space: nowrap; }
.row:first-of-type { margin-top: 0; }
.tile { width: 30px; height: 30px; border-radius: 9px; overflow: hidden; flex: none; }
.tile svg { display: block; width: 100%; height: 100%; }
.tiles { display: flex; align-items: center; margin-right: 2px; }
.tiles .tile { margin-left: -9px; box-shadow: 0 0 0 2.5px var(--ring, var(--page)); }
.tiles .tile:first-child { margin-left: 0; }
.disc { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.disc img { width: 18px; height: 18px; display: block; }
.disc.badge { background: var(--badge); }
.disc.amber { background: var(--amber); border: 1.5px solid var(--ink); }
.disc.ink { background: var(--ink); }
.disc.page { background: var(--page); border: 1.5px solid var(--ink); }
.lockdisc { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--amber); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lockdisc img { width: 17px; height: 17px; }

/* How it works: sticky phone, scrolling steps. */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how-steps { padding-top: 10vh; }
.how .step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.how .step .num { font-family: var(--serif); font-size: 15px; color: var(--muted); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.how .step .num::after { content: ""; width: 40px; height: 1.5px; background: var(--hair); }
.how .step p { color: var(--body); font-size: 18px; margin-top: 18px; }
.how .step ul { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.how .step li { font-size: 14px; font-weight: 500; border: 1.5px solid var(--hair); border-radius: 999px; padding: 6px 12px; }
/* Centred while stuck. The offset is computed from the device height, so the phone never sits
   above its own place in the flow before it sticks. */
.how-phone { --s: 0.82; position: sticky; top: calc(50vh - (874px * var(--s) + 12px) / 2); display: flex; justify-content: center; }
.how-phone .device { --s: inherit; }
.how-phone .screen { position: absolute; opacity: 0; pointer-events: none; }
.how-phone .screen.active { opacity: 1; }
.how .step:last-child { min-height: 50vh; }
@media (max-height: 820px) { .how-phone { --s: 0.68; } }
@media (max-width: 980px) {
  /* On a phone the block is pinned as a whole: the device on top, one step's text under it,
     and scrolling advances the step. The script adds .pin-how and sets --s from the height. */
  .how { grid-template-columns: 1fr; gap: 0; }
  .how-phone { --s: 0.5; order: -1; position: static; top: auto; width: 100%; padding: 8px 0 0; display: flex; justify-content: center; }
  .how-phone .device { box-shadow: 0 24px 50px -30px rgba(28, 25, 21, 0.45); }
  .how-steps { padding-top: 22px; }
  .how .step { min-height: 0; max-width: none; justify-content: flex-start; padding: 0 0 28px; }
  .how .step:last-child { min-height: 0; }
  .how .step .num { margin-bottom: 10px; font-size: 14px; }
  .how .step h3 { font-size: 24px; }
  .how .step p { font-size: 15px; margin-top: 10px; }
  .how .step ul { display: none; }
  .pin-how .how-steps { position: relative; min-height: 200px; }
  .pin-how .how .step { position: absolute; left: 0; right: 0; top: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
  .pin-how .how .step.active { opacity: 1; transform: none; pointer-events: auto; }
  .how-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 8px; }
  .how-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color 0.3s; }
  .how-dots i.on { background: var(--amber); }
}

/* Costs */
.costs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 980px) { .costs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .costs { grid-template-columns: 1fr; } }
.cost {
  position: relative;
  border: 1.5px solid var(--hair);
  border-radius: 18px;
  padding: 22px 22px 24px;
  background: var(--page);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s var(--ease), background-color 0.45s;
  overflow: hidden;
}
.cost:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: 0 30px 50px -30px rgba(28, 25, 21, 0.4); }
.cost .ctile { position: relative; width: 48px; height: 48px; border-radius: 13px; border: 1.5px solid var(--hair); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: border-color 0.45s; }
.cost:hover .ctile { border-color: var(--ink); }
.cost .ctile img { position: absolute; width: 28px; height: 28px; transition: opacity 0.45s; }
.cost .ctile img.full { opacity: 0; }
.cost:hover .ctile img.full { opacity: 1; }
.cost:hover .ctile img.outline { opacity: 0; }
.cost h4 { font-family: var(--sans); font-size: 18px; font-weight: 500; }
.cost p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.cost .tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cost.chosen { background: var(--panel); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), inset 0 0 0 4px var(--panel), inset 0 0 0 5px var(--ink); }
.cost.chosen .ctile { border-color: var(--ink); }
.cost.chosen .ctile img.full { opacity: 1; }
.cost.chosen .ctile img.outline { opacity: 0; }
.pauses-note { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 28px 32px; border: 1.5px solid var(--ink); border-radius: 22px; background: var(--page); }
.pauses-note .big { font-family: var(--serif); font-size: 96px; line-height: 0.9; letter-spacing: -0.03em; }
.pauses-note p { color: var(--body); font-size: 18px; max-width: 560px; }
@media (max-width: 600px) { .pauses-note { grid-template-columns: 1fr; } }

/* Places */
.places { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .places { grid-template-columns: 1fr; } }
.map { position: relative; border: 1.5px solid var(--ink); border-radius: 26px; background: var(--panel); aspect-ratio: 4 / 3; overflow: hidden; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .radius { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(233, 185, 73, 0.3); border: 1.5px solid var(--ink); transform: translate(-50%, -50%); }
.map .ring { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--ink); transform: translate(-50%, -50%); opacity: 0; }
.map .here { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.map .address { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 12px; background: var(--page); font-size: 14px; color: var(--muted); }
.prow { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1.5px solid var(--ink); border-radius: 18px; font-size: 18px; font-weight: 500; margin-top: 12px; background: var(--page); transition: transform 0.45s var(--ease), background-color 0.45s; }
.prow:hover { transform: translateX(6px); background: var(--place-tint); }
.prow .disc { width: 36px; height: 36px; } .prow .disc img { width: 20px; height: 20px; }
.places p.note { color: var(--body); margin-top: 22px; font-size: 17px; }

/* Strict: the night band */
.night { background: var(--night); color: var(--night-ink); }
.night .kicker { color: var(--night-muted); }
.night .lede { color: var(--night-body); }
.strict { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 980px) { .strict { grid-template-columns: 1fr; } }
.sealed { display: flex; gap: 18px; align-items: flex-start; padding: 28px 30px; border-radius: 22px; background: var(--page); color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.sealed .lock { width: 44px; height: 44px; border-radius: 50%; background: var(--amber); border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; }
.sealed .lock img { width: 24px; height: 24px; }
.sealed .k { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sealed .l { font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.3; margin-top: 6px; }
.strict-lines { margin-top: 34px; font-family: var(--serif); font-size: clamp(28px, 3vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.strict-lines span { display: block; }
.strict-facts { list-style: none; margin-top: 30px; display: grid; gap: 10px; }
.strict-facts li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--night-body); }
.strict-facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }
.night .device { --page: var(--night); --panel: var(--night-panel); --ink: var(--night-ink); --body: var(--night-body); --muted: var(--night-muted); --hair: var(--night-hair); --badge: #2a2519; }

/* Reports */
.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .reports { grid-template-columns: 1fr; } }
.rcard { border: 1.5px solid var(--ink); border-radius: 24px; padding: 28px 30px 30px; background: var(--page); }
.rcard.impact { border-color: var(--hair); background: var(--panel); --ring: var(--panel); }
.rcard .h { font-family: var(--serif); font-size: clamp(30px, 3vw, 44px); letter-spacing: -0.02em; line-height: 1.1; margin-top: 12px; }
.marks { display: flex; gap: 10px; margin-top: 26px; }
.col { flex: 1; display: flex; flex-direction: column-reverse; gap: 6px; }
.m { height: 22px; border-radius: 3px; background: var(--amber); border: 1.5px solid var(--ink); transform-origin: 50% 100%; }
.m.pale { background: var(--panel); }
.m.empty { background: transparent; border: 1.5px dashed var(--muted); }
.dl { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; flex: 1; }
.irow { margin-top: 20px; }
.ihead { display: flex; align-items: center; gap: 12px; }
.iname { font-size: 18px; flex: 1; }
.ibefore { font-family: var(--serif); font-size: 17px; color: var(--muted); }
.iafter { font-family: var(--serif); font-size: 24px; margin-left: 6px; }
.ibar { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.track { flex: 1; height: 14px; background: var(--hair); position: relative; }
.fillbar { position: absolute; left: 0; top: 0; height: 100%; background: var(--amber); border: 1.5px solid var(--ink); transform-origin: left center; }
.back { width: 84px; text-align: right; font-size: 14px; }
.note { font-size: 14px; color: var(--muted); margin-top: 20px; line-height: 1.45; }

/* Privacy strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } }
.fact { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.fact h3 { font-size: clamp(30px, 3vw, 40px); }
.fact p { color: var(--body); margin-top: 12px; }

/* Final call */
.cta { text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; }
.cta .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 30px 60px -30px rgba(28, 25, 21, 0.5); margin-bottom: 34px; }
.cta h2 { max-width: 16ch; }
.cta .lede { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { padding: 40px var(--gutter) 48px; border-top: 1.5px solid var(--ink); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer .links { display: flex; gap: 22px; }
.footer .links a:hover { color: var(--ink); }

/* Reveal defaults: JS animates; without JS everything is visible. */
.js [data-reveal] { opacity: 0; }
.js .m { transform: scaleY(0); }
.js .fillbar { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .m, .js .fillbar { opacity: 1; transform: none; }
}
