:root {
  color-scheme: dark;
  --ink: #f7f9fc;
  --muted: #9da9bb;
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(18, 29, 49, 0.84);
  --panel-strong: #121d31;
  --bg: #08101d;
  --lime: #b7f34a;
  --cyan: #57d9e8;
  --amber: #f4bd62;
  --red: #ff7a7a;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 8%, rgba(87, 217, 232, 0.13), transparent 28rem),
    radial-gradient(circle at 15% 25%, rgba(183, 243, 74, 0.08), transparent 24rem),
    var(--bg);
  line-height: 1.55;
}
a { color: inherit; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.site-header, main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-header nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.brand > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #071017; background: var(--lime); }
.brand em { color: var(--cyan); font-size: 0.7rem; font-style: normal; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding: 90px 0 72px; }
.eyebrow { margin: 0 0 16px; color: var(--lime); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 0; font-size: clamp(3.1rem, 6.6vw, 6.5rem); line-height: 0.98; letter-spacing: -0.065em; }
.lede { max-width: 680px; margin: 28px 0; color: #c2cad5; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.hero-actions, .workspace-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button, .file-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 0 18px; font-weight: 800; text-decoration: none; cursor: pointer; }
.button--primary { color: #08101d; background: var(--lime); box-shadow: 0 12px 30px rgba(183, 243, 74, 0.12); }
.button--primary:hover { background: #c7ff5f; transform: translateY(-1px); }
.button:disabled { color: #778395; background: #253044; box-shadow: none; cursor: not-allowed; transform: none; }
.button--quiet, .file-button { color: var(--ink); background: rgba(255,255,255,0.06); border-color: var(--line); }
.button--quiet:hover, .file-button:hover { background: rgba(255,255,255,0.1); }
.text-button { color: var(--muted); background: transparent; border: 0; cursor: pointer; text-decoration: underline; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.88rem; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: var(--lime); }

.result-card { position: relative; padding: 26px; overflow: hidden; border: 1px solid rgba(87,217,232,0.2); border-radius: 26px; background: linear-gradient(145deg, rgba(22, 36, 58, .96), rgba(10, 20, 36, .92)); box-shadow: 0 38px 80px rgba(0,0,0,.38); transform: rotate(1.5deg); }
.result-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.result-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 700 0.78rem ui-monospace, monospace; }
.question { margin: 26px 0 18px; font-size: 1.35rem; font-weight: 750; line-height: 1.3; }
.answer { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.04); }
.answer > span, dt { color: var(--cyan); font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.answer p { margin: 8px 0 0; }
.result-card dl { display: grid; gap: 12px; margin: 18px 0; }
.result-card dl div { display: grid; grid-template-columns: 90px 1fr; }
.result-card dd { margin: 0; color: #cbd3df; }
.review-note { margin: 20px 0 0; color: var(--lime); font-weight: 750; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.proof-strip p { display: flex; gap: 16px; align-items: center; margin: 0; padding: 22px 28px; border-right: 1px solid var(--line); }
.proof-strip p:last-child { border-right: 0; }
.proof-strip strong { color: var(--cyan); font-size: 1.2rem; white-space: nowrap; }
.proof-strip span { color: var(--muted); font-size: .82rem; }

.section { padding: 110px 0; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
h2 { margin: 0 0 14px; font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1.05; letter-spacing: -0.05em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.privacy-callout { margin-bottom: 20px; padding: 16px 18px; border-left: 3px solid var(--cyan); border-radius: 8px; color: #cbd4df; background: rgba(87,217,232,.07); }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.input-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.input-card__heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.input-card label:first-child { font-size: 1.05rem; font-weight: 800; }
.input-card > p { margin: 10px 0 14px; color: var(--muted); font-size: .84rem; }
code { color: var(--cyan); }
.file-button { min-height: 36px; padding: 0 12px; font-size: .78rem; }
.file-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
textarea { width: 100%; min-height: 250px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: #e8edf4; background: #07101d; font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.workspace-actions { margin-top: 20px; }
.form-message { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
.form-message[data-type="error"] { color: var(--red); }
.form-message[data-type="success"] { color: var(--lime); }
.empty-state { display: grid; place-items: center; min-height: 190px; margin-top: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state span { color: var(--cyan); font-size: 2rem; }
.result-panel { scroll-margin-top: 20px; margin-top: 24px; }
.result-summary { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--panel-strong); }
.result-summary p { display: flex; gap: 8px; align-items: baseline; margin: 0; }
.result-summary strong { color: var(--cyan); font-size: 1.45rem; }
.result-summary span { color: var(--muted); font-size: .78rem; }
.result-summary .button { margin-left: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
table { width: 100%; min-width: 980px; border-collapse: collapse; background: rgba(8,16,29,.7); }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .84rem; }
td:nth-child(1) { width: 105px; }
td:nth-child(2) { width: 235px; }
td:nth-child(3) { width: 330px; }
td:nth-child(4) { width: 230px; }
td > span, td > strong, td > small { display: block; }
td small { margin-top: 7px; color: var(--muted); }
td textarea { min-height: 112px; }
.confidence { display: inline-flex; width: fit-content; border-radius: 999px; padding: 4px 9px; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.confidence--high { color: #102100; background: var(--lime); }
.confidence--review { color: #2e1c00; background: var(--amber); }
.confidence--unresolved { color: #350808; background: var(--red); }
.approval { display: flex; gap: 8px; align-items: center; }
.approval input { width: 18px; height: 18px; accent-color: var(--lime); }

.workflow ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.workflow li { min-height: 240px; padding: 26px; border-right: 1px solid var(--line); }
.workflow li:last-child { border-right: 0; }
.workflow li > span { color: var(--cyan); font: 800 .78rem ui-monospace, monospace; }
h3 { margin: 45px 0 10px; font-size: 1.15rem; }
.workflow li p { color: var(--muted); font-size: .9rem; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-grid article { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,29,49,.9), rgba(9,18,32,.82)); }
.benefit-grid article > strong { color: var(--cyan); font: 800 .78rem ui-monospace, monospace; }
.benefit-grid h3 { margin-top: 54px; }
.benefit-grid p, .boundary-grid span, .privacy-grid span { color: var(--muted); }

.price-card { display: grid; grid-template-columns: .7fr 1fr auto; gap: 40px; align-items: center; padding: 36px; border: 1px solid rgba(183,243,74,.25); border-radius: var(--radius); background: linear-gradient(120deg, rgba(183,243,74,.09), rgba(87,217,232,.05)); }
.price { margin: 0; font-size: 4.8rem; font-weight: 850; line-height: 1; letter-spacing: -.07em; }
.price span { margin-right: 6px; color: var(--lime); font-size: 1.7rem; vertical-align: top; }
.price-card p:not(.price), .pricing-note { color: var(--muted); }
.price-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--lime); }
.pricing-note { margin-top: 14px; font-size: .82rem; }
.payment-status { max-width: 250px; margin: 10px 0 0; font-size: .76rem; line-height: 1.45; }
.boundary-grid, .privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.boundary-grid p, .privacy-grid p { display: grid; gap: 8px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.privacy-grid { grid-template-columns: repeat(3, 1fr); }
.final-cta { margin-bottom: 100px; padding: 70px; border: 1px solid rgba(87,217,232,.22); border-radius: 30px; background: linear-gradient(120deg, rgba(87,217,232,.09), rgba(183,243,74,.06)); }
.final-cta h2 { max-width: 850px; }
.final-cta > p:not(.eyebrow) { max-width: 720px; color: var(--muted); }
.faq { max-width: 900px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { font-size: 1.08rem; font-weight: 750; cursor: pointer; }
details p { max-width: 720px; color: var(--muted); }
footer { display: flex; gap: 24px; align-items: center; justify-content: space-between; min-height: 120px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.payment-return { display: flex; min-height: 100vh; max-width: 760px; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 70px; }
.payment-return .brand { margin-bottom: 80px; }
.payment-return h1 { font-size: clamp(2.8rem, 8vw, 5.6rem); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .result-card { max-width: 620px; transform: none; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip p:last-child { border-bottom: 0; }
  .input-grid, .workflow ol, .benefit-grid, .privacy-grid { grid-template-columns: 1fr; }
  .workflow li { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow li:last-child { border-bottom: 0; }
  h3 { margin-top: 20px; }
  .price-card { grid-template-columns: 1fr; }
  .payment-status { max-width: 520px; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header nav a:not(:first-child) { display: none; }
  h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .hero { min-height: auto; padding: 58px 0; }
  .section { padding: 76px 0; }
  .result-card { padding: 20px; }
  .input-card__heading { align-items: flex-start; flex-direction: column; }
  .result-summary .button { width: 100%; margin-left: 0; }
  .boundary-grid { grid-template-columns: 1fr; }
  .final-cta { margin-bottom: 50px; padding: 40px 22px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

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