/* =========================================================
   WCAG.RO v2 · Design system + homepage
   Brand: Wawsome · Blue #1B4FD8 · Teal #00C9A7 · Navy #0A1633
   ========================================================= */

:root {
  --blue: #1B4FD8;
  --blue-700: #1540B4;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --teal: #00C9A7;
  --teal-ink: #00705E;          /* teal usable as text on light bg (5.9:1) */
  --teal-50: #E3FBF6;
  --navy: #0A1633;
  --navy-800: #111F45;
  --navy-700: #1A2A58;
  --ink: #0A1633;
  --ink-2: #33415F;
  --muted: #4E5B78;
  --on-dark: #FFFFFF;
  --on-dark-2: #B9C5E3;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --line: #E2E7F1;
  --line-2: #CED6E6;
  --focus: #1B4FD8;
  --warn: #B4361C;

  --ff-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --ff-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .35vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4.4vw, 5.1rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10,22,51,.06), 0 1px 1px rgba(10,22,51,.04);
  --shadow-md: 0 8px 24px -8px rgba(10,22,51,.14), 0 2px 6px rgba(10,22,51,.05);
  --shadow-lg: 0 30px 60px -20px rgba(10,22,51,.28), 0 12px 24px -12px rgba(10,22,51,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html:not(.motion-off) { scroll-behavior: smooth; } }
body {
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--teal); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--teal); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000; transform: translateY(-300%);
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.dark .eyebrow { color: var(--teal); }
.display { font-family: var(--ff-display); font-weight: 400; letter-spacing: -.01em; }
.h2 { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.015em; line-height: 1.06; }
.h2 em, .display em { font-style: italic; color: var(--blue); }
.dark .h2 em { color: var(--teal); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: 1.6; }
.dark .lead { color: var(--on-dark-2); }
.section-head { max-width: 760px; display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, color .25s, border-color .25s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(27,79,216,.55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); flex: none; }
.btn:hover .arr { transform: translateX(4px); }
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-lg { min-height: 56px; padding: 1rem 1.7rem; font-size: 1rem; }
.btn-sm { min-height: 42px; padding: .55rem 1.05rem; }
.btn-teal { --btn-bg: var(--teal); --btn-fg: var(--navy); }
.btn-teal:hover { box-shadow: 0 12px 28px -10px rgba(0,201,167,.65); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn-ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.btn-outline-light:hover { --btn-bd: #fff; box-shadow: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: var(--fs-sm);
  color: var(--blue); text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }
.dark .link-arrow { color: var(--teal); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(10,22,51,.25);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 38px; height: 38px; transition: transform .5s var(--ease-spring); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.logo-name { display: block; font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; line-height: 1; }
.logo-name span { color: var(--blue); }
.logo-sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.dark .logo, .site-footer .logo { color: #fff; }
.site-footer .logo-name span { color: var(--teal); }
.site-footer .logo-sub { color: var(--on-dark-2); }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; list-style: none; padding: 0; }
.nav-item { position: relative; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-trigger:hover, .nav-link:hover, .nav-trigger[aria-expanded="true"] { background: var(--blue-50); color: var(--ink); text-decoration: none; }
.nav-trigger .chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; min-width: 340px;
  translate: -50% 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
}
.mega.wide { min-width: 540px; }
.mega.wide ul { grid-template-columns: 1fr 1fr; }
.mega::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.mega a {
  display: grid; grid-template-columns: 36px 1fr; gap: .1rem .75rem; align-items: center;
  padding: .6rem .7rem; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.mega a:hover { background: var(--bg); }
.mega a:hover .mi { background: var(--blue); color: #fff; }
.mega .mi {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); transition: background-color .2s, color .2s;
}
.mega .mi svg { width: 18px; height: 18px; }
.mega .mt { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; }
.mega .md { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); place-items: center; background: #fff; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--navy); color: #fff;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto;
  clip-path: circle(0% at calc(100% - 44px) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.drawer.open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; transition-delay: 0s; }
.drawer-close { position: absolute; top: 13px; right: var(--gutter); width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; color: #fff; }
.drawer-close svg { width: 20px; height: 20px; }
.drawer details { border-bottom: 1px solid rgba(255,255,255,.12); }
.drawer summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0; font-family: var(--ff-display); font-size: 1.6rem; cursor: pointer;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.drawer details[open] summary svg { transform: rotate(45deg); }
.drawer details ul { list-style: none; padding: 0 0 1rem; display: grid; gap: .1rem; }
.drawer details a, .drawer .d-link { color: var(--on-dark-2); text-decoration: none; display: block; padding: .5rem 0; font-weight: 600; }
.drawer .d-link { font-family: var(--ff-display); font-size: 1.6rem; color: #fff; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 400; }
.drawer a:hover { color: #fff; text-decoration: underline; }
.drawer .drawer-cta { display: grid; gap: .75rem; margin-top: 2rem; }

@media (max-width: 1100px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .header-actions .btn-teal { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(27,79,216,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,79,216,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-1 { width: 520px; height: 520px; background: #9DB6FF; top: -160px; right: -80px; }
.orb-2 { width: 380px; height: 380px; background: #7FF0DB; bottom: -120px; right: 28%; opacity: .45; }
.orb-3 { width: 300px; height: 300px; background: #C9D7FF; top: 30%; left: -140px; opacity: .5; }

.hero-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.6rem; justify-items: start; }
.pill-link {
  display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .45rem .35rem .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: border-color .2s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pill-link:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; }
.pill-link .tag { background: var(--navy); color: #fff; border-radius: 999px; padding: .25rem .6rem; font-weight: 700; display: inline-flex; align-items: center; gap: .4rem; }
.pill-link .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; box-shadow: 0 0 0 0 rgba(0,201,167,.7); }
.motion-ok .pill-link .tag i { animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,201,167,.7); } 80%,100% { box-shadow: 0 0 0 8px rgba(0,201,167,0); } }
.pill-link svg { width: 14px; height: 14px; }

.hero h1 { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.025em; }
.hero h1 .w { display: inline-block; }
.hero h1 .mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 em { font-style: italic; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 .underline { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; color: var(--teal); overflow: visible; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 600; }
.hero-checks li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-checks svg { width: 20px; height: 20px; color: var(--teal-ink); flex: none; }

/* Hero demo: sample page + Wawsome widget replica.
   Both boxes have FIXED dimensions, so no option can move or resize them. */
.demo { position: relative; padding-right: 24px; }
.demo-stage { position: relative; transform-style: preserve-3d; height: 548px; }
.browser {
  position: absolute; left: 0; top: 0; width: calc(100% - 110px); height: 440px;
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; display: flex; flex-direction: column;
}
.browser-bar { flex: none; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #FAFBFE; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #D8DEEA; display: block; }
.url { flex: 1; display: flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.url svg { width: 12px; height: 12px; color: var(--teal-ink); flex: none; }

.site-mock { flex: 1; min-height: 0; overflow: hidden; padding: 1.3rem 1.3rem 1rem; font-size: 15px; color: #1D2740; background: #fff; transition: background-color .3s, color .3s, filter .3s; }
.sm-col { width: calc(100% - 175px); min-width: 200px; display: grid; gap: .7em; align-content: start; }
.sm-nav { display: flex; justify-content: space-between; align-items: center; font-size: .8em; font-weight: 700; margin-bottom: .3em; }
.sm-nav .brand { font-family: var(--ff-display); font-weight: 400; font-size: 1.35em; }
.sm-nav .links { display: flex; gap: .8rem; white-space: nowrap; color: #5F6B85; font-weight: 600; }
.sm-badge { justify-self: start; font-size: .7em; font-weight: 700; color: #56607A; background: #F1F3F8; border-radius: 999px; padding: .2em .7em; }
.motion-ok .sm-badge { animation: wiggle 2.6s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-4deg); } 20% { transform: rotate(4deg); } 30% { transform: rotate(0); } }
.sm-h { font-family: var(--ff-display); font-size: 1.6em; line-height: 1.1; font-weight: 400; }
.sm-p { font-size: .85em; color: #5F6B85; line-height: 1.55; }
.sm-row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.sm-btn { background: #3D63D6; color: #fff; font-weight: 700; font-size: .78em; padding: .6em 1em; border-radius: 8px; }
.sm-link { font-size: .8em; color: #2F56C9; font-weight: 600; }
.sm-h2 { font-weight: 800; font-size: .95em; margin-top: .4em; }
.sm-list { display: grid; gap: .35em; font-size: .8em; color: #5F6B85; }
.sm-list span::before { content: "• "; color: #3D63D6; }

/* states driven by the replica widget */
.site-mock.s-size-1 { font-size: 17px; }
.site-mock.s-size-2 { font-size: 19px; }
.site-mock.s-size-3 { font-size: 21px; }
.site-mock.s-size-4 { font-size: 23px; }
.site-mock.s-sp-1 .sm-p, .site-mock.s-sp-1 .sm-list { letter-spacing: .04em; }
.site-mock.s-sp-2 .sm-p, .site-mock.s-sp-2 .sm-list { letter-spacing: .08em; }
.site-mock.s-sp-3 .sm-p, .site-mock.s-sp-3 .sm-list { letter-spacing: .12em; }
.site-mock.s-sp-4 .sm-p, .site-mock.s-sp-4 .sm-list { letter-spacing: .16em; }
.site-mock.s-high { background: #fff; color: #000; }
.site-mock.s-high .sm-p, .site-mock.s-high .sm-list, .site-mock.s-high .sm-nav .links, .site-mock.s-high .sm-badge { color: #000; }
.site-mock.s-high .sm-btn { background: #001A80; }
.site-mock.s-high .sm-link { color: #001A80; text-decoration: underline; }
.site-mock.s-invert { filter: invert(1) hue-rotate(180deg); }
.site-mock.s-links .sm-link { background: #FFF3A6; color: #0A1633; text-decoration: underline 2px; text-underline-offset: 3px; padding: .1em .3em; border-radius: 4px; outline: 2px solid #0A1633; }
.site-mock.s-titles .sm-h, .site-mock.s-titles .sm-h2 { outline: 2px dashed #1C50D8; outline-offset: 3px; background: #EEF3FF; border-radius: 4px; }
.site-mock.s-still .sm-badge { animation: none !important; }

/* Replica of the Wawsome widget panel */
.ww {
  --ww-blue: #1C50D8; --ww-ink: #1F2A44; --ww-muted: #434E61;
  position: absolute; right: 0; top: 64px; width: 290px; height: 484px;
  display: flex; flex-direction: column; gap: 6px; padding: 7px;
  background: #DDF5EF; border-radius: 22px;
  box-shadow: 0 40px 80px -30px rgba(10,22,51,.45), 0 0 0 1px rgba(10,22,51,.06);
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ww-ink);
  transform: translateZ(60px);
}
.ww-head { flex: none; background: var(--ww-blue); color: #fff; border-radius: 16px; padding: 12px 12px 12px 14px; display: grid; gap: 10px; }
.ww-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ww-title { font-size: 14.5px; font-weight: 700; }
.ww-x { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ww-blue); display: grid; place-items: center; flex: none; }
.ww-x svg { width: 13px; height: 13px; }
.ww-bar { display: flex; gap: 6px; }
.ww-reset { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 999px; min-height: 34px; font-family: inherit; transition: background-color .2s; }
.ww-reset:hover { background: rgba(255,255,255,.28); }
.ww-reset svg { width: 14px; height: 14px; }
.ww-lang { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border-radius: 999px; padding: 0 12px 0 5px; font-size: 12.5px; font-weight: 600; min-height: 34px; }
.ww-flag { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(90deg, #002B7F 33.3%, #FCD116 33.3% 66.6%, #CE1126 66.6%); box-shadow: 0 0 0 2px #fff; }
.ww-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; scrollbar-width: thin; border-radius: 16px; }
.ww-body:focus-visible { outline-offset: -3px; }
.ww-card { background: #fff; border-radius: 16px; padding: 10px 10px 12px; display: grid; gap: 10px; }
.ww-card-title { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ww-muted); font-weight: 500; }
.ww-card-title svg { width: 16px; height: 16px; color: var(--ww-ink); flex: none; }
.ww-card-title span { flex: 1; text-align: center; }
.ww-card-title .chev { width: 14px; height: 14px; transform: rotate(180deg); }
.ww-row { display: grid; gap: 6px; }
.ww-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--ww-ink); }
.ww-label svg { width: 15px; height: 15px; flex: none; }
.ww-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.ww-opts.two { grid-template-columns: repeat(2, 1fr); }
.ww-opt { background: #F6F7F9; color: var(--ww-blue); font-size: 12px; font-weight: 700; min-height: 32px; font-family: inherit; border: 2px solid #F6F7F9; transition: background-color .2s, color .2s, border-color .2s; }
.ww-opt:first-child { border-radius: 8px 0 0 8px; }
.ww-opt:last-child { border-radius: 0 8px 8px 0; }
.ww-opt:hover { border-color: var(--ww-blue); }
.ww-opt[aria-pressed="true"] { background: var(--ww-blue); color: #fff; border-color: var(--ww-blue); }
.ww-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ww-tile { display: grid; justify-items: center; gap: 5px; padding: 9px 4px; border-radius: 12px; border: 2px solid transparent; background: #fff; font-family: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.2; color: var(--ww-muted); text-align: center; transition: border-color .2s, background-color .2s, color .2s; }
.ww-tile svg { width: 20px; height: 20px; color: var(--ww-ink); }
.ww-tile:hover { border-color: #CFDAF7; }
.ww-tile[aria-pressed="true"] { border-color: var(--ww-blue); background: #EEF3FF; color: var(--ww-blue); }
.ww-tile[aria-pressed="true"] svg { color: var(--ww-blue); }
.ww-foot { flex: none; background: var(--ww-blue); color: #fff; border-radius: 14px; padding: 7px 7px 7px 12px; display: flex; align-items: center; gap: 8px; }
.ww-logo { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.ww-links { flex: 1; font-size: 8.5px; text-align: right; opacity: .95; line-height: 1.3; }
.ww-fab { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; flex: none; }
.ww-fab svg { width: 20px; height: 20px; }
.demo-note { position: absolute; left: 0; top: 456px; width: calc(100% - 310px); font-size: var(--fs-xs); color: var(--muted); display: flex; gap: .5rem; align-items: flex-start; }
.demo-note svg { width: 16px; height: 16px; flex: none; color: var(--blue); margin-top: 2px; }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .demo { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (max-width: 620px) {
  .demo { padding-right: 0; }
  .demo-stage { height: auto; display: grid; gap: 1rem; }
  .browser { position: relative; width: 100%; height: 360px; }
  .sm-col { width: 100%; }
  .ww { position: relative; top: auto; right: auto; width: 100%; height: 470px; transform: none; }
  .demo-note { position: static; width: auto; margin-top: .8rem; }
}

/* ---------- Standards strip ---------- */
.standards { border-block: 1px solid var(--line); background: #fff; }
.standards .container { display: flex; align-items: center; gap: 1.5rem 2rem; padding-block: 1.4rem; flex-wrap: wrap; justify-content: space-between; }
.standards p { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.std-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.std-list a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .3s var(--ease);
}
.std-list a:hover { border-color: var(--blue); background: var(--blue-50); transform: translateY(-2px); }
.std-list svg { width: 15px; height: 15px; color: var(--teal-ink); }

/* ---------- Problem / data section (dark) ---------- */
.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dark .noise { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(27,79,216,.45), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(0,201,167,.18), transparent 70%);
}
.data-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.big-stat { display: grid; gap: .6rem; }
.big-num { font-family: var(--ff-display); font-size: clamp(5rem, 3rem + 9vw, 10.5rem); line-height: .9; letter-spacing: -.04em; color: #fff; }
.big-num .u { color: var(--teal); }
.big-cap { font-size: var(--fs-lg); color: var(--on-dark-2); max-width: 420px; }
.big-cap strong { color: #fff; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.mini { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 1.1rem 1.2rem; background: rgba(255,255,255,.03); }
.mini b { display: block; font-family: var(--ff-display); font-weight: 400; font-size: 2.3rem; line-height: 1; }
.mini > span { font-size: var(--fs-sm); color: var(--on-dark-2); }
.source { margin-top: 1.5rem; font-size: var(--fs-xs); color: var(--on-dark-2); }
.source a { color: #fff; }

.bars-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.2rem); }
.bars-card h3 { font-size: var(--fs-h3); margin-bottom: .35rem; }
.bars-card > p { color: var(--on-dark-2); font-size: var(--fs-sm); margin-bottom: 1.6rem; }
.bars { list-style: none; padding: 0; display: grid; gap: 1.05rem; }
.bar-row { display: grid; gap: .4rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-sm); font-weight: 600; }
.bar-label .pct { font-variant-numeric: tabular-nums; color: var(--teal); font-weight: 800; }
.bar-track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--teal)); transform-origin: 0 50%; }
.bar-fix { font-size: var(--fs-xs); color: var(--on-dark-2); display: flex; align-items: center; gap: .4rem; }
.bar-fix svg { width: 14px; height: 14px; color: var(--teal); flex: none; }
@media (max-width: 900px) { .data-grid { grid-template-columns: 1fr; } }

/* ---------- Services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; grid-column: span 3; display: flex; flex-direction: column; gap: .8rem;
  padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(27,79,216,.09), transparent 45%);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); text-decoration: none; }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
.tile p { color: var(--muted); font-size: var(--fs-sm); }
.tile .link-arrow { margin-top: auto; padding-top: .4rem; }
.tile-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); transition: transform .5s var(--ease-spring); }
.tile:hover .tile-ico { transform: rotate(-6deg) scale(1.08); }
.tile-ico svg { width: 24px; height: 24px; }
.tile-ico.t { background: var(--teal-50); color: var(--teal-ink); }
.tile.feature { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--blue) 0%, #163FB0 100%); color: #fff; border: 0; }
.tile.feature::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.14), transparent 45%); }
.tile.feature h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem); line-height: 1.08; }
.tile.feature p { color: #D6E0FF; font-size: var(--fs-md); }
.tile.feature .tile-ico { background: rgba(255,255,255,.14); color: #fff; }
.tile.feature .link-arrow { color: #fff; }
.tile.wide { grid-column: span 3; }
.code-chip {
  font-family: var(--ff-mono); font-size: .8rem; background: rgba(10,22,51,.35); color: #DCE6FF;
  border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .8rem 1rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.code-chip .k { color: #7FF0DB; } .code-chip .s { color: #FFD58A; }
.feature-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.feature-list li { font-size: var(--fs-xs); font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.wide { grid-column: span 1; } .tile.feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .tile, .tile.wide, .tile.feature { grid-column: auto; } }

/* ---------- Legislation: tabs + timeline ---------- */
.law { background: #fff; }
.law-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .law-top { grid-template-columns: 1fr; } }
.seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); position: relative; }
.seg [role="tab"] {
  position: relative; z-index: 1; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2);
  transition: color .3s; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem;
}
.seg [role="tab"] svg { width: 17px; height: 17px; }
.seg [role="tab"][aria-selected="true"] { color: #fff; }
.seg-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--navy); transition: transform .45s var(--ease), width .45s var(--ease); }
.no-js .seg [role="tab"][aria-selected="true"], .seg.no-ind [role="tab"][aria-selected="true"] { background: var(--navy); }

.law-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.law-panel[hidden] { display: none; }
@media (max-width: 860px) { .law-panel { grid-template-columns: 1fr; } }
.law-card { border-radius: var(--r-xl); padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 1.1rem; align-content: start; }
.law-card .kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.law-card h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.1; }
.law-card p { color: var(--ink-2); }
.who { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.who li { font-size: var(--fs-xs); font-weight: 700; padding: .4rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; display: grid; gap: .75rem; }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; font-size: var(--fs-sm); color: var(--ink-2); }
.checklist li b { color: var(--ink); display: block; font-size: var(--fs-md); }
.checklist .n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: .8rem; }
.law-links { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }

.timeline { margin-top: clamp(3rem, 6vw, 5rem); position: relative; }
.timeline h3 { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
.tl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; position: relative; }
.tl-wrap { position: relative; }
.tl-line { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.tl-line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transform-origin: 0 50%; }
.tl li { position: relative; padding-top: 2.2rem; }
.tl li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 5px #fff; }
.tl li.now::before { background: var(--teal); border-color: var(--teal); }
.tl .yr { font-family: var(--ff-display); font-size: 1.9rem; line-height: 1; }
.tl .ev { font-weight: 700; font-size: var(--fs-sm); margin-top: .4rem; }
.tl .ev a { color: var(--ink); text-decoration-color: var(--line-2); }
.tl .ev a:hover { color: var(--blue); }
.tl .ds { font-size: var(--fs-xs); color: var(--muted); margin-top: .25rem; line-height: 1.5; }
@media (max-width: 980px) {
  .tl { grid-template-columns: 1fr; gap: 0; padding-left: 2rem; }
  .tl-line { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tl-line span { transform-origin: 50% 0; }
  .tl li { padding: 0 0 1.6rem; }
  .tl li::before { left: -2rem; top: 6px; }
}

/* ---------- Steps ---------- */
.steps-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.steps-sticky { position: sticky; top: calc(var(--header-h) + 3rem); display: grid; gap: 1.2rem; }
@media (max-width: 900px) { .steps-wrap { grid-template-columns: 1fr; } .steps-sticky { position: static; } }
.steps { list-style: none; padding: 0; position: relative; display: grid; gap: 1.2rem; counter-reset: s; }
.steps-box { position: relative; }
.steps-rail { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; background: var(--line); }
.steps-rail span { position: absolute; inset: 0; background: linear-gradient(var(--blue), var(--teal)); transform-origin: 50% 0; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.6rem 1.6rem 1.6rem 0; }
.step-n {
  width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 2px solid var(--line); display: grid; place-items: center;
  font-family: var(--ff-display); font-size: 1.7rem; color: var(--blue); position: relative; z-index: 1;
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--ease-spring);
}
.step.is-active .step-n { background: var(--blue); color: #fff; border-color: var(--blue); transform: scale(1.06); }
.step h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); margin: .35rem 0 .5rem; }
.step p { color: var(--muted); }
.step .meta { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.step .meta span { font-size: var(--fs-xs); font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }

/* ---------- Platforms ---------- */
.platforms { background: #fff; }
.plat-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: stretch; }
@media (max-width: 900px) { .plat-grid { grid-template-columns: 1fr; } }
.plat-tabs { display: grid; grid-template-columns: 1fr; gap: .35rem; }
@media (max-width: 900px) { .plat-tabs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .plat-tabs { grid-template-columns: repeat(2, 1fr); } }
.plat-tab {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .85rem; border-radius: 14px; text-align: left;
  border: 1px solid transparent; font-weight: 700; font-size: var(--fs-sm); color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s; min-height: 52px;
}
.plat-tab:hover { background: var(--bg); color: var(--ink); }
.plat-tab[aria-selected="true"] { background: var(--bg); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.plat-tab .pl { width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.plat-tab .pl img { width: 20px; height: 20px; }
.plat-tab small { display: block; font-weight: 600; font-size: .74rem; color: var(--muted); }
.plat-panel { border-radius: var(--r-xl); background: var(--navy); color: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.3rem; align-content: start; position: relative; overflow: hidden; }
.plat-panel[hidden] { display: none; }
.plat-panel::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(0,201,167,.25), transparent 65%); pointer-events: none; }
.plat-panel h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.plat-panel p { color: var(--on-dark-2); }
.plat-panel .btn { justify-self: start; }
.plat-steps { list-style: none; padding: 0; display: grid; gap: .7rem; counter-reset: p; }
.plat-steps li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: .7rem; align-items: start; color: #E4EAF8; font-size: var(--fs-sm); }
.plat-steps li::before { content: counter(p); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--teal); }
.codebox { border-radius: 16px; background: #060E24; border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.codebox-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .5rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: var(--fs-xs); color: var(--on-dark-2); }
.codebox pre { margin: 0; padding: 1rem; overflow-x: auto; font-family: var(--ff-mono); font-size: .84rem; line-height: 1.6; color: #DCE6FF; }
.codebox .k { color: #7FF0DB; } .codebox .a { color: #9DB6FF; } .codebox .s { color: #FFD58A; }
.copy-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: var(--fs-xs); min-height: 36px; transition: background-color .2s; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn.done { background: var(--teal); color: var(--navy); }

/* ---------- Public sector ---------- */
.public-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.2rem; }
@media (max-width: 960px) { .public-grid { grid-template-columns: 1fr; } }
.seap-card { border-radius: var(--r-xl); background: linear-gradient(155deg, #0E1E4A 0%, var(--navy) 60%); color: #fff; padding: clamp(1.6rem, 3.5vw, 2.8rem); display: grid; gap: 1.3rem; position: relative; overflow: hidden; }
.seap-card h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); line-height: 1.05; }
.seap-card p { color: var(--on-dark-2); }
.seap-keys { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .seap-keys { grid-template-columns: 1fr; } }
.seap-key { border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 1rem 1.1rem; display: grid; gap: .5rem; }
.seap-key span { font-size: var(--fs-xs); color: var(--on-dark-2); font-weight: 600; }
.seap-key .val { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.seap-key b { font-family: var(--ff-mono); font-size: 1.05rem; letter-spacing: .02em; white-space: nowrap; }
.seap-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (max-width: 620px) { .seap-flow { grid-template-columns: 1fr 1fr; } }
.seap-flow li { font-size: var(--fs-xs); color: var(--on-dark-2); border-top: 2px solid rgba(255,255,255,.18); padding-top: .6rem; }
.seap-flow li b { display: block; color: #fff; font-size: var(--fs-sm); }
.guides { display: grid; gap: 1rem; }
.guide {
  display: grid; grid-template-columns: 52px 1fr 24px; gap: 1rem; align-items: center; padding: 1.2rem 1.3rem; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.guide:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: var(--line-2); text-decoration: none; }
.guide h3 { font-size: 1.05rem; }
.guide p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; margin-top: .2rem; }
.guide .gi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.guide .gi svg { width: 24px; height: 24px; }
.guide .go { width: 24px; height: 24px; color: var(--blue); transition: transform .3s var(--ease); }
.guide:hover .go { transform: translateX(4px); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  position: relative; margin: 0; display: flex; flex-direction: column; gap: 1.1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote::before {
  content: "\201C"; position: absolute; top: .2rem; right: 1.2rem; font-family: var(--ff-display);
  font-size: 6rem; line-height: 1; color: var(--blue-100); pointer-events: none;
}
.quote .stars { color: #B7791F; letter-spacing: .15em; font-size: .95rem; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { font-size: 1.05rem; line-height: 1.6; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote figcaption b { display: block; font-size: var(--fs-sm); }
.quote figcaption > span:last-child { display: grid; line-height: 1.4; gap: .15rem; }
.quote figcaption span span { font-size: var(--fs-xs); color: var(--muted); }
.quote .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; }
.quote .av.t { background: var(--teal); color: var(--navy); }
.quote .av.n { background: var(--navy); }

/* ---------- Articles ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } }
.post { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.post-art { aspect-ratio: 16/8; position: relative; overflow: hidden; background: var(--blue-50); }
.post-art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.post:hover .post-art svg { transform: scale(1.06); }
.post-body { padding: 1.4rem 1.4rem 1.6rem; display: grid; gap: .7rem; flex: 1; align-content: start; }
.post-meta { display: flex; gap: .8rem; align-items: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.post-cat { color: var(--blue-700); background: var(--blue-50); padding: .25rem .6rem; border-radius: 999px; font-weight: 800; }
.post h3 { font-size: 1.12rem; line-height: 1.35; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h3 a:focus-visible { outline: none; }
.post p { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq-list { display: grid; gap: .7rem; }
.faq-item { border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq-item.open { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: inherit; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.03rem; min-height: 56px; border-radius: var(--r-md); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.faq-q .pm svg { width: 14px; height: 14px; }
.faq-q[aria-expanded="true"] .pm { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 1.3rem 1.3rem; color: var(--ink-2); font-size: var(--fs-sm); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a[hidden] { display: grid; } /* keep for animation; visibility handled below */
.faq-item:not(.open) .faq-a > div { visibility: hidden; transition: visibility 0s linear .45s; }
.faq-item.open .faq-a > div { visibility: visible; }

/* ---------- CTA ---------- */
.cta { border-radius: var(--r-xl); padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem); text-align: center; display: grid; justify-items: center; gap: 1.4rem; }
.cta .h2 { max-width: 800px; }
.cta > p:not(.eyebrow) { max-width: 580px; color: var(--on-dark-2); font-size: var(--fs-lg); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .5rem; }
.cta-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: #060E24; color: var(--on-dark-2); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: var(--fs-sm); }
.f-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .f-grid { grid-template-columns: 1fr; } }
.f-brand p { margin: 1.1rem 0 1.4rem; max-width: 380px; }
.f-brand a:not(.logo):not(.soc) { color: #fff; }
.site-footer h2 { color: #fff; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .55rem; }
.site-footer ul a { color: var(--on-dark-2); text-decoration: none; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: .5rem; }
.soc { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #fff; transition: background-color .2s, transform .3s var(--ease); }
.soc:hover { background: var(--blue); transform: translateY(-3px); }
.soc svg { width: 18px; height: 18px; }
.f-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.f-bottom a { color: var(--on-dark-2); }
.f-bottom a:hover { color: #fff; }
.f-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; align-items: center; }
.motion-toggle { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 700; font-size: var(--fs-xs); min-height: 40px; }
.motion-toggle .sw { background: rgba(255,255,255,.2); }
.motion-toggle[aria-pressed="true"] .sw { background: var(--teal); }
.motion-toggle[aria-pressed="true"] .sw::after { transform: translateX(11px); }

/* =========================================================
   Inner pages · components used by the existing content
   (class names kept from the original site so content is untouched)
   ========================================================= */
:root { --gray-200: var(--line); --radius-xl: var(--r-lg); }

/* Page hero */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + clamp(2.2rem, 5vw, 4rem)) 0 clamp(2.8rem, 6vw, 4.5rem);
  background: var(--bg);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(27,79,216,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27,79,216,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 0%, #000 25%, transparent 75%);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157,182,255,.55), transparent 65%);
}
.page-hero .container { display: grid; gap: 1.1rem; justify-items: start; }
.page-hero h1 {
  font-family: var(--ff-display); font-weight: 400; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem);
  line-height: 1.05; letter-spacing: -.02em; max-width: 920px;
}
.page-hero .lead { max-width: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; padding: .2rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.breadcrumb a:hover { border-color: var(--blue); color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Section backgrounds */
.bg-gray { background: var(--bg); }
.bg-white { background: #fff; }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.text-center { text-align: center; }

/* Layout with sidebar */
.content-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.content-sidebar > aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1rem; }
@media (max-width: 980px) { .content-sidebar { grid-template-columns: 1fr; } .content-sidebar > aside { position: static; } }

/* Prose */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.75; max-width: 780px; }
.prose-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 3.2rem); max-width: none; box-shadow: var(--shadow-sm); }
.prose-card > * { max-width: 780px; }
.prose-card > .table-wrap, .prose-card > pre, .prose-card > .note { max-width: none; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 {
  font-family: var(--ff-display); font-weight: 400; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.15; letter-spacing: -.01em; margin-top: 2.6rem; scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); font-size: 1.22rem; margin-top: 2rem; }
.prose h4 { color: var(--ink); font-size: 1.05rem; margin-top: 1.6rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .75rem; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong, .prose b { color: var(--ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .6rem; }
.prose ul > li { position: relative; padding-left: 1.6rem; }
.prose ul > li::before { content: ""; position: absolute; left: .2rem; top: .68em; width: 8px; height: 8px; border-radius: 3px; background: var(--teal); transform: rotate(45deg); }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 2.4rem; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 1.65rem; height: 1.65rem; border-radius: 8px; background: var(--blue-50); color: var(--blue-700); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.prose code { font-family: var(--ff-mono); font-size: .88em; background: var(--blue-50); color: var(--blue-700); padding: .12em .4em; border-radius: 6px; }
.prose pre:focus-visible { outline: 3px solid var(--teal); }
.prose pre { background: #060E24; color: #DCE6FF; border-radius: 16px; padding: 1.1rem 1.2rem; overflow-x: auto; font-size: .86rem; line-height: 1.6; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose blockquote { border-left: 3px solid var(--teal); padding: .4rem 0 .4rem 1.2rem; color: var(--ink); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.55; min-width: 520px; }
.table-wrap th { text-align: left; background: var(--bg); color: var(--ink); font-weight: 800; font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.table-wrap td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr { transition: background-color .2s; }
.table-wrap tbody tr:hover { background: #FAFBFE; }

/* Notes */
.note { display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: start; padding: 1.05rem 1.2rem; border-radius: var(--r-md); background: var(--blue-50); border: 1px solid #D3DFFF; color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.note > span:first-child { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--blue); font-size: 1.05rem; }
.note > span:first-child svg { width: 19px; height: 19px; }
.note.warn { background: #FFF6E6; border-color: #F6DDAE; }
.note.warn > span:first-child { color: #9A5B00; }
.note.ok { background: var(--teal-50); border-color: #B7EEDF; }
.note.ok > span:first-child { color: var(--teal-ink); }

/* Sidebar */
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; display: grid; gap: .9rem; }
.sidebar-card h4, .sidebar-card .sidebar-title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sidebar-links { display: grid; gap: 2px; }
.sidebar-links a {
  display: grid; grid-template-columns: 1fr 16px; gap: .6rem; align-items: center;
  padding: .6rem .7rem; margin-inline: -.7rem; border-radius: 12px; color: var(--ink); text-decoration: none;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; transition: background-color .2s, color .2s;
}
.sidebar-links a::after { content: ""; width: 16px; height: 16px; background: currentColor; opacity: .35; transition: transform .3s var(--ease), opacity .2s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.sidebar-links a:hover { background: var(--bg); color: var(--blue); }
.sidebar-links a:hover::after { opacity: 1; transform: translateX(3px); }
.sidebar-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); }
.sidebar-cta { background: var(--navy); border-color: var(--navy); color: #fff; position: relative; overflow: hidden; }
.sidebar-cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(0,201,167,.3), transparent 65%); pointer-events: none; }
.sidebar-cta b { font-family: var(--ff-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.sidebar-cta p { color: var(--on-dark-2); font-size: var(--fs-sm); }
.sidebar-cta .btn { justify-self: start; }

/* Meta + badges */
.blog-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.badge { display: inline-flex; align-items: center; padding: .3rem .7rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.badge-primary { background: var(--blue-50); color: var(--blue-700); border-color: #D3DFFF; }
.badge-accent { background: var(--teal-50); color: var(--teal-ink); border-color: #B7EEDF; }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.blog-img { aspect-ratio: 16/8; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-50), #fff 70%); }
.blog-img::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; right: -18%; top: -40%; border-radius: 50%; background: var(--blue-100); }
.blog-img::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; left: -8%; bottom: -30%; border-radius: 50%; background: rgba(0,201,167,.22); }
.blog-img .bi { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 18px 30px -14px rgba(27,79,216,.7); transition: transform .6s var(--ease-spring); }
.blog-img .bi svg { width: 36px; height: 36px; }
.blog-card:hover .blog-img .bi { transform: rotate(-6deg) scale(1.06); }
.blog-img.dark { background: linear-gradient(135deg, var(--navy), var(--navy-700)); }
.blog-img.dark::before { background: rgba(27,79,216,.35); }
.blog-img.dark .bi { background: var(--teal); color: var(--navy); }
.blog-body { padding: 1.3rem 1.4rem .6rem; display: grid; gap: .65rem; flex: 1; align-content: start; }
.blog-cat { color: var(--blue-700); background: var(--blue-50); padding: .25rem .6rem; border-radius: 999px; font-weight: 800; }
.blog-card h3, .blog-card .card-title { font-size: 1.1rem; line-height: 1.35; }
.blog-card .card-title a, .blog-card h3 a { color: var(--ink); text-decoration: none; }
.blog-card .card-title a::after, .blog-card h3 a::after { content: ""; position: absolute; inset: 0; }
.blog-card h3 a:focus-visible { outline: none; }
.blog-card p { font-size: var(--fs-sm); color: var(--muted); }
.blog-foot { display: flex; justify-content: space-between; align-items: center; padding: .9rem 1.4rem 1.2rem; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.read-more { color: var(--blue); text-decoration: none; position: relative; z-index: 1; }

/* Cards grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex !important; flex-direction: column; gap: .7rem; padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(380px circle at var(--mx) var(--my), rgba(27,79,216,.09), transparent 45%); }
a.card:hover, .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); text-decoration: none; }
.card:hover::before { opacity: 1; }
.card h3, .card .card-title { font-size: var(--fs-h3); }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card .link { margin-top: auto; padding-top: .3rem; font-weight: 700; font-size: var(--fs-sm); color: var(--blue); text-decoration: none; }
a.card .link, .card a.link { display: inline-flex; align-items: center; gap: .35rem; }
.card-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1.4rem; transition: transform .5s var(--ease-spring); }
.card-ico svg { width: 24px; height: 24px; }
.card-ico img { width: 26px; height: 26px; }
.card:hover .card-ico { transform: rotate(-6deg) scale(1.08); }
.card-ico.g { background: var(--teal-50); color: var(--teal-ink); }
.card-ico.o { background: #FFF1E6; color: #A34A00; }
.card-ico.p { background: #F2EDFF; color: #5B36C9; }
.card-ico.r { background: #FFECEC; color: #B42318; }
.card-ico.y { background: #FFF8DB; color: #8A6100; }

/* Banners */
.alert-banner { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--r-lg); background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.alert-banner h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.alert-banner p { color: var(--on-dark-2); font-size: var(--fs-sm); }
.alert-ico { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.1); color: var(--teal); display: grid; place-items: center; font-size: 1.5rem; }
.alert-ico svg { width: 26px; height: 26px; }
@media (max-width: 720px) { .alert-banner { grid-template-columns: 1fr; } }
.scanner .eyebrow, .cta .eyebrow, .alert-banner .eyebrow { color: var(--teal); }
.scanner { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 3rem); display: grid; gap: 1rem; }
.scanner h2 { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.06; }
.scan-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 1.2rem 1.4rem; }

/* CTA (inner pages use <div class="cta"> without .dark) */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6;
  background: radial-gradient(600px 400px at 85% 0%, rgba(27,79,216,.5), transparent 70%), radial-gradient(500px 360px at 0% 100%, rgba(0,201,167,.2), transparent 70%); }
.cta > h2 { font-family: var(--ff-display); font-weight: 400; font-size: var(--fs-h2); letter-spacing: -.015em; line-height: 1.06; max-width: 800px; }
.dark .cta::before, .cta.dark::before { display: none; }

/* Legacy button names mapped to the new system */
.btn-accent { --btn-bg: var(--teal); --btn-fg: var(--navy); }
.btn-accent:hover { box-shadow: 0 12px 28px -10px rgba(0,201,167,.65); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--navy); --btn-bd: var(--line-2); }
.cta .btn-white, .dark .btn-white, .alert-banner .btn-white { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.cta .btn-white:hover, .dark .btn-white:hover, .alert-banner .btn-white:hover { --btn-bd: #fff; box-shadow: none; }
.btn-primary { --btn-bg: var(--blue); --btn-fg: #fff; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn-outline:hover { --btn-bd: var(--ink); box-shadow: none; }

/* current page in navigation */
.mega a[aria-current="page"] { background: var(--blue-50); }
.nav-link[aria-current="page"], .nav-trigger.is-current { color: var(--blue); }
.drawer a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--teal); text-underline-offset: 5px; }

/* ---------- Homepage v2 additions ---------- */
.hero h1 em { color: var(--blue); }
.hero h1 em.ul { position: relative; }
.hero-checks span strong { color: var(--ink); }
.nav-item:nth-last-child(-n+3) .mega { left: auto; right: 0; translate: none; transform-origin: top right; }

/* bento as articles with a stretched link */
.bento .tile { cursor: pointer; }
.tile .stretched::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.tile .stretched:focus-visible { outline: none; }
.tile:focus-within { box-shadow: 0 0 0 3px var(--blue); }
.tile.feature:focus-within { box-shadow: 0 0 0 3px var(--teal); }
.tile a.inline { position: relative; z-index: 1; color: inherit; font-weight: 700; }
.tile.third { grid-column: span 2; }
@media (max-width: 1000px) { .tile.third { grid-column: span 1; } .bento .tile.third:last-child { grid-column: span 2; } }
@media (max-width: 640px) { .bento .tile.third:last-child { grid-column: auto; } }

/* EAA banner */
.alert-banner.eaa { background: linear-gradient(120deg, var(--navy) 0%, #14286A 100%); }
.alert-banner.eaa::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0,201,167,.28), transparent 65%); pointer-events: none; }
.alert-banner .alert-action { position: relative; z-index: 1; }

/* Scanner band */
.scan-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(1.8rem, 5vw, 3.8rem); border-radius: var(--r-xl); background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.scan-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 360px at 100% 0%, rgba(27,79,216,.55), transparent 70%), radial-gradient(420px 300px at 0% 100%, rgba(0,201,167,.18), transparent 70%); }
.scan-copy { display: grid; gap: 1.1rem; justify-items: start; }
.scan-copy .eyebrow { color: var(--teal); }
.scan-copy p { color: var(--on-dark-2); max-width: 560px; }
.scan-copy .scan-small { font-size: var(--fs-sm); color: #C4CFE6; }
.scan-visual { position: relative; }
.sv-card { position: relative; overflow: hidden; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 1.2rem; display: grid; gap: .55rem; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.sv-row { display: grid; grid-template-columns: 12px 1fr auto; gap: .7rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: var(--bg); font-size: var(--fs-sm); font-weight: 600; }
.sv-row i { width: 10px; height: 10px; border-radius: 50%; }
.sv-row.bad i { background: #D92D20; } .sv-row.warn i { background: #F79009; } .sv-row.ok i { background: var(--teal); }
.sv-row b { font-size: var(--fs-xs); padding: .15rem .55rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.sv-line { position: absolute; left: 0; right: 0; top: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(0,201,167,.22) 80%, rgba(0,201,167,.9) 100%); pointer-events: none; transform: translateY(-70px); }
.motion-ok .sv-line { animation: scanline 3.2s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes scanline { 0% { transform: translateY(-70px); } 70%, 100% { transform: translateY(330px); } }
@media (max-width: 900px) { .scan-band { grid-template-columns: 1fr; } }

/* Guides (public sector) */
.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .guides-grid { grid-template-columns: 1fr; } }
.guide-card { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.guide-card h3 { font-size: var(--fs-h3); }
.guide-card p { color: var(--muted); font-size: var(--fs-sm); }
.guide-card .link-arrow { margin-top: auto; }
.guide-card .gi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.guide-card .gi.t { background: var(--teal-50); color: var(--teal-ink); }
.guide-card .gi svg { width: 24px; height: 24px; }

/* SEAP */
.seap-card h2 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.05; }
.seap-card .eyebrow { color: var(--teal); }
.seap-cols { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .seap-cols { grid-template-columns: 1fr; } }
.seap-intro { display: grid; gap: 1.2rem; justify-items: start; }
.seap-intro strong { color: #fff; }
.seap-intro .seap-keys { width: 100%; }
.seap-steps { list-style: none; padding: 0; display: grid; gap: .8rem; }
.seap-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background-color .3s, transform .4s var(--ease); }
.seap-steps li:hover { background: rgba(255,255,255,.09); transform: translateX(4px); }
.seap-steps .sn { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: var(--navy); font-family: var(--ff-display); font-size: 1.35rem; }
.seap-steps h3 { font-size: 1.02rem; color: #fff; }
.seap-steps p { font-size: var(--fs-sm); color: var(--on-dark-2); margin-top: .15rem; }

/* CTA heading on homepage uses the shared .cta > h2 */
.cta { border-radius: var(--r-xl); }

/* ---------- Live toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 300; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: none; }

/* ---------- Motion gating ----------
   Content is visible by default. Pre-animation hidden states only
   apply when JS confirmed motion is OK (html.motion-ok). */
.motion-ok [data-hero] { opacity: 0; }
.motion-ok [data-reveal] { opacity: 0; }
.motion-ok .hero h1 .w { opacity: 0; }
.motion-ok .page-hero .container > * { opacity: 0; }
.motion-ok .hero h1 .underline path { stroke-dasharray: 320; stroke-dashoffset: 320; }
.motion-safe [data-hero], .motion-safe [data-reveal], .motion-safe .hero h1 .w, .motion-safe .page-hero .container > * { opacity: 1 !important; }
.motion-safe .hero h1 .underline path { stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation: none !important; transition-duration: .001ms !important; }

@media (forced-colors: active) {
  .btn, .tgl, .plat-tab, .faq-item, .tile, .post, .guide { border: 1px solid CanvasText; }
  .bar-fill { background: Highlight; }
  .tl li::before { forced-color-adjust: none; background: Canvas; border-color: Highlight; }
}

@media print {
  .site-header, .drawer, .demo, .progress, .toast, .motion-toggle { display: none !important; }
  .dark, .site-footer { background: #fff !important; color: #000 !important; }
}

/* Model document (template text inside prose) */
.model-doc { position: relative; border: 1px dashed var(--line-2); border-left: 4px solid var(--blue); border-radius: var(--r-md); background: #FBFCFF; padding: clamp(1.1rem, 3vw, 1.8rem); display: grid; gap: .8rem; max-width: none !important; }
.model-doc p, .model-doc li { font-size: .98rem; }
.model-doc > * + * { margin-top: 0; }

.source-more { margin-top: 1rem; }
