:root {
  color-scheme: dark;
  --bg: #060b08;
  --panel: #0c150f;
  --line: #274132;
  --text: #eef4ef;
  --muted: #a9b6ad;
  --green: #66ff9a;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
.wrap { width: min(100% - 3rem, 70rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-150%); background: var(--green); color: var(--bg); padding: .7rem; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid #285437; background: #08110b; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; font-weight: 720; white-space: nowrap; letter-spacing: -.025em; }
.brand-icon { display: grid; place-items: center; position: relative; width: 2rem; height: 2rem; border: 1px solid #3b6a4d; background: #13251a; border-radius: .42rem; color: var(--green); }
.brand-icon::before { content: ""; width: .82rem; height: 1.15rem; border: 1px solid; border-radius: 2px; }
.brand-icon::after { content: ""; position: absolute; width: .46rem; height: .16rem; top: .66rem; background: currentColor; box-shadow: 0 .3rem 0 -.03rem currentColor; }
.nav nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); color: var(--muted); font: .87rem var(--mono); }
.nav nav a:hover, .brand:hover { color: var(--green); }

.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; padding: .65rem 1.12rem; border: 1px solid transparent; border-radius: .45rem; font-size: .92rem; font-weight: 720; white-space: nowrap; transition: background-color .18s, border-color .18s; }
.button-primary { background: var(--green); color: #07140c; border-color: var(--green); }
.button-primary:hover:enabled, a.button-primary:hover { background: #a3f8c5; border-color: #a3f8c5; }
.button-outline { color: var(--text); background: #0c1510; border-color: #3a5143; }
.button-outline:hover { background: #182c20; border-color: var(--green); }
.nav .button { min-height: 2.5rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 74% 40%, #102c1a, var(--bg) 72%); border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; z-index: -3; inset: 0 0 0 24%; background: url("/hero.webp") center right / cover no-repeat; opacity: .71; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 44%); }
.matrix-rain { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #060b08ee, #060b08cc 29%, #060b0820 62%, transparent 82%), linear-gradient(0deg, var(--bg), transparent 26%); }
.hero-inner { display: flex; align-items: center; min-height: clamp(32rem, 49vw, 42rem); padding-block: 4rem; }
.hero-copy { width: min(100%, 40rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--green); font: 650 .81rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1.15rem; }
.eyebrow-line { display: inline-block; width: 1.55rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3rem, 6.9vw, 6.2rem); line-height: .98; letter-spacing: -.079em; font-weight: 770; }
.hero h1 span { text-shadow: 0 0 2.3rem #31e96940; }
h1 span, h2 span { color: var(--green); }
.hero-description { margin-top: 1.6rem; max-width: 28rem; color: #c0cdc3; font-size: clamp(1.04rem, 2vw, 1.18rem); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.hero-note { margin-top: .95rem; font-size: .88rem; }
.rain-toggle { position: absolute; right: max(1rem, calc((100% - 70rem) / 2)); top: 1.35rem; min-height: 2.2rem; padding: .4rem .65rem; border: 1px solid #3d784e; border-radius: .28rem; background: #07150ee8; color: #b1ffc8; font: .8rem var(--mono); }
.rain-toggle:hover { border-color: var(--green); }

.section { padding-block: clamp(3.4rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.45rem); line-height: 1.03; letter-spacing: -.058em; }
h3 { font-size: 1.13rem; line-height: 1.3; letter-spacing: -.024em; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 2rem; background: var(--line); border: 1px solid var(--line); border-radius: .72rem; overflow: hidden; }
.feature { background: var(--panel); padding: clamp(1.2rem, 3vw, 1.9rem); }
.feature p { margin-top: .55rem; }
.feature-icon { display: block; position: relative; margin-bottom: 1.5rem; width: 2.45rem; height: 2.45rem; border: 1px solid #326347; border-radius: .42rem; background: #172b1f; color: var(--green); }
.feature-icon::before, .feature-icon::after { content: ""; position: absolute; }
.icon-lock::before { width: .58rem; height: .56rem; border: 1px solid; border-radius: .4rem .4rem 0 0; top: .51rem; left: .89rem; }
.icon-lock::after { width: .92rem; height: .7rem; border: 1px solid; border-radius: .15rem; top: 1rem; left: .72rem; background: #172b1f; }
.icon-pad::before { top: .5rem; left: .78rem; width: .82rem; height: 1.3rem; border: 1px solid; border-radius: .15rem; }
.icon-pad::after { top: .79rem; left: 1rem; width: .4rem; height: .16rem; background: currentColor; box-shadow: 0 .32rem 0 -.04rem currentColor; }
.icon-timer::before { top: .61rem; left: .6rem; width: 1.19rem; height: 1.19rem; border: 1px solid; border-radius: 50%; }
.icon-timer::after { top: .86rem; left: 1.16rem; width: .36rem; height: .42rem; border-left: 1px solid; border-bottom: 1px solid; }

.purge { display: grid; grid-template-columns: 1.13fr 1fr; align-items: center; gap: 2rem; margin-top: 1.15rem; padding: clamp(1.3rem, 4vw, 2.65rem); background: linear-gradient(115deg, #15281d, #101813 74%); border: 1px solid #385844; border-radius: .72rem; }
.purge h3 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.047em; }
.purge-copy > p:last-child { margin-top: .55rem; max-width: 33rem; }
.purge-aside { border-left: 1px solid #457054; padding-left: 1.5rem; }
.purge-aside p { margin-top: .35rem; }

.access { background: linear-gradient(120deg, #122719, #0b150f 70%); border-block: 1px solid var(--line); }
.access-inner { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; padding-block: clamp(3.4rem, 7vw, 5.25rem); }
.access h2 + p { max-width: 24rem; margin-top: .95rem; }
.access .button { margin-top: 1.35rem; }
.steps { display: grid; gap: 1.15rem; list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.15rem minmax(0, 1fr); align-items: start; gap: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.steps li::before { content: counter(step) / ""; display: grid; place-items: center; height: 2.15rem; border: 1px solid #41684e; color: var(--green); border-radius: 50%; font: 650 .83rem var(--mono); }
.steps p { margin-top: .26rem; }

.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-weight: 650; list-style: none; cursor: pointer; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; font: 500 1.4rem/1 var(--mono); color: var(--green); }
.questions details[open] summary::after { content: "−"; }
.questions p { padding-bottom: 1rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-right: 8.6rem; font-size: .9rem; }

.sn-fab { position: fixed; z-index: 2; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); min-height: 2.85rem; padding: .58rem .98rem; border: 1px solid var(--green); border-radius: 2rem; background: var(--green); box-shadow: 0 .3rem 1.6rem #0009; color: #07140c; font-size: .92rem; font-weight: 760; }
.sn-fab:hover { background: #a3f8c5; }
html:has(dialog[open]) { overflow: hidden; }
dialog { position: fixed; inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto; margin: 0; padding: 0; width: min(26rem, calc(100% - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); border: 1px solid #467455; border-radius: .85rem; background: #101813; color: var(--text); box-shadow: 0 1.25rem 4rem #000b; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #0009; }
.sn-header { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.sn-header h2 { font-size: 1.35rem; letter-spacing: -.027em; }
.sn-header p { font-size: .9rem; margin-top: .2rem; }
.sn-close { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid #45604d; border-radius: .4rem; background: transparent; color: var(--text); font-size: 1.45rem; line-height: 1; }
.sn-body { overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.sn-preview { margin-top: .62rem; padding: .55rem .7rem; border-radius: .35rem; background: #26321e; color: #dfecd2; font-size: .86rem; }
.sn-results:not(:empty) { display: grid; gap: .55rem; margin-top: .78rem; }
#sn-status:not(:empty) { margin-top: .62rem; color: var(--text); font-size: .9rem; }
.sn-actions { display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.sn-actions .button-primary { flex: 1; }

@media (max-width: 48rem) {
  .wrap { width: min(100% - 2rem, 70rem); }
  .nav nav { display: none; }
  .hero { background: var(--bg); }
  .hero-inner { padding-top: 14rem; padding-bottom: 2.75rem; align-items: end; }
  .hero-art { inset: 0; height: 21rem; background-position: 65% 45%; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg), transparent 62%); }
  .hero::after { background: linear-gradient(0deg, var(--bg) 28%, #060b08e8 49%, #060b0830 76%, transparent); }
  .rain-toggle { top: 1rem; }
  .features, .purge, .access-inner, .faq { grid-template-columns: 1fr; }
  .feature-icon { margin-bottom: 1rem; }
  .purge { gap: 1.1rem; }
  .purge-aside { padding-left: .95rem; }
  .footer-inner { flex-direction: column; align-items: start; justify-content: flex-start; gap: .65rem; padding: 1.2rem 0 4.75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.pricing { padding-top: 0; }
.pricing-table { margin-top: 1.65rem; border: 1px solid var(--line); border-radius: .72rem; overflow-x: auto; }
.pricing-table table { width: 100%; min-width: 49rem; border-collapse: separate; border-spacing: 0; background: var(--panel); text-align: left; }
.pricing-table th, .pricing-table td { padding: .8rem .95rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .91rem; }
.pricing-table thead th { background: #19251d; color: var(--text); }
.pricing-table tbody th { color: var(--text); font-weight: 600; }
.pricing-table td { color: #c0cec3; }
.pricing-table thead th:first-child, .pricing-table tbody th { position: sticky; left: 0; min-width: 10rem; width: 20%; background: #162019; border-right: 1px solid var(--line); }
.pricing-table tbody tr:last-child > * { border-bottom: 0; }
.pricing-table .price-row td { color: var(--green); font-size: 1.12rem; font-weight: 760; white-space: nowrap; }
.pricing-table .price-row small { display: block; color: var(--muted); font-size: .79rem; font-weight: 500; }
.table-hint { display: none; margin-top: .65rem; }
.sn-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .4rem .65rem; padding: .7rem; border: 1px solid #438158; background: #172c20; border-radius: .5rem; }
.sn-card strong, .sn-card p { grid-column: 1 / -1; }
.sn-card code { color: var(--green); font: 720 clamp(.88rem, 3.2vw, 1.13rem) var(--mono); overflow-wrap: anywhere; user-select: all; }
.sn-card p { font-size: .83rem; }
@media (max-width: 48rem) {
  .table-hint { display: block; }
  .pricing-table { margin-top: .75rem; }
  .pricing-table th, .pricing-table td { padding-inline: .72rem; }
}
