:root {
  --ink: #14181f;
  --navy-900: #151c2a;
  --navy-850: #1d2839;
  --navy-800: #26344b;
  --navy-700: #3b4f73;
  --navy-600: #4a6089;
  --navy-400: #8697b7;
  --navy-200: #b5c1d8;
  --paper: #eef0f4;
  --white: #ffffff;
  --line: rgba(20, 24, 31, 0.16);
  --wrap: 1160px;
  --gutter: 32px;
  --section-y: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
img, svg { display: block; max-width: 100%; }

a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }
:focus-visible { outline: 2px solid var(--navy-400); outline-offset: 3px; }

[id] { scroll-margin-top: 16px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--navy-900); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.dark { background: var(--navy-900); color: var(--paper); }
.bg-paper { background: var(--paper); }
.bg-white { background: var(--white); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 22px; font-size: 16px; text-decoration: none; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-light { background: var(--paper); color: var(--navy-900); font-weight: 600; }
.btn-light:hover { background: var(--white); color: var(--navy-900); }
.btn-ghost { border: 1px solid var(--navy-600); color: var(--paper); }
.btn-ghost:hover { border-color: var(--navy-200); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 15px; }

/* Header */
.site-header .wrap {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--paper); text-decoration: none; font-weight: 700; font-size: 20px;
}
.brand:hover { color: var(--white); }
.brand svg { width: 30px; height: 30px; }

.lang { color: var(--navy-400); }
.lang b { color: var(--paper); }
.lang a { color: var(--navy-200); }
.lang a:hover { color: var(--white); }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-button { display: none; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.nav a:not(.btn) { color: var(--navy-200); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--white); }
.header-lang { display: none; font-size: 14px; }

/* Hero */
.hero .wrap {
  padding-top: 72px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px;
}
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-600); }
.hero .eyebrow { color: var(--navy-400); }
.hero h1 { font-size: 60px; line-height: 1.05; max-width: 820px; text-wrap: balance; }
.hero .lead { font-size: 19px; line-height: 1.5; color: var(--navy-200); max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-art { width: 100%; max-width: 760px; height: auto; margin-top: 24px; }

/* Section heads */
.stack { display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
h2 { font-size: 40px; line-height: 1.1; }
.muted { color: var(--navy-600); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.media {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, #e5e8ef 0 10px, var(--paper) 10px 20px);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 20px; }
.card p, .rule p, .step p { font-size: 15px; line-height: 1.5; color: var(--navy-600); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.rule { border-left: 3px solid var(--navy-700); padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.rule h3, .step h3 { font-size: 18px; }

/* Steps */
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step-body { display: flex; flex-direction: column; gap: 10px; }
.num {
  flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; background: var(--navy-700); color: var(--white);
}
.num.optional { background: none; border: 2px dashed var(--navy-600); color: var(--navy-700); }
.tag { font-size: 13px; font-weight: 400; color: var(--navy-600); }

/* FAQ */
.faq .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; display: flex; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.chev { color: var(--navy-600); transition: transform .15s; }
.faq details[open] .chev { transform: rotate(90deg); }
.faq details p { margin: 10px 0 0 24px; font-size: 16px; line-height: 1.5; color: var(--navy-600); }

/* CTA band */
.cta { background: var(--navy-800); color: var(--paper); }
.cta .wrap {
  padding-top: 64px; padding-bottom: 64px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta h2 { font-size: 34px; line-height: 1.15; }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--navy-400); }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 36px; font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.site-footer b { color: var(--paper); }
.site-footer a { color: var(--navy-200); }
.site-footer a:hover { color: var(--white); }
.footer-brand, .footer-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.footer-brand svg { width: 24px; height: 24px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; flex-direction: column; }
.notfound main { flex: 1; display: flex; align-items: center; }
.notfound .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ---------- Mobile (≤ 760px), per design/Mobile.dc.html ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 48px; }

  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }

  .header-lang { display: inline; margin-left: auto; }
  .nav-button {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border: 1px solid var(--navy-600); color: var(--paper); cursor: pointer;
  }
  .nav-button .icon-close { display: none; }
  .nav-toggle:checked + .nav-button .icon-open { display: none; }
  .nav-toggle:checked + .nav-button .icon-close { display: block; }
  .nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--navy-400); outline-offset: 3px; }
  .site-header { position: relative; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-900); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--navy-800);
    font-size: 17px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--navy-800); }
  .nav .lang { display: none; }
  .nav .btn { margin-top: 16px; padding: 14px; }

  .hero .wrap { padding-top: 32px; align-items: stretch; text-align: left; gap: 18px; }
  .hero .eyebrow, .eyebrow { font-size: 12px; }
  .hero h1 { font-size: 36px; line-height: 1.08; }
  .hero .lead { font-size: 16px; }
  .actions { flex-direction: column; }
  .actions .btn-ghost { display: none; }
  .hero-art { margin-top: 8px; }

  .stack { gap: 20px; }
  h2 { font-size: 28px; line-height: 1.12; }
  .grid { grid-template-columns: 1fr; gap: 20px; }
  .card-body { padding: 16px; gap: 6px; }
  .card h3 { font-size: 18px; }
  .rules { grid-template-columns: 1fr; gap: 18px; }
  .rule { padding-left: 14px; gap: 4px; }
  .rule h3, .step h3 { font-size: 17px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step { flex-direction: row; gap: 14px; align-items: flex-start; }
  .step-body { gap: 2px; }
  .num { width: 36px; height: 36px; }

  .faq .wrap { gap: 14px; }
  .faq details { padding: 16px 0; }
  .faq summary { font-size: 17px; }
  .faq details p { font-size: 15px; margin-top: 8px; }

  .cta .wrap { padding-top: 40px; padding-bottom: 40px; flex-direction: column; align-items: stretch; gap: 18px; }
  .cta h2 { font-size: 26px; }
  .cta .btn { padding: 14px; }

  .site-footer .wrap { padding-top: 28px; padding-bottom: 28px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.notfound h1 { font-size: 48px; line-height: 1.1; }
.notfound .lead { font-size: 18px; line-height: 1.5; color: var(--navy-200); max-width: 640px; }
.notfound .eyebrow { color: var(--navy-400); }
@media (max-width: 760px) {
  .notfound h1 { font-size: 32px; }
  .notfound .actions { align-self: stretch; }
  .notfound .actions .btn-ghost { display: block; }
}
