:root {
  --ink: #102a43;
  --muted: #52667a;
  --paper: #f7fbff;
  --surface: #ffffff;
  --blue: #1479d2;
  --blue-dark: #0b4f8a;
  --cyan: #5bc5df;
  --yellow: #f5df37;
  --yellow-soft: #fff8bf;
  --mint: #c6edcf;
  --line: #cfe0ee;
  --shadow: 0 18px 50px rgba(16, 42, 67, .12);
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(91, 197, 223, .16), transparent 24rem),
    linear-gradient(180deg, #fff 0, var(--paper) 42rem);
  font-family: "Trebuchet MS", "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: var(--blue); }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 99;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(207, 224, 238, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  width: min(calc(100% - 2rem), var(--max));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 164px; height: auto; }

.nav-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a {
  padding: .65rem .8rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 800;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { background: #e8f5fc; color: var(--blue-dark); }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 6.5rem);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 99px; background: var(--yellow); }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 780px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.28rem; }

.hero h1 span { color: var(--blue); }
.lead { max-width: 650px; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--yellow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--yellow); }
.button.secondary { background: #fff; color: var(--ink); box-shadow: none; }
.button.secondary:hover { color: var(--blue-dark); }
.button.small { min-height: 44px; padding: .6rem .9rem; }

.hero-art { position: relative; }
.question-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  padding: 1rem;
  border: 2px solid var(--ink);
  border-radius: 36px;
  background: var(--yellow);
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(2deg);
}
.question-card img { width: 100%; height: 100%; min-height: 478px; object-fit: cover; border-radius: 25px; filter: saturate(.9) contrast(1.08); }
.score-chip {
  position: absolute;
  right: -1.25rem;
  bottom: 2.5rem;
  width: 140px;
  padding: .9rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--cyan);
  font-weight: 900;
  text-align: center;
  transform: rotate(-4deg);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-intro { max-width: 680px; margin: 1rem 0 2.5rem; color: var(--muted); font-size: 1.1rem; }
.soft-blue { background: #eaf7fd; border-block: 1px solid #caeaf5; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card {
  min-height: 245px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 9px 26px rgba(16, 42, 67, .07);
}
.feature-card:nth-child(2) { transform: translateY(1.5rem); }
.feature-card:nth-child(3) { background: var(--yellow-soft); }
.feature-number { display: block; margin-bottom: 2.7rem; color: var(--blue); font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.feature-card p { margin-bottom: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.steps { display: grid; gap: .8rem; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.step b { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--mint); color: #18542a; }
.step p { margin: .35rem 0 0; color: var(--muted); }

.cta-band {
  margin-block: 2rem 6rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  box-shadow: 10px 10px 0 var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band p { max-width: 600px; margin: .8rem 0 0; color: #d5e4ef; }

.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) 2.5rem; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero .lead { max-width: 780px; }

.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: 7rem; }
.toc { position: sticky; top: 105px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.toc strong { display: block; margin-bottom: .7rem; }
.toc a { display: block; padding: .34rem 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.toc a:hover { color: var(--blue); }

.legal { min-width: 0; }
.legal section { scroll-margin-top: 110px; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.legal section:first-child { padding-top: 0; }
.legal h2 { margin-bottom: 1rem; font-size: clamp(1.55rem, 3vw, 2.15rem); }
.legal h3 { margin: 1.4rem 0 .6rem; letter-spacing: -.01em; }
.legal p, .legal li { color: #344e64; }
.legal ul, .legal ol { padding-left: 1.25rem; }
.legal li + li { margin-top: .45rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .94rem; }
.legal th, .legal td { padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: #eaf7fd; }
.notice { padding: 1rem 1.1rem; border-left: 5px solid var(--yellow); border-radius: 0 14px 14px 0; background: var(--yellow-soft); }
.meta { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding-bottom: 6rem; }
.support-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.support-card p { color: var(--muted); }
.faq { margin-top: 1.2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.1rem 0; font-weight: 900; cursor: pointer; }
.faq details p { margin-top: 0; padding-bottom: 1rem; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-wrap { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding-block: 2.4rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.footer-brand img { width: 125px; }
.footer-brand p { max-width: 470px; margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1rem; align-content: start; }
.footer-links a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 1rem 0 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 70px; left: 1rem; right: 1rem; flex-direction: column; align-items: stretch; padding: .75rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { border-radius: 12px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-art { width: min(88%, 520px); margin-inline: auto; }
  .question-card { min-height: 390px; }
  .question-card img { min-height: 358px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card:nth-child(2) { min-height: auto; transform: none; }
  .feature-number { margin-bottom: 1.5rem; }
  .split, .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand img { width: 130px; }
  .nav-wrap { min-height: 68px; }
  .hero h1 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .question-card { min-height: 320px; border-radius: 27px; box-shadow: 9px 9px 0 var(--ink); }
  .question-card img { min-height: 288px; border-radius: 18px; }
  .score-chip { right: -.6rem; bottom: 1.4rem; width: 120px; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .cta-band { align-items: stretch; flex-direction: column; }
  .footer-wrap { grid-template-columns: 1fr; }
  .legal table { display: block; overflow-x: auto; }
}

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

@media print {
  .site-header, .site-footer, .toc, .actions { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .legal-layout { padding: 0; display: block; }
  .legal section { break-inside: avoid; }
}
