:root {
  --ink: #f2f6f3;
  --muted: #a9b7b0;
  --base: #07120f;
  --panel: #0d1b17;
  --line: rgba(201, 222, 211, 0.17);
  --lime: #b9f36d;
  --mint: #48d9a0;
  --paper: #f1efe7;
  --paper-ink: #17211d;
  --radius: 22px;
  --shell: min(1160px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--base); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.consent-panel-visible { padding-top: var(--consent-panel-height, 0); }
a { color: inherit; }
button { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; background: var(--lime); color: #07120f; padding: 10px 16px; border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.05rem; letter-spacing: -.02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--lime); color: var(--lime); border-radius: 50%; font: 800 .75rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: -.08em; }
.brand strong { color: var(--lime); }
nav { display: flex; gap: 26px; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--lime); }

.hero { min-height: 680px; padding-block: 110px 90px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 90px; align-items: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 6% 45% auto -20%; height: 420px; background: radial-gradient(circle, rgba(72,217,160,.15), transparent 67%); pointer-events: none; }
.eyebrow, .terminal-label, .card-index, .tool-number { margin: 0 0 18px; color: var(--lime); text-transform: uppercase; letter-spacing: .16em; font: 700 .75rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 28px; font-size: clamp(3.3rem, 7vw, 6.9rem); line-height: .92; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: var(--lime); font-style: normal; }
h2 { font-size: clamp(2rem, 4vw, 3.9rem); line-height: 1; letter-spacing: -.045em; }
h3 { font-size: 1.45rem; line-height: 1.1; }
.lede { max-width: 720px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 760; cursor: pointer; }
.button-primary { background: var(--lime); color: #07120f; border-color: var(--lime); }
.button-primary:hover { background: #cdfa92; transform: translateY(-1px); }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { border-color: var(--lime); color: var(--lime); }

.signal-card { padding: 28px; background: linear-gradient(145deg, rgba(18,40,33,.93), rgba(8,20,16,.96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.signal-card ol { list-style: none; margin: 0; padding: 0; }
.signal-card li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 21px 0; border-top: 1px solid var(--line); }
.signal-card li > span { color: var(--mint); font: 700 .75rem ui-monospace, monospace; }
.signal-card strong { display: block; margin-bottom: 3px; font-size: 1.03rem; }
.signal-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.feature-band { background: var(--paper); color: var(--paper-ink); }
.feature-grid { padding-block: 90px; display: grid; grid-template-columns: 1.1fr .7fr; gap: 70px; align-items: center; position: relative; }
.feature-grid .eyebrow { color: #3d664d; }
.feature-grid p { color: #506058; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 0; list-style: none; }
.checks li { font-size: .9rem; }
.checks li::before { content: "✓"; margin-right: 8px; color: #27794e; font-weight: 900; }
.cost-window { padding: 28px; border: 1px solid #c8ccc5; border-radius: var(--radius); background: #fbfaf6; }
.window-label { color: #5d6c64; font: 700 .75rem ui-monospace, monospace; letter-spacing: .12em; }
.cost-window > strong { display: block; margin: 12px 0 20px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.cost-window div { display: flex; justify-content: space-between; border-top: 1px solid #d9ddd6; padding: 10px 0; font-size: .9rem; }
.cost-window small { display: block; margin-top: 12px; color: #6f7b75; }
.feature-link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 22px 0 10px; border-top: 1px solid #bfc7bf; text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.feature-link span { font-size: 1.8rem; }

.library { padding-block: 110px; }
.section-heading { display: grid; grid-template-columns: .5fr 1fr 1fr; gap: 35px; align-items: end; margin-bottom: 45px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > p:last-child { color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.library-card { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: rgba(255,255,255,.018); transition: border-color .2s, transform .2s; }
.library-card:hover { transform: translateY(-3px); border-color: rgba(185,243,109,.65); }
.library-card p { color: var(--muted); }
.library-card b { display: inline-block; margin-top: 20px; color: var(--lime); }
.active-card { background: linear-gradient(140deg, rgba(72,217,160,.09), rgba(255,255,255,.01)); }
.trust { margin-bottom: 110px; padding: 46px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.trust h2 { font-size: clamp(2rem, 4vw, 3rem); }
.trust div:last-child { color: var(--muted); }
.trust a { color: var(--ink); }

.page-hero { padding-block: 100px 70px; }
.page-hero h1 { max-width: 920px; }
.tool-list { padding-bottom: 120px; }
.tool-row { display: grid; grid-template-columns: .4fr 1.2fr .5fr; gap: 45px; padding: 45px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-pill { display: inline-block; padding: 5px 10px; border-radius: 999px; background: rgba(185,243,109,.12); color: var(--lime); font: 700 .75rem ui-monospace, monospace; text-transform: uppercase; }
.tool-number { margin-top: 22px; color: var(--muted); }
.tool-row p { color: var(--muted); }
.tool-row .checks { display: block; }
.tool-row .checks li { margin: 7px 0; }
.tool-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.archive-note { max-width: 760px; margin: 55px 0 0 auto; padding-left: 24px; border-left: 2px solid var(--line); }
.archive-note p { color: var(--muted); }

/* The fixed consent strip reserves its measured height through
 * --consent-panel-height, so it cannot cover page content at any viewport. */
.consent-panel { position: fixed; inset-inline: 0; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; max-height: min(30vh, 140px); overflow-y: auto; padding: 6px 20px; background: var(--panel); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 8px 32px rgba(0,0,0,.35); border-radius: 0; }
.consent-panel[hidden] { display: none; }
.consent-panel p.terminal-label { flex: 1 1 100%; margin: 0; font-size: .75rem; }
.consent-panel h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.3; }
.consent-panel p:not(.terminal-label) { flex: 1 1 18rem; min-width: 0; margin: 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 0 auto; }
.consent-panel > a:last-child { font-size: .75rem; color: var(--lime); text-decoration: underline; white-space: nowrap; }

footer { border-top: 1px solid var(--line); }
.footer-grid { min-height: 160px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: center; color: var(--muted); font-size: .9rem; }
.footer-grid > div { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.footer-grid button { padding: 0; color: var(--muted); background: none; border: 0; text-decoration: underline; cursor: pointer; }

@media (max-width: 850px) {
  .hero, .feature-grid, .trust, .tool-row { grid-template-columns: 1fr; gap: 38px; }
  .hero { min-height: 0; padding-block: 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .tool-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; padding-block: 35px; }
  .footer-grid > div { justify-content: flex-start; }
}

@media (max-width: 590px) {
  :root { --shell: min(100% - 28px, 1160px); }
  .site-header { min-height: 76px; }
  .site-header nav { gap: 12px; }
  .site-header nav a:nth-child(2) { display: none; }
  h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .feature-grid, .library { padding-block: 70px; }
  .trust { padding: 28px; margin-bottom: 70px; }
  /* Keep the first-visit choice compact without removing its accessible
   * name or explanation from the accessibility tree. */
  .consent-panel { padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; max-height: min(30vh, 100px); }
  .consent-panel p.terminal-label,
  .consent-panel h2,
  .consent-panel p:not(.terminal-label),
  .consent-panel > a:last-child { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .consent-actions { width: 100%; margin: 0; gap: 8px; }
  .consent-actions .button { flex: 1 1 0; min-width: 0; }
}

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