/* ============================================================
   OptiPhy — marketing site
   Palette, type and components ported 1:1 from the app
   (optiphy-prototype.jsx :root + theme/tokens.ts).
   Warm fixed-dark, gold/ember accent, Anton display face.
   ============================================================ */

:root {
  /* --- app tokens (exact) --- */
  --bg: #0E0D0A;
  --app: #161410;
  --surface: #201D16;
  --surface2: #2A2619;
  --line: #332F22;
  --line-hover: #46412E;
  --text: #F4F0E6;
  --dim: #A8A08D;
  --mute: #6F6857;
  --gold: #FFB22C;
  --gold-soft: rgba(255, 178, 44, 0.13);
  --gold-border: rgba(255, 178, 44, 0.28);
  --gold-surface: #241F15;
  --ember: #FF7A3D;
  --on-gold: #221A06;
  --green: #7FC79A;
  --green-soft: rgba(127, 199, 154, 0.13);
  --carbs: #7FA9E8;
  --fat: #E8896B;
  --danger: #E8533D;

  --disp: 'Anton', 'Arial Narrow', 'Haettenschweiler', system-ui, sans-serif;
  --body: 'Inter', system-ui, 'Roboto', 'Segoe UI', sans-serif;

  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--on-gold); }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- typography ---------- */

.display {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.section-title {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.kicker, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.lead {
  color: var(--dim);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 60ch;
  line-height: 1.6;
}

.accent { color: var(--gold); }
.ember { color: var(--ember); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 13px;
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
}
.btn-primary:hover {
  background: #ffc255;
  box-shadow: 0 12px 34px -12px rgba(255, 178, 44, 0.6);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--dim);
  border: 1.5px dashed var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 9px 16px; font-size: 0.88rem; border-radius: 10px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--disp);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo svg { width: 25px; height: 25px; flex: none; }
.logo .logo-mark { width: 26px; height: auto; flex: none; display: block; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 172px 0 96px;
  overflow: hidden;
  background: radial-gradient(120% 75% at 50% -10%, #1b1812 0%, var(--bg) 58%);
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 28rem at 84% -8%, rgba(255, 178, 44, 0.1), transparent 60%),
    radial-gradient(40rem 26rem at -8% 24%, rgba(255, 122, 61, 0.06), transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60rem 36rem at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60rem 36rem at 50% 0%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 32px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 0.84rem; color: var(--mute); }

/* ---------- phone frame (mirrors the app shell) ---------- */

.phone-scene { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 320px;
  background: var(--app);
  border: 1px solid #2c2820;
  border-radius: 42px;
  box-shadow:
    0 0 0 6px #100e0a,
    0 44px 90px -34px #000,
    0 0 70px -20px rgba(255, 178, 44, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.6deg);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
}
.phone-statusbar .dots { display: flex; gap: 5px; align-items: center; }
.phone-statusbar .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.phone-statusbar .dots .bat { width: 18px; height: 9px; border-radius: 2px; background: var(--dim); }

.phone-screen { padding: 8px 18px 14px; }

/* in-app header */
.app-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 6px 0 18px;
}
.app-head .eyebrow { margin-bottom: 3px; display: block; }
.app-h1 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 0.95;
  letter-spacing: 0.01em;
}
.app-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.app-secrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 11px;
}
.app-secrow.mt { margin-top: 22px; }
.app-h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.app-count { font-size: 0.66rem; color: var(--mute); font-weight: 600; }

/* workout card with the gold→ember spine */
.wk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 0;
  margin-bottom: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.wk-bar {
  width: 4px;
  align-self: stretch;
  background: linear-gradient(var(--gold), var(--ember));
  border-radius: 0 4px 4px 0;
}
.wk-main { flex: 1; }
.wk-main h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 2px; }
.wk-main p { font-size: 0.74rem; color: var(--dim); }
.wk .chev { color: var(--mute); flex: none; }

/* dashed ghost row inside app */
.app-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px;
  border-radius: 13px;
  border: 1.5px dashed var(--line);
  background: none;
  color: var(--dim);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 4px;
}

/* handbook grid */
.hb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.hb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 12px;
}
.hb-name { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.hb-mus { font-size: 0.64rem; color: var(--dim); }
.hb-diff {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
}
.d-beginner { color: var(--green); background: var(--green-soft); }
.d-intermediate { color: var(--gold); background: var(--gold-soft); }
.d-advanced { color: var(--ember); background: rgba(255, 122, 61, 0.13); }

/* floating chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--gold-border);
  background: rgba(32, 29, 22, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 500; color: var(--mute); font-size: 0.66rem; }
.float-chip .ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  flex: none;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
}
.float-chip .ico svg { width: 17px; height: 17px; }
.float-chip.hr .ico { background: rgba(255,90,77,0.14); color: #FF5A4D; }

.chip-1 { top: 13%; left: -9%; animation-delay: 0s; }
.chip-2 { bottom: 20%; right: -11%; animation-delay: 1.8s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- stat band ---------- */

.stat-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--app);
  padding: 34px 0;
}
.stat-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.band-stat { text-align: center; }
.band-stat b {
  display: block;
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.band-stat span { font-size: 0.82rem; color: var(--mute); }

/* ---------- sections ---------- */

section { padding: 104px 0; position: relative; }

.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head.center .kicker::before { display: none; }
.section-head .lead { margin-top: 16px; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.feature-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--gold-border); }
.feature-card .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 18px;
}
.feature-card .ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.92rem; color: var(--dim); }

/* alternating deep-dive rows */
.deep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.deep-row + .deep-row { border-top: 1px solid var(--line); }

.deep-copy h3 {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.deep-copy p { color: var(--dim); margin-bottom: 20px; }

.deep-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 7px 0;
  color: var(--dim);
  font-size: 0.95rem;
}
.deep-list li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }

/* app-styled visual panels */
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 60px -35px rgba(0,0,0,0.8);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.panel-head b { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; }
.panel-head span { font-size: 0.68rem; color: var(--mute); font-weight: 600; }

/* calorie ring card */
.kcal-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--app);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.kcal-big {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  margin-bottom: 10px;
}
.kcal-big span { font-family: var(--body); font-size: 0.8rem; color: var(--dim); font-weight: 500; }
.macros { display: flex; flex-direction: column; gap: 5px; }
.macros span { font-size: 0.74rem; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.macros i { width: 8px; height: 8px; border-radius: 3px; flex: none; }

/* meal rows */
.meal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.meal-tag { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.meal-name { font-size: 0.88rem; font-weight: 500; }
.meal-kcal { font-family: var(--disp); font-weight: 400; font-size: 1.05rem; }

/* day strip */
.day-strip { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.day {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--dim);
}
.day.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* muscle heatmap bodies */
.bodies { display: flex; justify-content: center; gap: 10px; padding: 4px 0 2px; }
.body { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fig { width: 128px; height: auto; display: block; }
.body-lab { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.mm-legend { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.mm-legend span { font-size: 0.6rem; color: var(--mute); font-weight: 600; white-space: nowrap; }
.mm-grad { flex: 1; height: 7px; border-radius: 5px; background: linear-gradient(90deg, #3A4A63, #FFB22C 55%, #FF5A3D); }
.mm-callouts { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.mm-co { font-size: 0.78rem; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.mm-co b { color: var(--text); font-weight: 600; }
.mm-co .co-hot { color: var(--ember); }
.mm-co .co-cold { width: 11px; height: 11px; border-radius: 3px; background: #3A4A63; flex: none; }

/* HR zones */
.zones { display: flex; justify-content: space-between; align-items: flex-end; height: 108px; padding-top: 6px; }
.zone { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; }
.zbar-track { height: 72px; display: flex; align-items: flex-end; }
.zbar { width: 22px; border-radius: 5px 5px 0 0; }
.zlab { font-size: 0.62rem; color: var(--mute); font-weight: 600; }
.zval { font-size: 0.62rem; color: var(--dim); font-weight: 700; }

/* line chart */
.line-cap { font-size: 0.74rem; color: var(--mute); margin-top: 10px; }
.line-cap b { color: var(--text); }

/* stat tiles */
.stat-2 { display: flex; gap: 10px; margin-bottom: 14px; }
.stat-tile { flex: 1; background: var(--app); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; margin-bottom: 10px; }
.stat-ic.hr { background: rgba(255,90,77,0.14); color: #FF5A4D; }
.stat-big { font-family: var(--disp); font-weight: 400; font-size: 1.7rem; line-height: 1; }
.stat-big small { font-family: var(--body); font-size: 0.72rem; color: var(--dim); font-weight: 500; margin-left: 4px; }
.stat-lab { font-size: 0.7rem; color: var(--mute); margin-top: 6px; }

/* insight banner */
.insight {
  display: flex;
  gap: 10px;
  background: linear-gradient(100deg, rgba(255,178,44,0.1), rgba(255,122,61,0.05));
  border: 1px solid rgba(255,178,44,0.24);
  border-radius: 15px;
  padding: 14px;
  margin-top: 4px;
}
.insight svg { color: var(--gold); flex: none; margin-top: 1px; }
.insight p { font-size: 0.82rem; line-height: 1.5; color: var(--dim); }

/* ---------- AI / coach section ---------- */

.ai-section {
  background:
    radial-gradient(46rem 26rem at 50% 0%, rgba(255,178,44,0.06), transparent 65%),
    var(--app);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ai-intro { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.ai-intro .big-line {
  font-family: var(--disp);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.ai-intro .big-line .dim { color: var(--mute); }

.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }

/* chat panel mirrors the Coach screen */
.chat-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -35px rgba(0,0,0,0.8);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ch-av {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--ember));
  color: var(--on-gold);
  display: grid; place-items: center;
  flex: none;
}
.chat-head strong { font-size: 0.92rem; display: block; line-height: 1.1; }
.ch-sub { font-size: 0.68rem; color: var(--dim); }
.ch-mdl {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 7px;
}
.chat-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble {
  max-width: 84%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.chat-bubble.coach {
  align-self: flex-start;
  background: var(--app);
  border: 1px solid var(--line);
  color: var(--dim);
  border-bottom-left-radius: 5px;
}
.chat-bubble.coach b { color: var(--text); }
.photo-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.chat-foot {
  font-size: 0.66rem;
  color: var(--mute);
  text-align: center;
  padding: 6px 18px 16px;
}

.ai-points { display: grid; gap: 13px; }
.ai-point {
  display: flex;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.ai-point .ico {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--gold-soft);
  color: var(--gold);
}
.ai-point .ico svg { width: 20px; height: 20px; }
.ai-point h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.ai-point p { font-size: 0.86rem; color: var(--dim); }

/* ---------- pricing ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }

.price-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(255,178,44,0.1), var(--surface));
}
.price-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--on-gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.price-tier {
  font-family: var(--disp);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.price-amount { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 6px; }
.price-amount b { font-family: var(--disp); font-weight: 400; font-size: 2.8rem; line-height: 1; }
.price-amount span { color: var(--mute); font-size: 0.85rem; }
.price-desc { font-size: 0.88rem; color: var(--dim); margin-bottom: 22px; min-height: 42px; }

.price-list { flex: 1; margin-bottom: 26px; display: grid; gap: 2px; align-content: start; }
.price-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--dim);
  padding: 6px 0;
}
.price-list li svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold); }
.price-list li.muted { color: var(--mute); }
.price-list li.muted svg { color: var(--mute); opacity: 0.5; }
.price-list li b { color: var(--text); font-weight: 600; }

.price-note { text-align: center; color: var(--mute); font-size: 0.84rem; margin-top: 26px; }
.price-note a { color: var(--gold); }

/* comparison table */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th {
  background: var(--app);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 700;
}
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td { color: var(--dim); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.compare .yes { color: var(--gold); font-weight: 700; }
.compare .no { color: var(--mute); }
.compare .group-row td {
  background: var(--app);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}
.faq-q .chev { flex: none; transition: transform 0.25s ease; color: var(--mute); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--dim); font-size: 0.92rem; }
.faq-a p a { color: var(--gold); }

/* ---------- final CTA ---------- */

.final-cta {
  text-align: center;
  padding: 128px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 120%, #1b1812 0%, var(--bg) 60%);
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40rem 22rem at 50% 115%, rgba(255,178,44,0.12), transparent 65%);
  pointer-events: none;
}
.final-cta .wrap { position: relative; }
.final-cta .display { margin-bottom: 20px; }
.final-cta .lead { margin: 0 auto 34px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--app); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { color: var(--mute); font-size: 0.88rem; margin-top: 14px; max-width: 30ch; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--dim); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--mute);
}
.footer-base a { color: var(--dim); }
.footer-base a:hover { color: var(--gold); }

/* ---------- subpages ---------- */

.page-hero {
  padding: 160px 0 60px;
  position: relative;
  background: radial-gradient(120% 75% at 50% -10%, #1b1812 0%, var(--bg) 58%);
}
.page-hero .lead { margin-top: 16px; }

.legal-body { max-width: 760px; padding-bottom: 100px; }
.legal-body h2 { font-size: 1.2rem; font-weight: 700; margin: 40px 0 14px; }
.legal-body p, .legal-body li { color: var(--dim); font-size: 0.95rem; margin-bottom: 12px; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body a { color: var(--gold); }
.legal-updated { color: var(--mute); font-size: 0.84rem; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .phone-scene { order: 2; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .deep-row { grid-template-columns: 1fr; gap: 36px; }
  .deep-row .panel { order: 2; }
  .ai-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(14, 13, 10, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }

  section { padding: 72px 0; }
  .hero { padding: 140px 0 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .phone { transform: none; }
}
