/* Dopamine Jail: the landing page. Same world as the app: near-black, signal yellow water,
   Big Shoulders for the voice, Geist Mono for the small print, the system face for reading. */

@font-face { font-family: 'Big Shoulders'; src: url('/assets/fonts/BigShouldersDisplay-Black.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Big Shoulders'; src: url('/assets/fonts/BigShouldersDisplay-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/GeistMono-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/assets/fonts/GeistMono-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --ink: #0B0B0C;
  --surface: #141416;
  --fill1: #232326;
  --fill2: #303034;
  --white: #F7F7F5;
  --label8: rgba(247, 247, 245, 0.82);
  --label2: rgba(247, 247, 245, 0.58);
  --label3: rgba(247, 247, 245, 0.32);
  --hairline: rgba(255, 255, 255, 0.09);
  --yellow: #FFD60A;
  --yellow-top: #FFE45C;
  --yellow-bottom: #FFC800;
  --yellow-deep: #F2A900;
  --on-yellow: rgba(11, 11, 12, 0.66);

  --display: 'Big Shoulders', 'Arial Narrow', Impact, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--text); font-size: 17px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
/* Film grain, fixed and inert so scrolling never repaints it. */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 0.92; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-style: normal; color: var(--yellow); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--yellow); color: var(--ink); padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter); background: rgba(11, 11, 12, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--label2); font-size: 15px; transition: color 160ms var(--ease); }
.nav nav a:hover { color: var(--white); }
.nav-cta {
  text-decoration: none; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; transition: transform 160ms var(--ease);
}
.nav-cta:active { transform: scale(0.97); }
@media (max-width: 760px) { .nav nav { display: none; } .nav-cta { margin-left: auto; } }

/* ───────── hero ───────── */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr; gap: 48px;
  padding: clamp(48px, 9vw, 120px) var(--gutter) 0; max-width: none;
  min-height: min(100svh, 1000px);
}
.hero-copy { position: relative; z-index: 3; max-width: 780px; }
.hero h1 { font-size: clamp(72px, 10.5vw, 172px); line-height: 0.86; }
.hero h1 span { display: block; white-space: nowrap; }
.lead { margin-top: 28px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--label8); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.store-pill {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--white); color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.text-link { color: var(--label8); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--label3); }
.text-link:hover { text-decoration-color: var(--yellow); }
.fine { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label2); }

.hero-phone { position: relative; z-index: 2; justify-self: center; width: min(340px, 78vw); margin-bottom: -40px; }
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; padding-top: 72px; }
  /* Room for the tide (300px) under the copy, so text never sits on the water. */
  .hero-copy { padding-bottom: 330px; }
  .hero-phone { width: min(380px, 30vw); justify-self: end; margin: 0 4vw -120px 0; transform: rotate(3deg); }
}

/* The tide: yellow water across the foot of the hero, apps bobbing behind bars. */
.tide { position: absolute; inset: auto 0 0 0; height: 300px; z-index: 1; pointer-events: none; }
.tide-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.floaters { position: absolute; inset: 0; }
.floaters img { position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 15px; filter: grayscale(1) contrast(0.95); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3); will-change: transform; }
.bars { position: absolute; left: var(--gutter); right: var(--gutter); top: 18px; height: 150px; display: flex; justify-content: space-between; }
.bars i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6C6C73, #2B2B2F 45%, #8A8A92); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
@media (max-width: 979px) { .tide { height: 220px; } .bars { height: 120px; } .floaters img { width: 52px; height: 52px; border-radius: 12px; } }

/* ───────── phones ───────── */
.phone {
  margin: 0; aspect-ratio: 660 / 1434; border-radius: 13% / 6%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 9px #050506, 0 0 0 10px rgba(255, 255, 255, 0.08), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }

/* ───────── story ───────── */
.story { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--gutter) 40px; display: grid; gap: clamp(96px, 12vw, 180px); }
.beat { display: grid; gap: 40px; align-items: center; }
.beat h3 { font-size: clamp(56px, 8.4vw, 124px); }
.beat p { margin-top: 22px; max-width: 38ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--label2); }
.beat .phone { width: min(300px, 72vw); justify-self: center; }
@media (min-width: 900px) {
  .beat { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 72px; }
  .beat .phone { width: min(320px, 26vw); justify-self: end; }
  .beat-flip { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
  .beat-flip .beat-copy { order: 2; }
  .beat-flip .phone { justify-self: start; }
}

/* Reveal on scroll: rise and fade, once. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 900ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ───────── the cost ───────── */
.cost {
  max-width: var(--max); margin: clamp(80px, 10vw, 160px) auto 0; padding: clamp(40px, 5vw, 72px) var(--gutter);
  display: grid; gap: 48px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.cost h2 { font-size: clamp(48px, 6.4vw, 96px); }
.hours { display: flex; justify-content: space-between; align-items: baseline; margin-top: 36px; color: var(--label2); font-size: 15px; }
.hours output { font-family: var(--display); font-weight: 900; font-size: 44px; color: var(--yellow); line-height: 1; }
input[type='range'] { width: 100%; margin-top: 14px; accent-color: var(--yellow); height: 28px; cursor: pointer; }
.cost-read .big { font-family: var(--display); font-weight: 900; font-size: clamp(110px, 16vw, 220px); line-height: 0.82; color: var(--yellow); }
.cost-read .unit { font-size: clamp(26px, 3.4vw, 52px); color: var(--white); line-height: 1; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: clamp(6px, 1vw, 10px); max-width: 520px; margin-top: 32px; }
.dots span { aspect-ratio: 1; border-radius: 50%; background: var(--fill1); transition: background-color 260ms var(--ease); }
.dots span.on { background: var(--yellow); }
.cost-line { margin-top: 18px; font-size: 18px; color: var(--label8); }
.basis { margin-top: 10px; font-size: 14px; color: var(--label2); }
@media (min-width: 900px) { .cost { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }

/* ───────── not willpower ───────── */
.why { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 180px) var(--gutter) 0; display: grid; gap: 48px; }
.why h2 { font-size: clamp(56px, 8vw, 120px); }
.why-copy p { margin-top: 24px; max-width: 42ch; font-size: clamp(17px, 1.4vw, 19px); color: var(--label2); }
.versus { margin: 0; }
.versus div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.versus dt { font-weight: 700; font-size: 18px; }
.versus dd { margin: 0; color: var(--label2); }
.versus .us { border-bottom: 0; }
.versus .us dt, .versus .us dd { color: var(--yellow); }
@media (min-width: 900px) {
  .why { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: end; }
  .versus div { grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: baseline; }
}

/* ───────── emergencies + privacy ───────── */
.terms-row { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; display: grid; gap: 56px; }
.terms-row h2 { font-size: clamp(40px, 4.6vw, 64px); }
.terms-row p { margin-top: 18px; max-width: 44ch; color: var(--label2); }
@media (min-width: 900px) { .terms-row { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* ───────── pricing ───────── */
.pricing { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.pricing h2 { font-size: clamp(76px, 13vw, 196px); line-height: 0.86; color: var(--yellow); }
.price-line { margin-top: 26px; max-width: 34ch; font-size: clamp(19px, 1.8vw, 24px); color: var(--label8); }
.price-line strong { color: var(--white); }

/* ───────── faq ───────── */
.faq { max-width: 860px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(96px, 12vw, 160px); }
.faq h2 { font-size: clamp(48px, 6vw, 84px); margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--label2); border-bottom: 2px solid var(--label2); transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 22px; max-width: 60ch; color: var(--label2); }

/* ───────── get: the water has risen ───────── */
.get {
  position: relative; background: linear-gradient(180deg, var(--yellow-top), var(--yellow) 12%, var(--yellow-bottom) 60%, var(--yellow-deep));
  color: var(--ink); text-align: center; padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(96px, 10vw, 140px); margin-top: 60px;
}
.get-crest { position: absolute; left: 0; right: 0; top: -79px; width: 100%; height: 80px; fill: var(--yellow-top); }
.get h2 { font-size: clamp(76px, 13vw, 196px); line-height: 0.86; }
.get p { margin: 22px auto 34px; font-size: clamp(18px, 1.6vw, 22px); color: var(--on-yellow); }
.store-pill-ink { background: var(--ink); color: var(--yellow); }

/* ───────── footer ───────── */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); color: var(--label2); font-size: 14px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--label2); text-decoration: none; }
.foot nav a:hover { color: var(--white); }
.foot p { margin-left: auto; }
@media (max-width: 600px) { .foot p { margin-left: 0; width: 100%; } }
