:root {
  color-scheme: dark;
  --bg: #07110f;
  --surface: #0c1b17;
  --surface-2: #10251f;
  --line: #24443a;
  --text: #f4f8f6;
  --muted: #a9bbb5;
  --accent: #71f6b5;
  --accent-strong: #23d982;
  --ink: #042016;
  --warning: #ffd588;
  --danger: #ff9c94;
  --max: 1180px;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, rgba(35, 217, 130, .12), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: #a2ffd0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--accent);
  color: var(--ink);
  padding: .8rem 1rem;
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(113, 246, 181, .15);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}

.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 700; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--text); }

.hero {
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto;
  padding: 7.5rem 0 5.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  background: rgba(16, 37, 31, .72);
  color: #c9d7d2;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 760;
  letter-spacing: .03em;
}

.status-dot { width: 8px; height: 8px; background: var(--accent-strong); border-radius: 50%; box-shadow: 0 0 0 5px rgba(35, 217, 130, .12); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -.045em; }
h1 { max-width: 800px; margin: 1.4rem auto 1.2rem; font-size: clamp(3.3rem, 8.8vw, 6.8rem); }
h1 span { color: var(--accent); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.25rem; }

.hero-copy { max-width: 730px; margin: 0 auto 2rem; color: #c6d4cf; font-size: clamp(1.08rem, 2.3vw, 1.35rem); }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.microcopy { margin: 1rem 0 0; color: #81968f; font-size: .78rem; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .75rem 1.2rem;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, .choice-grid label:has(input:focus-visible) { outline: 3px solid rgba(113, 246, 181, .45); outline-offset: 3px; }
.button-primary { background: var(--accent); color: var(--ink); }
.button-primary:hover { color: var(--ink); background: #96ffc9; }
.button-secondary { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.button-secondary:hover { color: var(--text); border-color: var(--accent); }
.button-full { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }

.trust-strip {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(12, 27, 23, .7);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-strip div { padding: 1.25rem 1.5rem; text-align: center; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: .93rem; }
.trust-strip span { color: var(--muted); font-size: .78rem; }

.section { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 7rem 0; }
.split-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.section-intro { max-width: 560px; }
.section-intro > p:not(.kicker) { color: var(--muted); }
.kicker { margin-bottom: .65rem; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.privacy-callout { margin-top: 1.5rem; padding: 1rem 1.1rem; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: .88rem; }
.privacy-callout strong { color: var(--text); }

.audit-card, .password-card {
  background: rgba(12, 27, 23, .92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2.2rem);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}
fieldset { padding: 0 0 1.6rem; margin: 0 0 1.6rem; border: 0; border-bottom: 1px solid rgba(36, 68, 58, .8); }
legend { width: 100%; display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .95rem; font-size: 1rem; font-weight: 780; line-height: 1.4; }
legend span { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-size: .72rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.choice-grid-wide { grid-template-columns: repeat(2, 1fr); }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid label span { min-height: 48px; display: grid; place-items: center; padding: .65rem .8rem; border: 1px solid var(--line); background: #0b1714; border-radius: 10px; color: var(--muted); text-align: center; font-size: .78rem; font-weight: 720; }
.choice-grid label:hover span { border-color: #477464; color: var(--text); }
.choice-grid input:checked + span { border-color: var(--accent); background: rgba(113, 246, 181, .12); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.form-error { margin: 0 0 1rem; color: var(--danger); font-size: .86rem; }

.results-section { padding: 3rem; background: linear-gradient(135deg, #102b23, #0c1b17); border: 1px solid var(--line); border-radius: var(--radius); }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.result-header h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
.result-header p { max-width: 700px; color: var(--muted); }
.readiness { flex: 0 0 145px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; border: 1px solid var(--accent); border-radius: 50%; background: rgba(113, 246, 181, .07); }
.readiness strong { font-size: 2.8rem; line-height: 1; color: var(--accent); }
.readiness span { color: var(--muted); font-size: .68rem; }
.action-list { margin: 2.5rem 0; padding: 0; list-style: none; counter-reset: actions; }
.action-list li { counter-increment: actions; display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.action-list li::before { content: counter(actions); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 850; }
.action-list strong, .action-list span { display: block; }
.action-list span { color: var(--muted); font-size: .88rem; }
.action-list a { white-space: nowrap; font-weight: 750; font-size: .82rem; }

.password-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.password-card label { display: block; margin-bottom: .5rem; font-size: .85rem; font-weight: 760; }
.password-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.password-row input { width: 100%; min-width: 0; min-height: 50px; padding: .7rem .9rem; border: 1px solid #3a5c50; border-radius: 11px; background: #06100d; color: var(--text); }
.field-help { margin: .7rem 0 0; color: var(--muted); font-size: .76rem; }
.password-result { margin-top: 1.1rem; padding: 1rem; border-radius: 11px; background: var(--surface-2); font-size: .9rem; }
.password-result[data-kind="danger"] { border-left: 3px solid var(--danger); }
.password-result[data-kind="clear"] { border-left: 3px solid var(--accent); }
.password-result[data-kind="error"] { border-left: 3px solid var(--warning); }
.password-result strong { display: block; margin-bottom: .25rem; }

.email-section { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 3rem; border: 1px solid #5f5334; border-radius: var(--radius); background: linear-gradient(120deg, rgba(255, 213, 136, .08), rgba(12, 27, 23, .7)); }
.email-section > div { max-width: 700px; }
.email-section h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.email-section p:not(.kicker) { margin-bottom: 0; color: var(--muted); }
.email-section .button { flex: 0 0 auto; }

.privacy-section { border-top: 1px solid var(--line); }
.boundary-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.boundary-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.boundary-grid article > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: .72rem; }
.boundary-grid h3 { margin: 1.6rem 0 .7rem; }
.boundary-grid p { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.source-note { margin-top: 1.5rem; color: var(--muted); font-size: .84rem; }

.guide-grid { grid-template-columns: repeat(4, 1fr); }
.guide-grid a { min-height: 220px; display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); text-decoration: none; }
.guide-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-grid span { color: var(--accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.guide-grid strong { margin-top: auto; font-size: 1.18rem; line-height: 1.2; }
.guide-grid p { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; }

.preview-note { display: flex; align-items: center; gap: 2rem; padding: 1.5rem 2rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.preview-note strong { flex: 0 0 auto; color: var(--accent); }
.preview-note p { margin: 0; color: var(--muted); font-size: .86rem; }

.site-footer { width: min(calc(100% - 2rem), var(--max)); margin: 4rem auto 0; padding: 2.5rem 0; display: grid; grid-template-columns: 1fr auto; gap: 2rem; border-top: 1px solid var(--line); }
.site-footer > div p { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; }
.copyright { grid-column: 1 / -1; margin: 0; color: #71847e; font-size: .72rem; }

.page-main { width: min(calc(100% - 2rem), 840px); margin: 0 auto; padding: 6rem 0; }
.page-main .eyebrow { margin-bottom: 1.3rem; }
.page-main h1 { margin: 0 0 1.5rem; text-align: left; font-size: clamp(3rem, 8vw, 5.5rem); }
.page-main .lede { color: #c6d4cf; font-size: 1.25rem; }
.prose { margin-top: 4rem; }
.prose h2 { margin: 3.5rem 0 1rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prose h3 { margin: 2rem 0 .7rem; letter-spacing: -.02em; }
.prose p, .prose li { color: #b7c6c1; }
.prose li + li { margin-top: .6rem; }
.prose .note { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose .urgent { border-color: #744b46; background: rgba(255, 156, 148, .06); }
.prose .steps { padding: 0; list-style: none; counter-reset: page-steps; }
.prose .steps li { counter-increment: page-steps; position: relative; padding: 1.1rem 1rem 1.1rem 3.5rem; border-top: 1px solid var(--line); }
.prose .steps li::before { content: counter(page-steps); position: absolute; left: .6rem; top: 1.15rem; width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent); color: var(--ink); border-radius: 50%; font-weight: 850; font-size: .8rem; }
.source-list { padding: 0; list-style: none; }
.source-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.source-list strong, .source-list span { display: block; }
.source-list span { color: var(--muted); font-size: .78rem; }

[hidden] { display: none !important; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header nav a:nth-child(2) { display: none; }
  .hero { padding-top: 5rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .split-section, .password-section { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
  .results-section { padding: 2rem 1.2rem; }
  .result-header { flex-direction: column; }
  .readiness { align-self: center; }
  .action-list li { grid-template-columns: 38px 1fr; }
  .action-list a { grid-column: 2; }
  .email-section { align-items: stretch; flex-direction: column; padding: 2rem 1.3rem; }
  .email-section .button { width: 100%; }
  .boundary-grid, .guide-grid { grid-template-columns: 1fr 1fr; }
  .preview-note { align-items: flex-start; flex-direction: column; gap: .4rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .site-header { min-height: 66px; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .78rem; }
  .site-header nav a:nth-child(3) { display: none; }
  .hero-actions .button { width: 100%; }
  .choice-grid, .choice-grid-wide { grid-template-columns: 1fr; }
  .choice-grid label span { min-height: 44px; }
  .password-row { grid-template-columns: 1fr; }
  .boundary-grid, .guide-grid { grid-template-columns: 1fr; }
  .guide-grid a { min-height: 170px; }
  .result-actions .button { width: 100%; }
  .site-footer nav { display: grid; grid-template-columns: 1fr 1fr; }
}

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