/* Unreeled landing — Frame Counter world. Tokens mirror lib/theme/unreeled_theme.dart. */
@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #E7DDD8;
  --paper-deep: #D9CCC5;
  --card: #F7F3F0;
  --hair: #CDC1BA;
  --ink: #0A0A0A;
  --ink-soft: #4A4442;
  --ink-mute: #66605C;
  --white: #FCFCFC;
  --orange: #E8521B;
  --orange-deep: #C9430F;
  --enamel: #0E0E10;
  --enamel-edge: #26262A;
  --engraved: #F4EEE9;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}

::selection { background: var(--orange); color: var(--white); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
html { scrollbar-color: var(--ink) var(--paper-deep); }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: var(--measure); }
h1, h2 { margin: 0; color: var(--ink); text-wrap: balance; }
strong { color: var(--ink); font-weight: 700; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 12px; z-index: 50; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s;
}
.pill-orange { background: var(--orange); color: var(--white); }
.store { font-size: 19px; min-height: 56px; padding: 0 24px; } /* large text: 3:1 on orange */
.pill-orange:hover { background: var(--orange-deep); transform: translateY(-1px); }
.pill-orange:active { transform: translateY(0); }
.pill-engraved { background: var(--engraved); color: var(--ink); min-height: 48px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--hair) 60%, transparent);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.3px; }
.top-nav { display: flex; gap: 26px; justify-content: center; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.top-nav a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.top-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.top-cta { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; background: var(--ink); }
.top-cta:hover { background: var(--ink-soft); box-shadow: none; }

/* Stage: copy column + sticky phone */
.stage {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  padding: 0 var(--gutter);
  max-width: 1280px; margin: 0 auto;
}
.copy { padding-bottom: 20vh; }

.hero { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 64px; }
h1 {
  font-size: clamp(44px, 6.6vw, 88px); line-height: .98; font-weight: 800; letter-spacing: -.04em;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; margin: 28px 0 32px; color: var(--ink); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin: 18px 0 0; font-size: 15px; color: var(--ink-mute); }

.why { padding: 18vh 0 10vh; border-top: 1px solid var(--hair); }
.why h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; margin-bottom: 22px; max-width: 16ch; }
.why p { font-size: clamp(17px, 1.3vw, 19px); }
.num { font-weight: 800; color: var(--ink); background: var(--enamel); color: var(--engraved); padding: 2px 10px; border-radius: 8px; white-space: nowrap; }

.rows { list-style: none; margin: 8px 0 28px; padding: 0; max-width: 40rem; }
.rows li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.rows li:first-child { border-top: 1px solid var(--hair); }
.rows strong { font-size: 19px; letter-spacing: -.2px; }
.rows span { color: var(--ink-soft); }
.honest { font-size: 16px; color: var(--ink-soft); background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 16px 18px; max-width: 40rem; }
.now { border-top: 1px solid var(--hair); min-height: calc(100vh - 96px); }

/* Phone */
.demo { position: relative; }
.phone {
  position: sticky; top: 96px; /* clears the 72px header; the phone always fits the viewport */
  aspect-ratio: 9 / 19.2; width: min(100%, calc((100vh - 128px) * 9 / 19.2));
  margin: 24px auto 0;
  background: var(--enamel); border: 1px solid var(--enamel-edge); border-radius: 44px;
  padding: 12px; box-shadow: 0 24px 60px rgba(10, 10, 10, .28), 0 2px 0 rgba(255,255,255,.04) inset;
}
.screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #111; isolation: isolate; }
.feed { height: 100%; transform: translateY(0); transition: transform .9s var(--ease); will-change: transform; }
.reel { height: 100%; position: relative; display: flex; align-items: flex-end; padding: 22px 64px 24px 18px; color: var(--white); overflow: hidden; }
.reel::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); pointer-events: none; }
/* Reel chrome: handle, caption, side actions, progress line. Synthetic, no real creators. */
.meta { position: relative; z-index: 1; display: grid; gap: 6px; }
.who { font-size: 12px; font-weight: 800; letter-spacing: 0; color: var(--white); display: inline-flex; align-items: center; gap: 7px; }
.who::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); border: 1.5px solid rgba(255,255,255,.9); box-sizing: border-box; }
.reel p { margin: 0; color: var(--white); font-weight: 600; font-size: 15px; position: relative; z-index: 1; letter-spacing: -.1px; line-height: 1.3; max-width: 100%; }
.rail { position: absolute; right: 14px; bottom: 28px; z-index: 1; display: grid; gap: 18px; justify-items: center; }
.rail span { width: 26px; height: 26px; background-color: var(--white); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; opacity: .95; }
.i-heart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20.5 4.2 12.9a4.6 4.6 0 0 1 6.5-6.5L12 7.7l1.3-1.3a4.6 4.6 0 1 1 6.5 6.5Z'/%3E%3C/svg%3E"); }
.i-chat { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3.5a8.5 8.5 0 0 0-7.3 12.9L3.5 20.5l4.3-1.1A8.5 8.5 0 1 0 12 3.5Z'/%3E%3C/svg%3E"); }
.i-send { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 3 3 10.5l7.5 3 3 7.5Z'/%3E%3Cpath d='M21 3 10.5 13.5'/%3E%3C/svg%3E"); }
.reel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: linear-gradient(to right, var(--white) 0 var(--pr, 40%), rgba(255,255,255,.3) var(--pr, 40%) 100%); }
/* A scene per reel: one soft form and a horizon, so the field reads as footage rather than a swatch. */
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene::before { content: ""; position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; left: var(--bx, 20%); top: var(--by, 30%); background: rgba(255,255,255,.14); filter: blur(2px); }
.scene::after { content: ""; position: absolute; left: 0; right: 0; top: var(--hy, 62%); height: 38%; background: rgba(0,0,0,.18); }
/* Synthetic reel "footage": flat colour fields and a few shapes in the world's materials. */
.r1  { background: radial-gradient(circle at 30% 30%, #5a7d6e, #1f3a30 70%);  --bx:18%;--by:22%;--hy:64%; }
.r2  { background: radial-gradient(circle at 70% 40%, #d9a066, #7a4a22 75%);  --bx:48%;--by:30%;--hy:58%; }
.r3  { background: radial-gradient(circle at 50% 80%, #3a3f5c, #121425 75%);  --bx:10%;--by:48%;--hy:70%; }
.r4  { background: radial-gradient(circle at 40% 20%, #c9c4ba, #5d5853 80%);  --bx:30%;--by:10%;--hy:55%; }
.r5  { background: radial-gradient(circle at 60% 60%, #b85c38, #4a2213 80%);  --bx:40%;--by:40%;--hy:66%; }
.r6  { background: linear-gradient(to top, #2a1b2e, #e07a4a 60%, #f4d6a0);  --bx:25%;--by:18%;--hy:60%; }
.r7  { background: radial-gradient(circle at 50% 50%, #456d8a, #16283a 75%);  --bx:20%;--by:28%;--hy:62%; }
.r8  { background: radial-gradient(circle at 20% 70%, #8a8f6b, #3b3f2a 75%);  --bx:0%;--by:44%;--hy:72%; }
.r9  { background: radial-gradient(circle at 50% 30%, #e0d6cc, #8f8378 80%);  --bx:28%;--by:14%;--hy:50%; }
.r10 { background: radial-gradient(circle at 70% 20%, #4f4a7a, #1b1830 75%);  --bx:46%;--by:8%;--hy:60%; }
.r11 { background: radial-gradient(circle at 30% 60%, #cf8e5a, #6b3b1c 80%);  --bx:12%;--by:36%;--hy:68%; }
.r12 { background: radial-gradient(circle at 50% 50%, #f1e9c9, #c9a94a 70%);  --bx:22%;--by:24%;--hy:64%; }
.r13 { background: radial-gradient(circle at 60% 70%, #3f6f5f, #142b24 75%);  --bx:38%;--by:42%;--hy:58%; }
.r14 { background: radial-gradient(circle at 40% 40%, #7d5d8a, #2d1f36 75%);  --bx:16%;--by:20%;--hy:66%; }
.r15 { background: var(--enamel); }
.r15 { padding-right: 18px; }
.r15 .scene, .r15 .rail, .r15::before, .r15::after { display: none; }
.r15 .who { display: none; }
.r15 p { color: var(--engraved); font-size: 20px; font-weight: 800; }

.window {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--enamel); color: var(--engraved);
  border: 1px solid #3A3A40; border-radius: 12px; padding: 10px 12px 9px 14px;
  font-weight: 800; font-size: 20px; letter-spacing: -.5px; line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.window .of, .mini .of { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--engraved) 55%, transparent); letter-spacing: 0; }
.marker { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); align-self: center; margin-left: 4px; transition: background-color .2s, border-color .2s; }
.window.armed .marker, .mini.armed .marker { background: transparent; border: 2px solid var(--orange); }
.window.spent .count { color: var(--orange); }

.stop[hidden] { display: none; }
.stop {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background: var(--enamel); color: var(--engraved); padding: 28px 24px;
  animation: rise .7s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stop { animation: none; } .feed { transition: none; } }
.stop p { max-width: none; }
.stop-title { color: var(--engraved); font-weight: 800; font-size: 22px; letter-spacing: -.5px; line-height: 1.1; margin: 0; }
.stop-num { color: color-mix(in srgb, var(--engraved) 70%, transparent); margin: 6px 0 0; font-size: 15px; }
.stop-num span { color: var(--orange); font-weight: 800; font-size: 44px; letter-spacing: -2px; line-height: 1; margin-right: 6px; }
.stop-sub { color: color-mix(in srgb, var(--engraved) 70%, transparent); margin: 2px 0 16px; font-size: 15px; }
.stop .pill { align-self: flex-start; }

/* Mobile mini counter (replaces the sticky phone below the hero) */
.mini { display: none; }

/* Get section */
.get { border-top: 1px solid var(--hair); padding: 14vh var(--gutter); background: var(--card); }
.get-inner { max-width: 1280px; margin: 0 auto; }
.get h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -.035em; line-height: 1.02; font-weight: 800; margin-bottom: 14px; }
.get p { font-size: 18px; margin-bottom: 28px; }
.soon { font-size: 14px; color: var(--ink-mute); margin-top: 16px; }

/* Footer */
.foot { padding: 40px var(--gutter) 56px; max-width: 1280px; margin: 0 auto; display: grid; gap: 18px; color: var(--ink-mute); font-size: 14px; }
.foot nav { display: flex; gap: 22px; font-weight: 700; color: var(--ink-soft); }
.foot p { max-width: none; font-size: 13px; color: var(--ink-mute); }

/* Responsive */
@media (max-width: 920px) {
  .top { grid-template-columns: auto 1fr auto; }
  .top-nav { display: none; }
  .stage { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 0; padding: 36px 0 24px; }
  .demo { order: -1; padding-top: 16px; }
  .phone { position: relative; top: auto; margin: 0 auto; width: min(47vw, 180px); border-radius: 28px; padding: 7px; }
  .screen { border-radius: 24px; }
  .reel { padding: 14px 40px 16px 12px; }
  .reel p { font-size: 12px; }
  .who { font-size: 11px; } .who::before { width: 16px; height: 16px; }
  .rail { right: 10px; bottom: 20px; gap: 12px; } .rail span { width: 18px; height: 18px; }
  .r15 p { font-size: 15px; }
  .window { top: 10px; right: 10px; font-size: 15px; padding: 7px 9px 6px 10px; border-radius: 9px; }
  .window .of { font-size: 11px; }
  .stop { padding: 18px 16px; }
  .stop-title { font-size: 17px; }
  .stop-num span { font-size: 32px; }
  .stop-num, .stop-sub { font-size: 13px; }
  .stop .pill { font-size: 13px; min-height: 36px; padding: 0 14px; }
  .copy { padding-bottom: 8vh; }
  .now { min-height: 0; }
  .why { padding: 64px 0 24px; }
  .why h2 { max-width: none; }
  .mini {
    position: fixed; bottom: 18px; right: 12px; z-index: 15;
    display: inline-flex; align-items: baseline; gap: 6px;
    background: var(--enamel); color: var(--engraved); border: 1px solid #3A3A40; border-radius: 12px;
    padding: 9px 12px 8px 13px; font-weight: 800; font-size: 17px; letter-spacing: -.4px; line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none;
  }
  .mini.on { opacity: 1; transform: none; }
  .mini.spent span:first-child { color: var(--orange); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 42px; }
  .stores .pill { width: 100%; justify-content: center; }
  .top-cta { font-size: 14px; min-height: 38px; padding: 0 14px; }
}
