/* Screenshot Detox — landing styles.
   Refined editorial minimalism on the app's own identity: ivory surface, ink
   text, a single warm accent reserved strictly for the primary action, and the
   bundled Hanken Grotesk typeface. */

/* ---------- Fonts (self-hosted brand typeface) ---------- */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap;
  src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-display: swap;
  src: url("assets/fonts/HankenGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap;
  src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-display: swap;
  src: url("assets/fonts/HankenGrotesk-Bold.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 800; font-display: swap;
  src: url("assets/fonts/HankenGrotesk-ExtraBold.ttf") format("truetype"); }

/* ---------- Tokens ---------- */
:root {
  --ivory: #F3F0E9;
  --ivory-deep: #ECE7DC;
  --card: #FFFFFF;
  --ink: #141414;
  --muted: #6E6E69;
  --accent: #DF8347;          /* primary action ONLY — never decorative */
  --line: rgba(20, 20, 20, 0.08);
  --line-soft: rgba(20, 20, 20, 0.05);
  --shadow-card: 0 1px 2px rgba(20,20,20,.05), 0 24px 60px -28px rgba(20,20,20,.35);
  --shadow-soft: 0 1px 2px rgba(20,20,20,.04), 0 16px 40px -24px rgba(20,20,20,.22);
  --r-sm: 12px; --r: 18px; --r-lg: 28px; --r-pill: 999px;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* height:auto is REQUIRED — without it, the width/height HTML attributes pin a
   fixed height and any CSS width override distorts the image. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: rgba(223,131,71,.22); }

/* Subtle paper grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .55; mix-blend-mode: multiply;
  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%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: clamp(64px, 10vw, 132px); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 22px; height: 1.5px; background: var(--accent); display:inline-block; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.025em; }
h3 { font-size: clamp(19px, 2vw, 22px); letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--muted); line-height: 1.5; max-width: 30ch; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
  padding: 16px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(223,131,71,.6); }
.btn--accent:hover { box-shadow: 0 16px 30px -10px rgba(223,131,71,.7); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(20,20,20,.22); background: rgba(20,20,20,.02); }
.btn--sm { padding: 11px 18px; font-size: 14px; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.brand svg { display:block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in srgb, var(--ivory) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-color: var(--line); }
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display:flex; align-items:center; gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(48px, 8vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 620px; }
.hero h1 .accentword { color: var(--ink); position: relative; white-space: nowrap; }
.hero h1 .accentword::after {
  content:""; position:absolute; left: 0; right: 0; bottom: .06em; height: .14em;
  background: var(--accent); border-radius: 2px; transform: scaleX(1); transform-origin: left;
}
.js .hero h1 .accentword::after { transform: scaleX(0); animation: underline 1s var(--ease) .65s forwards; }
@keyframes underline { to { transform: scaleX(1); } }
.hero .lede { margin-top: 26px; max-width: 38ch; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--muted); display:flex; align-items:center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display:inline-block; }

/* Hero phone stage */
.stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.stage::before { /* warm glow */
  content:""; position:absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(223,131,71,.20), transparent 62%);
  filter: blur(10px);
}
.phone {
  position: relative; width: min(300px, 72%); border-radius: 38px; overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid var(--line-soft);
  transform: rotate(-3deg);
}
.deck { position:absolute; width: min(300px,72%); aspect-ratio: 1320/2868; border-radius: 38px; background: var(--card); border: 1px solid var(--line); }
.deck--1 { transform: rotate(4deg) translateY(14px) scale(.965); opacity:.55; box-shadow: var(--shadow-soft); }
.deck--2 { transform: rotate(8deg) translateY(26px) scale(.93); opacity:.30; }

/* ---------- Marquee of intents ---------- */
.strip { border-block: 1px solid var(--line); background: var(--ivory-deep); padding-block: 22px; overflow: hidden; }
.marquee { display: flex; gap: 40px; width: max-content; animation: slide 36s linear infinite; }
.marquee span { font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--ink); display:flex; align-items:center; gap: 40px; }
.marquee span::after { content:"•"; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 56px; }
.step { }
.step__n { font-size: 14px; font-weight: 800; color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }
.step__rule { height: 1px; background: var(--line); margin-top: 22px; transform-origin: left; }

/* ---------- Showpiece (image + copy) ---------- */
.show__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.show--rev .show__grid { direction: rtl; } .show--rev .show__grid > * { direction: ltr; }
.show__media { position: relative; display:grid; place-items:center; }
.shot { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--line-soft); background: var(--card); }
.shot--phone { width: min(280px, 70%); border-radius: 34px; }
.show__copy h2 { margin-bottom: 22px; }
.show__copy .lede { max-width: 42ch; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; color: var(--ink); }
.checks svg { flex: none; margin-top: 3px; }

/* ---------- Privacy manifesto ---------- */
.privacy { background: var(--ink); color: var(--ivory); border-radius: clamp(20px, 3vw, 36px); }
.privacy .wrap { padding-block: clamp(56px, 8vw, 100px); }
.privacy .eyebrow { color: rgba(243,240,233,.6); }
.privacy .eyebrow::before { background: var(--accent); }
.privacy h2 { max-width: 18ch; }
.privacy .big { font-size: clamp(30px, 4vw, 50px); }
.privacy .big em { color: var(--accent); font-style: normal; }
.privacy__points { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.privacy__points div { border-top: 1px solid rgba(243,240,233,.16); padding-top: 18px; }
.privacy__points b { display:block; font-size: 17px; margin-bottom: 6px; }
.privacy__points p { color: rgba(243,240,233,.62); font-size: 15px; }

/* ---------- Features grid ---------- */
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(20,20,20,.04); margin-bottom: 18px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; }
.cta__box { background: var(--card); border: 1px solid var(--line); border-radius: clamp(24px, 4vw, 40px); padding: clamp(48px, 7vw, 88px) var(--pad); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.cta__box::after { content:""; position:absolute; inset:auto -10% -60% -10%; height: 60%; background: radial-gradient(60% 100% at 50% 100%, rgba(223,131,71,.14), transparent 70%); pointer-events:none; }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { color: var(--muted); margin: 20px auto 34px; max-width: 46ch; font-size: 18px; }
.cta .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px 40px; }
.foot__row { display:flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.foot__links a:hover { color: var(--ink); }
.foot__meta { color: var(--muted); font-size: 13.5px; margin-top: 22px; display:flex; align-items:center; gap: 8px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 44px 0 14px; }
.legal h3 { font-size: 19px; margin: 28px 0 10px; }
.legal p, .legal li { color: #2b2b29; font-size: 17px; line-height: 1.62; }
.legal p { margin: 0 0 16px; }
.legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 10px; }
.legal strong { font-weight: 700; }
.legal a { color: var(--accent); text-decoration: none; font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 0 0 28px; box-shadow: var(--shadow-soft); }
.callout p { margin: 0; }

/* ---------- Reveal animation (progressive enhancement) ----------
   Content is fully VISIBLE by default; the hide-then-reveal only applies once
   JS has added `.js` to <html>. So no-JS / SEO / failed-JS = everything shows. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(18px); }
.js [data-stagger].in > * { opacity: 1; transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js [data-stagger].in > *:nth-child(1){ transition-delay:.04s } .js [data-stagger].in > *:nth-child(2){ transition-delay:.12s }
.js [data-stagger].in > *:nth-child(3){ transition-delay:.20s } .js [data-stagger].in > *:nth-child(4){ transition-delay:.28s }
.js [data-stagger].in > *:nth-child(5){ transition-delay:.36s } .js [data-stagger].in > *:nth-child(6){ transition-delay:.44s }

/* Hero load-in (also JS-gated so the hero is visible without JS) */
.js .hero [data-in] { opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) forwards; }
.hero [data-in="1"]{ animation-delay:.05s } .hero [data-in="2"]{ animation-delay:.15s }
.hero [data-in="3"]{ animation-delay:.27s } .hero [data-in="4"]{ animation-delay:.39s }
.js .hero .stage { opacity: 0; transform: translateY(24px) scale(.98); animation: rise 1.1s var(--ease) .3s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid, .show__grid { grid-template-columns: 1fr; }
  .show--rev .show__grid { direction: ltr; }
  .stage { order: -1; min-height: 420px; }
  .steps, .feat, .privacy__points { grid-template-columns: 1fr; }
  .feat { gap: 14px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-stagger] > *, .hero [data-in], .hero .stage { opacity: 1 !important; transform: none !important; }
  .hero h1 .accentword::after { transform: scaleX(1); }
  html { scroll-behavior: auto; }
}
