:root {
  --bg: #07111f;
  --bg-soft: #0d1b2d;
  --panel: rgba(12, 22, 39, 0.88);
  --panel-strong: #0f2138;
  --panel-light: #f7f9fc;
  --text: #f5f8ff;
  --text-soft: #c7d5ec;
  --text-dark: #102033;
  --line: rgba(156, 182, 224, 0.18);
  --accent: #78a7ff;
  --accent-strong: #4d87f7;
  --success: #9ef0c4;
  --warning: #ffd995;
  --danger: #ffb1b1;
  --shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(85, 128, 255, 0.24), transparent 26%),
    radial-gradient(circle at top right, rgba(54, 191, 162, 0.18), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #091628 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-shell { min-height: 100vh; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; gap: 24px; position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px); background: rgba(7, 17, 31, 0.7);
}
.brand { font-weight: 800; letter-spacing: -0.04em; font-size: 1.4rem; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-soft); font-size: 0.96rem; }
.nav a:hover { color: var(--text); }
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start;
  padding: 54px 0 32px;
}
.eyebrow, .card-kicker, .summary-kicker {
  margin: 0 0 14px; color: #a9c4ff; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.8rem;
}
.hero h1, .section h2 { letter-spacing: -0.05em; line-height: 0.95; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.4rem); max-width: 12ch; }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--text-soft); max-width: 62ch; }
.support-line, .microcopy, .inline-note { color: var(--text-soft); line-height: 1.65; }
.hero-actions, .actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.button {
  border: 1px solid transparent; border-radius: 999px; padding: 14px 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: 0.2s ease; min-height: 48px;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: white; box-shadow: 0 12px 28px rgba(77, 135, 247, 0.28); }
.button-secondary { border-color: rgba(170, 196, 255, 0.28); background: rgba(255,255,255,0.02); color: var(--text); }
.button-tertiary { border-color: rgba(18, 38, 66, 0.12); background: white; color: var(--text-dark); padding: 10px 14px; min-height: auto; }
.value-points, .audience-list, .trust-box ul, .assumptions-box ul, .methodology-summary-card ul {
  padding-left: 1.1rem; color: var(--text-soft); line-height: 1.7;
}
.calculator-card, .results-panel, .copy-card, .feature-card, .step-card, .trust-box, .methodology-summary-card, .cta-panel, .doc-card, .faq-list details {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.calculator-card { padding: 24px; position: sticky; top: 98px; }
.card-head h2 { margin: 0 0 8px; font-size: 1.8rem; letter-spacing: -0.04em; }
.card-head p { margin: 0 0 18px; color: var(--text-soft); line-height: 1.65; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="date"], textarea {
  width: 100%; border-radius: 16px; border: 1px solid rgba(162, 191, 238, 0.16); background: rgba(255,255,255,0.04);
  color: var(--text); padding: 14px 16px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; background: #fff; color: var(--text-dark); }
.helper { margin: 8px 0 0; color: var(--text-soft); font-size: 0.94rem; line-height: 1.55; }
.grouped-field { border: 0; padding: 0; }
.toggle-row { display: flex; gap: 12px; flex-wrap: wrap; }
.toggle-option {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 999px;
  border: 1px solid rgba(162, 191, 238, 0.16); background: rgba(255,255,255,0.03); cursor: pointer;
}
.toggle-option input { accent-color: var(--accent); }
.form-feedback {
  display: none; margin-top: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid transparent; line-height: 1.55;
}
.form-feedback.is-visible { display: block; }
.form-feedback.is-error { background: rgba(255, 122, 122, 0.12); color: #ffd0d0; border-color: rgba(255, 149, 149, 0.24); }
.form-feedback.is-success { background: rgba(119, 230, 172, 0.12); color: #d8ffea; border-color: rgba(119, 230, 172, 0.24); }
.section { padding: 42px 0; }
.section-heading { max-width: 62ch; margin-bottom: 22px; }
.section h2 { margin: 0 0 14px; font-size: clamp(2rem, 5vw, 3.2rem); }
.section-heading p { margin: 0; color: var(--text-soft); line-height: 1.7; }
.results-layout, .split-section { display: grid; grid-template-columns: 1fr 0.92fr; gap: 24px; }
.results-panel { padding: 24px; }
.summary-box {
  padding: 22px; border-radius: 20px; background: linear-gradient(135deg, rgba(120, 167, 255, 0.16), rgba(69, 120, 241, 0.08)); border: 1px solid rgba(120, 167, 255, 0.22); margin-bottom: 18px;
}
.summary-box h3 { margin: 0 0 10px; font-size: 1.6rem; letter-spacing: -0.04em; }
.summary-box p:last-child { margin-bottom: 0; color: var(--text-soft); line-height: 1.65; }
.result-grid, .feature-grid, .steps-grid { display: grid; gap: 16px; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-card {
  padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(162, 191, 238, 0.12);
}
.result-card-wide { grid-column: 1 / -1; }
.result-label { display: block; color: var(--text-soft); font-size: 0.92rem; margin-bottom: 12px; }
.result-card strong { font-size: 1.25rem; line-height: 1.4; }
.assumptions-box { margin-top: 18px; padding: 20px; border-radius: 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(162, 191, 238, 0.12); }
.assumptions-box h3, .copy-head h3, .feature-card h3, .step-card h3, .trust-box h3, .cta-panel h3, .doc-card h1, .doc-card h2, .doc-card h3 { margin-top: 0; letter-spacing: -0.03em; }
.copy-panel { display: grid; gap: 16px; }
.copy-card { padding: 20px; background: var(--panel-light); color: var(--text-dark); }
.copy-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.feature-grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-card, .step-card, .trust-box, .cta-panel { padding: 22px; }
.step-card span {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(120, 167, 255, 0.16); color: #b9d0ff; font-weight: 800; margin-bottom: 16px;
}
.methodology-summary-card, .doc-card { padding: 24px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 18px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { color: var(--text-soft); line-height: 1.7; }
.site-footer { padding: 44px 0 60px; color: var(--text-soft); line-height: 1.7; }
.toast {
  position: fixed; right: 20px; bottom: 20px; padding: 14px 16px; border-radius: 16px; background: #ffffff; color: var(--text-dark);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28); opacity: 0; transform: translateY(16px); pointer-events: none; transition: 0.24s ease; max-width: 320px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.doc-body { background: #f3f6fb; color: var(--text-dark); }
.doc-body .site-header { background: rgba(243, 246, 251, 0.84); }
.doc-main { padding: 48px 0 64px; }
.doc-card { max-width: 900px; margin: 0 auto; box-shadow: 0 18px 50px rgba(9, 22, 40, 0.08); background: #fff; border-color: rgba(17, 34, 60, 0.08); }
.doc-card p, .doc-card li { color: #344862; line-height: 1.8; }
.doc-card hr { border: 0; border-top: 1px solid rgba(17, 34, 60, 0.1); margin: 24px 0; }
.doc-card ul, .doc-card ol { padding-left: 1.2rem; }
.doc-footer { color: #42566f; }

@media (max-width: 980px) {
  .hero, .results-layout, .split-section { grid-template-columns: 1fr; }
  .calculator-card { position: static; }
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  .nav { gap: 12px; }
  .result-grid, .feature-grid, .steps-grid { grid-template-columns: 1fr; }
  .copy-head { flex-direction: column; align-items: flex-start; }
}
