/* ===========================================================
   AI Proposal Writer for Upwork — Approid Tech
   Light-first, bold AI aesthetic, motion-rich.
   =========================================================== */

:root {
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-tint: #F3F2EC;
  --ink: #0B0B0F;
  --ink-2: #2A2B30;
  --muted: #6B7280;
  --line: rgba(11, 11, 15, 0.08);
  --line-2: rgba(11, 11, 15, 0.14);
  --accent: #14A800;
  --accent-2: #0E8A00;
  --accent-soft: rgba(20, 168, 0, 0.10);
  --warn: #FF6B35;
  --info: #3B6BFF;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-1: 0 1px 0 rgba(11,11,15,0.04), 0 2px 6px rgba(11,11,15,0.04);
  --shadow-2: 0 12px 30px -10px rgba(11,11,15,0.18), 0 2px 6px rgba(11,11,15,0.05);
  --shadow-3: 0 30px 80px -20px rgba(11,11,15,0.25), 0 4px 12px rgba(11,11,15,0.06);

  --font-display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: white; }

/* ---------- Type scale ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.05; font-weight: 500; }
h1 { font-size: clamp(44px, 6.2vw, 88px); letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }

.section { padding: clamp(80px, 10vw, 140px) 24px; position: relative; }
.container { max-width: var(--max); margin: 0 auto; position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 22px -8px rgba(11,11,15,0.55);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary .chev { transition: transform .25s; }
.btn-primary:hover .chev { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink); }

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: 0 8px 22px -8px rgba(20,168,0,0.55);
}
.btn-accent:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 16px 24px;
  transition: backdrop-filter .3s, background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  /*border-radius: 8px;
  background: var(--ink);*/
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(20,168,0,0.55), transparent 60%);
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
}
.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-tint); color: var(--ink); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 130px; padding-bottom: 60px; position: relative; overflow: hidden; }

.mesh {
  position: absolute; inset: -10% -10% auto -10%; height: 110%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px) saturate(140%);
  opacity: 0.85;
}
.mesh .blob {
  position: absolute; border-radius: 50%;
}
.mesh .b1 { width: 520px; height: 520px; left: -8%; top: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(20,168,0,0.55), transparent 60%); }
.mesh .b2 { width: 460px; height: 460px; right: -6%; top: -4%;
  background: radial-gradient(circle at 60% 40%, rgba(120, 180, 255, 0.50), transparent 65%); }
.mesh .b3 { width: 380px; height: 380px; left: 30%; top: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 200, 90, 0.40), transparent 65%); }
.mesh .b4 { width: 360px; height: 360px; right: 18%; top: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(20,168,0,0.30), transparent 65%); }

.particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.hero-pill .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--ink);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.hero h1 .gradient {
  background: linear-gradient(100deg, #0B0B0F 0%, #0B0B0F 35%, #14A800 60%, #0B0B0F 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.hero-meta {
  margin-top: 22px;
  display: flex; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .check {
  width: 14px; height: 14px; border-radius: 999px; background: var(--accent);
  display: grid; place-items: center; color: white; font-size: 9px;
}

/* ---------- Hero split panel ---------- */
.split {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: perspective(1800px) rotateY(-3deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.split:hover { transform: perspective(1800px) rotateY(0) rotateX(0); }

.split-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(250,250,247,0.6));
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; display: block;
  background: #E5E2D9; }
.dots i:nth-child(1) { background: #FF6B6B; }
.dots i:nth-child(2) { background: #FFD400; }
.dots i:nth-child(3) { background: #14A800; }
.split-head .url {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  background: var(--bg-tint);
  padding: 5px 12px; border-radius: 999px;
}
.split-head .ext-tag {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
}
.split-head .ext-tag .live {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,168,0,0.55); }
  50% { box-shadow: 0 0 0 6px rgba(20,168,0,0); }
}

.split-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 480px;
}
@media (max-width: 600px) {
  .split-body { grid-template-columns: 1fr; }
}

.upwork-side {
  padding: 22px 22px 22px 22px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(800px 200px at 20% 0%, rgba(20,168,0,0.07), transparent 60%),
    var(--bg-elev);
  position: relative;
}
.upwork-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.upwork-brand .uw {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
}
.job-title {
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); line-height: 1.25;
  margin-bottom: 6px;
}
.job-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  margin-bottom: 12px;
}
.job-budget {
  display: inline-flex; gap: 8px; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.job-budget b { font-size: 16px; color: var(--ink); font-weight: 500; }
.job-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  border-top: 1px dashed var(--line-2);
  padding-top: 14px;
}
.job-desc p { margin: 0 0 10px 0; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.skill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-tint); color: var(--ink-2);
  border: 1px solid var(--line);
}
.skill.matched { background: var(--accent-soft); border-color: rgba(20,168,0,0.25); color: var(--accent-2); }

.client-stats {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted);
}
.client-stats b { color: var(--ink); font-weight: 500; }

/* AI panel side */
.ai-side {
  padding: 16px 18px 22px 18px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-tint) 200%);
  display: flex; flex-direction: column;
}
.ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.ai-head .title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
}
.ai-head .title .logo {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--ink); color: white;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px;
}
.ai-head .badge {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--accent-soft); color: var(--accent-2);
  padding: 4px 8px; border-radius: 999px;
  letter-spacing: 0.06em;
}

.ai-controls {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.seg {
  display: inline-flex; padding: 3px;
  background: var(--bg-tint);
  border-radius: 999px; border: 1px solid var(--line);
}
.seg button {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 10px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted);
  cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.seg button.on { background: var(--ink); color: white; }

.ai-stream {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  position: relative;
}
.ai-stream .caret {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: -3px;
  margin-left: 1px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ai-foot {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border-top: 1px dashed var(--line-2);
  padding-top: 12px;
}
.ai-foot .actions { display: flex; gap: 6px; }
.ai-foot .ico {
  width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--bg-elev);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s;
}
.ai-foot .ico:hover { background: var(--bg-tint); }

/* Fit Score chip floating on hero panel */
.fit-chip {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--ink); color: white;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-2);
  z-index: 3;
}
.fit-chip .ring {
  width: 28px; height: 28px;
}

/* ---------- Logo ribbon ---------- */
.ribbon {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 22px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex; align-items: center; gap: 28px;
  overflow: hidden;
}
.ribbon-track {
  display: flex; gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.ribbon-track span { display: inline-flex; align-items: center; gap: 8px; opacity: 0.7; }

/* ---------- Section header ---------- */
.sec-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 32px; align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 760px) {
  .sec-head { grid-template-columns: 1fr; }
}
.sec-head .lead { margin-top: 18px; }
.sec-head-line {
  height: 1px; background: var(--line);
  width: 100%; max-width: 280px;
  position: relative; overflow: hidden;
}
.sec-head-line::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3.6s linear infinite;
}
@keyframes scan { to { left: 130%; } }

/* ---------- Demo / Playground ---------- */
.demo-wrap {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.demo-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.demo-tabs .tab {
  font-family: var(--font-mono); font-size: 11px;
  padding: 7px 12px; border-radius: 999px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.demo-tabs .tab.on { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-1); }
.demo-tabs .spacer { flex: 1; }
.demo-tabs .hint {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}

.demo-body {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 560px;
}
@media (max-width: 900px) {
  .demo-body { grid-template-columns: 1fr; }
}

.demo-config {
  border-right: 1px solid var(--line);
  padding: 22px;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-tint));
}
.demo-config h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 10px 0;
}
.config-block { margin-bottom: 22px; }

.job-picker { display: flex; flex-direction: column; gap: 8px; }
.job-card {
  text-align: left; padding: 12px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .2s, transform .2s, background .2s;
}
.job-card:hover { border-color: var(--ink-2); }
.job-card.on { border-color: var(--accent); background: var(--accent-soft); }
.job-card .t { font-size: 13px; font-weight: 500; color: var(--ink); }
.job-card .m { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 4px; }

.demo-output {
  padding: 22px 26px;
  display: flex; flex-direction: column;
}
.demo-stream {
  flex: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  position: relative;
  min-height: 280px;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(11,11,15,0.025) 27px 28px);
}
.demo-output-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.demo-output-foot .right { display: flex; gap: 8px; }

.gen-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink); color: white;
  border: 0; cursor: pointer;
  font-size: 13px; font-weight: 500;
  font-family: inherit;
  transition: background .2s, transform .2s;
}
.gen-btn:hover { background: black; transform: translateY(-1px); }
.gen-btn[disabled] { opacity: .6; cursor: progress; }
.gen-btn .spark {
  width: 14px; height: 14px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 26px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.step .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; margin: 0; }
.step .glyph {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px dashed var(--line-2);
}

/* ---------- Fit Score deep dive (real extension UI mock) ---------- */
.fit-deep {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .fit-deep { grid-template-columns: 1fr; gap: 32px; }
}

.fit-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: 18px;
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.fit-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.fit-tabs { display: flex; gap: 14px; }
.fit-tab {
  font-size: 13px; color: var(--muted); cursor: pointer;
  padding-bottom: 8px;
  position: relative;
}
.fit-tab.on {
  color: var(--accent-2); font-weight: 500;
}
.fit-tab.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.fit-plan {
  font-family: var(--font-mono); font-size: 10px;
  background: var(--bg-tint); color: var(--muted);
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line);
  letter-spacing: 0.06em;
}

.fit-detected {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--accent-2); letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.fit-detected .d-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.fit-detected .d-spacer { flex: 1; }
.fit-detected .d-refresh {
  background: var(--bg-tint); border: 1px solid var(--line);
  color: var(--muted); font-family: var(--font-mono); font-size: 10px;
  padding: 4px 8px; border-radius: 6px; cursor: pointer;
  letter-spacing: 0.04em;
}

.fit-job-title { font-size: 15px; font-weight: 500; line-height: 1.3; margin-bottom: 4px; }
.fit-job-snip { font-size: 12px; color: var(--muted); line-height: 1.45; margin-bottom: 16px; }

.fit-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,107,53,0.28);
  background: rgba(255,107,53,0.05);
  border-radius: var(--r-md);
  margin-bottom: 14px;
  transition: border-color .8s, background .8s;
}
.fit-card.is-good {
  border-color: rgba(20,168,0,0.30);
  background: var(--accent-soft);
}
.fit-circle { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.fit-circle svg { width: 100%; height: 100%; display: block; }
.fit-circle-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  line-height: 1;
}
.fit-num {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.fit-of { font-family: var(--font-mono); font-size: 9px; color: var(--muted); margin-top: 4px; line-height: 1; display: block; }

.fit-card-body { display: flex; flex-direction: column; gap: 8px; }
.fit-card-row {
  display: flex; align-items: center; justify-content: space-between;
}
.fit-label {
  font-size: 15px; font-weight: 500; color: #B83A00;
  transition: color .8s;
}
.fit-card.is-good .fit-label { color: var(--accent-2); }
.fit-risks-pill {
  font-family: var(--font-mono); font-size: 10px;
  background: rgba(255,107,53,0.12); color: #B83A00;
  padding: 3px 8px; border-radius: 999px;
  border: 1px solid rgba(255,107,53,0.25);
  transition: all .8s;
}
.fit-card.is-good .fit-risks-pill {
  background: var(--accent-soft); color: var(--accent-2);
  border-color: rgba(20,168,0,0.25);
}
.fit-mini-track {
  height: 6px; border-radius: 999px;
  background: rgba(255,107,53,0.15);
  position: relative; overflow: hidden;
  transition: background .8s;
}
.fit-card.is-good .fit-mini-track { background: rgba(20,168,0,0.15); }
.fit-mini-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: #FF6B35;
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(.2,.7,.2,1), background .8s;
}
.fit-card.is-good .fit-mini-fill { background: var(--accent); }

.fit-breakdown {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.fit-breakdown span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.fit-breakdown b { color: var(--ink); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fit-breakdown i { font-style: normal; font-size: 9px; letter-spacing: 0.04em; }

.fit-reasons {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.fit-reasons li {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.4;
  padding: 4px 0;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .5s, transform .5s;
}
.fit-reasons li.in { opacity: 1; transform: none; }
.fit-reasons .ck, .fit-reasons .wk {
  width: 16px; height: 16px; border-radius: 999px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  margin-top: 2px;
}
.fit-reasons .ck { background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(20,168,0,0.25); }
.fit-reasons .wk { background: rgba(255,107,53,0.12); color: #B83A00; border: 1px solid rgba(255,107,53,0.30); }
.fit-reasons .r-ok { color: var(--ink); }
.fit-reasons .r-warn { color: #B83A00; }

.fit-activity {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-tint);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.fit-activity-head {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.fit-activity-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.fit-activity-grid > div {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.fit-activity-grid b { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.fit-activity-grid .ic { color: var(--muted); }

.fit-side h3 { letter-spacing: -0.02em; font-weight: 500; }
.fit-legend {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fit-leg {
  display: grid; grid-template-columns: 14px 1fr; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  align-items: start;
}
.fit-bullet {
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 5px;
}
.fit-leg h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; margin: 0 0 4px 0; font-weight: 500; }
.fit-leg p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.fit-formula {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
}
.fit-formula-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 16px;
  font-family: var(--font-mono); font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.fit-formula-row:last-child { border-bottom: 0; }
.fit-formula-row span { color: var(--ink-2); font-family: var(--font-display); font-size: 13.5px; }
.fit-formula-row b { color: var(--ink); font-weight: 500; }

.forbidden-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.anti-stats .fs { padding: 18px 16px; }
.anti-stats .fs-num { font-size: 32px; }

/* Chrome logo sizing — make the colorful Chrome icon more prominent */
.chrome-logo {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
}
.btn-primary .chrome-logo,
.btn-accent .chrome-logo { width: 22px !important; height: 22px !important; }
.nav-cta .btn-primary .chrome-logo { width: 18px !important; height: 18px !important; }
.yt-foot .chrome-logo { width: 16px !important; height: 16px !important; }

/* ---------- YouTube modal ---------- */
.yt-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.yt-modal.on { opacity: 1; pointer-events: auto; }
.yt-backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.yt-shell {
  position: relative;
  width: min(960px, 92vw);
  background: #0F1014;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px rgba(20,168,0,0.18);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yt-modal.on .yt-shell { transform: translateY(0) scale(1); }
.yt-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.yt-head-l { display: flex; align-items: center; gap: 14px; }
.yt-dots { display: flex; gap: 6px; }
.yt-dots i {
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.yt-dots i:nth-child(1) { background: #FF6B6B; }
.yt-dots i:nth-child(2) { background: #FFBD4A; }
.yt-dots i:nth-child(3) { background: var(--accent); }
.yt-title {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
}
.yt-title svg { color: var(--accent); }
.yt-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: all 0.15s ease;
}
.yt-close:hover { background: rgba(255,255,255,0.10); color: white; transform: rotate(90deg); }
.yt-body { padding: 16px; }
.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.yt-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.yt-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.yt-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
}
.fs {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md);
  padding: 16px 14px;
}
.fs-num {
  font-size: 36px; font-weight: 500; letter-spacing: -0.03em;
  color: white; line-height: 1;
}
.fs-lab {
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em; line-height: 1.3;
  margin-top: 8px;
}

.instead-card {
  margin-top: 18px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 18px 20px;
}
.instead-head {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.ic-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(20,168,0,0.20);
}
.instead-grid { display: flex; flex-direction: column; gap: 8px; }
.instead-row {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 10px; align-items: center;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}
.ir-tag {
  width: 18px; height: 18px; border-radius: 5px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.ir-tag.bad { background: rgba(255,107,53,0.15); color: #FF8A66; border: 1px solid rgba(255,107,53,0.30); }
.ir-tag.good { background: rgba(20,168,0,0.18); color: #6FE05A; border: 1px solid rgba(20,168,0,0.35); }
.ir-bad { color: rgba(255,255,255,0.45); text-decoration: line-through; text-decoration-color: rgba(255,107,53,0.5); }
.ir-good { color: white; font-weight: 500; }

/* ---------- Anti-AI section ---------- */
.anti {
  background: var(--ink);
  color: white;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 70px);
  position: relative;
  overflow: hidden;
}
.anti::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(20,168,0,0.30), transparent 60%),
    radial-gradient(500px 400px at 10% 100%, rgba(120,180,255,0.18), transparent 60%);
  pointer-events: none;
}
.anti > * { position: relative; }
.anti .eyebrow { color: rgba(255,255,255,0.6); }
.anti .eyebrow .dot { background: var(--accent); }

/* ---------- Anti-AI rulebook (rewritten) ---------- */
.anti-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.anti-hero h2 {
  color: white;
  margin-top: 18px;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.anti-h-accent {
  background: linear-gradient(120deg, #14A800 0%, #6FE05A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.anti-sub {
  color: rgba(255,255,255,0.72);
  font-size: 17px;
  line-height: 1.6;
  margin: 22px auto 0;
  max-width: 60ch;
}
.anti-sub em { color: white; font-style: normal; font-weight: 500; }

.rulebook {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
.rulebook::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 50% -10%, rgba(20,168,0,0.10), transparent 60%);
  pointer-events: none;
}
.rulebook-spine {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.02);
  position: relative; z-index: 1;
}
.rb-tag-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent-2);
}
.rb-tag-live i {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(20,168,0,0.20);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20,168,0,0.20); }
  50% { box-shadow: 0 0 0 8px rgba(20,168,0,0.05); }
}

.rulebook-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative; z-index: 1;
  align-items: center;
  min-width: 0;
}
.rulebook-row:first-of-type { border-top: 0; }
@media (max-width: 880px) {
  .rulebook-row { grid-template-columns: 1fr; gap: 18px; padding: 22px 18px; }
}
.rb-label {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}
.rb-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(20,168,0,0.12);
  border: 1px solid rgba(20,168,0,0.30);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rb-label h5 {
  color: white;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}
.rb-label p {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.rb-content {
  min-width: 0;
  overflow: hidden;
  position: relative;
}

/* Marquee inside rulebook rows — fully contained, no overlap */
.rulebook .forbidden-track {
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  padding: 6px 0;
  animation: marquee 38s linear infinite;
  width: max-content;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.rb-content > .forbidden-track:nth-child(2) { animation-direction: reverse; animation-duration: 44s; }

/* Hard rules grid */
.hardrules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 640px) { .hardrules { grid-template-columns: 1fr; } }
.hr {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}
.hr:hover {
  background: rgba(20,168,0,0.05);
  border-color: rgba(20,168,0,0.25);
  transform: translateY(-1px);
}
.hr-num {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20,168,0,0.18), rgba(20,168,0,0.08));
  border: 1px solid rgba(20,168,0,0.30);
  color: white;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
}
.hr-text h6 {
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  text-transform: lowercase;
}
.hr-text p {
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}

/* Before / after ledger */
.ledger {
  display: flex; flex-direction: column; gap: 12px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 720px) { .ledger-row { grid-template-columns: 1fr; } }
.lr-side {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}
.lr-side.bad {
  background: rgba(255,107,53,0.06);
  border: 1px solid rgba(255,107,53,0.20);
  color: rgba(255,255,255,0.50);
  text-decoration: line-through;
  text-decoration-color: rgba(255,107,53,0.45);
  text-decoration-thickness: 1px;
}
.lr-side.good {
  background: rgba(20,168,0,0.07);
  border: 1px solid rgba(20,168,0,0.30);
  color: white;
  font-weight: 500;
}
.lr-flag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none !important;
}
.lr-side.bad .lr-flag {
  background: rgba(255,107,53,0.18);
  color: #FFA382;
  border: 1px solid rgba(255,107,53,0.30);
}
.lr-side.good .lr-flag {
  background: rgba(20,168,0,0.20);
  color: #6FE05A;
  border: 1px solid rgba(20,168,0,0.40);
}

/* Legacy anti styles kept minimal (still used elsewhere) */
@media (max-width: 980px) { .anti-top { grid-template-columns: 1fr; gap: 24px; } }

.anti-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.anti-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 980px) { .anti-grid-2 { grid-template-columns: 1fr; } }
.anti-grid-2 .rules { margin-top: 0; }
.anti-grid-2 .instead-card { margin-top: 0; height: 100%; }

.anti-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-top: 36px;
}
@media (max-width: 980px) { .anti-grid { grid-template-columns: 1fr; } }
.anti h2 { color: white; }
.anti p { color: rgba(255,255,255,0.72); }

.forbidden {
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  padding: 18px 0;
}
.forbidden h4 {
  padding: 0 22px 14px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.forbidden-track {
  display: flex; gap: 10px;
  animation: marquee 35s linear infinite;
  width: max-content;
}
.forbidden-track + .forbidden-track {
  animation-direction: reverse;
  animation-duration: 45s;
  margin-top: 10px;
}
.forbidden .word {
  font-family: var(--font-mono); font-size: 13px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  position: relative;
  white-space: nowrap;
}
.forbidden .word.struck {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  color: rgba(255,255,255,0.55);
}

.rules { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.rule {
  display: grid; grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
}
.rule .x {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,107,53,0.15);
  border: 1px solid rgba(255,107,53,0.35);
  color: #FF8A66;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px;
}
.rule h5 { margin: 0 0 4px 0; font-size: 14px; font-weight: 500; }
.rule p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- Templates & history ---------- */
.th-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
}
@media (max-width: 980px) { .th-grid { grid-template-columns: 1fr; } }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-tint));
}
.panel-head .title { font-size: 14px; font-weight: 500; }
.panel-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.panel-body { padding: 18px 22px; }

.tpl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tag-chip {
  font-family: var(--font-mono); font-size: 11px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s;
}
.tag-chip.on { background: var(--ink); color: white; border-color: var(--ink); }
.tag-chip:hover { border-color: var(--ink); }

.tpl-list { display: flex; flex-direction: column; gap: 10px; }
.tpl {
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-elev);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.tpl:hover { border-color: var(--ink-2); background: var(--bg-tint); }
.tpl .name { font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.tpl .preview { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); line-height: 1.5; }

.history-list { display: flex; flex-direction: column; gap: 0; }
.h-item {
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .2s;
}
.h-item:last-child { border-bottom: 0; }
.h-item:hover { background: var(--bg-tint); }
.h-item .ring {
  width: 38px; height: 38px;
}
.h-item .t { font-size: 13.5px; font-weight: 500; }
.h-item .m { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.h-item .arrow { color: var(--muted); }

/* ---------- Compare ---------- */
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.cmp {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  padding: 26px;
  position: relative;
}
.cmp.bad { background: var(--bg-tint); }
.cmp.good { border-color: rgba(20,168,0,0.35); box-shadow: 0 0 0 4px rgba(20,168,0,0.06); }
.cmp h4 {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px 0; font-weight: 500;
}
.cmp .lbl {
  font-size: 18px; font-weight: 500; margin-bottom: 16px;
}
.cmp.good .lbl b { color: var(--accent-2); font-weight: 500; }
.cmp .text {
  font-family: var(--font-mono); font-size: 13px; line-height: 1.65;
  color: var(--ink-2);
}
.cmp .text mark {
  background: rgba(255,107,53,0.15);
  color: #B83A00;
  padding: 0 2px;
  border-radius: 3px;
}
.cmp .stamp {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 12px;
}
.cmp.bad .stamp { background: rgba(255,107,53,0.10); color: #B83A00; border: 1px solid rgba(255,107,53,0.25); }
.cmp.good .stamp { background: var(--accent-soft); color: var(--accent-2); border: 1px solid rgba(20,168,0,0.25); }

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.plan.pro {
  background: var(--ink); color: white;
}
.plan.pro::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 320px at 100% 0%, rgba(20,168,0,0.30), transparent 60%);
  pointer-events: none;
}
.plan.pro > * { position: relative; }
.plan-name {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.plan-name h3 { font-size: 22px; font-weight: 500; }
.plan-name .badge {
  font-family: var(--font-mono); font-size: 10px;
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.plan.free .plan-name .badge { background: var(--bg-tint); color: var(--muted); border: 1px solid var(--line); }
.plan.pro .plan-name .badge { background: var(--accent); color: white; }

.price {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 4px;
}
.price .num {
  font-size: 64px; font-weight: 500; letter-spacing: -0.04em;
  line-height: 1;
}
.price .per { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.plan.pro .price .per { color: rgba(255,255,255,0.6); }

.plan-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.plan.pro .plan-tag { color: rgba(255,255,255,0.6); }

.feats { display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.feats li {
  list-style: none;
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 14px; color: var(--ink-2); line-height: 1.5;
}
.plan.pro .feats li { color: rgba(255,255,255,0.85); }
.feats .ck {
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--accent); color: white;
  display: grid; place-items: center;
  font-size: 9px;
  margin-top: 3px;
}
.feats .x-mark {
  width: 16px; height: 16px; border-radius: 999px;
  background: var(--bg-tint); color: var(--muted);
  display: grid; place-items: center; font-size: 10px;
  margin-top: 3px;
  border: 1px solid var(--line);
}
.feats li.dim { color: var(--muted); }

.plan .btn { width: 100%; justify-content: center; }
.plan.pro .btn-primary { background: white; color: var(--ink); }
.plan.pro .btn-primary:hover { background: white; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 6px; }
.q {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
  transition: border-color .2s;
}
.q:hover { border-color: var(--line-2); }
.q summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}
.q summary::-webkit-details-marker { display: none; }
.q summary .pl {
  width: 20px; height: 20px; position: relative; flex-shrink: 0;
  transition: transform .25s;
}
.q summary .pl::before, .q summary .pl::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--ink);
  transform-origin: center;
}
.q summary .pl::before { width: 12px; height: 1.5px; margin-left: -6px; }
.q summary .pl::after { width: 1.5px; height: 12px; margin-top: -6px; transition: transform .25s; }
.q[open] summary .pl::after { transform: rotate(90deg); }
.q .ans {
  padding: 0 22px 22px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 70ch;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 70px 24px 40px;
  background: var(--bg-elev);
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 14px 0;
  font-weight: 500;
}
.foot-grid ul { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { color: var(--ink-2); font-size: 14px; }
.foot-grid a:hover { color: var(--accent-2); }
.foot-bottom {
  max-width: var(--max); margin: 50px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================================================
   Page-level utility classes
   These replace previously-inline style="..." attributes.
   Names are intentional, not utility-soup.
   =========================================================== */

/* Skip link for keyboard users (a11y, hidden until focused) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Hero copy: lead spacing under h1 */
.hero-copy .lead { margin-top: 22px; }

/* Section headers: consistent spacing under eyebrow */
.sec-head h2 { margin-top: 14px; }

/* Sections that abut the previous section (no top padding) */
.section--no-top-pad { padding-top: 0; }

/* Centered eyebrow used inside .anti hero and final CTA */
.eyebrow-centered { display: inline-flex; justify-content: center; }
.eyebrow-on-dark { color: rgba(255, 255, 255, 0.6); }

/* Voice-mirror saved-sample pill (config block) */
.voice-mirror-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 168, 0, 0.25);
  border-radius: 10px;
  color: var(--accent-2);
}

/* Step 03 typed glyph */
.step-glyph-text {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.step-glyph-text .l-2 { opacity: 0.8; }
.step-glyph-text .l-3 { opacity: 0.5; }
.caret-inline {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}

/* Fit Score side-column intro paragraph */
.fit-side-h3 { margin-top: 14px; }
.fit-side-lead {
  color: var(--ink-2);
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Final CTA panel (uses .anti as base, recenters everything) */
.cta-final {
  text-align: center;
  padding: clamp(56px, 8vw, 100px);
}
.cta-final h2 {
  margin: 18px auto 0;
  max-width: 18ch;
}
.cta-final h2 .accent-green { color: #14A800; }
.cta-final-lead {
  color: rgba(255, 255, 255, 0.75);
  margin: 22px auto 30px;
  max-width: 60ch;
}
.cta-final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-ghost-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: white;
}
.btn-ghost-on-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}
.cta-final-fineprint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  margin-top: 28px;
}

/* Footer brand spacing + tagline */
.foot-brand { margin-bottom: 14px; }
.foot-tagline {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 36ch;
  line-height: 1.55;
}

/* Modal-foot CTA: smaller variant of btn-primary */
.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

/* Fit Score legend bullet colors (one class per tier) */
.fit-bullet--strong { background: #14A800; }
.fit-bullet--good { background: #0E8A00; opacity: 0.7; }
.fit-bullet--fair { background: #FF6B35; }
.fit-bullet--poor { background: #B83A00; }

/* ===========================================================
   SUB-PAGE DESIGN SYSTEM
   Real site design — cards, callouts, timeline, forms, badges.
   Used by: privacy, terms, refund, changelog, contact, feedback
   =========================================================== */

/* ---------- Page container ---------- */
.subpage {
  padding: clamp(120px, 14vw, 160px) 24px clamp(60px, 8vw, 100px);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(20, 168, 0, 0.06), transparent 70%),
    var(--bg);
  min-height: 100vh;
}

.subpage-wrap {
  max-width: 980px;
  margin: 0 auto;
}

/* ---------- Page hero ---------- */
.page-hero {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.page-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 500;
  color: var(--ink);
}

.page-hero-title .accent {
  background: linear-gradient(120deg, #0B0B0F 0%, #14A800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 64ch;
  margin: 0;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero-meta-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ---------- Section blocks (numbered) ---------- */
.sec-block {
  margin-bottom: 56px;
  scroll-margin-top: 100px;
}

.sec-block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.sec-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(20, 168, 0, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
  height: fit-content;
  margin-top: 4px;
}

.sec-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
}

.sec-sub {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Body prose (used inside sections) ---------- */
.sec-body {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
}

.sec-body > p {
  margin: 0 0 14px;
}

.sec-body > p:last-child {
  margin-bottom: 0;
}

.sec-body strong,
.sec-body b {
  color: var(--ink);
  font-weight: 500;
}

.sec-body a {
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sec-body a:hover {
  color: var(--accent);
}

.sec-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink);
}

.sec-body ul,
.sec-body ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.sec-body li {
  margin-bottom: 7px;
  line-height: 1.6;
}

.sec-body ul li::marker {
  color: var(--accent);
}

/* ---------- Card grid (data we collect, etc.) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}

.info-card:hover {
  border-color: var(--line-2);
}

.info-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.info-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 168, 0, 0.2);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  flex-shrink: 0;
}

.info-card-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.info-card ul li {
  margin-bottom: 4px;
}

.info-card ul li::marker {
  color: var(--muted);
}

.info-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- Callout (highlighted info block) ---------- */
.callout {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--r-md);
  margin: 14px 0;
  font-size: 14.5px;
  line-height: 1.55;
}

.callout-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-body p {
  margin: 0 0 8px;
}

.callout-body p:last-child {
  margin-bottom: 0;
}

.callout-body strong {
  color: var(--ink);
}

.callout-info {
  background: var(--accent-soft);
  border: 1px solid rgba(20, 168, 0, 0.25);
  color: var(--ink-2);
}
.callout-info .callout-icon {
  background: var(--accent);
  color: white;
}

.callout-warn {
  background: rgba(255, 107, 53, 0.06);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: #6E2A0F;
}
.callout-warn .callout-icon {
  background: var(--warn);
  color: white;
}

.callout-neutral {
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.callout-neutral .callout-icon {
  background: var(--ink);
  color: white;
}

/* ---------- "We don't collect" negative-list block ---------- */
.dont-block {
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 22px;
  background: var(--bg-tint);
}

.dont-block-head {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dont-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px 18px;
}

.dont-block li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
}

.dont-block li::before {
  content: "×";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--warn);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
}

/* ---------- Data table styling ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  font-size: 14px;
  background: var(--bg-elev);
}

.data-table thead {
  background: var(--bg-tint);
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-bottom: 1px solid var(--line);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
  line-height: 1.55;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--bg);
}

.data-table td.label {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- Eligibility checkpoints (refund) ---------- */
.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}

.check-row .ck {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
}

.check-row-title {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 2px;
}

.check-row-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

/* ---------- Numbered steps (how to request a refund) ---------- */
.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.step-v {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
}

.step-v-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
}

.step-v-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.step-v-body strong {
  color: var(--ink);
}

/* ---------- Aftermath timeline (refund) ---------- */
.timeline-after {
  position: relative;
  padding-left: 28px;
  margin-top: 8px;
}

.timeline-after::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(20, 168, 0, 0.2));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 8px 0 18px 0;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-item-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
}

.timeline-item-body {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Changelog ---------- */
.changelog-stream {
  position: relative;
  padding-left: 28px;
}

.changelog-stream::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.cl-version {
  position: relative;
  padding: 0 0 48px 0;
  scroll-margin-top: 100px;
}

.cl-version:last-child {
  padding-bottom: 0;
}

.cl-version::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--line-2);
}

.cl-version.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.cl-version-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.cl-version-num {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cl-version-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cl-current-pill {
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 168, 0, 0.25);
  font-weight: 500;
}

.cl-group {
  margin-bottom: 18px;
}

.cl-group-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.cl-group-label.feat {
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(20, 168, 0, 0.25);
}

.cl-group-label.fix {
  background: rgba(59, 107, 255, 0.08);
  color: #2A4FB3;
  border: 1px solid rgba(59, 107, 255, 0.20);
}

.cl-group-label.backend {
  background: rgba(120, 70, 200, 0.08);
  color: #5B3A95;
  border: 1px solid rgba(120, 70, 200, 0.20);
}

.cl-group-label.other {
  background: var(--bg-tint);
  color: var(--muted);
  border: 1px solid var(--line);
}

.cl-group ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.cl-group ul li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

.cl-group ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line-2);
}

.cl-group ul li strong {
  color: var(--ink);
  font-weight: 500;
}

.cl-group ul li code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- Two-column layout (Contact + Feedback) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.two-col-info > * + * {
  margin-top: 22px;
}

.info-block {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  padding: 22px;
}

.info-block-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.info-block h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.info-block ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.info-block ul li {
  margin-bottom: 6px;
}

.info-block ul li strong {
  color: var(--ink);
}

.info-block p {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.response-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.response-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: var(--bg-tint);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.response-row-time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(20, 168, 0, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
  align-self: start;
}

.response-row-text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Forms ---------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6FE05A, var(--accent));
  background-size: 200% 100%;
  animation: form-shine 6s linear infinite;
}

@keyframes form-shine {
  to { background-position: 200% 0; }
}

.form-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-head h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.form-head p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 540px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field label .req {
  color: var(--warn);
  font-size: 14px;
  line-height: 1;
}

.field label .opt {
  font-size: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.45;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-display);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B7280' stroke-width='1.6' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.field-error {
  font-size: 12px;
  color: var(--warn);
  margin: 0;
  display: none;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  border-color: var(--warn);
}

.field.is-error .field-error {
  display: block;
}

.field-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}

/* Honeypot — visually hidden, never shown to humans */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.form-foot-note {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-foot-note svg {
  flex-shrink: 0;
  color: var(--accent);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  position: relative;
}

.form-submit:hover {
  background: black;
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-submit .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  display: none;
}

.form-submit.is-loading .label {
  visibility: hidden;
  position: relative;
}

.form-submit.is-loading .spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -7px;
  margin-top: -7px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form messages — success / error states */
.form-msg {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.form-msg.is-visible {
  display: block;
}

.form-msg-success {
  background: var(--accent-soft);
  border-color: rgba(20, 168, 0, 0.25);
  color: #0E5500;
}

.form-msg-success strong {
  color: var(--accent-2);
}

.form-msg-error {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.25);
  color: #6E2A0F;
}

/* ---------- TOC (Terms — sticky sidebar) ---------- */
.terms-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 880px) {
  .terms-layout {
    grid-template-columns: 1fr;
  }
}

.toc {
  position: sticky;
  top: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

@media (max-width: 880px) {
  .toc {
    position: static;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    margin-bottom: 24px;
  }
}

.toc-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
  display: block;
  padding: 4px 0;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  transition: color 0.15s, padding-left 0.15s;
}

.toc a:hover {
  color: var(--accent-2);
  padding-left: 4px;
}

.toc a .toc-num {
  display: inline-block;
  width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Page foot link bar ---------- */
.page-foot {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.page-foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.page-foot-links a {
  color: var(--accent-2);
  text-decoration: none;
}

.page-foot-links a:hover {
  text-decoration: underline;
}

.page-foot-links .sep {
  color: var(--muted);
  user-select: none;
}

.page-foot-links [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  cursor: default;
}

.page-foot-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.page-foot-meta a {
  color: var(--accent-2);
  text-decoration: none;
}

.page-foot-meta a:hover {
  text-decoration: underline;
}

/* ---------- Mobile padding adjustment ---------- */
@media (max-width: 600px) {
  .subpage {
    padding-left: 16px;
    padding-right: 16px;
  }
  .info-card {
    padding: 18px;
  }
  .form-card {
    padding: 22px;
  }
  .sec-block-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sec-num {
    justify-self: start;
  }
}

/* ---------- Sub-page utility classes (replace inline styles) ---------- */
.mt-sm  { margin-top: 10px; }
.mt-md  { margin-top: 14px; }
.mt-lg  { margin-top: 18px; }
.mt-xl  { margin-top: 24px; }
.mb-md  { margin-bottom: 14px; }
.text-accent2 { color: var(--accent-2); }
.text-ink     { color: var(--ink); }
.text-muted   { color: var(--muted); }
.text-center  { text-align: center; }

.legalese-upper {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.email-direct {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-align: center;
}

.email-direct a {
  color: var(--accent-2);
}

.note-sm {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* =====================================================================
   MOBILE RESPONSIVE FIXES
   ===================================================================== */

/* Hamburger button — injected by app.js; hidden on desktop */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-tint); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav.is-open .nav-toggle .icon-open { display: none; }
.nav.is-open .nav-toggle .icon-close { display: block; }

/* Mobile nav: hamburger reveals nav-links as a dropdown panel */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 20px 18px;
    background: rgba(250, 250, 247, 0.98);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
}

/* Tighter nav chrome on small screens */
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav-inner { gap: 10px; }
  .brand small { display: none; }
  .nav-cta .btn { padding: 8px 12px; font-size: 13px; }
}

/* Grids that previously had no mobile rule — collapse to single column */
@media (max-width: 640px) {
  .fit-legend,
  .fit-activity-grid,
  .client-stats { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .anti-stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Long URLs / code in legal pages — prevent horizontal overflow */
@media (max-width: 540px) {
  .subpage code, .subpage pre { word-break: break-word; }
  .subpage-wrap { padding-left: 16px; padding-right: 16px; }
}
