/* =========================================================
   tuss.io — marketing site
   Brand: navy #042153 · blue #3B82F6 · amber #FAA61A
   ========================================================= */

:root {
  /* Brand */
  --navy: #042153;
  --navy-900: #021333;
  --navy-800: #06285F;
  --blue: #3B82F6;          /* brand blue — decorative, large text, fills behind white ≥ 18px bold */
  --blue-600: #2563EB;      /* accessible blue for buttons + links on white (5.2:1) */
  --blue-50: #EEF4FF;
  --blue-100: #DCE8FE;
  --amber: #FAA61A;
  --amber-600: #E08E00;

  /* Neutrals */
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --ink: #042153;
  --ink-2: #33415C;
  --muted: #5A6A85;
  --line: #E2E8F2;
  --line-strong: #CBD5E4;

  /* Status */
  --ok: #16A34A;   --ok-bg: #E8F7EE;
  --warn: #C27803; --warn-bg: #FEF5E2;
  --bad: #DC2626;  --bad-bg: #FDECEC;
  --info: #2563EB; --info-bg: #EEF4FF;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape + depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(4, 33, 83, .06), 0 1px 1px rgba(4, 33, 83, .04);
  --shadow: 0 10px 30px -12px rgba(4, 33, 83, .18), 0 2px 6px rgba(4, 33, 83, .05);
  --shadow-lg: 0 40px 80px -30px rgba(4, 33, 83, .35), 0 10px 24px -10px rgba(4, 33, 83, .12);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 76px;
}

/* Mongolian page: Plus Jakarta Sans lacks basic Cyrillic on Google Fonts, so use Manrope (full Cyrillic incl. Ө, Ү). */
html:lang(mn) { --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html:lang(mn) .hero__title { font-size: clamp(42px, 6.6vw, 94px); letter-spacing: -.04em; }
html:lang(mn) .cta__title { letter-spacing: -.045em; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(250, 166, 26, .18);
}
.eyebrow--light { color: #9CC0FF; }

.h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}
.h2 .muted, .muted { color: #7C8AA5; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.6; max-width: 52ch; }

.section { padding-block: clamp(88px, 12vw, 160px); }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 880px; }
.section__head--split {
  max-width: none; display: grid; gap: 24px 64px; align-items: end;
}
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1.2fr 1fr; } }

.footnote { font-size: 13px; color: var(--muted); margin-top: 20px; max-width: 70ch; }
.footnote--light { color: #8FA3C7; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, box-shadow .25s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn--primary:hover { background: #1D4ED8; box-shadow: 0 12px 28px -10px rgba(37, 99, 235, .7); }
.btn--ghost { background: rgba(255, 255, 255, .7); color: var(--navy); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: #fff; border-color: var(--navy); }
.btn--ghost:hover .ic { transform: none; }
.btn--ghost .play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; margin-left: -8px; }
.btn--ghost .play .ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.btn--amber { background: var(--amber); color: var(--navy); }
.btn--amber:hover { background: #FFB53B; }
.btn--amber:hover .ic { transform: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-50); }
.btn--outline-light { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn--outline-light:hover .ic { transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-600); justify-self: start; }
@media (min-width: 900px) { .link-arrow { justify-self: end; } }
.link-arrow .ic { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.link-arrow:hover .ic { transform: translate(2px, -2px); }

/* ---------- Pills / chips / status ---------- */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: #137A38; }
.pill--warn { background: var(--warn-bg); color: #9A5B00; }
.pill--bad { background: var(--bad-bg); color: #B91C1C; }
.pill--blue { background: var(--blue-50); color: var(--blue-600); }

.status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status--ok { background: var(--ok); }
.status--warn { background: var(--amber); }
.status--bad { background: var(--bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--blue-50); color: var(--navy); border: 1px solid var(--blue-100); }
.chips--lg li { font-size: 14px; padding: 7px 14px; }

.dot {
  display: inline-block; width: .17em; height: .17em; border-radius: 50%;
  background: var(--amber); margin-left: .04em; vertical-align: baseline;
  transform: translateY(-.02em);
}

.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-100); color: var(--navy); font-size: 11px; font-weight: 700; flex: none; }
.avatar.a2 { background: #FDE7C2; }
.avatar.a3 { background: #D8F3E2; }
.avatar--lg { width: 48px; height: 48px; font-size: 15px; }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.nav.is-scrolled { background: rgba(246, 248, 252, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { width: 124px; height: auto; margin-block: -8px; }
.nav__links { display: none; gap: 4px; }
.nav__links a { position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--navy); background: rgba(4, 33, 83, .05); }
.nav__links a.is-current { color: var(--navy); }
.nav__links a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); transform: translateX(-50%); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__lang { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ink-2); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .6); transition: color .2s, border-color .2s, background-color .2s; }
.nav__lang:hover { color: var(--navy); border-color: var(--navy); background: #fff; }
.nav__signin { display: none; padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--navy); border-radius: 999px; }
.nav__signin:hover { background: rgba(4, 33, 83, .05); }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; }
.nav__toggle .ic { width: 22px; height: 22px; }
.nav .btn--sm { display: none; }

.mobile-menu {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--surface); padding: 12px var(--gutter) 24px; box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--line);
}
.mobile-menu nav { display: flex; flex-direction: column; margin-bottom: 16px; }
.mobile-menu nav a { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav.menu-open { background: var(--surface); }

@media (min-width: 560px) { .nav .btn--sm { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav__links, .nav__signin { display: flex; }
  .nav__toggle, .mobile-menu { display: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 96px; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(59, 130, 246, .12), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(250, 166, 26, .07), transparent 60%),
    var(--bg);
}
.hero__curves, .cta__curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; display: grid; gap: 64px; align-items: center; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: 1.08fr .92fr; gap: 48px; } }

.hero__title {
  font-size: clamp(46px, 7.6vw, 108px);
  font-weight: 700; line-height: .98; letter-spacing: -.045em;
  margin-bottom: 28px;
}
.hero__title em { font-style: normal; color: var(--blue-600); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.nowrap { white-space: nowrap; }
.js .hero__title .line > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.is-loaded .hero__title .line > span { transform: none; }

.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 54ch; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 40px; }
.hero__tags li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.hero__tags li::before { content: ""; width: 14px; height: 1px; background: var(--line-strong); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll span { width: 1px; height: 40px; background: linear-gradient(var(--line-strong), transparent); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue-600); animation: scrollcue 2s var(--ease-io) infinite; }
@keyframes scrollcue { to { top: 100%; } }
@media (min-width: 1024px) and (min-height: 760px) { .hero__scroll { display: flex; } }

/* Hero visual */
.hero__visual { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.hero__visual .mock { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); }
@media (max-width: 1023px) { .hero__visual .mock { transform: none; } }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; font-size: 13.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow);
  white-space: nowrap;
}
.float-chip b { color: var(--navy); }
.float-chip .ic { width: 18px; height: 18px; color: var(--blue-600); }
.float-chip--a { top: -22px; right: -8px; }
.float-chip--b { bottom: 70px; left: -36px; }
.float-chip--c { bottom: -22px; right: 24px; }
@media (max-width: 640px) {
  .float-chip--a { right: 8px; top: -26px; }
  .float-chip--b { left: 8px; bottom: auto; top: -26px; display: none; }
  .float-chip--c { right: 8px; }
}

/* ---------- Mock window (shared) ---------- */
.mock {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 14px;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #E3E8F0; }
.mock__bar b { margin-left: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__body { padding: 22px; }

.report__score { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.report__score small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.report__score strong { font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.progress { height: 10px; border-radius: 99px; background: var(--blue-50); overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-600)); transform-origin: left; }
.js .progress span { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .6s; }
.is-loaded .progress span { transform: scaleX(1); }
.report__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.report__stats > div { padding: 10px; border-radius: 12px; background: #F7F9FD; border: 1px solid var(--line); }
.report__stats .ic { width: 16px; height: 16px; margin-bottom: 6px; }
.report__stats small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.report__stats b { font-size: 20px; letter-spacing: -.02em; }
.ic--ok { color: var(--ok); } .ic--warn { color: var(--warn); } .ic--info { color: var(--info); } .ic--bad { color: var(--bad); }
.report__rows .row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.report__rows .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .report__stats { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   TRUST
   ========================================================= */
.trust { padding: 56px 0 24px; border-block: 1px solid var(--line); background: var(--surface); }
.trust__head p { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding-bottom: 32px; }
.marquee__track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 44px; width: auto; max-width: 170px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .62; transition: filter .3s, opacity .3s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   WHY NOW
   ========================================================= */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 32px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats + .footnote { margin: -16px 0 32px; }
.footnote a { text-decoration: underline; text-underline-offset: 2px; }
.footnote a:hover { color: var(--blue-600); }
.footnote--light a:hover { color: #fff; }
.stat { background: var(--surface); padding: clamp(28px, 4vw, 48px); }
.stat strong { display: block; font-size: clamp(52px, 6.5vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--navy); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.stat strong sup { font-size: .45em; color: var(--amber-600); vertical-align: top; position: relative; top: .2em; }
.stat p { color: var(--muted); max-width: 30ch; }

.pains { display: grid; gap: 16px; }
@media (min-width: 768px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain { padding: 28px; border-radius: var(--r-lg); background: transparent; border: 1px dashed var(--line-strong); }
.pain__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); margin-bottom: 20px; }
.pain h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 8px; }
.pain p { color: var(--muted); font-size: 15.5px; }

/* =========================================================
   Shared UI bits (file badges, rings, task rows)
   ========================================================= */
.ext { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 6px; font-size: 10px; font-weight: 700; color: #fff; flex: none; }
.ext--pdf { background: #E5484D; } .ext--doc { background: #2B6CE5; } .ext--xls { background: #1F9D55; }

.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--blue-50); stroke-width: 3.2; }
.ring .ring__val { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring--warn .ring__val { stroke: var(--amber); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; letter-spacing: -.03em; }
.ring--sm { width: 64px; height: 64px; }
.ring--sm b { font-size: 15px; }
.js .reveal:not(.is-in) .ring__val { stroke-dashoffset: 100; }

.tasks li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.tasks li:first-child { border-top: 0; }
.tasks li > div { flex: 1; min-width: 0; }
.tasks b { display: block; font-size: 14px; letter-spacing: -.01em; }
.tasks small { color: var(--muted); font-size: 12.5px; }
.tasks .done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.cb { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); flex: none; transition: background-color .25s, border-color .25s; }
.cb .ic { width: 14px; height: 14px; stroke-width: 3; opacity: 0; transition: opacity .2s; }
.done .cb { background: var(--ok); border-color: var(--ok); color: #fff; }
.done .cb .ic { opacity: 1; }
.tasks__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F4F7FC; font-size: 13px; color: var(--ink-2); }
.tasks__foot > span:first-child { display: inline-flex; gap: 8px; align-items: center; }
.tasks__foot .ic { width: 16px; height: 16px; color: var(--blue-600); }

/* =========================================================
   HOW
   ========================================================= */
.engine { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 1024px) { .engine { grid-template-columns: 1fr .8fr 1.2fr; } }
.engine__inputs { display: grid; gap: 20px; }
.input-card, .engine__core, .finding { border-radius: var(--r-lg); padding: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.input-card small, .finding header small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.input-card h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 16px; }

.engine__core { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--navy); color: #fff; border: 0; position: relative; overflow: hidden; }
.engine__core::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(59, 130, 246, .55) 85%, transparent 100%); animation: spin 6s linear infinite; }
.engine__core::after { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--r-lg) - 1px); background: radial-gradient(circle at 50% 30%, #0B3478, var(--navy) 70%); }
.engine__core > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.core { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; margin-bottom: 20px; box-shadow: 0 0 0 10px rgba(59, 130, 246, .15), 0 0 0 22px rgba(59, 130, 246, .07); }
.core img { width: 56px; height: 56px; }
.engine__core h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 14px; }
.engine__modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
.engine__modes li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); }
.engine__core small { color: #9CB3DB; font-size: 13px; }

.finding header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.finding dl { display: grid; gap: 4px; }
.finding dt { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.finding dt:first-child { margin-top: 0; }
.finding dd { font-size: 15px; color: var(--ink-2); }
.finding dd b { color: var(--navy); }
.finding footer { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: #137A38; font-size: 14px; font-weight: 600; }
.finding footer .ic { width: 18px; height: 18px; }

.layers { margin-top: clamp(56px, 7vw, 96px); }
.layers__label { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.layers__list { display: grid; gap: 12px; }
@media (min-width: 640px) { .layers__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .layers__list { grid-template-columns: repeat(4, 1fr); } }
.layers__list li { position: relative; padding: 22px 22px 22px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.layers__list li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.layers__list span { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--blue-600); margin-bottom: 14px; padding: 3px 8px; border-radius: 6px; background: var(--blue-50); }
.layers__list b { display: block; font-size: 17px; letter-spacing: -.015em; }
.layers__list small { color: var(--muted); font-size: 14px; }

/* =========================================================
   RESULTS
   ========================================================= */
.results { background: var(--surface); border-block: 1px solid var(--line); }
.compare { display: grid; gap: 20px; margin-bottom: clamp(56px, 7vw, 88px); }
.compare:last-child { margin-bottom: 0; }
.compare__row { display: grid; gap: 12px 24px; align-items: center; }
@media (min-width: 768px) { .compare__row { grid-template-columns: 220px 1fr minmax(180px, auto); } }
.compare__label b { display: block; font-size: 17px; }
.compare__label small { color: var(--muted); font-size: 14px; }
.compare__bar { height: 56px; border-radius: 14px; background: #F2F5FA; overflow: hidden; }
.compare__bar span { display: block; height: 100%; width: var(--w); min-width: 28px; border-radius: inherit; transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
.js .reveal:not(.is-in) .compare__bar span { transform: scaleX(0); }
.compare__bar--manual span { background: repeating-linear-gradient(-45deg, #C9D3E3 0 10px, #D7DFEC 10px 20px); }
.compare__bar--tuss span { background: linear-gradient(90deg, var(--blue), var(--blue-600)); box-shadow: 0 0 0 6px rgba(59, 130, 246, .15); }
.compare__val { white-space: nowrap; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; color: #8695AF; }
.compare__val--tuss { color: var(--blue-600); }

.kpis { display: grid; gap: 16px; }
@media (min-width: 768px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
.kpi { padding: 32px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.kpi strong { display: block; font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 700; margin-bottom: 18px; background: linear-gradient(135deg, var(--navy), var(--blue-600)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.kpi b { display: block; font-size: 17px; margin-bottom: 4px; }
.kpi p { color: var(--muted); font-size: 15px; }

/* =========================================================
   FEATURES (bento)
   ========================================================= */
.bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 22px; }
.card h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.card > p { color: var(--muted); font-size: 15.5px; margin-bottom: 4px; max-width: 46ch; }
@media (min-width: 1080px) { .card--wide { grid-column: span 2; } }
@media (min-width: 768px) and (max-width: 1079px) { .card--wide { grid-column: span 2; } }

/* features: both cards stack their content and push the grid / chat to the bottom so the cards line up */
.bento .card { display: flex; flex-direction: column; }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-top: auto; padding-top: 24px; }
@media (min-width: 640px) { .agents { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* 8 agents = 4 × 2, no gaps */
@media (max-width: 639px) {   /* phones: icon above the label so long words get the full width */
  .bento .agents li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 12px; font-size: 13.5px; }
}
.agents li { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border-radius: 12px; background: #F7F9FD; border: 1px solid var(--line); font-size: 14px; line-height: 1.3; font-weight: 600; transition: background-color .2s, border-color .2s; }
.agents li:hover { background: var(--blue-50); border-color: var(--blue-100); }
.agents .ic { width: 18px; height: 18px; color: var(--blue-600); }

.card--pilot { background: linear-gradient(160deg, #0A2A66, var(--navy) 60%); color: #fff; border: 0; }
.card--pilot .card__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.card--pilot > p { color: #B4C4E2; }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 24px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg--ai { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); border-bottom-left-radius: 4px; }
.msg--me { align-self: flex-end; background: var(--blue-600); border-bottom-right-radius: 4px; }
.msg--ok { display: inline-flex; align-items: center; gap: 8px; color: #8EF0B4; }
.msg--ok .ic { width: 16px; height: 16px; }
.reveal.is-in .msg { animation: pop .5s var(--ease-out) both; }
.reveal.is-in .msg:nth-child(2) { animation-delay: .5s; }
.reveal.is-in .msg:nth-child(3) { animation-delay: 1s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

.minirings { display: flex; gap: 14px; margin-top: 22px; }
.chips--lg { margin-top: 20px; }

/* =========================================================
   USE CASES
   ========================================================= */
.uc-list { display: grid; border-top: 1px solid var(--line-strong); }
@media (min-width: 900px) { .uc-list { grid-template-columns: repeat(2, 1fr); } }
.uc { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; padding: 36px 0; border-bottom: 1px solid var(--line-strong); position: relative; }
@media (min-width: 900px) {
  .uc { padding: 44px 40px 44px 0; }
  .uc:nth-child(even) { padding: 44px 0 44px 40px; border-left: 1px solid var(--line-strong); }
}
.uc__num { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.uc__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: #fff; transition: background-color .3s, transform .4s var(--ease-out); }
.uc__icon .ic { width: 24px; height: 24px; }
.uc:hover .uc__icon { background: var(--blue-600); transform: rotate(-8deg); }
.uc h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; margin-bottom: 10px; }
.uc p { color: var(--ink-2); margin-bottom: 18px; max-width: 46ch; }

/* =========================================================
   PROOF (navy)
   ========================================================= */
.proof { position: relative; background: var(--navy); color: #fff; padding-block: clamp(88px, 12vw, 160px); overflow: hidden; overflow: clip; }   /* clip (not hidden) keeps the sticky timeline working */
.proof::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .28), transparent 65%); pointer-events: none; }
.proof .container { position: relative; }
.proof__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .proof__grid { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.proof .h2 { max-width: 18ch; margin-bottom: 48px; }
.proof__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof__stats strong { display: block; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.05em; font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.proof__stats div:last-child strong { color: var(--amber); }
.proof__stats > div > span { color: #A9BBDD; font-size: 14.5px; }
.proof__side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { padding: 24px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s; }
.tile:hover { background: rgba(255, 255, 255, .1); }
.tile strong { display: block; font-size: 38px; letter-spacing: -.04em; line-height: 1.1; }
.tile sup { font-size: .5em; color: var(--amber); }
.tile span { color: #A9BBDD; font-size: 14px; }

.gov { margin-top: 72px; padding: 28px; border-radius: var(--r-lg); background: #fff; color: var(--navy); display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .gov { grid-template-columns: 260px 1fr; } }
.gov p { font-weight: 600; font-size: 15px; }
.gov__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.gov__logos img { height: 52px; width: auto; max-width: 210px; object-fit: contain; }

/* ---------- Timeline (scroll-driven: pins + slides sideways on desktop) ---------- */
.tl { margin-top: clamp(72px, 9vw, 120px); position: relative; }
.tl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.timeline__title { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.025em; max-width: 32ch; text-wrap: balance; line-height: 1.2; }
.tl__count { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: #7E93BA; white-space: nowrap; padding-bottom: 6px; }
.tl__count b { color: #fff; font-weight: 500; font-size: 22px; letter-spacing: 0; margin-right: 4px; font-variant-numeric: tabular-nums; }

.tl__track { display: grid; gap: 0; position: relative; }
.tl__item { position: relative; padding: 28px 0 28px 32px; border-left: 1px solid rgba(255, 255, 255, .16); }
.tl__item::before { content: ""; position: absolute; left: -6px; top: 46px; width: 11px; height: 11px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255, 255, 255, .35); transition: background-color .4s, border-color .4s, box-shadow .4s; }
.tl__year {
  display: block; font-size: clamp(64px, 16vw, 96px); font-weight: 800; line-height: .95; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .32); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s;
}
.tl__body { margin-top: 18px; max-width: 38ch; }
.tl__name { display: block; font-size: 19px; letter-spacing: -.015em; color: #fff; margin-bottom: 6px; opacity: .55; transition: opacity .4s; }
.tl__body p { color: #A9BBDD; font-size: 15.5px; line-height: 1.6; transition: color .4s; }

.tl__item.is-active::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(59, 130, 246, .25); }
.tl__item.is-active .tl__year { color: #fff; -webkit-text-stroke-color: #fff; }
.tl__item.is-active .tl__name { opacity: 1; }
.tl__item.is-active .tl__body p { color: #D3DDEF; }
.tl__item--now.is-active::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(250, 166, 26, .25); }
.tl__item--now.is-active .tl__year { color: var(--amber); -webkit-text-stroke-color: var(--amber); }
.tl__progress { display: none; }

/* desktop: sticky stage, items in a row that JS slides left as you scroll */
@media (min-width: 900px) {
  .tl.is-pinned .tl__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--nav-h); }
  .tl__viewport { overflow: hidden; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tl__track { display: flex; width: max-content; will-change: transform; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 44px; }
  .tl__item { width: max-content; min-width: clamp(320px, 30vw, 440px); padding: 0 72px 0 0; border-left: 0; }
  .tl__item::before { left: 0; top: -50px; }
  .tl__year { font-size: clamp(88px, 9vw, 148px); white-space: nowrap; }
  .tl__body { margin-top: 26px; }
  .tl__progress { display: block; height: 2px; margin-top: clamp(32px, 5vh, 56px); background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
  .tl__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); transform-origin: left; transform: scaleX(0); }
  /* reduced motion: one static row of five, milestones light up as the section scrolls into view */
  .tl:not(.is-pinned) .tl__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: auto; }
  .tl:not(.is-pinned) .tl__item { width: auto; min-width: 0; padding-right: 24px; }
  .tl:not(.is-pinned) .tl__year { font-size: clamp(40px, 4.2vw, 64px); }
  .tl:not(.is-pinned) .tl__progress { display: none; }
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.quotes { display: grid; gap: 16px; }
@media (min-width: 1024px) { .quotes { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; } .quote--feature { grid-row: span 2; } }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 3.5vw, 48px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.quote__mark { width: 36px; height: 36px; color: var(--amber); fill: currentColor; stroke: none; margin-bottom: -8px; }
.quote blockquote { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); }
.quote--feature { background: var(--navy); color: #fff; border: 0; position: relative; overflow: hidden; }
.quote--feature::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 0 0 60px rgba(255, 255, 255, .02), 0 0 0 120px rgba(255, 255, 255, .015); pointer-events: none; }
.quote--feature blockquote { color: #fff; font-size: clamp(20px, 2vw, 27px); line-height: 1.5; letter-spacing: -.01em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption b { display: block; font-size: 16px; }
.quote figcaption small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.quote--feature figcaption small { color: #A9BBDD; }
.quote--feature .avatar { background: var(--amber); color: var(--navy); }
.quote--placeholder { border: 1.5px dashed var(--line-strong); background: transparent; }
.quote--placeholder blockquote { color: var(--muted); font-style: italic; }
.quote--placeholder .quote__mark { color: var(--line-strong); }

/* =========================================================
   SECURITY
   ========================================================= */
.security__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .security__grid { grid-template-columns: 1fr 1.15fr; gap: 80px; } }
.security .lead { margin: 20px 0 32px; }
.iso { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; max-width: 420px; }
.iso img { width: 72px; height: 72px; }
.iso b { display: block; font-size: 17px; }
.iso small { color: var(--muted); }
.official small { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.official__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.official__logos img { height: 34px; width: auto; mix-blend-mode: multiply; }
.sec-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; align-self: start; }
@media (min-width: 640px) { .sec-list { grid-template-columns: repeat(2, 1fr); } }
/* desktop: the feature grid spans the full height of the left column, rows share the height equally */
@media (min-width: 1024px) {
  .security__grid { align-items: stretch; }
  .sec-list { align-self: stretch; grid-auto-rows: 1fr; }
  .security__intro { display: flex; flex-direction: column; }
  .security__intro .official { margin-top: auto; }   /* partner logos sit on the same baseline as the grid's bottom */
}
.sec-list li { display: flex; gap: 16px; padding: 26px; background: var(--surface); transition: background-color .25s; }
.sec-list li:hover { background: #FBFCFF; }
.sec-list .ic { width: 24px; height: 24px; color: var(--blue-600); margin-top: 2px; }
.sec-list b { display: block; font-size: 16.5px; margin-bottom: 4px; letter-spacing: -.01em; }
.sec-list p { color: var(--muted); font-size: 14.5px; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing { padding-top: 0; }
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 24px;
  padding: clamp(28px, 3vw, 36px); border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
/* Align head / price / button / list across the three cards */
@media (min-width: 960px) {
  .plan__head p { min-height: 3.1em; }                     /* fallback: reserve two lines */
  @supports (grid-template-rows: subgrid) {
    .plans { row-gap: 24px; }
    .plan { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
    .plan__head p { min-height: 0; }
  }
}
.plan__head h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.plan__head p { color: var(--muted); font-size: 15px; }
.plan__price { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan__price strong { font-size: clamp(40px, 4vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.plan__price small { display: block; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.plan__list { display: grid; gap: 14px; align-content: start; }
.plan__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.plan__list .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--blue-600); stroke-width: 2.2; }
.plan__list b { color: var(--navy); }
.plan__list .is-inherit { font-weight: 600; color: var(--navy); padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.plan__list .is-off { color: #8695AF; }
.plan__list .is-off .ic { color: #A3AFC4; }

.plan--featured { background: linear-gradient(165deg, #0B3478, var(--navy) 60%); color: #fff; border: 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.plan--featured::before { content: ""; position: absolute; width: 420px; height: 420px; top: -200px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 65%); pointer-events: none; }
.plan--featured > * { position: relative; }
.plan--featured:hover { box-shadow: var(--shadow-lg); }
.plan--featured .plan__head p, .plan--featured .plan__price span, .plan--featured .plan__price small { color: #A9BBDD; }
.plan--featured .plan__price { border-color: rgba(255, 255, 255, .14); }
.plan--featured .plan__list li { color: #D3DDEF; }
.plan--featured .plan__list b, .plan--featured .plan__list .is-inherit { color: #fff; }
.plan--featured .plan__list .is-inherit { border-color: rgba(255, 255, 255, .2); }
.plan--featured .plan__list .ic { color: var(--amber); }
.plan__badge {
  position: absolute !important; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--amber); color: var(--navy); font-weight: 500;
}
.pricing__note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }
.pricing__note a { color: var(--blue-600); font-weight: 600; }
.pricing__note a:hover { text-decoration: underline; }
/* =========================================================
   INSIGHTS
   ========================================================= */
.insights { padding-top: 0; }
.news { display: grid; gap: 16px; }
@media (min-width: 768px) { .news { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; padding: 12px 12px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__thumb { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: calc(var(--r-lg) - 8px); margin-bottom: 20px; overflow: hidden; position: relative; }
.post__thumb .ic { width: 56px; height: 56px; stroke-width: 1.25; transition: transform .6s var(--ease-out); }
.post:hover .post__thumb .ic, .post:hover .post__thumb img { transform: scale(1.08); }
.post__thumb--a { background: radial-gradient(circle at 30% 20%, #1E4FA8, var(--navy)); color: #fff; }
.post__thumb--b { background: #FFF6E6; }
.post__thumb--b img { height: 120px; width: auto; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.post__thumb--c { background: linear-gradient(135deg, var(--blue-50), #D6E5FF); color: var(--blue-600); }
.post__meta { display: flex; align-items: center; gap: 12px; padding: 0 12px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: 12px; }
.post h3 { padding: 0 12px; font-size: 18.5px; line-height: 1.35; letter-spacing: -.015em; margin-bottom: 18px; flex: 1; }
.post__more { padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--blue-600); }
.post__more .ic { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.post:hover .post__more .ic { transform: translateX(4px); }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; background: var(--navy); color: #fff; padding-block: clamp(110px, 14vw, 200px); overflow: hidden; text-align: center; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(52px, 10vw, 150px); line-height: .95; letter-spacing: -.05em; font-weight: 700; margin-bottom: 28px; }
.cta__lead { font-size: clamp(17px, 1.5vw, 20px); color: #B9C8E4; margin-bottom: 40px; }
.cta .hero__ctas { justify-content: center; }
.cta__keywords { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 72px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #8FA3C7; }
.cta__keywords li { display: inline-flex; align-items: center; gap: 28px; }
.cta__keywords li + li::before { content: "→"; color: var(--amber); letter-spacing: 0; margin-left: -28px; margin-right: 0; }
.cta__keywords li + li { padding-left: 28px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-900); color: #C4D0E6; padding: 80px 0 32px; }
.footer__top { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr 1.4fr; } }
.footer__brand img { width: 150px; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; font-size: 15px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); color: #fff; transition: background-color .2s, border-color .2s; }
.footer__social a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.footer__social .ic { width: 18px; height: 18px; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7E93BA; margin-bottom: 16px; }
.footer__cols a { display: block; padding: 6px 0; font-size: 15px; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__partof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__partof small { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7E93BA; margin-right: 8px; }
.footer__partof img { height: 60px; width: auto; aspect-ratio: 151 / 75; object-fit: contain; padding: 6px 12px; border-radius: 12px; background: #fff; }
.footer__offices { display: grid; gap: 16px 40px; padding: 28px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .footer__offices { grid-template-columns: 1.4fr 1fr; } }
.footer__offices > div { display: flex; gap: 12px; align-items: flex-start; }
.footer__offices .ic { width: 18px; height: 18px; color: #9CC0FF; margin-top: 3px; }
.footer__offices p { font-size: 14.5px; line-height: 1.55; max-width: 60ch; }
.footer__offices b { display: block; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #7E93BA; margin-bottom: 4px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 14px; color: #8496B8; }
.footer__bottom a:hover { color: #fff; }

/* =========================================================
   DECONSTRUCT — scroll-scrubbed document breakdown
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.dx { position: relative; height: 560vh; background: radial-gradient(1000px 600px at 50% 60%, #E9F1FE, var(--bg) 70%); }
.dx__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: calc(var(--nav-h) + 8px); }
.dx__head { display: grid; gap: 4px 32px; align-items: end; flex: none; }
@media (min-width: 900px) { .dx__head { grid-template-columns: 1fr auto; } .dx__head .eyebrow { grid-column: 1 / -1; } }
.dx__head .eyebrow { margin-bottom: 8px; }
.dx__caps { display: grid; min-height: 92px; }
.dx__cap { grid-area: 1 / 1; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease-in, transform .2s ease-in; }
.dx__cap.is-active { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .18s, transform .6s var(--ease-out) .18s; }
.dx__cap h3 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
.dx__cap p { color: var(--muted); font-size: clamp(15px, 1.3vw, 17px); margin-top: 6px; }
.dx__steps { display: none; gap: 6px; }
@media (min-width: 1160px) { .dx__steps { display: flex; padding-bottom: 8px; } }
.dx__steps li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9AA7BE; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; transition: color .3s, border-color .3s, background-color .3s; }
.dx__steps li.is-active { color: var(--navy); border-color: var(--line-strong); background: #fff; }
.dx__steps li.is-done { color: var(--blue-600); }

.dx__wrap { position: relative; flex: 1; min-height: 0; }
.dx__stage { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; perspective: 1800px; }
.dx__group { position: absolute; inset: 0; transform-origin: 50% 45%; will-change: transform; }
.dx__paper, .dx__header, .dx-strip, .dx-line, .dx-chip, .dx__report, .dx__scan, .dx__hud { position: absolute; }

.dx__paper { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.dx__header { display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.dx__header b { display: block; font-size: 14px; }
.dx__header small { display: block; font-size: 12px; color: var(--muted); }

.dx-strip { display: flex; align-items: center; gap: 14px; padding: 0 52px 0 20px; background: #fff; overflow: hidden; will-change: transform; border: 1px solid transparent; }
.dx-strip__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; transform-origin: top; transform: scaleY(0); background: var(--line-strong); }
.dx-strip__id { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--blue-600); flex: none; width: 26px; }
.dx-strip__txt { flex: 1; min-width: 0; }
.dx-strip__txt b { display: block; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-strip__txt i { display: block; height: 6px; border-radius: 3px; background: #E6ECF5; margin-top: 7px; }
.dx-strip__badge { position: absolute; right: 14px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; display: grid; place-items: center; color: #fff; transform: scale(0); }
.dx-strip__badge .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.dx-strip[data-status="ok"]   { --st: var(--ok); }
.dx-strip[data-status="warn"] { --st: var(--amber); }
.dx-strip[data-status="bad"]  { --st: var(--bad); }
.dx-strip.is-checked .dx-strip__bar, .dx-strip__badge { background: var(--st); }
.dx-strip.is-checked { border-color: color-mix(in srgb, var(--st) 35%, transparent); }
.dx-strip.is-checked[data-status="bad"] { background: #FFF7F7; }
.dx-strip.is-checked[data-status="warn"] { background: #FFFBF1; }

.dx-line { background: var(--blue); transform-origin: 0 0; opacity: .8; }
.dx-line::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: inherit; }
.dx-line.is-v::after { right: auto; top: auto; bottom: -4px; left: 50%; margin: 0 0 0 -4px; }
.dx-line.st-ok { background: var(--ok); } .dx-line.st-warn { background: var(--amber); } .dx-line.st-bad { background: var(--bad); }

.dx-chip { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); opacity: 0; }
.dx-chip small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dx-chip b { display: block; font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-chip em { display: block; font-style: normal; font-size: 12.5px; font-weight: 600; margin-top: 2px; opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-chip[data-status="ok"] em { color: #137A38; } .dx-chip[data-status="warn"] em { color: #9A5B00; } .dx-chip[data-status="bad"] em { color: #B91C1C; }
.is-narrow .dx-chip { padding: 6px 12px; }
.is-narrow .dx-chip small { display: none; }
.is-narrow .dx-chip b { font-size: 13px; }

.dx__scan { height: 2px; background: linear-gradient(90deg, transparent, var(--blue) 20%, var(--blue) 80%, transparent); box-shadow: 0 0 18px 4px rgba(59, 130, 246, .45); opacity: 0; }
.dx__scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 60px; background: linear-gradient(to top, rgba(59, 130, 246, .12), transparent); }

.dx__report { transform-origin: 50% 0; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; display: flex; flex-direction: column; gap: 20px; }
.dx__report header { display: flex; align-items: center; gap: 12px; }
.dx__report header b { display: block; font-size: 17px; letter-spacing: -.015em; }
.dx__report header small { display: block; font-size: 13px; color: var(--muted); }
.dx__ok { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); flex: none; }
.dx__ok .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.dx__score { display: flex; align-items: center; gap: 22px; padding: 18px; border-radius: 16px; background: #F7F9FD; }
.dx__score .ring { width: 104px; height: 104px; }
.dx__score .ring b { font-size: 24px; }
.dx__score .ring .ring__val { transition: none; }
.dx__score ul { flex: 1; display: grid; gap: 8px; }
.dx__score li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.dx__score li b { margin-left: auto; font-size: 16px; color: var(--navy); }
.dx__tasks { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; font-size: 14px; }
.dx__tasks .ic { width: 18px; height: 18px; }
.dx__report footer { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; letter-spacing: .02em; }
.is-narrow .dx__score { gap: 14px; padding: 14px; }
.is-narrow .dx__score .ring { width: 84px; height: 84px; }

.dx__plan { position: absolute; display: flex; flex-direction: column; padding: 26px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; }
.dx__plan .tasks__foot { margin-top: auto; }   /* pin to the bottom so it lines up with the report footer */
.dx__plan header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dx__plan header b { font-size: 17px; letter-spacing: -.015em; }
.dx__plan .tasks li { padding: 12px 0; }
.dx__plan .tasks b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-task { opacity: 0; }
.is-narrow .dx__plan { padding: 18px; }
.is-narrow .dx__plan .tasks b { font-size: 13px; }
.dx__plan .tasks small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-narrow .dx__plan .tasks__foot > span:last-child { display: none; }

.dx__hud { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.dx__hud b { color: var(--navy); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }

@media (max-width: 899px) { .dx { height: 500vh; } .dx__caps { min-height: 84px; } }
@media (max-width: 719px) {
  .dx__cap p { display: none; }
  .dx__caps { min-height: 0; }
  .dx__cap h3 { font-size: 26px; }
  .dx-strip__txt i:last-child { display: none; }
}

/* =========================================================
   BLOG — listing (blog.html) + article (post.html)
   ========================================================= */
.tag--update { background: #FEF3DC; color: #8A5300; }
.tag--news { background: var(--ok-bg); color: #137A38; }
.post__mins { margin-left: auto; font-family: var(--mono); font-size: 11.5px; }
.post__thumb--img { background: var(--blue-50); aspect-ratio: 2 / 1; }   /* blog covers are ~2:1 with text baked in */
.post__thumb--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post:hover .post__thumb--img img { transform: scale(1.04); }
.post__excerpt { padding: 0 12px; margin: -8px 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--blog h3 { flex: 0 0 auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post--blog .post__excerpt { flex: 1; }
.post:focus-visible { outline-offset: 4px; border-radius: var(--r-lg); }

.blog-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 56px; background: radial-gradient(900px 500px at 85% 0%, rgba(59, 130, 246, .12), transparent 60%), var(--bg); }
.blog-hero__inner { position: relative; }
.blog-hero__title { font-size: clamp(44px, 7vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -.045em; margin-bottom: 18px; }
.blog-hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 52ch; margin-bottom: 40px; }
.blog-tools { display: grid; gap: 16px; align-items: center; }
@media (min-width: 960px) { .blog-tools { grid-template-columns: minmax(280px, 400px) 1fr; } .blog-filters { justify-content: flex-end; } }
.blog-search { position: relative; }
.blog-search .ic { position: absolute; left: 18px; top: 50%; margin-top: -10px; color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; height: 52px; padding: 0 20px 0 50px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.blog-search input::placeholder { color: #8695AF; }
.blog-search input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 14.5px; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.chip-btn b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--muted); }
.chip-btn:hover { border-color: var(--navy); color: var(--navy); }
.chip-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-btn.is-active b { color: #9CC0FF; }

.blog-body { padding: 24px 0 clamp(80px, 10vw, 128px); }
/* Editorial lead: one large story + two alongside (blog.html, unfiltered view) */
.blog-featured { margin-bottom: clamp(48px, 6vw, 80px); }
.lead__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.lead__label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.lead__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(250, 166, 26, .18); }
.lead__rule { flex: 1; height: 1px; background: var(--line-strong); }
.lead__note { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 560px) { .lead__note { display: none; } }

.lead-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .lead-grid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 48px; } }

.lead__main { display: flex; flex-direction: column; gap: 18px; }
.lead__img, .lead__thumb { position: relative; overflow: hidden; background: var(--blue-50); aspect-ratio: 2 / 1; }
.lead__img { border-radius: var(--r-xl); box-shadow: 0 30px 60px -36px rgba(4, 33, 83, .45); margin-bottom: 6px; }
.lead__thumb { border-radius: var(--r-lg); }
.lead__img img, .lead__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.lead__img::after, .lead__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(4, 33, 83, .06); pointer-events: none; }

.lead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--muted); }
.lead__meta .tag { font-family: var(--font); letter-spacing: 0; }
.lead__meta > *:not(.tag) + *::before { content: "·"; margin-right: 14px; color: var(--line-strong); }

/* headline with a sweeping underline on hover */
.lead__title { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; color: var(--navy); text-wrap: balance; }
.lead__title span { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% .06em; background-position: 0 100%; transition: background-size .6s var(--ease-out); padding-bottom: .04em; }
.lead__title--sm { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; letter-spacing: -.02em; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead__excerpt { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lead__more { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-weight: 700; font-size: 15px; color: var(--blue-600); padding: 10px 0; border-bottom: 2px solid currentColor; }
.lead__more .ic { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }

.lead__side { display: grid; align-content: start; gap: 0; }
.lead__sublabel { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.lead__item { display: grid; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.lead__item:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 559px) {
  .lead__item { grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 14px; padding: 18px 0; }
  .lead__item .lead__thumb { border-radius: 12px; }
  .lead__item .lead__meta { font-size: 11px; gap: 4px 10px; }
  .lead__item .lead__meta > *:not(.tag) + *::before { margin-right: 10px; }
  .lead__item .lead__meta > span:last-child { display: none; }   /* read time: keep the row on one line */
  .lead__title--sm { font-size: 16.5px; margin-top: 6px; }
}
@media (min-width: 560px) and (max-width: 1023px) { .lead__side { grid-template-columns: 1fr 1fr; column-gap: 24px; } .lead__sublabel { grid-column: 1 / -1; } .lead__item { border-bottom: 0; } }

.lead__main:hover .lead__img img, .lead__item:hover .lead__thumb img { transform: scale(1.04); }
.lead__main:hover .lead__title span, .lead__item:hover .lead__title span,
.lead__main:focus-visible .lead__title span, .lead__item:focus-visible .lead__title span { background-size: 100% .06em; }
.lead__main:hover .lead__more .ic { transform: translateX(4px); }
.lead__main:focus-visible, .lead__item:focus-visible { outline-offset: 6px; border-radius: var(--r-lg); }
.blog-count { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
@media (min-width: 640px) and (max-width: 767px) { .news--grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .news--grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.blog-empty { text-align: center; padding: 64px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-xl); }
.blog-empty b { display: block; font-size: 20px; margin-bottom: 6px; }
.blog-empty p { color: var(--muted); margin-bottom: 20px; }
.blog-more { display: flex; justify-content: center; margin-top: 40px; }
.cta--compact { padding-block: clamp(80px, 10vw, 140px); }
.cta--compact .cta__title { font-size: clamp(44px, 7vw, 104px); }

/* ---------- Article ---------- */
.read-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--amber)); transform-origin: left; transform: scaleX(0); }
.post-page { padding-top: calc(var(--nav-h) + 48px); }
.post-head { max-width: 900px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs a:hover { color: var(--blue-600); }
.post-title { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14.5px; color: var(--muted); }
.post-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.post-meta .ic { width: 17px; height: 17px; }
.post-cover { max-width: 1080px; margin: 0 auto clamp(40px, 6vw, 72px); border-radius: var(--r-xl); overflow: hidden; background: var(--blue-50); box-shadow: var(--shadow-lg); }
.post-cover img { width: 100%; height: auto; max-height: min(620px, 72vh); object-fit: contain; }
.post-layout { display: grid; gap: 40px; align-items: start; padding-bottom: clamp(64px, 8vw, 104px); }
@media (min-width: 1180px) { .post-layout { grid-template-columns: 120px minmax(0, 720px) 260px; justify-content: center; gap: 56px; } }
.post-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 1179px) { .post-aside { position: static; } .post-aside--left { order: 2; } .post-aside--right { order: 3; } .post-main { order: 1; max-width: 720px; margin-inline: auto; width: 100%; } .post-aside--left, .post-aside--right { max-width: 720px; margin-inline: auto; width: 100%; } .post-aside--right .toc { display: none; } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (min-width: 1180px) { .share { flex-direction: column; align-items: flex-start; } .share button span { display: none; } .share button { padding: 0; } }
.share small, .toc small { display: block; width: 100%; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; color: var(--navy); font-size: 13.5px; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--navy); }
.share .ic { width: 18px; height: 18px; }
.share button.is-done { background: var(--ok-bg); border-color: var(--ok); color: #137A38; }

.post-loading { display: grid; gap: 14px; padding: 8px 0 40px; }
.post-loading span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #E9EEF6, #F5F8FC, #E9EEF6); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.post-loading span:nth-child(2) { width: 92%; } .post-loading span:nth-child(3) { width: 70%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.post-missing { text-align: center; padding: 40px 0 80px; }
.post-missing h2 { font-size: 32px; letter-spacing: -.03em; margin-bottom: 8px; }
.post-missing p { color: var(--muted); margin-bottom: 24px; }
.post-intro { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6; color: var(--navy); font-weight: 500; letter-spacing: -.01em; margin-bottom: 32px; padding-left: 20px; border-left: 3px solid var(--amber); }

.prose { font-size: 17.5px; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { color: var(--navy); line-height: 1.3; letter-spacing: -.02em; margin-top: 2em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 24px; } .prose h4 { font-size: 21px; } .prose h5, .prose h6 { font-size: 19px; }
.prose h2 strong, .prose h3 strong, .prose h4 strong, .prose h5 strong, .prose h6 strong { font-weight: 700; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--blue); }
.prose figure { margin: 2em 0; }
.prose img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.prose blockquote { margin: 2em 0; padding: 20px 24px; border-radius: var(--r); background: var(--blue-50); border-left: 3px solid var(--blue-600); color: var(--navy); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #F4F7FC; color: var(--navy); }
.post-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.post-nav { display: grid; gap: 12px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.pn { display: block; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .3s var(--ease-out); }
.pn:hover { border-color: var(--blue-100); transform: translateY(-2px); }
.pn small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.4; color: var(--navy); }
.pn--next { text-align: right; }

.toc { margin-bottom: 24px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--navy); }
.toc a.is-current { color: var(--navy); font-weight: 600; border-left-color: var(--blue-600); }
.aside-cta { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(160deg, #0B3478, var(--navy) 60%); color: #fff; }
.aside-cta b { display: block; font-size: 16.5px; line-height: 1.35; margin-bottom: 8px; }
.aside-cta p { font-size: 14px; color: #B4C4E2; margin-bottom: 16px; }
.related { background: var(--surface); border-top: 1px solid var(--line); }
.related .news { gap: 20px; }

/* =========================================================
   PARTNER (partner.html)
   ========================================================= */
/* range slider (shared) */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--blue-600) var(--fill), var(--blue-100) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--blue-100); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--blue-600); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-600); box-shadow: 0 4px 12px rgba(37, 99, 235, .3); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(37, 99, 235, .3); }
.range-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.partner-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 88px) 0 88px; background: radial-gradient(1000px 560px at 85% 0%, rgba(59, 130, 246, .13), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(250, 166, 26, .07), transparent 60%), var(--bg); }
.partner-hero__inner { position: relative; }
.partner-hero__title { font-size: clamp(44px, 7.4vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -.045em; margin-bottom: 24px; }
.partner-hero__title em { font-style: normal; color: var(--blue-600); }
.partner-hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 56ch; margin-bottom: 36px; }
.partner-hero__stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); max-width: 760px; }
.partner-hero__stats strong { display: block; font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.04em; line-height: 1.1; }
.partner-hero__stats span { color: var(--muted); font-size: 14.5px; }

.ptypes { display: grid; gap: 16px; }
@media (min-width: 900px) { .ptypes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ptype { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.ptype:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.ptype__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy); color: #fff; margin-bottom: 6px; }
.ptype__icon .ic { width: 24px; height: 24px; }
.ptype h3 { font-size: 22px; letter-spacing: -.02em; }
.ptype > p { color: var(--muted); font-size: 15.5px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }

.tiers-sec { background: var(--surface); border-block: 1px solid var(--line); }
.tiers { display: grid; gap: 16px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.tier { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 34px); border-radius: var(--r-xl); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.tier header { display: flex; align-items: center; gap: 14px; }
.tier header h3 { font-size: 21px; letter-spacing: -.02em; }
.tier header small { color: var(--muted); font-size: 14px; }
.tier__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); flex: none; }
.tier__main { padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.tier__main small { display: block; font-size: 13px; color: var(--muted); }
.tier__main strong { font-size: clamp(52px, 5.5vw, 72px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.tier__rows { display: grid; gap: 10px; }
.tier__rows > div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line-strong); }
.tier__rows dt { font-size: 14.5px; color: var(--ink-2); }
.tier__rows dd { font-size: 18px; font-weight: 700; color: var(--navy); }
.tier--gold .tier__icon { background: #FEF3DC; color: #9A5B00; }
.tier--platinum { background: linear-gradient(165deg, #0B3478, var(--navy) 60%); border: 0; color: #fff; box-shadow: var(--shadow-lg); }
.tier--platinum::before { content: ""; position: absolute; width: 380px; height: 380px; top: -180px; right: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .45), transparent 65%); pointer-events: none; }
.tier--platinum > * { position: relative; }
.tier--platinum header small, .tier--platinum .tier__main small { color: #A9BBDD; }
.tier--platinum .tier__icon { background: rgba(255, 255, 255, .12); color: var(--amber); }
.tier--platinum .tier__main { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.tier--platinum .tier__main strong { color: var(--amber); }
.tier--platinum .tier__rows > div { border-color: rgba(255, 255, 255, .18); }
.tier--platinum .tier__rows dt { color: #D3DDEF; }
.tier--platinum .tier__rows dd { color: #fff; }

.materials { display: grid; gap: 16px; }
@media (min-width: 640px) { .materials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .materials { grid-template-columns: repeat(3, 1fr); } }
.mat { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s; }
.mat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.mat__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); margin-bottom: 8px; transition: background-color .3s, color .3s; }
.mat:hover .mat__icon { background: var(--blue-600); color: #fff; }
.mat h3 { font-size: 19px; letter-spacing: -.02em; }
.mat p { color: var(--muted); font-size: 15px; flex: 1; }
.mat__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--blue-600); }
.mat__go .ic { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.mat:hover .mat__go .ic { transform: translate(2px, -2px); }
.company { display: grid; gap: 20px; align-items: center; margin-top: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .35s, border-color .35s; }
.company:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
@media (min-width: 900px) { .company { grid-template-columns: auto 1fr auto; gap: 28px; } }
.company__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--blue-50); }
.company small { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.company h3 { font-size: 22px; letter-spacing: -.02em; margin: 4px 0 6px; }
.company p { color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.company .btn { justify-self: start; }

.calc-sec { padding-top: clamp(64px, 8vw, 104px); }
.calc { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .calc { grid-template-columns: 1.25fr 1fr; gap: 24px; } }
.calc__inputs { display: grid; gap: 20px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.calc__pkgs { display: grid; gap: 12px; }
.pkg { padding: 18px 20px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); transition: border-color .25s, background-color .25s; }
.pkg.is-on { border-color: var(--blue-100); background: #F5F9FF; }
.pkg__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pkg__head small { display: block; font-size: 12.5px; color: var(--muted); }
.pkg__head b { font-size: 17px; letter-spacing: -.01em; }
.pkg__head b span { font-weight: 500; font-size: 13.5px; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; overflow: hidden; flex: none; }
.stepper button { width: 40px; height: 44px; font-size: 20px; color: var(--navy); transition: background-color .15s; }
.stepper button:hover { background: var(--blue-50); }
.stepper input { width: 58px; height: 44px; border: 0; border-inline: 1px solid var(--line); text-align: center; font: inherit; font-weight: 700; font-size: 16px; color: var(--navy); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--blue-50); }
.pkg__more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 13.5px; font-weight: 600; color: var(--blue-600); cursor: pointer; list-style: none; }
.pkg__more summary::-webkit-details-marker { display: none; }
.pkg__more summary::after { content: "+"; font-size: 16px; transition: transform .2s; }
.pkg__more[open] summary::after { transform: rotate(45deg); }
.pkg__more p { font-size: 14px; color: var(--ink-2); margin: 4px 0 8px; }
.pkg__more ul { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; }
.pkg__more li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.calc__field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.calc__field output { font-size: 22px; font-weight: 700; color: var(--blue-600); letter-spacing: -.02em; }
.calc__toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.calc__toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; background: var(--line-strong); transition: background-color .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out); }
.calc__toggle input:checked + .switch { background: var(--blue-600); }
.calc__toggle input:checked + .switch::after { transform: translateX(18px); }
.calc__toggle input:focus-visible + .switch { box-shadow: 0 0 0 4px rgba(37, 99, 235, .3); }

.calc__out { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-xl); background: linear-gradient(165deg, #0B3478, var(--navy) 55%); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 1024px) { .calc__out { position: sticky; top: calc(var(--nav-h) + 20px); } }
.calc__out::before { content: ""; position: absolute; width: 420px; height: 420px; top: -200px; right: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .4), transparent 65%); pointer-events: none; }
.calc__out > * { position: relative; }
.calc__label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #8FA3C7; }
.calc__lines { display: grid; gap: 8px; min-height: 64px; }
.calc__empty { color: #8FA3C7; font-size: 14.5px; font-style: italic; padding: 12px 0; }
.cl { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: #D3DDEF; }
.cl b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl--disc { color: #9CC0FF; } .cl--disc b { color: #9CC0FF; }
.cl--ok, .cl--ok b { color: #8EF0B4; }
.cl--muted { color: #8FA3C7; } .cl--muted b { color: #B9C8E4; }
.calc__total { padding: 18px 0; border-block: 1px solid rgba(255, 255, 255, .14); }
.calc__total small { display: block; font-size: 13.5px; color: #A9BBDD; }
.calc__total strong { display: block; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__comm { display: grid; gap: 8px; }
.calc__comm > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.calc__comm span { font-size: 14px; color: #D3DDEF; }
.calc__comm b { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__comm .is-top { background: rgba(250, 166, 26, .14); border-color: rgba(250, 166, 26, .4); }
.calc__comm .is-top b { color: var(--amber); }
.calc__note { font-size: 12.5px; color: #8FA3C7; line-height: 1.5; }
.cta__title--md { font-size: clamp(52px, 9vw, 130px); }

/* =========================================================
   LEGAL (privacy.html, terms.html)
   ========================================================= */
.legal-hero { padding: calc(var(--nav-h) + 48px) 0 40px; background: radial-gradient(900px 400px at 85% 0%, rgba(59, 130, 246, .10), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.crumbs--left { justify-content: flex-start; margin-bottom: 20px; }
.legal-title { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.04em; font-weight: 700; }
.legal-doc { margin-top: 10px; color: var(--muted); font-size: 16px; }
.legal-switch { display: inline-flex; gap: 4px; margin-top: 28px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.legal-switch > * { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.legal-switch a:hover { color: var(--navy); background: var(--blue-50); }
.legal-switch .is-current { background: var(--navy); color: #fff; }
@media (max-width: 520px) {
  .legal-switch { display: flex; }
  .legal-switch > * { flex: 1; justify-content: center; text-align: center; padding: 6px 10px; font-size: 13.5px; line-height: 1.3; }
}

.legal-layout { display: grid; gap: 32px; align-items: start; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
@media (min-width: 1080px) { .legal-layout { grid-template-columns: 280px minmax(0, 760px); justify-content: center; gap: 64px; } }
.legal-aside { display: grid; gap: 16px; }
@media (min-width: 1080px) { .legal-aside { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; } }
.legal-aside .toc { margin: 0; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.legal-aside .toc ol { border-left: 0; gap: 0; }
.legal-aside .toc a { display: flex; gap: 10px; padding: 8px 10px; margin: 0; border-left: 0; border-radius: 10px; font-size: 14px; }
.legal-aside .toc a span { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 18px; padding-top: 1px; }
.legal-aside .toc a:hover { background: var(--bg); }
.legal-aside .toc a.is-current { background: var(--blue-50); color: var(--navy); }
.legal-aside .toc a.is-current span { color: var(--blue-600); }
.legal-print { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); }
.legal-print:hover { border-color: var(--navy); }
.legal-print .ic { width: 18px; height: 18px; }
@media (max-width: 1079px) { .legal-print { display: none; } }

.legal-body { font-size: 16.5px; line-height: 1.75; }
.legal-body > * + * { margin-top: .7em; }
.legal-lead { font-size: 18px; color: var(--navy); font-weight: 500; padding: 20px 22px; border-radius: var(--r); background: var(--blue-50); border-left: 3px solid var(--blue-600); }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; font-size: 24px; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-num { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; color: var(--blue-600); background: var(--blue-50); padding: 3px 8px; border-radius: 6px; flex: none; }
.legal-body h3 { font-size: 19px; margin-top: 1.6em; }
.legal-body .lv3 { padding-left: 1.6em; }
.legal-body .lv4 { padding-left: 3.2em; }
.legal-body .lv3, .legal-body .lv4 { margin-top: .35em; color: #4A5872; }
.legal-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 3em !important; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-end p { flex-basis: 100%; color: var(--muted); }

@media print {
  .nav, .footer, .legal-aside, .legal-switch, .crumbs, .legal-end .btn, .skip-link { display: none !important; }
  .legal-hero { padding: 0 0 16px; background: none; }
  .legal-layout { display: block; padding: 0; }
  body { background: #fff; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero__title .line > span { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 32px 48px; padding-inline: var(--gutter); }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .engine__core::before { display: none; }
}
