:root {
  --ink: #07172b;
  --ink-2: #102b4b;
  --blue: #1476cf;
  --blue-dark: #0d5ca8;
  --gold: #f7bd45;
  --gold-dark: #d99512;
  --paper: #ffffff;
  --mist: #eef5fb;
  --line: #d8e4ef;
  --muted: #52677c;
  --success: #08795c;
  --danger: #a72f38;
  --shadow: 0 20px 55px rgba(7, 23, 43, .12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: .18em; }
a:hover { color: #06457e; }
button, input, select { font: inherit; }
button { cursor: pointer; }

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

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #28bfd3);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(20, 118, 207, .24);
}
.brand small {
  display: block;
  margin-top: .16rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.nav-toggle {
  display: none;
  min-width: 46px;
  min-height: 44px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.main-nav { display: flex; align-items: center; gap: .9rem; }
.main-nav a {
  padding: .55rem .45rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 720;
  text-decoration: none;
}
.main-nav a:hover { color: var(--blue); }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .72rem 1.15rem;
  gap: .5rem;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  box-shadow: 0 10px 25px rgba(20,118,207,.22);
  transform: translateY(-1px);
}
.btn--gold {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.btn--gold:hover {
  color: var(--ink);
  background: #ffd16b;
  border-color: #ffd16b;
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(255,255,255,.55);
}
.hero .btn--ghost { color: #fff; }
.btn--small { min-height: 42px; padding: .55rem .85rem; font-size: .88rem; }

.breadcrumbs {
  padding-block: .85rem;
  color: var(--muted);
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
  font-size: .83rem;
}
.breadcrumbs ol {
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: .45rem; }

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
}
.hero picture, .hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__image { object-fit: cover; object-position: center; }
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5,18,35,.97) 0%, rgba(5,18,35,.88) 39%, rgba(5,18,35,.25) 68%, rgba(5,18,35,.08) 100%),
    linear-gradient(0deg, rgba(5,18,35,.32), transparent 45%);
}
.hero__content {
  max-width: 690px;
  padding-block: 5.2rem;
}
.eyebrow {
  margin: 0 0 .9rem;
  color: #7de5ed;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin-top: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -.035em;
}
h1 {
  max-width: 900px;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2.65rem, 6vw, 5rem);
}
h2 { margin-bottom: 1.05rem; font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { margin-bottom: .65rem; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.hero__lead {
  max-width: 660px;
  margin: 0 0 1.5rem;
  color: #e9f2fb;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__meta {
  display: flex;
  margin: 1.4rem 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: .65rem;
  list-style: none;
}
.hero__meta li {
  padding: .32rem .65rem;
  color: #d9e9f7;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

.section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section--soft { background: var(--mist); }
.section--navy { color: #dbe8f4; background: var(--ink); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: 2.6rem; }
.section-heading { max-width: 820px; margin-bottom: 2.2rem; }
.section-heading p { color: var(--muted); font-size: 1.06rem; }
.section--navy .section-heading p { color: #c8d8e6; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .39fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.prose { max-width: 780px; }
.prose p { margin: 0 0 1.2rem; }
.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.lede { color: var(--ink-2); font-size: 1.18rem; }

.notice {
  margin-block: 1.6rem;
  padding: 1.1rem 1.2rem;
  background: #fff8e9;
  border: 1px solid #f3d48e;
  border-left: 5px solid var(--gold-dark);
  border-radius: 12px;
}
.notice strong { display: block; margin-bottom: .25rem; }
.notice--blue {
  background: #eaf5ff;
  border-color: #b8daf8;
  border-left-color: var(--blue);
}

.side-card {
  position: sticky;
  top: 98px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.side-card h2 { font-size: 1.35rem; }
.side-card ul { margin: 0 0 1.2rem; padding-left: 1.15rem; }
.side-card li { margin-bottom: .45rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(7,23,43,.07);
}
.card p:last-child { margin-bottom: 0; }
.card__number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 12px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th { color: #fff; background: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: .9rem;
  list-style: none;
  counter-reset: steps;
}
.steps li {
  position: relative;
  min-height: 58px;
  padding: .8rem .9rem .8rem 4.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: steps;
}
.steps li::before {
  position: absolute;
  top: .65rem;
  left: .75rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 11px;
  content: counter(steps);
  font-weight: 900;
}

.quiz, .tool {
  padding: clamp(1.2rem, 4vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quiz-question {
  margin: 0 0 1.25rem;
  padding: 0 0 1.2rem;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.quiz-question legend {
  width: 100%;
  margin-bottom: .75rem;
  color: var(--ink);
  font-weight: 820;
}
.quiz-option {
  display: flex;
  margin: .45rem 0;
  padding: .65rem .75rem;
  align-items: flex-start;
  gap: .65rem;
  background: #f8fbfd;
  border: 1px solid transparent;
  border-radius: 10px;
}
.quiz-option:hover { border-color: #b8d8f4; }
.quiz-option input { margin-top: .3rem; accent-color: var(--blue); }
.quiz-feedback {
  display: none;
  margin-top: .65rem;
  padding: .75rem;
  border-radius: 9px;
  font-size: .92rem;
}
.quiz-feedback.is-visible { display: block; }
.quiz-feedback.is-correct { color: #075d47; background: #e7f8f2; }
.quiz-feedback.is-wrong { color: #81242b; background: #fff0f1; }
.quiz-result {
  margin-top: 1rem;
  padding: 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 12px;
  font-weight: 780;
}

.checklist {
  display: grid;
  margin: 1rem 0;
  gap: .55rem;
}
.checklist label {
  display: flex;
  padding: .75rem;
  align-items: flex-start;
  gap: .65rem;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.checklist input { margin-top: .3rem; accent-color: var(--success); }
.tool-status {
  margin-top: 1rem;
  padding: .8rem;
  background: #eaf5ff;
  border-radius: 10px;
  font-weight: 750;
}
.plan-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.plan-options label {
  display: flex;
  padding: .6rem .8rem;
  align-items: center;
  gap: .4rem;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.plan-result {
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--mist);
  border-radius: 12px;
}

.faq-list { display: grid; max-width: 900px; gap: .7rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.faq-list summary {
  padding: 1rem 3rem 1rem 1.1rem;
  cursor: pointer;
  font-weight: 820;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  float: right;
  margin-right: -2rem;
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 1.1rem 1rem; color: var(--muted); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}
.related-link {
  display: block;
  min-height: 100%;
  padding: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.related-link:hover { color: var(--blue); border-color: #9fc8eb; }
.related-link small { display: block; margin-top: .35rem; color: var(--muted); font-weight: 550; }

.sources {
  margin: 0;
  padding-left: 1.2rem;
  overflow-wrap: anywhere;
}
.sources li { margin-bottom: .65rem; }

.cta-band {
  padding: clamp(2rem, 5vw, 3.3rem);
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(40,191,211,.22), transparent 34%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 720px; color: #dce8f4; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.site-footer {
  padding-block: 3rem;
  color: #bfd0df;
  background: #04101f;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #dceaf6; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.legal-note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

.updated {
  display: inline-flex;
  margin: 0 0 1.2rem;
  padding: .32rem .62rem;
  color: var(--muted);
  background: var(--mist);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}

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

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    align-items: stretch;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .65rem; }
  .hero { min-height: 570px; }
  .hero::after { background: linear-gradient(90deg, rgba(5,18,35,.96), rgba(5,18,35,.73) 72%, rgba(5,18,35,.4)); }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .site-header .btn--small { display: none; }
  .hero { min-height: 610px; align-items: end; }
  .hero__content { padding-block: 4.2rem 3.4rem; }
  .hero__image { object-position: 64% center; }
  .hero::after { background: linear-gradient(0deg, rgba(5,18,35,.98) 0%, rgba(5,18,35,.9) 58%, rgba(5,18,35,.42) 100%); }
  h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
  .hero__actions, .hero__actions .btn, .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .card-grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: 4rem; }
  .quiz, .tool { padding: 1rem; border-radius: 16px; }
  th, td { min-width: 160px; }
}

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