/* ═══════════════════════════════════════════════════════════════════
   JawPeak funnel — design system
   Dark, masculine, stat-card aesthetic. Mobile-first (95% Meta traffic).
   No external fonts/CDNs — system stack, self-contained.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  --bg: #0a0b0d;
  --bg-raise: #101216;
  --surface: #14161b;
  --surface-2: #191c22;
  --border: #262a32;
  --border-hi: #343a45;
  --text: #eef0ea;
  --muted: #9aa1ab;
  --faint: #6a7079;
  --accent: #d4ff3f;
  --accent-dim: rgba(212, 255, 63, 0.12);
  --accent-line: rgba(212, 255, 63, 0.35);
  --accent-ink: #14170a;
  --danger: #ff5d5d;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 640px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body::before { /* subtle top glow */
  content: "";
  position: fixed;
  top: -220px; left: 50%;
  width: 640px; height: 380px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(212,255,63,0.07), transparent);
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 56px; flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.022em; line-height: 1.15; }
h1 { font-size: clamp(28px, 7.4vw, 40px); }
h2 { font-size: clamp(21px, 5.4vw, 27px); }
h3 { font-size: 17px; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sub { color: var(--muted); font-size: 16px; margin-top: 10px; }
.small { font-size: 13px; color: var(--muted); }
.tiny { font-size: 12px; color: var(--faint); }

/* ── Header / progress ──────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 11, 13, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
}
.step-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.progress-track { height: 3px; background: var(--border); }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 28px rgba(212, 255, 63, 0.22); }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border-hi); }
.btn-ghost:hover { color: var(--text); text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 14px; width: auto; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* ── Cards / stat cards ─────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.stat-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
}
.stat-card .big { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-card .small { font-size: 11.5px; line-height: 1.4; margin-top: 4px; color: var(--muted); }

/* ── Landing ────────────────────────────────────────────────────── */
.hero { padding-top: 34px; text-align: center; }
.hero h1 { margin-top: 4px; }
.hero .sub { max-width: 440px; margin-left: auto; margin-right: auto; }
.qz { margin-top: 30px; text-align: left; }
.qz-label { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-align: center; }
.qz-options { display: grid; gap: 10px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; }
.trust-row span { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.trust-row .tick { color: var(--accent); font-weight: 800; }
.consent-note { margin-top: 26px; text-align: center; }

/* ── Quiz options ───────────────────────────────────────────────── */
.screen { animation: fadeUp 0.3s ease both; padding-top: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.why {
  margin-top: 14px;
  padding: 10px 14px;
  border-left: 2px solid var(--accent-line);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--muted);
}
.options { display: grid; gap: 10px; margin-top: 22px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.06s ease;
}
.opt:hover { border-color: var(--border-hi); }
.opt:active { transform: scale(0.99); }
.opt.selected { border-color: var(--accent); background: var(--accent-dim); }
.opt .hint { display: block; font-size: 12.5px; color: var(--faint); font-weight: 500; margin-top: 2px; }
.opt .check {
  margin-left: auto; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid var(--border-hi);
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 13px; font-weight: 900;
  transition: all 0.12s ease;
}
.opt.selected .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt .icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--bg-raise); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
.opt .icon svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* image (face-shape) picker */
.img-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.img-opt {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px 14px;
  cursor: pointer; text-align: center;
  color: var(--text); font-weight: 600; font-size: 14.5px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.img-opt:hover { border-color: var(--border-hi); }
.img-opt.selected { border-color: var(--accent); background: var(--accent-dim); }
.img-opt svg { width: 62px; height: 74px; margin: 0 auto 10px; stroke: var(--muted); fill: none; stroke-width: 2; }
.img-opt.selected svg { stroke: var(--accent); }

/* sliders */
.slider-wrap { margin-top: 34px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; gap: 16px; }
.slider-labels span:last-child { text-align: right; }
input[type="range"] {
  width: 100%; height: 34px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--pct, 50%), var(--border) var(--pct, 50%)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px;
  border-radius: 50%; background: var(--accent); border: 4px solid var(--bg);
  box-shadow: 0 2px 12px rgba(212, 255, 63, 0.4);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); }
.slider-value { text-align: center; font-size: 44px; font-weight: 800; color: var(--accent); margin: 8px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.slider-note { text-align: center; font-size: 13.5px; color: var(--muted); min-height: 40px; margin-top: 10px; }

/* interstitials */
.interstitial { text-align: center; padding-top: 30px; }
.interstitial .graphic { margin: 26px auto; width: 190px; }
.interstitial .body { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.reassure { margin-top: 18px; }
.testimonial-card { text-align: left; margin-top: 24px; }
.testimonial-card .quote { font-size: 15.5px; line-height: 1.6; }
.testimonial-card .who { margin-top: 12px; font-size: 13px; color: var(--faint); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; margin-bottom: 10px; }
.star { width: 15px; height: 15px; fill: var(--border-hi); }
.star.on { fill: var(--accent); }

/* loader */
.loader-screen { padding-top: 40px; text-align: center; }
.loader-bars { margin-top: 30px; display: grid; gap: 22px; text-align: left; }
.loader-bar-label { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.loader-bar-label .pct { color: var(--accent); font-weight: 700; }
.loader-track { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width 0.2s linear; }
.mid-testimonial { margin-top: 30px; animation: fadeUp 0.4s ease both; }

/* email gate */
.email-form { margin-top: 24px; display: grid; gap: 14px; }
input[type="email"], input[type="text"] {
  width: 100%;
  background: var(--bg-raise);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  padding: 16px;
  outline: none;
  font-family: inherit;
}
input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field-error { color: var(--danger); font-size: 13px; display: none; }
.field-error.show { display: block; }
.checkline { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.checkline input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--accent); flex: none; }

/* nav row */
.nav-row { margin-top: 26px; display: grid; gap: 10px; }
.back-link { background: none; border: none; color: var(--faint); font-size: 14px; cursor: pointer; padding: 10px; }
.back-link:hover { color: var(--muted); }

/* ── Results ────────────────────────────────────────────────────── */
.profile-card { margin-top: 20px; text-align: center; padding: 26px 20px; position: relative; overflow: hidden; }
.profile-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7; }
.archetype-name { font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.archetype-tagline { color: var(--accent); font-size: 14px; font-weight: 700; margin-top: 6px; }
.archetype-body { color: var(--muted); font-size: 15px; margin-top: 16px; text-align: left; }
.radar-wrap { margin: 10px auto 0; max-width: 340px; }
.radar-caption { font-size: 12px; color: var(--faint); margin-top: 6px; }
.axis-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; text-align: left; }
.axis-score { background: var(--bg-raise); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; justify-content: space-between; align-items: baseline; }
.axis-score .name { font-size: 12px; color: var(--muted); }
.axis-score .val { font-size: 17px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.section { margin-top: 28px; }
.plan-items { display: grid; gap: 10px; margin-top: 16px; }
.plan-item { display: flex; gap: 14px; align-items: flex-start; }
.plan-item .bullet { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; margin-top: 2px; }
.plan-item h3 { font-size: 15.5px; }
.plan-item p { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sticky-cta { position: sticky; bottom: 14px; margin-top: 34px; z-index: 30; }
.sticky-cta .btn { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6), 0 6px 28px rgba(212, 255, 63, 0.25); }

/* ── Offer ──────────────────────────────────────────────────────── */
.bonus-card { margin-top: 22px; border-color: var(--accent-line); background: linear-gradient(180deg, rgba(212,255,63,0.09), var(--surface)); display: flex; gap: 14px; align-items: center; }
.bonus-card.expired { border-color: var(--border); background: var(--surface); opacity: 0.75; }
.bonus-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.bonus-card.expired .bonus-icon { background: var(--border-hi); color: var(--bg); }
.bonus-card h3 { font-size: 15px; }
.bonus-card p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.countdown { margin-left: auto; text-align: center; flex: none; }
.countdown .time { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.countdown .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.tiers { display: grid; gap: 12px; margin-top: 24px; }
.tier {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.tier.selected { border-color: var(--accent); background: linear-gradient(180deg, rgba(212,255,63,0.07), var(--surface)); }
.tier .radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-hi); transition: all 0.12s ease; }
.tier.selected .radio { border-color: var(--accent); border-width: 7px; }
.tier-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em;
  padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.tier-badge.alt { background: var(--surface); color: var(--accent); border: 1px solid var(--accent-line); }
.tier-info { flex: 1; min-width: 0; }
.tier-name { font-weight: 800; font-size: 15.5px; }
.tier-prices { font-size: 13px; color: var(--muted); margin-top: 3px; }
.tier-prices s { color: var(--faint); }
.tier-prices .now { color: var(--text); font-weight: 700; }
.tier-savings { color: var(--accent); font-weight: 700; font-size: 11.5px; margin-left: 6px; }
.tier-week { flex: none; text-align: right; }
.tier-week .amt { font-size: 21px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier.selected .tier-week .amt { color: var(--accent); }
.tier-week .per { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.renewal-note { font-size: 12px; color: var(--faint); margin-top: 12px; text-align: center; line-height: 1.55; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; }
.guarantee .shield { flex: none; width: 42px; height: 42px; color: var(--accent); }
.guarantee h3 { font-size: 15px; }
.guarantee p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.security-note { text-align: center; margin-top: 18px; font-size: 12px; color: var(--faint); }

/* FAQ accordion */
.faq { margin-top: 16px; display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  font-size: 14.5px; font-weight: 700; text-align: left;
  padding: 15px 16px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q .chev { flex: none; transition: transform 0.2s ease; color: var(--faint); font-size: 12px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 16px 15px; font-size: 13.5px; color: var(--muted); }

/* exit-intent modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 7, 8, 0.8);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: flex-end; justify-content: center;
  padding: 16px;
}
.modal-backdrop.show { display: flex; animation: fadeUp 0.25s ease both; }
.modal { max-width: 440px; width: 100%; padding: 26px 22px; border-color: var(--accent-line); margin-bottom: env(safe-area-inset-bottom); }
.modal .disclosure { font-size: 11.5px; color: var(--faint); margin-top: 12px; text-align: center; }
@media (min-width: 520px) { .modal-backdrop { align-items: center; } }

/* ── Checkout / success ─────────────────────────────────────────── */
.center-page { text-align: center; padding-top: 44px; }
.spinner { width: 42px; height: 42px; margin: 26px auto; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.summary { text-align: left; margin: 24px auto 0; max-width: 420px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); }
.summary-row .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.code-box {
  margin: 18px auto 0; max-width: 340px;
  background: var(--bg-raise); border: 1.5px dashed var(--accent-line); border-radius: var(--radius);
  padding: 18px;
}
.code-box .lbl { font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.code-box .code { font-size: 40px; font-weight: 800; letter-spacing: 0.22em; color: var(--accent); font-variant-numeric: tabular-nums; margin-top: 6px; }
.steps { display: grid; gap: 14px; margin-top: 28px; text-align: left; }
.step-card { display: flex; gap: 14px; }
.step-card .n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 900; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.step-card h3 { font-size: 15.5px; }
.step-card p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.store-row { display: flex; gap: 16px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.qr-ph { border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* ── Legal pages ────────────────────────────────────────────────── */
.legal h1 { font-size: 26px; margin-top: 22px; }
.legal h2 { font-size: 17px; margin-top: 28px; }
.legal p, .legal li { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.legal ul { padding-left: 20px; }
.legal .updated { font-size: 12px; color: var(--faint); margin-top: 6px; }

/* ── Footer ─────────────────────────────────────────────────────── */
#jp-footer { border-top: 1px solid var(--border); margin-top: auto; position: relative; z-index: 1; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 26px 20px 34px; text-align: center; }
.footer-links { font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links .dot { color: var(--faint); margin: 0 8px; }
.footer-disclaimer { font-size: 11px; color: var(--faint); margin-top: 14px; line-height: 1.6; max-width: 560px; margin-left: auto; margin-right: auto; }
.footer-copy { font-size: 11px; color: var(--faint); margin-top: 10px; }

/* ── Cookie banner ──────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; z-index: 100;
  left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin: 0 auto;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: fadeUp 0.3s ease both;
}
.cookie-banner p { font-size: 12.5px; color: var(--muted); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

@media (min-width: 480px) {
  .qz-options { grid-template-columns: 1fr 1fr; }
  .img-options { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
