/* ===== Brand tokens: edit these to adjust the whole page ===== */
:root {
  --violet: #7B3FE4;
  --lavender: #B26BF0;
  --pink: #E0459B;
  --wine: #8A1F4A;
  --ink: #1A1424;
  --ink-soft: #5E566B;
  --bg: #FFFFFF;
  --bg-tint: #F8F5FC;
  --line: #E9E3F1;
  --brand-gradient: linear-gradient(90deg, var(--violet), var(--pink));
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
p { margin: 0; }
section.block { padding: 96px 0; }
.lead { margin-top: 16px; color: var(--ink-soft); font-size: 18px; max-width: 60ch; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: filter .15s, box-shadow .15s; }
.btn-brand { background: var(--brand-gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(123,63,228,.55); }
.btn-brand:hover { filter: brightness(1.06); box-shadow: 0 14px 30px -10px rgba(224,69,155,.55); }
.btn-quiet { color: var(--ink); background: #fff; border: 1.5px solid var(--line); }
.btn-quiet:hover { border-color: var(--lavender); }

/* ===== Nav ===== */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-weight: 800; letter-spacing: .16em; text-decoration: none; font-size: 17px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-right a.link { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-right a.link:hover { color: var(--ink); }
.nav-right .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 720px) { .nav-right a.link { display: none; } }

/* ===== 1. Hero ===== */
.hero { position: relative; overflow: hidden; padding: 104px 0 72px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(40% 55% at 28% 45%, rgba(123,63,228,.20), transparent 70%),
    radial-gradient(38% 50% at 55% 35%, rgba(178,107,240,.22), transparent 70%),
    radial-gradient(36% 50% at 78% 50%, rgba(224,69,155,.18), transparent 70%); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; max-width: 16ch; margin: 0 auto; }
.hero .lead { margin: 22px auto 0; max-width: 54ch; }
.hero .btn { margin-top: 36px; padding: 17px 32px; font-size: 17px; }
.promise { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }
.promise strong { color: var(--ink); }

/* ===== 2. Calculator ===== */
.calc-section { padding: 0 0 96px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.field + .field { margin-top: 20px; }
.field label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.field output { color: var(--violet); font-weight: 700; }
.money { position: relative; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.money input { width: 100%; font: inherit; font-weight: 700; font-size: 17px; color: var(--ink); padding: 12px 14px 12px 28px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-variant-numeric: tabular-nums; }
.money input:focus { outline: none; border-color: var(--lavender); }
input[type=range] { width: 100%; accent-color: var(--violet); margin-top: 6px; }
.rows { display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-soft); }
.row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.net { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.net p { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.net strong { display: block; font-size: 46px; font-weight: 800; line-height: 1.05; margin-top: 4px; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.net p.roi { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px; font-size: 13.5px; font-weight: 500; }
.net p.roi b { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--violet); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.calc-cta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 6px 10px 4px; }
.calc-cta p { font-size: 13.5px; color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

/* ===== Shared checklist ===== */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-gradient) ; -webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><circle cx='11' cy='11' r='11'/></svg>"); }
.checks li { position: relative; }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.checks.no li::before { background: #F1E6EC; }
.checks.no li::after { left: 6px; top: 12px; width: 10px; height: 0; border-left: 0; border-bottom: 2px solid var(--wine); transform: none; }

/* ===== 3. What Valkyrie does ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ===== 4. Access ===== */
.tint { background: var(--bg-tint); }
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.access .panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 18px; }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } }

/* ===== 5. Pricing ===== */
.pricing { text-align: center; }
.pricing .big { font-size: clamp(88px, 14vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.04em; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 18px; }
.pricing .lead { margin: 14px auto 0; }
.pricing .btn { margin-top: 32px; }

/* ===== 6. FAQ + final ===== */
.faq { max-width: 760px; margin: 36px 0 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); max-width: 64ch; }

.final { margin: 0 24px 24px; border-radius: 28px; background: var(--brand-gradient); color: #fff; text-align: center; padding: 88px 24px; }
.final h2 { max-width: 20ch; margin: 0 auto; }
.final p { margin-top: 14px; opacity: .9; font-size: 18px; }
.final .btn { margin-top: 30px; background: #fff; color: var(--ink); }
.final .btn:hover { filter: none; box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); }

footer { padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

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

/* ===== Decline-code & comparison page primitives ===== */
.crumbs { font-size: 13.5px; color: var(--ink-soft); padding: 20px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.article-head { padding: 28px 0 8px; }
.article-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; max-width: 22ch; }
.code-chip { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; margin-top: 14px; color: var(--ink-soft); }

.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; border-radius: 999px; padding: 7px 14px; margin-top: 16px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag-retry { background: #EAF7EE; color: #1D7A3B; }
.tag-retry::before { background: #2FA94E; }
.tag-action { background: #FDEFF6; color: #9C2A63; }
.tag-action::before { background: var(--pink); }
.tag-ambiguous { background: var(--bg-tint); color: var(--ink-soft); }
.tag-ambiguous::before { background: var(--lavender); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 23px; font-weight: 800; margin-top: 52px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-top: 14px; line-height: 1.7; }
.prose p:first-of-type { margin-top: 0; }
.prose ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 8px; }
.prose strong { color: var(--ink); }

.callout { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-tint); padding: 20px 22px; margin-top: 16px; }
.callout p { margin-top: 0; }
.callout p + p { margin-top: 10px; }

.mini-calc { max-width: 560px; margin-top: 18px; }
.mini-calc .calc { padding: 14px; gap: 12px; }
.mini-calc .panel { padding: 18px; }
.mini-calc .net strong { font-size: 32px; }
.mini-calc .calc-cta { padding: 4px 6px 2px; }

.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.related-grid a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; font-size: 14.5px; font-weight: 600; transition: border-color .15s, background .15s; }
.related-grid a:hover { border-color: var(--lavender); background: var(--bg-tint); }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

.hub-group { margin-top: 20px; }
.hub-group h3 { font-size: 15px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.hub-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hub-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; padding: 14px 18px; text-decoration: none; font-size: 15px; font-weight: 600; }
.hub-list a:hover { background: var(--bg-tint); }
.hub-list a span.desc { font-weight: 400; color: var(--ink-soft); font-size: 13.5px; text-align: right; }

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin-top: 16px; }
table.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.compare-table th, table.compare-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); background: var(--bg-tint); }
table.compare-table td.valkyrie-col, table.compare-table th.valkyrie-col { background: #FBF7FF; }
table.compare-table tr:last-child td { border-bottom: none; }

.verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.compare-table-wrap + .prose, .verdict-grid + .prose { margin-top: 52px; }
.verdict-grid .panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
@media (max-width: 680px) { .verdict-grid { grid-template-columns: 1fr; } }

.sources { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.sources a { color: var(--ink-soft); }
