/* ============================================================
   Blader Humanizer — dark, dev-focused landing
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* surfaces */
  --bg:        #07070a;
  --bg-2:      #0a0a0f;
  --surface:   #101017;
  --surface-2: #16161f;
  --surface-3: #1c1c27;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --border-accent: rgba(99,102,241,0.40);

  /* text */
  --text:   #f3f3f6;
  --muted:  #9b9baa;
  --faint:  #66666f;

  /* accent */
  --accent:      #6366f1;
  --accent-2:    #8b5cf6;
  --accent-soft: rgba(99,102,241,0.14);
  --accent-line: rgba(99,102,241,0.30);

  /* semantic */
  --good: #34d399;
  --warn: #fbbf24;
  --bad:  #fb7185;

  /* category hues for pattern highlights */
  --cat-diction:    #f472b6;
  --cat-structure:  #818cf8;
  --cat-filler:     #fbbf24;
  --cat-punct:      #34d399;
  --cat-transition: #22d3ee;

  --font-sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-wide background texture: faint grid + accent glow up top */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(99,102,241,0.16), transparent 70%),
    radial-gradient(700px 500px at 85% 8%, rgba(139,92,246,0.08), transparent 70%),
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(99,102,241,0.34); color: #fff; }

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

.mono { font-family: var(--font-mono); }

/* eyebrow / kicker */
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--accent-line);
}

/* ============================================================
   Top bar — unofficial disclaimer
   ============================================================ */
.topbar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: rgba(7,7,10,0.6);
  backdrop-filter: blur(6px);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 0;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.topbar b { color: var(--muted); font-weight: 500; }
.topbar .dot { color: var(--accent); }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-right a:hover { color: var(--muted); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,7,10,0.72);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .wordmark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
}
.brand .wordmark .slash { color: var(--accent); margin: 0 1px; }
.brand .wordmark .caret {
  display: inline-block;
  width: 8px; height: 15px;
  margin-left: 4px;
  background: var(--accent);
  transform: translateY(2px);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
}
nav.main a {
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
nav.main a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
nav.main a.active { color: var(--text); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  transition: border-color .15s, color .15s;
}
.header-cta:hover { border-color: var(--border-accent); color: var(--text); }
.header-cta svg { width: 15px; height: 15px; }

.nav-toggle { display: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .12s ease, box-shadow .2s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #6f72f5, #5a5df0);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px -8px rgba(99,102,241,0.7);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 32px -8px rgba(99,102,241,0.9); }

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--border-accent); background: var(--surface-3); }

.btn-quiet {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--muted);
}
.btn-quiet:hover { color: var(--text); border-color: var(--border-accent); }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
  text-align: center;
}
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero .badge .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.18);
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 auto 18px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #a5a7ff, #c4b5fd 55%, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ============================================================
   Tool card
   ============================================================ */
.tool-shell {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.tool-shell::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(150deg, rgba(99,102,241,0.55), rgba(139,92,246,0.18) 40%, transparent 70%);
  z-index: 0;
  opacity: 0.8;
}
.tool {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -32px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.02) inset;
  overflow: hidden;
}
.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.014);
}
.tool-head .title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.tool-head .dots { display: flex; gap: 6px; }
.tool-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); display: block; }
.tool-head .seg {
  display: flex; gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}
.tool-head .seg button {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  background: none; border: none; cursor: pointer;
  padding: 4px 10px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.tool-head .seg button.on { color: var(--text); background: var(--surface-3); }

.editor-wrap { position: relative; }
.editor {
  width: 100%;
  min-height: 188px;
  resize: vertical;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  padding: 22px 22px 14px;
  display: block;
}
.editor::placeholder { color: var(--faint); }

/* highlighted read-only overlay view */
.analyzed {
  display: none;
  padding: 22px 22px 14px;
  font-size: 16px;
  line-height: 1.7;
  min-height: 188px;
  white-space: pre-wrap;
  word-break: break-word;
}
.analyzed mark {
  background: transparent;
  color: inherit;
  border-radius: 3px;
  padding: 1px 2px;
  box-shadow: inset 0 -2px 0 0 var(--hl, var(--accent));
  cursor: help;
  position: relative;
  transition: background .15s;
}
.analyzed mark:hover { background: color-mix(in srgb, var(--hl) 18%, transparent); }

.tool-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  flex-wrap: wrap;
}
.tool-foot .count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-right: auto;
  display: flex;
  gap: 14px;
  white-space: nowrap;
}
.tool-foot .count b { color: var(--muted); font-weight: 500; }
.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   Results panel
   ============================================================ */
.results {
  display: none;
  border-top: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 200px at 18% 0%, rgba(99,102,241,0.07), transparent 70%),
    var(--bg-2);
}
.results.show { display: grid; grid-template-columns: 248px 1fr; }
.results-score {
  border-right: 1px solid var(--border);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.dial { position: relative; width: 168px; height: 168px; }
.dial svg { width: 100%; height: 100%; transform: rotate(135deg); }
.dial .track { fill: none; stroke: var(--surface-3); stroke-width: 12; stroke-linecap: round; }
.dial .fill  { fill: none; stroke: var(--dial, var(--accent)); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1), stroke .6s; filter: drop-shadow(0 0 8px var(--dial-glow, transparent)); }
.dial .center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dial .num { font-family: var(--font-mono); font-size: 46px; font-weight: 600; line-height: 1; color: var(--text); }
.dial .num .pct { font-size: 18px; color: var(--faint); }
.dial .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-top: 5px; }
.verdict { font-family: var(--font-mono); font-size: 13.5px; font-weight: 600; margin-top: 12px; }
.verdict-sub { font-size: 12.5px; color: var(--faint); max-width: 22ch; }

.results-list { padding: 22px 22px 24px; }
.results-list .rl-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.results-list h3 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.results-list .rl-head span { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }
.findings { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; }
.finding {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
}
.finding:last-child { border-bottom: none; }
.finding .swatch { width: 9px; height: 9px; border-radius: 2px; margin-top: 6px; background: var(--hl); }
.finding .f-main .f-label { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.finding .f-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
}
.finding .f-desc { font-size: 13px; color: var(--muted); margin-top: 3px; text-wrap: pretty; }
.finding .f-count {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px;
  padding: 3px 9px; white-space: nowrap;
}
.results-clean {
  text-align: center; padding: 40px 22px;
}
.results-clean .big { font-size: 30px; margin-bottom: 8px; }
.results-clean p { color: var(--muted); margin: 4px 0 0; }

/* toast */
.toast {
  position: fixed;
  bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 11px 18px;
  border-radius: 10px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--good); display: inline-flex; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section.band { position: relative; z-index: 1; padding: 100px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 56px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 16px 0 14px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; text-wrap: pretty; }
.section-head .kicker { justify-content: center; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
}
.step .n {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em;
}
.step .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  color: #c7c9ff; margin: 16px 0 16px;
}
.step .ic svg { width: 20px; height: 20px; }
.step h4 { font-size: 17px; margin: 0 0 7px; font-weight: 600; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 14px; margin: 0; text-wrap: pretty; }
.step .arrow {
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  color: var(--faint); z-index: 2;
}
.step:last-child .arrow { display: none; }

/* ============================================================
   Pattern library
   ============================================================ */
.patgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.patcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s, transform .2s, background .2s;
}
.patcard:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }
.patcard .pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.patcard .pc-cat {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; border: 1px solid var(--hl-line, var(--border));
  color: var(--hl, var(--muted));
  background: color-mix(in srgb, var(--hl) 8%, transparent);
}
.patcard .pc-freq { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.patcard h4 { font-size: 16.5px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.patcard p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; text-wrap: pretty; }
.patcard .eg {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5;
  color: var(--faint);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--hl, var(--accent));
  border-radius: 0 7px 7px 0;
  padding: 9px 12px;
}
.patcard .eg s { color: var(--bad); text-decoration-color: rgba(251,113,133,0.5); }
.patcard .eg em { color: var(--good); font-style: normal; }
.pat-more { text-align: center; margin-top: 36px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.qa {
  border-bottom: 1px solid var(--border);
}
.qa button {
  width: 100%;
  text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.qa button .pm { color: var(--accent); flex: none; transition: transform .25s; font-family: var(--font-mono); font-size: 20px; }
.qa.open button .pm { transform: rotate(45deg); }
.qa .a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.qa .a-inner { padding: 0 4px 24px; color: var(--muted); font-size: 15px; max-width: 68ch; text-wrap: pretty; }
.qa.open .a { max-height: 320px; }

/* ============================================================
   CTA strip + Footer
   ============================================================ */
.cta {
  position: relative; z-index: 1;
  text-align: center;
  padding: 80px 0 92px;
}
.cta-inner {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 220px at 50% 0%, rgba(99,102,241,0.18), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--bg-2));
  padding: 52px 40px;
}
.cta-inner h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 600; }
.cta-inner p { color: var(--muted); margin: 0 0 28px; font-size: 16.5px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer.site {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 40px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--faint); font-size: 13.5px; max-width: 34ch; margin: 0; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 16px; font-weight: 500;
}
.foot-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--faint);
  flex-wrap: wrap; gap: 12px;
}
.foot-bottom .disc { color: var(--faint); }
.foot-bottom a:hover { color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  nav.main, .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 9px;
    background: var(--surface-2); border: 1px solid var(--border-strong);
    color: var(--text); cursor: pointer;
  }
  .results.show { grid-template-columns: 1fr; }
  .results-score { border-right: none; border-bottom: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .step .arrow { display: none; }
  .patgrid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  section.band { padding: 72px 0; }
}
@media (max-width: 560px) {
  .topbar-right { display: none; }
  .topbar .wrap { font-size: 10.5px; line-height: 1.5; padding: 7px 0; }
  .tool-actions { width: 100%; }
  .tool-actions .btn { flex: 1; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Shared subpage utilities (chatgpt / install / patterns)
   ============================================================ */
.subhero { position: relative; z-index: 1; padding: 72px 0 8px; }
.subhero .kicker { justify-content: flex-start; }
.subhero h1 {
  font-size: clamp(32px, 5vw, 54px); letter-spacing: -0.03em; font-weight: 600;
  margin: 16px 0 16px; max-width: 19ch; text-wrap: balance; line-height: 1.05;
}
.subhero h1 .grad {
  background: linear-gradient(100deg, #a5a7ff, #c4b5fd 55%, #818cf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subhero p.lead { color: var(--muted); font-size: 18.5px; max-width: 58ch; margin: 0 0 28px; text-wrap: pretty; }
.subhero .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba .col { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; background: var(--surface); }
.ba .col.before { border-color: rgba(251,113,133,0.22); }
.ba .col.after  { border-color: rgba(52,211,153,0.22); }
.ba .col .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ba .before .tag { color: var(--bad); }
.ba .after .tag  { color: var(--good); }
.ba .col p { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--text); }
.ba .before p { color: var(--muted); }
.ba .col .meta-score { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.ba .col .meta-score b { font-weight: 600; }
mark.tell { background: transparent; color: inherit; box-shadow: inset 0 -2px 0 0 var(--bad); border-radius: 3px; padding: 0 1px; }
mark.fixt { background: transparent; color: inherit; box-shadow: inset 0 -2px 0 0 var(--good); border-radius: 3px; padding: 0 1px; }

/* option cards */
.optcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.optcard {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 30px 30px 28px; background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); display: flex; flex-direction: column;
}
.optcard .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; color: #c7c9ff; margin-bottom: 18px; }
.optcard .ic svg { width: 22px; height: 22px; }
.optcard h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.optcard p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; flex: 1; text-wrap: pretty; }

/* code block */
.code { font-family: var(--font-mono); font-size: 13px; line-height: 1.65; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); white-space: pre-wrap; overflow: auto; }
.code .c-key { color: #a5a7ff; }
.code .c-cmt { color: var(--faint); }
.code .c-str { color: #34d399; }
.code .c-h   { color: var(--text); font-weight: 600; }

/* numbered list */
.numlist { counter-reset: step; display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
.numlist li { list-style: none; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: start; }
.numlist li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.numlist li:last-child { border-bottom: none; }
.numlist h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.numlist p { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* pattern category groups */
.cat-group .cat-h { display: flex; align-items: center; gap: 12px; margin: 40px 0 18px; }
.cat-group .cat-h .dot { width: 10px; height: 10px; border-radius: 3px; }
.cat-group .cat-h h3 { font-size: 18px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.cat-group .cat-h .ln { flex: 1; height: 1px; background: var(--border); }
.cat-group .cat-h span { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.divider { border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 760px) {
  .ba, .optcards { grid-template-columns: 1fr; }
}
