:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #666666;
  --accent: #b9ff4b;
  --accent-10: rgba(185, 255, 75, 0.1);
  --accent-20: rgba(185, 255, 75, 0.2);
  --accent-50: rgba(185, 255, 75, 0.5);
  --font-mono: "Space Mono", "Courier New", monospace;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
strong { font-weight: 700; color: var(--text); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.accent { color: var(--accent); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }
.anchor { scroll-margin-top: 96px; }

/* Shell */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.shell-main { flex: 1; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: 64px;
  background: rgba(10, 10, 10, 0.85);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: var(--font-mono); font-size: 18px; line-height: 28px; font-weight: 700; color: var(--text); transition: opacity .15s; }
.wordmark:hover { opacity: .8; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--muted); transition: color .15s; }
.site-nav a:hover { color: var(--text); }

.site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 32px 0; }
.site-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-tagline, .footer-nav a { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.footer-nav { display: flex; align-items: center; gap: 16px; }
.footer-nav a { transition: color .15s; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { font-size: 12px; line-height: 16px; color: var(--muted); }

/* Shared type */
.kicker { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--accent); margin-bottom: 20px; }
.h2 { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.h2-loose, .h2-faq { margin-bottom: 24px; }
.h2-sm { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: clamp(1.25rem, 3vw, 1.5rem); }

/* Home hero */
.home-hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.home-h1 { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 24px; font-size: clamp(2rem, 6vw, 4rem); max-width: 15ch; }
.home-lead { font-size: 18px; line-height: 1.625; color: var(--muted); max-width: 65ch; }
.jump-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.jump {
  display: inline-block; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700;
  padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text);
  transition: border-color .15s, background-color .15s;
}
.jump:hover { border-color: var(--accent); }
.jump-primary { border-color: var(--accent); color: var(--accent); }
.jump-primary:hover { background: var(--accent-10); }

/* Bands */
.band { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--border); }
.band-last { padding-bottom: 80px; }
.intro-block { max-width: 65ch; margin-bottom: 40px; }
.intro-block p { color: var(--muted); line-height: 1.625; }
.intro-block p + p { margin-top: 16px; }
.intro-block-loose p:last-child { margin-bottom: 40px; }
.more-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.more-note a { color: var(--accent); }
.more-note a:hover { text-decoration: underline; }
.more-note-narrow { max-width: 640px; margin: -32px auto 0; padding: 0 24px; }
.more-note-wide { margin-top: -32px; padding: 0 24px; }
.more-note-dir { margin-top: -32px; margin-bottom: 8px; }

/* Guide */
.guide-p { color: var(--muted); line-height: 1.625; max-width: 70ch; }
.guide-p + .guide-p { margin-top: 16px; }
.guide-p:has(+ .disc-list) { margin-bottom: 20px; }
.guide-p:has(+ .steps) { margin-bottom: 28px; }
.guide-after { margin-top: 20px; }
.disc-list { display: flex; flex-direction: column; gap: 12px; max-width: 70ch; list-style: disc; padding-left: 20px; color: var(--muted); line-height: 1.625; }
.steps { display: flex; flex-direction: column; gap: 20px; max-width: 70ch; list-style: decimal; padding-left: 20px; color: var(--muted); line-height: 1.625; }
.cases { display: grid; gap: 32px; max-width: 70ch; }
.cases h3 { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cases p { color: var(--muted); line-height: 1.625; }

/* FAQ */
.faq-list { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 16px; }
.faq-item summary { font-family: var(--font-mono); font-weight: 700; color: var(--text); cursor: pointer; padding-right: 16px; }
.faq-item p { color: var(--muted); line-height: 1.625; margin-top: 12px; }

/* Tool pages */
.tool-hero { text-align: center; padding: 64px 0; }
.tool-h1 { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin-bottom: 16px; font-size: clamp(1.75rem, 5vw, 2.5rem); }
.tool-intro { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 50ch; margin: 0 auto; }
.tool-intro-wide { max-width: 55ch; }
.notfound-cta { margin-top: 32px; }
.seo { padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--border); }
.seo-last { padding-bottom: 64px; }
.seo-p { color: var(--muted); line-height: 1.625; margin-bottom: 24px; max-width: 65ch; }
.dot-list { display: flex; flex-direction: column; gap: 16px; }
.dot-list + .h2-sm { margin-top: 24px; }
.dot-list li { position: relative; padding-left: 24px; color: var(--muted); line-height: 1.625; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--accent); border-radius: 9999px; }
.dot-list a { color: var(--accent); }
.dot-list a:hover { text-decoration: underline; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-list a { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--accent); transition: opacity .15s; }
.related-list a:hover { opacity: .8; }
.related-list span { font-size: 14px; line-height: 20px; color: var(--muted); margin-left: 8px; }
.calc-standalone { padding: 0; }

/* Legal */
.legal { padding: 64px 0; }
.legal-inner { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.legal-h1 { margin-bottom: 32px; }
.legal-body { color: var(--muted); line-height: 1.625; }
.legal-body h2 { font-family: var(--font-mono); font-weight: 700; color: var(--text); margin: 32px 0 12px; font-size: 18px; line-height: 28px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body ul { list-style: disc inside; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.legal-body p + p, .legal-body ul + p { margin-top: 12px; }
.legal-body a { color: var(--accent); }
.legal-body a:hover { text-decoration: underline; }
.legal-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0 16px; }
.legal-body hr + p { font-size: 14px; line-height: 20px; }

/* Buttons */
.btn-solid {
  display: block; text-align: center; font-family: var(--font-mono); font-size: 16px; line-height: 24px; font-weight: 700;
  padding: 16px 32px; background: var(--accent); color: var(--bg); border-radius: var(--radius);
  transition: transform .15s, box-shadow .15s;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(185, 255, 75, .3); }
.btn-block { width: 100%; }
.btn-outline {
  font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700; padding: 12px 24px;
  color: var(--accent); border: 2px solid var(--accent); border-radius: var(--radius); transition: background-color .15s;
}
.btn-outline:hover { background: var(--accent-10); }
.btn-text { width: 100%; font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--muted); padding: 8px 0; transition: color .15s; }
.btn-text:hover { color: var(--text); }

/* Quiz */
.quiz { max-width: 640px; margin: 0 auto; padding: 0 24px 64px; }
.quiz-progress { margin-bottom: 32px; }
.quiz-progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.quiz-meta { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--muted); }
.quiz-bar { height: 4px; background: var(--border); border-radius: 9999px; overflow: hidden; }
.quiz-bar-fill { height: 100%; background: var(--accent); transition: width .3s ease-out; }
.quiz-stage, .quiz-result { transition: opacity .2s ease-out, transform .2s ease-out; }
.is-fading { opacity: 0; transform: translateY(16px); }
.quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; }
.quiz-question { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 24px; line-height: 1.625; float: left; width: 100%; }
.quiz-options { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quiz-option {
  font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700; padding: 12px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); color: var(--text); transition: border-color .15s, background-color .15s, color .15s;
}
.quiz-option:hover { border-color: var(--accent-50); }
.quiz-option[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.quiz-submit { margin-top: 24px; }
.quiz-score-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; margin-bottom: 32px; }
.quiz-score-card .quiz-meta { margin-bottom: 8px; }
.quiz-tier { font-family: var(--font-mono); font-size: 30px; line-height: 36px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.quiz-score { font-family: var(--font-mono); font-size: 48px; line-height: 1; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.quiz-score-max { color: var(--muted); font-size: 24px; line-height: 32px; }
.quiz-desc { color: var(--muted); max-width: 40ch; margin: 0 auto; }
.quiz-actions { display: flex; flex-direction: column; gap: 16px; }
.quiz-feedback { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--accent); text-align: center; }

/* Calculator */
.calc { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }
.calc-inputs { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field-grow { flex: 1; }
.calc-label { font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700; }
.calc-hours-row { display: flex; align-items: center; gap: 16px; }
.calc-range { flex: 1; height: 6px; background: var(--border); border-radius: 9999px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--accent); border-radius: 9999px; cursor: pointer; transition: transform .15s; }
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--accent); border: none; border-radius: 9999px; cursor: pointer; }
.calc-hours { display: flex; align-items: baseline; gap: 4px; flex-shrink: 0; }
.calc-number { font-family: var(--font-mono); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--accent); width: 64px; text-align: right; outline: none; -moz-appearance: textfield; appearance: textfield; }
.calc-number::-webkit-outer-spin-button, .calc-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-unit { font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--muted); }
.calc-select { font-family: var(--font-mono); font-size: 16px; line-height: 24px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 16px; cursor: pointer; outline: none; transition: border-color .15s; }
.calc-select:focus { border-color: var(--accent); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 32px; }
.calc-card { display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 24px; text-align: center; }
.calc-emoji { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.calc-value { font-family: var(--font-mono); font-size: 36px; line-height: 1; font-weight: 700; color: var(--accent); }
.calc-caption { font-size: 12px; line-height: 16px; color: var(--muted); max-width: 18ch; }
.calc-share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-copy, .btn-next {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 14px; line-height: 20px; font-weight: 700;
  padding: 8px 24px; border: 2px solid var(--accent); border-radius: var(--radius-sm); transition: all .15s;
}
.btn-copy { background: var(--accent); color: var(--bg); }
.btn-copy:hover { background: transparent; color: var(--accent); }
.btn-next { color: var(--accent); }
.btn-next:hover { background: var(--accent-10); }
.calc-feedback { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--accent); }

/* Directory */
.directory { scroll-margin-top: 96px; }
.directory-start { padding-bottom: 32px; }
.start-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.start-title { font-family: var(--font-mono); font-size: 18px; line-height: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.start-box p { color: var(--muted); line-height: 1.625; max-width: 65ch; }
.directory-filters { padding-bottom: 24px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 700; padding: 8px 16px; border-radius: var(--radius);
  border: 2px solid var(--border); color: var(--muted); transition: all .15s;
}
.filter-btn:hover { border-color: var(--accent-50); color: var(--text); }
.filter-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-10); }
.directory-list { padding-bottom: 64px; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ext-card { display: flex; flex-direction: column; gap: 12px; height: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 20px; transition: all .2s; }
.ext-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.ext-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ext-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ext-icon { width: 40px; height: 40px; border-radius: var(--radius); background: var(--accent-20); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ext-icon span { font-family: var(--font-mono); font-size: 18px; line-height: 28px; font-weight: 700; color: var(--accent); }
.ext-name { font-family: var(--font-mono); font-size: 16px; line-height: 24px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-badge { flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid; }
.price-free { background: rgba(0, 201, 80, .2); color: #05df72; border-color: rgba(0, 201, 80, .3); }
.price-freemium { background: rgba(239, 177, 0, .2); color: #fcc800; border-color: rgba(239, 177, 0, .3); }
.price-paid { background: rgba(251, 44, 54, .2); color: #ff6467; border-color: rgba(251, 44, 54, .3); }
.ext-desc { font-size: 14px; line-height: 1.625; color: var(--muted); flex: 1; }
.ext-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.ext-platforms span { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: rgba(42, 42, 42, .5); padding: 2px 8px; border-radius: var(--radius-sm); }

@media (min-width: 768px) {
  .home-hero { padding: 96px 0; }
  .home-lead { font-size: 20px; }
  .tool-hero { padding: 80px 0; }
  .legal { padding: 80px 0; }
  .seo-last { padding-bottom: 80px; }
  .directory-list { padding-bottom: 80px; }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .quiz-card { padding: 32px; }
  .quiz-question { font-size: 18px; }
  .quiz-tier { font-size: 36px; line-height: 40px; }
  .quiz-score { font-size: 60px; }
  .calc-inputs { flex-direction: row; align-items: flex-start; }
  .calc-grid, .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .calc-grid, .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
