/* ===========================================================================
   RefactorIQ landing — dark, local-first, zero third-party requests.
   Type: Inter Variable (UI) + JetBrains Mono Variable (numbers/code),
   self-hosted in ./fonts/ to match the desktop app design system.
   =========================================================================== */

/* Self-hosted variable fonts (latin subset is enough for the landing). */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("./fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, "SF Mono",
    "Cascadia Code", Menlo, Consolas, monospace;

  /* Aligned with the desktop app dark theme (warm charcoal + teal). */
  --bg: #0e0d0b;
  --bg-soft: #161412;
  --card: #1b1916;
  --card-2: #232019;
  --border: #2a2722;
  --border-strong: #3a352c;
  --text: #f2f1ee;
  --muted: #c6c0b4;
  --muted-dim: #a29c90;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-2: #14b8a6;
  --accent-ink: #06281a;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.visible { opacity: 1; transform: translateY(0); }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Content links must not rely on color alone (a11y). */
main p a, .hero-note a, .plans-note a, .section-sub a, footer p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.num, .calc-value, .stat-num, .score-num, .plan .price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
code, kbd {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--card-2);
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Nav */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 8px;
  transition: top .15s ease;
}
.skip-link:focus-visible { top: 12px; text-decoration: none; }
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,13,11,.86); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; flex-wrap: nowrap; }
.site-nav .brand { flex-shrink: 0; }
.site-nav .links .btn { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .logo { display: block; }
.site-nav .links { display: flex; align-items: center; gap: 22px; font-size: 14.5px; font-weight: 500; }
.site-nav .links a { color: var(--muted); }
.site-nav .links a:hover { color: var(--text); text-decoration: none; }
/* Nav link color (0,1,1) otherwise beats .btn-primary text color (0,1,0),
   leaving the Demo button with washed-out gray text on teal. */
.site-nav .links a.btn-primary { color: var(--accent-ink); }
.site-nav .links a.btn-primary:hover { color: var(--accent-ink); }
.site-nav.scrolled { box-shadow: 0 8px 32px rgba(0,0,0,.45); background: rgba(14,13,11,.94); }

/* Claims notice bar (payment recovery): static above the sticky nav, amber
   tone, wraps on mobile. Dismiss is session-scoped via sessionStorage. */
.notice-bar {
  background: linear-gradient(180deg, #2a2113, #211a0e);
  border-bottom: 1px solid #6b5518;
}
.notice-bar[hidden] { display: none; }
.notice-inner {
  display: flex; align-items: center; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.notice-bar p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text); flex: 1; min-width: 0; }
.notice-actions { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; }
.notice-bar .btn-sm { padding: 7px 14px; font-size: 13px; }
.notice-x { font-size: 13px; color: var(--muted); white-space: nowrap; }
.notice-x:hover { color: var(--text); }
.notice-close {
  background: transparent; border: 1px solid var(--border-strong); color: var(--muted);
  width: 28px; height: 28px; border-radius: 8px; font-size: 16px; line-height: 1;
  cursor: pointer; flex: none;
}
.notice-close:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 900px) {
  .notice-inner { flex-direction: column; align-items: stretch; }
}

/* Scroll progress */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 70; pointer-events: none;
}

/* Buttons — same language as the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border-radius: 10px; padding: 11px 20px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  text-decoration: none !important; font-family: var(--font-sans);
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 16px rgba(45,212,191,.22); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 28px rgba(45,212,191,.4); transform: translateY(-1px); }
.btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
/* Secondary meta inside buttons: full opacity for contrast (was .65, failed a11y). */
.btn .btn-meta { font-weight: 400; opacity: 1; }

/* Hero */
header.hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
header.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%;
  background:
    radial-gradient(640px 320px at 28% 18%, rgba(45,212,191,.16), transparent),
    radial-gradient(560px 300px at 72% 26%, rgba(20,184,166,.12), transparent),
    radial-gradient(700px 340px at 50% 60%, rgba(129,140,248,.07), transparent);
  pointer-events: none;
}
header.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(242,241,238,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,241,238,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(760px 480px at 50% 32%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(760px 480px at 50% 32%, #000 10%, transparent 75%);
  pointer-events: none;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
  background: var(--bg-soft);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.pill b { color: var(--accent); font-weight: 650; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; max-width: 840px; margin: 0 auto; position: relative; }
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-hover), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* No background-position animation: non-composited, flagged by Lighthouse.
   Static gradient keeps contrast without jank. */
.sub { max-width: 660px; margin: 20px auto 32px; color: var(--muted); font-size: 18px; position: relative; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-dim); position: relative; }
.os-row { margin: 26px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.os-label { font-size: 12.5px; color: var(--muted-dim); margin-right: 4px; }
.os-chip { font-size: 12.5px; font-weight: 550; padding: 4px 12px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.version-badge { margin: 14px auto 0; font-size: 12.5px; color: var(--muted-dim); font-family: var(--font-mono); }
.hero-shot { margin: 48px auto 0; max-width: 900px; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% 4% -4%;
  background: linear-gradient(135deg, rgba(45,212,191,.28), rgba(20,184,166,.10) 55%, rgba(129,140,248,.16));
  filter: blur(48px); z-index: 0; pointer-events: none;
}
.hero-shot img {
  position: relative; z-index: 1;
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(45,212,191,.08), 0 0 64px rgba(45,212,191,.10);
}

/* Click-to-enlarge screenshots */
.shot {
  display: block; width: 100%; padding: 0; border: none; background: none;
  font: inherit; color: inherit; cursor: zoom-in; border-radius: var(--radius);
  position: relative; z-index: 1;
}
.shot img { display: block; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot::after {
  content: "Click to enlarge"; position: absolute; right: 14px; bottom: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; color: var(--text);
  background: rgba(14,13,11,.82); border: 1px solid var(--border-strong);
  border-radius: 999px; padding: 5px 12px;
  opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.shot:hover::after, .shot:focus-visible::after { opacity: 1; transform: none; }
.shot:hover img { border-color: rgba(45,212,191,.45); }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(5,5,4,.92);
}
#lightbox.open { display: flex; }
#lightbox figure { margin: 0; max-width: min(1600px, 100%); }
#lightbox img {
  display: block; width: auto; max-width: 100%; max-height: calc(100vh - 140px);
  border-radius: 12px; border: 1px solid var(--border-strong);
  box-shadow: 0 32px 96px rgba(0,0,0,.6), 0 0 80px rgba(45,212,191,.08);
}
#lightbox figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
#lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
#lightbox .lb-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted-dim); }
@media (prefers-reduced-motion: no-preference) {
  #lightbox.open figure { animation: lbIn .22s ease; }
}
@keyframes lbIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-anim { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
  html.js body.loaded .hero-anim { opacity: 1; transform: none; }
}

/* Trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; background: var(--bg-soft); }
.trust-list {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 28px; font-size: 14px; color: var(--muted);
}
.trust-list li { display: flex; gap: 10px; align-items: flex-start; }
.trust-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.trust-list b { color: var(--text); font-weight: 600; }

/* Sections */
section { padding: 76px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; font-weight: 750; text-align: center; line-height: 1.2; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 12px auto 0; font-size: 16px; }
.section-kicker {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  font-family: var(--font-mono);
  border: 1px solid rgba(45,212,191,.3); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 14px; margin-bottom: 14px;
}
section .wrap > .section-kicker { display: table; margin-left: auto; margin-right: auto; }

/* --- Calculator + score playground --- */
.calc-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px;
  margin-top: 40px; align-items: start;
}
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.calc-card h3 { font-size: 15px; font-weight: 650; margin-bottom: 4px; letter-spacing: -0.01em; }
.calc-card .card-sub { font-size: 13.5px; color: var(--muted-dim); margin-bottom: 20px; }
.slider-row { padding: 13px 0; border-top: 1px solid var(--border); }
.slider-row:first-of-type { border-top: none; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.slider-head label { font-size: 14px; font-weight: 550; color: var(--text); }
.slider-head output {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(45,212,191,.25);
  padding: 2px 10px; border-radius: 999px; min-width: 72px; text-align: center;
}
input[type="range"].calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--border-strong) var(--fill, 30%));
  outline: none; cursor: pointer;
}
input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,0,0,.4);
  cursor: grab; transition: transform .12s ease;
}
input[type="range"].calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"].calc-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  cursor: grab;
}
input[type="range"].calc-range::-moz-range-track {
  height: 6px; border-radius: 999px; background: var(--border-strong);
}
input[type="range"].calc-range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
.slider-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-dim); margin-top: 6px; font-family: var(--font-mono); }

.calc-results { display: flex; flex-direction: column; gap: 14px; }
.result-hero {
  background: linear-gradient(135deg, rgba(45,212,191,.14), rgba(20,184,166,.05));
  border: 1px solid rgba(45,212,191,.3);
  border-radius: var(--radius); padding: 22px 24px;
}
.result-hero .result-label { font-size: 12.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.result-hero .result-big {
  font-family: var(--font-mono); font-size: clamp(36px, 5vw, 48px);
  font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 2px;
}
.result-hero .result-sub { font-size: 13.5px; color: var(--muted); }
.result-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .result-tiles { grid-template-columns: 1fr 1fr; } }
.result-tile { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.result-tile .t-label { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-dim); }
.result-tile .t-value { font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin-top: 4px; }
.result-tile .t-sub { font-size: 12px; color: var(--muted-dim); margin-top: 2px; }
.result-tile.accent .t-value { color: var(--accent); }
.calc-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.calc-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s ease; }
.calc-note { font-size: 13px; color: var(--muted-dim); }
.calc-note code { font-size: 12px; }
.calc-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* Score playground */
.score-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 40px; align-items: start; }
@media (max-width: 860px) { .score-grid { grid-template-columns: 1fr; } }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.seg button {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--muted);
  transition: all .12s ease;
}
.seg button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.score-ring-card { text-align: center; }
.score-ring {
  width: 148px; height: 148px; margin: 8px auto 12px; position: relative;
  display: grid; place-items: center;
}
.score-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
#score-arc { transition: stroke-dashoffset .45s ease; }
.score-ring .score-num { font-family: var(--font-mono); font-size: 44px; font-weight: 750; letter-spacing: -0.03em; }
.score-ring .score-max { font-family: var(--font-mono); font-size: 13px; color: var(--muted-dim); }
.score-grade { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(45,212,191,.3); }
.score-rationale { font-size: 14px; color: var(--muted); margin-top: 12px; line-height: 1.55; }
.breakdown { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; text-align: left; }
.break-row { display: grid; grid-template-columns: 110px 1fr 34px; gap: 10px; align-items: center; font-size: 12.5px; }
.break-row .b-label { color: var(--muted); font-weight: 550; white-space: nowrap; }
.break-row .b-track { height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.break-row .b-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .2s ease; }
.break-row .b-val { font-family: var(--font-mono); text-align: right; color: var(--text); }

/* Screenshots */
.screens-tabs { display: flex; gap: 6px; justify-content: center; margin: 32px auto 0; max-width: 520px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px; }
.screens-tabs .tab {
  flex: 1; padding: 9px 8px; font-size: 14px; font-weight: 600; color: var(--muted);
  border-radius: 999px; cursor: pointer; border: none; background: transparent;
  font-family: var(--font-sans); text-align: center;
  transition: all .15s ease;
}
.screens-tabs .tab:hover { color: var(--text); }
.screens-tabs .tab.active { color: var(--accent-ink); background: var(--accent); }
.screens-grid { max-width: 900px; margin: 28px auto 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.screens-grid figure, .screens figure { margin: 0; }
.screens-grid img, .screens img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.screens-grid figcaption, .screens figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.feature:hover { border-color: rgba(45,212,191,.4); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.4), 0 0 24px rgba(45,212,191,.07); }
.feature .icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}
.feature:nth-child(even) .icon { background: rgba(129,140,248,.12); color: #a5b4fc; }
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 40px; }
.privacy-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.privacy-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 12px; color: var(--accent); }
.privacy-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.privacy-card li { font-size: 14.5px; color: var(--muted); padding-left: 20px; position: relative; }
.privacy-card li::before { content: "–"; position: absolute; left: 2px; color: var(--accent); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.step:hover { border-color: rgba(45,212,191,.35); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.narrative-card { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.narrative-card:hover { border-color: rgba(45,212,191,.35); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.privacy-card { transition: border-color .15s ease; }
.privacy-card:hover { border-color: var(--border-strong); }
.plan { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; color: var(--accent);
  font-family: var(--font-mono);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* Wallet */
.wallet-box {
  margin-top: 20px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wallet-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.wallet-box code {
  font-size: 13.5px; padding: 8px 12px;
  border-radius: 8px; word-break: break-all; user-select: all; flex: 1; min-width: 240px;
}

/* License recovery claim section (no backend — form composes an email) */
.claim-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  margin-top: 32px; text-align: left; align-items: start;
}
#claim-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.claim-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.claim-field.claim-full { grid-column: 1 / -1; }
.claim-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.claim-field .req { color: var(--accent); }
.claim-field input, .claim-field select, .claim-field textarea {
  font: inherit; font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 9px 12px; width: 100%;
}
.claim-field textarea { resize: vertical; min-height: 72px; }
.claim-field input:focus, .claim-field select:focus, .claim-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.claim-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.claim-error {
  grid-column: 1 / -1; margin: 0; font-size: 13.5px;
  color: var(--danger); font-weight: 600;
}
.claim-error[hidden] { display: none; }
.claim-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.claim-alt { font-size: 13px; color: var(--muted); }
.claim-side h3 { font-size: 16px; margin: 0 0 8px; }
.claim-side h3:not(:first-child) { margin-top: 20px; }
.claim-side p, .claim-side li { font-size: 14px; color: var(--muted); }
.claim-side ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 900px) {
  .claim-grid { grid-template-columns: 1fr; }
  #claim-form { grid-template-columns: 1fr; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; margin-top: 40px; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 12px 40px rgba(45,212,191,.12); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.plan h3 { font-size: 17px; font-weight: 650; }
.plan .price { font-size: 40px; font-weight: 750; margin: 10px 0 2px; letter-spacing: -0.03em; }
.plan .per-inline { font-size: 16px; font-weight: 500; color: var(--muted); font-family: var(--font-sans); }
.plan .per { color: var(--muted-dim); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; flex: 1; }
.plan li { font-size: 14.5px; display: flex; gap: 9px; align-items: baseline; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plans-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 26px; }

/* FAQ */
.faq { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; transition: border-color .15s ease;
}
details[open] { border-color: var(--border-strong); }
details summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
@media (prefers-reduced-motion: no-preference) {
  details[open] > *:not(summary) { animation: fadeUp .25s ease; }
}

/* Comparison table */
.comp-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
.comp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.comp-table th { padding: 14px 20px; font-size: 12px; font-weight: 700; color: var(--muted-dim); text-align: left; text-transform: uppercase; letter-spacing: .06em; background: var(--card); border-bottom: 1px solid var(--border); font-family: var(--font-mono); }
.comp-table th:nth-child(2) { color: var(--accent); }
.comp-table td { padding: 15px 20px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); vertical-align: top; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.comp-table td:nth-child(2) { color: var(--text); background: rgba(45,212,191,.05); }
.comp-strong { color: var(--accent) !important; }

/* Narrative strip */
.narrative-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.narrative-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.narrative-day { font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.narrative-card h3 { font-size: 16px; margin-bottom: 8px; }
.narrative-card p { font-size: 14px; color: var(--muted); }

/* Named-competitor comparisons */
.versus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.versus-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.versus-card:hover { border-color: rgba(45,212,191,.35); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.versus-card h3 { font-size: 16px; font-weight: 650; margin-bottom: 10px; letter-spacing: -0.01em; }
.versus-card p { font-size: 14px; color: var(--muted); }
.versus-card p + p { margin-top: 10px; }
.versus-pick { color: var(--text) !important; }
.versus-pick::before { content: "→ "; color: var(--accent); font-weight: 700; }

/* Methodology block */
.method { max-width: 900px; margin: 44px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.method h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; text-align: center; }
.method > p { font-size: 14.5px; color: var(--muted); text-align: center; }
.method .comp-wrap { margin-top: 20px; }
.method-table td:first-child { white-space: nowrap; }
.method > p:last-child { margin-top: 16px; }

/* Closing CTA */
#closing-cta { padding: 72px 0; background: linear-gradient(135deg, var(--bg-soft), var(--bg)); border-top: 1px solid var(--border); }
.cta-band { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.cta-band .btn-primary { font-size: 16px; padding: 14px 32px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 96px; color: var(--muted-dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.footer-brand .brand { font-size: 16px; margin-bottom: 10px; }
.footer-brand .brand .logo { width: 22px; height: 22px; }
.footer-brand p { font-size: 13.5px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 14px; width: fit-content; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dim); font-family: var(--font-mono); margin-bottom: 2px; }
.footer-base { border-top: 1px solid var(--border); padding-top: 20px; font-size: 13px; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Sticky mobile Demo bar — fixed bottom, mobile only */
#mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(14,13,11,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: none;
}
.mobile-bar-wrap { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; }
.mobile-bar-text { font-size: 14px; font-weight: 600; color: var(--text); }
@media (max-width: 860px) {
  .site-nav .links a:not(.btn):not(.nav-keep) { display: none; }
  #mobile-bar { display: block; }
  /* Keep the fixed bar from covering footer content. */
  body { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  header.hero { padding-top: 56px; }
  .wallet-box { flex-direction: column; align-items: stretch; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .hero-anim { opacity: 1; transform: none; transition: none; }
  html.js h1 em { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===========================================================================
   Blog — reuses landing tokens (.wrap, .btn, --card, --accent). Keep article
   pages dependency-free: no extra fonts, no JS beyond the CF beacon.
   =========================================================================== */
.blog-index-list { list-style: none; display: grid; gap: 16px; margin-top: 28px; }
.blog-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.blog-card:hover { border-color: rgba(45,212,191,.35); transform: translateY(-2px); text-decoration: none; }
.blog-card h2 { font-size: 21px; letter-spacing: -0.01em; margin: 8px 0; text-align: left; }
.blog-card p { font-size: 14.5px; color: var(--muted); }
.blog-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-dim); letter-spacing: 0.02em; }
.post { max-width: 700px; margin: 0 auto; padding: 56px 24px 24px; }
.post h1 { font-size: clamp(30px, 4.6vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 12px; text-wrap: balance; }
.post .lede { font-size: 20px; line-height: 1.65; color: var(--muted); margin-bottom: 20px; }
.post-body { font-size: 19px; line-height: 1.8; }
.post-body h2 { font-size: 28px; line-height: 1.25; letter-spacing: -0.01em; margin: 44px 0 12px; text-wrap: balance; text-align: left; }
.post-body h3 { font-size: 21px; line-height: 1.35; margin: 30px 0 8px; text-align: left; }
.post-body p { margin: 16px 0; color: #eceae6; text-wrap: pretty; }
.post-body ul, .post-body ol { margin: 16px 0 16px 24px; color: #eceae6; }
.post-body li + li { margin-top: 8px; }
.post-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 20px 0; font-size: 15.5px; line-height: 1.6; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--card-2); font-weight: 650; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 4px 16px; margin: 20px 0; color: var(--muted); }
.post-cta { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin: 28px 0; text-align: center; }
.post-cta p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 8px; font-size: 14.5px; }
.breadcrumb { font-size: 13.5px; color: var(--muted-dim); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.toc-head { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dim); }
.toc ol { margin: 10px 0 0 20px; font-size: 14.5px; }
.toc li + li { margin-top: 6px; }
.post-figure { margin: 24px 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.post-figure figcaption { font-size: 13.5px; color: var(--muted-dim); margin-top: 8px; text-align: center; }
.post-body caption { caption-side: top; font-size: 13.5px; color: var(--muted-dim); padding-bottom: 8px; text-align: left; }
.from-blog-card { display: block; max-width: 760px; margin: 24px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.from-blog-card:hover { border-color: rgba(45,212,191,.35); transform: translateY(-2px); text-decoration: none; }
.from-blog-card h3 { font-size: 19px; letter-spacing: -0.01em; margin: 8px 0; text-align: left; }
.from-blog-card p { font-size: 14.5px; color: var(--muted); }

/* Blog pagination */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 32px 0 8px; font-size: 14px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.pagination a:hover { border-color: rgba(45,212,191,.35); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--card); border-color: rgba(45,212,191,.35); }

/* Related-guides block (added to every post for internal linking) */
.related { margin: 40px 0 8px; padding: 24px 0 0; border-top: 1px solid var(--border); }
.related-heading { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dim); margin: 0 0 16px; font-weight: 600; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-list a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.related-list a:hover { border-color: rgba(45,212,191,.35); transform: translateX(2px); }
.related-kicker { display: block; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted-dim); margin-bottom: 4px; }
.related-title { display: block; font-size: 16px; line-height: 1.35; }
.related-more { margin: 16px 0 0; font-size: 14.5px; }
