:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0b1b33;
  --muted: #5a6b82;
  --border: #dde4ee;
  --primary: #1f5eff;
  --primary-ink: #ffffff;
  --primary-soft: #e8efff;
  --accent: #10b981;
  --danger: #d93a3a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 51, 0.04), 0 8px 24px rgba(11, 27, 51, 0.06);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1a2e;
    --surface: #121f36;
    --text: #e7eefa;
    --muted: #9fb0c8;
    --border: #22324d;
    --primary: #5b8cff;
    --primary-ink: #0b1220;
    --primary-soft: #18294a;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.narrow { max-width: 780px; }
.center { text-align: center; }
.left { text-align: left; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo__accent { color: var(--primary); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--primary); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); content: ""; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -6px; left: 0; right: 0; }
.nav-toggle__bar::after { top: 6px; left: 0; right: 0; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 12px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font: inherit; font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary-soft); }
.btn--ghost { color: var(--text); border-color: var(--border); background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sections */
.hero { padding: 72px 0 56px; background: radial-gradient(ellipse at top right, var(--primary-soft), transparent 60%); }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.2fr 1fr; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.mock__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--bg-alt); font-weight: 600; font-size: .95rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--green { background: #10b981; } .dot--blue { background: #3b82f6; } .dot--amber { background: #f59e0b; }

.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { margin-bottom: .5em; }
.section__lead { color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.page-head { padding: 56px 0 8px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; gap: 32px; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.align-center { align-items: center; }
.stack { display: grid; gap: 20px; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }

/* Plans */
.plans { display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan--popular { border: 2px solid var(--primary); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--primary); color: var(--primary-ink); font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 1.35rem; margin-bottom: 4px; }
.plan__tagline { color: var(--muted); margin-bottom: 16px; }
.plan__price { margin: 0; }
.plan__amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; }
.plan__period { color: var(--muted); font-weight: 600; }
.plan__note { font-size: .82rem; color: var(--muted); margin: 4px 0 18px; }
.plan__features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan__features li, .ticks li { position: relative; padding-left: 26px; }
.plan__features li::before, .ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan__guarantee { font-weight: 700; }
.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: 4px; } .steps p { margin: 0; color: var(--muted); }
.link-arrow { font-weight: 700; text-decoration: none; } .link-arrow::after { content: " →"; }

/* Tables, FAQ, details */
.table-wrap { overflow-x: auto; margin-bottom: 40px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.table th { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.faq { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.details dt { color: var(--muted); font-weight: 600; }
.details dd { margin: 0; word-break: break-word; }
@media (max-width: 480px) { .details { grid-template-columns: 1fr; gap: 2px; } .details dd { margin-bottom: 10px; } }

/* Policy text */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin-bottom: .5em; }
.callout { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 8px; margin: 20px 0; }

/* Forms & modal */
form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
form small { font-weight: 500; color: var(--muted); }
input, select, textarea { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
label.checkbox { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; }
label.checkbox input { width: 18px; height: 18px; margin-top: 3px; }
.form-error { color: var(--danger); font-weight: 600; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 12, 25, .6); }
.modal__dialog { position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal__close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
.status { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; font-size: 2rem; font-weight: 800; }
.status--ok { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.status--fail { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 48px; font-size: .93rem; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__heading { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text); text-decoration: none; }
.site-footer ul a:hover { color: var(--primary); }
.logo--footer { margin-bottom: 14px; }
.site-footer__base { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 20px; padding-bottom: 28px; color: var(--muted); font-size: .85rem; }
.site-footer__base p { margin-bottom: .4em; }
