/* ============================================================================
   Prod-AI — marketing site
   System-font, light canvas, emerald identity + traffic-light verdict scale.
   Colors in OKLCH, neutrals tinted toward the brand green.
   ========================================================================== */

:root {
  /* canvas + ink */
  --bg:        oklch(97% 0.006 165);
  --surface:   oklch(99.4% 0.003 165);
  --surface-2: oklch(95% 0.008 165);
  --ink:       oklch(21% 0.021 165);
  --muted:     oklch(48% 0.016 165);
  --faint:     oklch(64% 0.014 165);
  --line:      oklch(90% 0.009 165);
  --line-soft: oklch(93% 0.007 165);

  /* brand emerald (app #0FA37F / #0B7D61) */
  --emerald:      oklch(66% 0.125 168);
  --emerald-deep: oklch(55% 0.11 168);
  --emerald-wash: oklch(95% 0.03 168);
  --on-emerald:   oklch(99% 0.01 168);

  /* traffic-light verdict scale */
  --safe:      oklch(63% 0.16 150);
  --safe-bg:   oklch(95% 0.04 150);
  --caution:   oklch(64% 0.13 72);
  --caution-bg:oklch(95% 0.045 78);
  --avoid:     oklch(58% 0.2 27);
  --avoid-bg:  oklch(95% 0.035 25);

  --shadow-sm: 0 1px 2px oklch(21% 0.02 165 / 0.05), 0 2px 8px oklch(21% 0.02 165 / 0.05);
  --shadow-md: 0 6px 14px oklch(21% 0.02 165 / 0.07), 0 24px 48px oklch(21% 0.02 165 / 0.09);

  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --step: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);   /* body */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ── type scale ─────────────────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
.h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); }
.h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.35rem); letter-spacing: -0.02em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.7vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--emerald-deep);
  background: var(--emerald-wash);
  padding: 0.4rem 0.75rem; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--emerald); }
p { margin: 0 0 1rem; max-width: 66ch; }
.muted { color: var(--muted); }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-head[data-scrolled] { border-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; font-size: 1.05rem; }
.brand .glyph { width: 30px; height: 30px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 620px) { .nav .nav-link { display: none; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font: inherit; font-weight: 650; font-size: 0.98rem; letter-spacing: -0.01em;
  padding: 0.72rem 1.15rem; border-radius: 13px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald); color: var(--on-emerald); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--emerald-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--faint); }
.btn .sub { font-weight: 500; opacity: 0.85; font-size: 0.78rem; }
.appstore { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.appstore small { font-size: 0.68rem; font-weight: 500; opacity: 0.82; letter-spacing: 0.01em; }
.appstore span { font-size: 1.02rem; font-weight: 700; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 90% at 78% 8%, var(--emerald-wash), transparent 62%),
    radial-gradient(50% 70% at 10% 0%, oklch(96% 0.02 150), transparent 60%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.02s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.09s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.23s; }
.hero-copy .h1 { margin: 1rem 0 1.1rem; }
.hero-copy .accent { color: var(--emerald-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; align-items: center; }
.cta-note { font-size: 0.82rem; color: var(--faint); margin: 0.9rem 0 0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .lede, .hero-copy .h1 { max-width: none; }
  .hero-art { order: -1; }
}

/* ── phone / result mock (hero imagery) ─────────────────────────────────── */
.hero-art { display: flex; justify-content: center; }
.phone {
  width: min(310px, 82vw); border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, oklch(28% 0.02 165), oklch(16% 0.02 165));
  box-shadow: var(--shadow-md), 0 40px 80px oklch(21% 0.02 165 / 0.18);
  animation: floaty 7s ease-in-out infinite;
}
.phone-screen { background: var(--bg); border-radius: 32px; overflow: hidden; }
.phone-top { height: 34px; display: grid; place-items: center; }
.phone-top .notch { width: 96px; height: 22px; background: oklch(16% 0.02 165); border-radius: 999px; }
.result { padding: 8px 16px 22px; }
.result .kicker { font-size: 0.72rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.result .pname { font-size: 1.28rem; font-weight: 750; letter-spacing: -0.02em; margin: 2px 0 14px; }
.score-ring {
  --v: 82; width: 128px; height: 128px; border-radius: 999px; margin: 4px auto 6px;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--safe) calc(var(--v) * 1%), var(--safe-bg) 0);
}
.score-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
.score-ring .num { position: relative; z-index: 1; text-align: center; }
.score-ring .num b { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.score-ring .num small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; margin-top: -2px; }
.band {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.92rem; padding: 0.45rem; border-radius: 12px;
  color: var(--safe); background: var(--safe-bg); margin: 6px 0 16px;
}
.band .tl { width: 9px; height: 9px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 22%, transparent); }

/* drenched verdict hero — the one loud answer (YES / OKAY / NO) */
.verdict-hero { border-radius: 16px; padding: 16px 16px 14px; margin: 2px 0 14px; text-align: center; color: var(--on-emerald); }
.verdict-hero.safe    { background: var(--safe); }
.verdict-hero.caution { background: var(--caution); }
.verdict-hero.avoid   { background: var(--avoid); }
.verdict-hero .vword { font-size: 3rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.verdict-hero .vsub  { font-size: 0.78rem; font-weight: 600; opacity: 0.92; margin-top: 5px; }
.flag { display: flex; gap: 0.6rem; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.flag .pip { width: 8px; height: 8px; border-radius: 999px; margin-top: 6px; flex: none; }
.flag .pip.ok { background: var(--safe); }
.flag .pip.warn { background: var(--caution); }
.flag .ft { font-size: 0.82rem; line-height: 1.3; }
.flag .ft b { font-weight: 650; }
.flag .ft span { color: var(--muted); }

/* ── generic section ────────────────────────────────────────────────────── */
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .h2 { margin-bottom: 0.75rem; }

/* ── steps ──────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); counter-reset: s; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: s; content: "0" counter(s);
  position: absolute; top: -0.05rem; left: 0; transform: translateY(-100%);
  font-size: 0.78rem; font-weight: 700; color: var(--emerald-deep); letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.98rem; margin: 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ── scan types (asymmetric feature band) ───────────────────────────────── */
.band-emerald { background: var(--surface); border-block: 1px solid var(--line); }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.type {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.4rem 1.3rem; transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s;
}
.type:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.type .tico { font-size: 1.6rem; line-height: 1; margin-bottom: 0.9rem; }
.type h3 { margin-bottom: 0.35rem; }
.type p { color: var(--muted); font-size: 0.94rem; margin: 0; }
@media (max-width: 720px) { .types { grid-template-columns: 1fr; } }

/* ── verdict explainer ──────────────────────────────────────────────────── */
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 0.5rem; }
.verdict { border-radius: 18px; padding: 1.4rem; border: 1px solid var(--line); }
.verdict.safe    { background: var(--safe-bg); }
.verdict.caution { background: var(--caution-bg); }
.verdict.avoid   { background: var(--avoid-bg); }
.verdict .lamp { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 750; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.verdict .lamp .tl { width: 12px; height: 12px; border-radius: 999px; }
.verdict.safe .lamp    { color: var(--safe); }    .verdict.safe .tl    { background: var(--safe); }
.verdict.caution .lamp { color: var(--caution); } .verdict.caution .tl { background: var(--caution); }
.verdict.avoid .lamp   { color: var(--avoid); }   .verdict.avoid .tl   { background: var(--avoid); }
.verdict p { font-size: 0.92rem; color: var(--muted); margin: 0; }
@media (max-width: 720px) { .verdicts { grid-template-columns: 1fr; } }

.personal {
  margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center;
}
.personal .badge { font-size: 1.7rem; }
.personal p { margin: 0; font-size: 0.98rem; }
@media (max-width: 560px) { .personal { grid-template-columns: 1fr; } }

/* ── privacy strip ──────────────────────────────────────────────────────── */
.privacy-strip { background: var(--surface); border-block: 1px solid var(--line); }
.privacy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.priv-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.priv-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.priv-list .ck { width: 22px; height: 22px; border-radius: 999px; background: var(--safe-bg); color: var(--safe); display: grid; place-items: center; font-size: 0.8rem; flex: none; margin-top: 1px; }
.priv-list b { font-weight: 650; }
.priv-list span { color: var(--muted); }
@media (max-width: 760px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ── final CTA ──────────────────────────────────────────────────────────── */
.finale { text-align: center; }
.finale .h2 { max-width: 18ch; margin-inline: auto; }
.finale .cta-row { justify-content: center; }
.disclaimer { margin-top: 2.5rem; font-size: 0.82rem; color: var(--faint); max-width: 60ch; margin-inline: auto; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; }
.foot-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--ink); }
.copy { font-size: 0.85rem; color: var(--faint); }

/* ── long-form (privacy / support) ──────────────────────────────────────── */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3rem); letter-spacing: -0.035em; }
.doc .updated { color: var(--faint); font-size: 0.9rem; margin: 0.75rem 0 2.5rem; }
.doc h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.02em; }
.doc h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.doc p, .doc li { color: oklch(32% 0.018 165); }
.doc ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.4rem; }
.doc a { color: var(--emerald-deep); text-underline-offset: 2px; }
.doc .callout {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: 0.95rem;
}
.doc .callout p:last-child { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 650; color: var(--ink); }
.back { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); text-decoration: none; margin-bottom: 1.5rem; }
.back:hover { color: var(--ink); }
