/* ==========================================================================
   Kithos.vn — site.css v2 (12/2026)
   Nền sáng cho phần đọc, navy của logo cho header/hero/footer.
   ========================================================================== */
:root {
  --navy-950: #04142e;
  --navy-900: #061f44;
  --navy-800: #0b2a57;
  --navy-700: #163f7a;
  --blue-600: #1a5fc0;
  --blue-500: #2275db;
  --teal-600: #138a99;
  --teal-500: #1fa8b9;
  --mint-300: #74eab6;
  --mint-100: #dcf8ec;

  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --line: #e2e8f1;
  --line-strong: #cbd5e3;
  --ink: #0d1b2e;
  --ink-2: #3a4a61;
  --ink-3: #66758c;
  --on-dark: #eef4ff;
  --on-dark-2: #b6c5de;

  --ok: #12805c;
  --warn: #a86400;
  --bad: #c2364a;

  --grad: linear-gradient(110deg, #2275db 0%, #1fa8b9 55%, #74eab6 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(13, 27, 46, .06), 0 8px 24px -12px rgba(13, 27, 46, .18);
  --shadow-lg: 0 30px 70px -30px rgba(4, 20, 46, .55);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { top: 12px; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mint-300); color: var(--navy-950); box-shadow: 0 6px 20px -8px rgba(116, 234, 182, .8); }
.btn--primary:hover { background: #8ff1c6; color: var(--navy-950); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(182, 197, 222, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(182, 197, 222, .8); }
.btn--line { background: #fff; color: var(--navy-900); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--navy-900); color: var(--navy-900); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn--block { width: 100%; }

/* ---------- Promo bar ---------- */
.promo { background: var(--grad); color: var(--navy-950); font-size: .9375rem; }
.promo .container { display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; min-height: 42px; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.promo strong { font-weight: 700; }
.promo a { color: var(--navy-950); font-weight: 600; }
.promo .days { background: rgba(4, 20, 46, .12); border-radius: 999px; padding: 1px 10px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(6, 31, 68, .97); border-bottom: 1px solid rgba(182, 197, 222, .12); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 128px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--on-dark-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .07); }
.nav .btn { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px var(--gutter) 20px; background: var(--navy-900); border-bottom: 1px solid rgba(182, 197, 222, .15); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 600px) { .promo { font-size: .8125rem; } .promo .container { min-height: 36px; } }

/* ---------- Dark hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(31, 168, 185, .28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(34, 117, 219, .3), transparent 60%), var(--navy-900); color: var(--on-dark); padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-600); }
.hero .eyebrow { color: var(--mint-300); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.7rem); }
.hero .lead { color: var(--on-dark-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 36em; }
.proofs { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.proofs li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark); }
.proofs .ic { color: var(--mint-300); margin-top: 3px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.reassure { margin: 16px 0 0; font-size: .875rem; color: var(--on-dark-2); max-width: 34em; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(182, 197, 222, .25); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe6; }
.shot-bar span { margin-left: 10px; font-size: .75rem; color: var(--ink-3); }
.shot img { width: 100%; aspect-ratio: 1288 / 844; object-fit: cover; object-position: top left; }
.shot figcaption { padding: 10px 14px; font-size: .8125rem; color: var(--ink-3); border-top: 1px solid var(--line); background: #fff; }
.hero .shot figcaption { display: none; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Sub-page hero (smaller) */
.hero--page { padding: clamp(36px, 5vw, 64px) 0; }
.hero--page h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }

/* ---------- Facts strip ---------- */
.facts { background: var(--navy-950); color: var(--on-dark); border-top: 1px solid rgba(182, 197, 222, .1); }
.facts ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid rgba(116, 234, 182, .5); }
.facts b { font-size: 1.25rem; color: #fff; font-weight: 700; }
.facts span { font-size: .875rem; color: var(--on-dark-2); }
@media (max-width: 800px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--white { background: var(--bg-alt); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--mint-300); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { color: var(--ink-2); font-size: 1.0625rem; margin: 0; }
.section--dark .section-head .lead { color: var(--on-dark-2); }

/* Pain rows */
.pain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line); }
.pain:first-of-type { border-top: 0; padding-top: 0; }
.pain:nth-of-type(even) .pain-copy { order: 2; }
.pain-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--navy-900); color: var(--mint-300); font-weight: 700; font-size: .9375rem; margin-bottom: 14px; }
.pain h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.pain .problem { color: var(--ink-2); }
.pain .fix { background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--teal-500); border-radius: 10px; padding: 14px 16px; margin: 0; }
.pain .fix strong { color: var(--teal-600); }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } .pain:nth-of-type(even) .pain-copy { order: 0; } }

/* Video */
.video-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.video-frame { position: relative; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(182, 197, 222, .2); color: var(--on-dark); }
.chips .ic { color: var(--mint-300); }
@media (max-width: 860px) { .video-wrap { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: f; }
.feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e8f1fd; color: var(--blue-600); flex: none; }
.tile .ic { width: 22px; height: 22px; }
.tile--teal { background: #e0f5f7; color: var(--teal-600); }
.tile--mint { background: var(--mint-100); color: var(--ok); }
.feature-no { margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.feature .peek { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--blue-600); background: none; border: 0; padding: 4px 0; cursor: pointer; font-family: inherit; }
.feature .peek:hover { color: var(--teal-600); }
.feature--accent { border-color: var(--teal-500); box-shadow: inset 0 0 0 1px var(--teal-500); }
.feature--accent .note { margin-top: 10px; font-size: .875rem; color: var(--teal-600); font-weight: 500; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Products (trang chủ) */
.product-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 44px); }
.product-feature h3 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: 4px; }
.product-sub { color: var(--teal-600); font-weight: 600; margin-bottom: 14px; }
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: var(--mint-100); color: #0b6b4c; }
.badge--brand { background: var(--navy-900); color: var(--mint-300); }
.mini-features { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .9375rem; color: var(--ink-2); }
.mini-features li { display: flex; align-items: center; gap: 8px; }
.mini-features .ic { color: var(--blue-600); }
.product-price { margin: 0 0 20px; color: var(--ink-2); }
.product-price b { color: var(--ink); font-size: 1.125rem; }
.product-next { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: #fff; }
.product-next h3 { margin-bottom: 4px; }
.product-next p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.principles { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .product-feature { grid-template-columns: 1fr; } .product-next { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .principles { grid-template-columns: 1fr; } .mini-features { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(4, 20, 46, .82); }
.lightbox figure { margin: 0; background: #fff; border-radius: 14px; overflow: hidden; }
.lightbox img { width: 100%; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .9375rem; color: var(--ink-2); }
.lightbox button { font: 600 .9375rem var(--font); border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg); font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.compare td { color: var(--ink-2); }
.compare .us { background: #f0fbf6; color: var(--ink); font-weight: 500; }
.compare thead .us { background: var(--navy-900); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.table-note { font-size: .875rem; color: var(--ink-3); margin-top: 12px; }
.cost-line { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--navy-900); color: var(--on-dark); }
.cost-line b { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); color: var(--mint-300); }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.price-tag { display: inline-flex; gap: 6px; align-items: center; background: var(--mint-100); color: #0b6b4c; font-weight: 600; font-size: .875rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.price b { font-size: clamp(2.4rem, 2rem + 1.6vw, 3.25rem); line-height: 1; letter-spacing: -.02em; }
.price span { color: var(--ink-3); font-weight: 500; }
.per-day { color: var(--ink-3); margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--ok); margin-top: 3px; }
.price-actions { display: grid; gap: 10px; }
.assure { display: grid; gap: 14px; }
.assure-item { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.assure-item h3 { font-size: 1rem; margin-bottom: 4px; }
.assure-item p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.about-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.about-card dl { margin: 0; display: grid; gap: 12px; }
.about-card dt { font-size: .8125rem; color: var(--ink-3); }
.about-card dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--mint-300); }
.contact-list .ic { color: var(--mint-300); }
.form { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.form h3 { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(31, 168, 185, .2); }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: .875rem; color: var(--ink-3); }
.form-note.is-success { color: var(--ok); font-weight: 600; }
.form-note.is-error { color: var(--bad); font-weight: 600; }
.form button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-2); padding: 56px 0 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand img { width: 150px; margin-bottom: 12px; }
.footer-brand p { max-width: 26em; }
.site-footer h4 { color: #fff; font-size: .9375rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(182, 197, 222, .12); font-size: .875rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(6, 31, 68, .97); border-top: 1px solid rgba(182, 197, 222, .15); transform: translateY(110%); transition: transform .25s; }
  .mobile-cta.is-on { transform: none; }
  .mobile-cta .btn { min-height: 46px; }
  body.has-mobile-cta .site-footer { padding-bottom: 96px; }
}

/* ---------- Article (blog, policy, download) ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.0625rem; }
.prose h2 { margin-top: 2em; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .9375rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg); font-weight: 600; }
.prose .shot { margin: 1.6em 0; box-shadow: var(--shadow); border-color: var(--line); }
.prose .callout { margin: 2em 0; padding: 24px; border-radius: var(--radius); background: var(--navy-900); color: var(--on-dark); }
.prose .callout h3 { color: #fff; margin-top: 0; }
.prose .callout p { color: var(--on-dark-2); }
.prose .table-wrap { margin: 1.2em 0; }
.prose .table-wrap table { margin: 0; border: 0; min-width: 640px; }
.meta { font-size: .9375rem; color: var(--on-dark-2); }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 2em; font-size: .9375rem; }
.toc ol { margin: 8px 0 0; }
.muted { color: var(--ink-3); }
.post-list { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.post-card h2 { font-size: 1.35rem; }
.post-card p { color: var(--ink-2); margin: 0; }

/* Download page */
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; font-size: .875rem; color: var(--on-dark-2); }
.dl-meta span:not(:empty) { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(182, 197, 222, .2); }
.dl-meta #dl-version { color: var(--mint-300); font-weight: 600; }
.notes-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(182, 197, 222, .18); border-radius: var(--radius-lg); padding: 26px; }
.notes-card h2 { font-size: 1.2rem; color: #fff; }
.notes-card .checks li { color: var(--on-dark); }
.notes-card .checks .ic { color: var(--mint-300); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 700; color: var(--teal-600); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.warn-box { margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: #fff8eb; border: 1px solid #f3dcae; color: #5c4210; font-size: .9375rem; }
.warn-box ul { margin: 6px 0 0; padding-left: 1.2em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: #eef2f7; padding: 1px 6px; border-radius: 5px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
