:root {
  --ink: #1f2737;
  --ink-soft: #4a5160;
  --brand: #555fde;
  --brand-dark: #3d46c7;
  --brand-soft: #eef0ff;
  --paper: #f7f6f2;
  --white: #fff;
  --line: #e4e2db;
  --ok: #1f7a4d;
  --warn: #8a6a12;
  --input-border: #5c5a54;
  --shadow: 0 18px 40px rgba(31, 39, 55, .08);
  --radius: 18px;
  --max: 1120px;
  --focus: #3d46c7;
  --header-h: 84px;
}

@font-face {
  font-family: Rubik;
  src: url("Rubik-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0590-05FF, U+2000-206F, U+20AA, U+FB1D-FB4F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: var(--header-h); }

body {
  overflow-x: hidden;
  font-family: Rubik, "Heebo", "Assistant", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.skip {
  position: absolute; right: 12px; top: -48px; background: var(--ink); color: #fff;
  padding: 8px 12px; z-index: 60; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus, .skip:focus-visible { top: 12px; color: #fff; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.btn:focus-visible,
.a11y-toggle:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--focus);
}

header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 242, .98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
}
.brand svg { width: 42px; height: 42px; }
.brand strong { font-size: 1.25rem; letter-spacing: -0.02em; }
.brand span { display: block; font-size: .72rem; color: var(--ink-soft); font-weight: 400; }
nav ul { display: flex; gap: 8px 18px; list-style: none; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--brand-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.phone {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  white-space: nowrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 20px;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-light {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
}
.btn-light:hover { background: var(--brand-soft); color: var(--ink); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--input-border);
  border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer;
}

.hero { padding: 56px 0 32px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
}
.eyebrow {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 600; font-size: .82rem; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 14px;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.slogan { margin: 14px 0 22px; font-weight: 600; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.form-card h2 { font-size: 1.2rem; margin-bottom: 6px; }
.form-card p { color: var(--ink-soft); margin-bottom: 16px; font-size: .95rem; }
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%; border: 2px solid var(--input-border); border-radius: 12px;
  padding: 14px 14px; font: inherit; font-size: 1.1rem; background: #fff;
  margin-bottom: 12px; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #4a5160; opacity: 1; }
input:focus, textarea:focus, select:focus {
  outline: 3px solid var(--brand); border-color: transparent;
}
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 10px; }
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 28px;
}
.trust div {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
}
.trust strong { display: block; font-size: 1.05rem; }
.trust span { color: var(--ink-soft); font-size: .88rem; }

section { padding: 56px 0; }
.section-title { font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.section-sub { color: var(--ink-soft); margin-bottom: 28px; max-width: 40rem; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare article { padding: 24px; }
.compare h3 { font-size: 1.25rem; margin-bottom: 8px; }
.price {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 16px;
}
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.compare ul { list-style: none; display: grid; gap: 8px; }
.compare li { display: flex; align-items: flex-start; gap: 10px; }
.compare li:before { content: ""; flex: 0 0 .65em; width: .65em; height: .65em; margin-top: .55em; border-radius: 50%; background: var(--brand); }
.full-card { border: 2px solid var(--brand); }
.badge {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 3px 8px;
  margin-bottom: 8px;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand-dark); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}

.report {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
.report img { width: 100%; height: 220px; object-fit: cover; object-position: top right; background: #f0f0f0; }
.report-body { padding: 22px 24px 26px; }
.report-body h2 { margin-bottom: 8px; }

.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guides a {
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  display: block; min-height: 100%;
}
.guides a:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.guides h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--ink); }
.guides p { color: var(--ink-soft); font-size: .92rem; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--brand-dark); font-size: 1.4rem; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 16px; }

.cta-band {
  background: var(--ink); color: #fff; border-radius: 24px; padding: 40px 36px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band h2 { color: #fff; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.cta-band p { color: #d5d8e2; max-width: 36rem; }
.cta-band .btn { background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--brand-soft); }
.cta-band .btn:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px #8ea0ff;
}

footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: .92rem; border-top: 1px solid var(--line); margin-top: 20px; }
footer strong { color: var(--ink); }
footer a { color: var(--ink); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0;
  padding: 0; list-style: none;
}
.footer-links a { font-weight: 600; }
.footer-cancel a { text-decoration: underline; }

/* Legal pages */
.legal-wrap { width: min(760px, calc(100% - 40px)); margin-inline: auto; padding: 40px 0 64px; }
.legal-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 12px; }
.legal-wrap .meta { color: var(--ink-soft); margin-bottom: 22px; }
.legal-wrap h2 {
  font-size: 1.25rem; margin: 28px 0 10px; letter-spacing: -0.02em;
  padding-top: 8px;
}
.legal-wrap h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.legal-wrap p, .legal-wrap li { margin-bottom: 10px; }
.legal-wrap ul, .legal-wrap ol { margin: 0 1.2em 14px; }
.legal-wrap li { padding-inline-start: .2em; }
.notice {
  background: #fff; border: 1px solid var(--line); border-right: 4px solid var(--brand);
  border-radius: 12px; padding: 14px 16px; margin: 0 0 22px;
}
.notice.warn { border-right-color: var(--warn); background: #fff8e6; }
.fill-in {
  display: inline; background: #fff3bf; border: 1px dashed #8a6a12;
  border-radius: 4px; padding: 0 .35em; font-weight: 600; color: var(--ink);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.cancel-form {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; margin-top: 12px;
}
.cancel-form .row { margin-bottom: 4px; }

.notice.summary {
  background: #f4f6ff;
}
.notice.summary p:last-child,
.notice.summary ul:last-child { margin-bottom: 0; }
.legal-toc {
  background: #fafbff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 8px;
  margin: 0 0 28px;
}
.legal-toc h2 { margin-top: 0; font-size: 1.05rem; }
.legal-toc ol { margin: 0 1.2em 10px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover, .legal-toc a:focus { text-decoration: underline; }

/* Accessibility toolbar */
.a11y-widget {
  position: fixed; bottom: 16px; left: 16px; z-index: 50;
  font-family: inherit;
}
.a11y-toggle {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer;
  box-shadow: var(--shadow); display: grid; place-items: center;
  padding: 0;
}
.a11y-toggle svg { width: 26px; height: 26px; fill: currentColor; }
.a11y-panel {
  display: none; position: absolute; bottom: 64px; left: 0;
  width: min(280px, calc(100vw - 32px));
  background: #fff; color: var(--ink); border: 2px solid var(--ink);
  border-radius: 16px; padding: 14px; box-shadow: var(--shadow);
}
.a11y-panel.open { display: block; }
.a11y-panel h2 { font-size: 1rem; margin-bottom: 10px; }
.a11y-panel .a11y-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.a11y-panel .a11y-row > span { flex: 1 1 100%; font-size: .85rem; font-weight: 600; }
.a11y-panel button {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 10px;
}
.a11y-panel button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.a11y-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Modes */
body.a11y-links a {
  text-decoration: underline 2px !important;
  text-underline-offset: 3px;
  background: #fff3a0;
  color: #000;
}
body.a11y-links .btn, body.a11y-links .a11y-toggle, body.a11y-links .brand {
  background-image: none;
}
body.a11y-links .btn { background: #0000aa; color: #fff; }

body.a11y-contrast {
  --ink: #000;
  --ink-soft: #000;
  --brand: #0000aa;
  --brand-dark: #0000aa;
  --brand-soft: #ffff00;
  --paper: #fff;
  --white: #fff;
  --line: #000;
  --ok: #005c2e;
  --warn: #5c4500;
  --input-border: #000;
  --focus: #000;
  background: #fff;
  color: #000;
}
body.a11y-contrast header,
body.a11y-contrast .card,
body.a11y-contrast .step,
body.a11y-contrast .trust div,
body.a11y-contrast .guides a,
body.a11y-contrast .faq details,
body.a11y-contrast .report,
body.a11y-contrast .cancel-form,
body.a11y-contrast .notice,
body.a11y-contrast .legal-toc,
body.a11y-contrast .a11y-panel {
  background: #fff;
  border-color: #000;
  color: #000;
}
body.a11y-contrast .cta-band { background: #000; color: #fff; }
body.a11y-contrast .cta-band p { color: #fff; }
body.a11y-contrast .btn { background: #0000aa; color: #fff; border: 2px solid #000; }
body.a11y-contrast .eyebrow { background: #ffff00; color: #000; }
body.a11y-contrast .fill-in { background: #ffff00; color: #000; border-color: #000; }

html.a11y-no-anim, html.a11y-no-anim *,
body.a11y-no-anim, body.a11y-no-anim * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .hero-grid, .compare, .steps, .guides, .trust, .cta-band { grid-template-columns: 1fr; }
  .cta-band { display: grid; }
  .trust { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn { display: none; }
  .phone { font-size: .85rem; }
  .nav { min-height: 64px; gap: 8px; }
  .menu-btn { display: inline-flex; }
  header nav { display: none; position: absolute; top: 72px; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  header nav.open { display: block; }
  header nav ul { flex-direction: column; gap: 12px; }
  .hero { padding-top: 32px; }
  .report img { height: 150px; }
  section { padding: 40px 0; }
}

.a11y-panel[hidden] { display: none !important; }

.article-wrap { width: min(760px, calc(100% - 40px)); margin-inline: auto; padding: 40px 0 64px; }
.article-wrap h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 16px; }
.article-wrap .meta { color: var(--ink-soft); margin-bottom: 22px; }
.article-wrap h2 { font-size: 1.3rem; margin: 28px 0 10px; letter-spacing: -0.02em; }
.article-wrap h3 { font-size: 1.08rem; margin: 20px 0 8px; }
.article-wrap p, .article-wrap li { margin-bottom: 10px; }
.article-wrap ul, .article-wrap ol { margin: 0 1.2em 14px; }
.article-wrap blockquote {
  border-right: 4px solid var(--brand);
  background: #fff;
  margin: 18px 0;
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  color: var(--ink-soft);
}
.preview-result {
  margin-top: 16px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.preview-result h3 { font-size: 1.05rem; margin-bottom: 10px; }
.preview-result dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0 0 12px; }
.preview-result dt { color: var(--ink-soft); font-size: .82rem; }
.preview-result dd { font-weight: 600; margin: 0; }
.preview-error { color: #8a1515; font-weight: 600; margin-top: 10px; }
.preview-status { margin-top: 10px; font-weight: 600; }
@media (max-width: 900px) {
  .preview-result dl { grid-template-columns: 1fr; }
}
