/* =====================================================================
   Akail.ai — Real-World Data Infrastructure for Physical AI
   Design system: Apple × OpenAI — white, charcoal, electric blue accent.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --white:      #ffffff;
  --gray-50:    #fafafa;
  --gray-100:   #f5f5f5;
  --gray-150:   #eef0f3;
  --gray-200:   #e6e8ec;
  --gray-300:   #d3d7de;
  --gray-500:   #8b9099;
  --gray-600:   #6b7280;
  --gray-700:   #4b5058;
  --charcoal:   #1a1a1a;
  --charcoal-2: #111214;

  --accent:      #3b82f6;
  --accent-dark: #2563eb;
  --accent-soft:  rgba(59, 130, 246, .10);

  --ink:      var(--charcoal);
  --ink-soft: #55595f;
  --ink-mute: var(--gray-600);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 18, 22, .04), 0 1px 3px rgba(16, 18, 22, .04);
  --shadow:    0 2px 4px rgba(16, 18, 22, .03), 0 12px 28px -10px rgba(16, 18, 22, .10);
  --shadow-lg: 0 4px 8px rgba(16, 18, 22, .04), 0 28px 60px -20px rgba(16, 18, 22, .18);

  --container: 1180px;
  --gutter: 24px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
/* author `display` rules otherwise beat the UA's [hidden] { display: none } */
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--alt { background: var(--gray-50); border-block: 1px solid var(--gray-150); }
.section--dark { background: var(--charcoal); color: #fff; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow--light { color: #7dabfb; }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 68px); }
.sec-head h2 { font-size: clamp(30px, 4vw, 46px); }
.sec-head__sub {
  margin-top: 20px; font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-soft); line-height: 1.62; max-width: 660px;
}
.sec-head--light .sec-head__sub { color: rgba(255, 255, 255, .68); }
.sec-head__sub--left { margin-inline: 0; }

.grad {
  background: linear-gradient(96deg, var(--accent) 0%, #7c5cf7 55%, var(--charcoal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 550; letter-spacing: -.01em; white-space: nowrap;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s, opacity .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--charcoal); --btn-fg: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: #000; box-shadow: var(--shadow); }
.btn--outline { --btn-bd: var(--gray-300); --btn-fg: var(--ink); background: rgba(255,255,255,.7); }
.btn--outline:hover { --btn-bd: var(--charcoal); }
.btn--ghost { --btn-fg: var(--ink-soft); }
.btn--ghost:hover { --btn-fg: var(--ink); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn .ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.nav.is-scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 1px 20px rgba(16,18,22,.04); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--charcoal); }
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand__name { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.brand__dot { color: var(--accent); }

.nav__links { display: flex; gap: 26px; margin-left: 12px; margin-right: auto; }
.nav__links a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .18s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 6px; }

.nav__toggle {
  display: none; width: 40px; height: 40px; margin-left: auto;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 18px; height: 1.6px; background: var(--charcoal); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.3px) rotate(-45deg); }

/* Hidden by default at every width; only the <=900px breakpoint can show it. */
.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  display: none; flex-direction: column; gap: 4px;
  padding: 18px var(--gutter) 26px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gray-200);
  animation: dropIn .28s var(--ease);
}
.nav__mobile a { padding: 12px 2px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--gray-150); }
.nav__mobile .btn { margin-top: 16px; border-bottom: 0; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 56px) 0 96px;
  background:
    radial-gradient(900px 460px at 78% 34%, rgba(59,130,246,.08), transparent 62%),
    radial-gradient(700px 420px at 12% 78%, rgba(124,92,247,.055), transparent 65%),
    var(--white);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.7) 34%, rgba(255,255,255,0) 58%),
              linear-gradient(0deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 30%);
}
.hero__inner { max-width: 780px; }
/* text-wrap: balance evens out the line lengths instead of leaving a one-word
   orphan on the last line — which also keeps the text block narrower. */
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -.035em; line-height: 1.03;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 26px; max-width: 585px;
  font-size: clamp(17px, 1.75vw, 20.5px); line-height: 1.6; color: var(--ink-soft);
  text-wrap: balance;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; translate: -50% 0;
  width: 22px; height: 34px; border: 1.5px solid var(--gray-300); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; translate: -50% 0;
  width: 3px; height: 6px; border-radius: 2px; background: var(--gray-500);
  animation: scrollDot 1.9s var(--ease) infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 70% { opacity: 0; transform: translateY(11px); } }

/* ---------- Trusted strip ---------- */
.strip { padding: 44px 0 52px; border-bottom: 1px solid var(--gray-150); background: var(--white); }
.strip__label { text-align: center; font-size: 13.5px; letter-spacing: .04em; color: var(--ink-mute); }
.strip__row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin-top: 24px;
}
.strip__row span {
  font-size: 15px; font-weight: 550; color: var(--gray-500);
  letter-spacing: -.01em; transition: color .2s;
}
.strip__row span:hover { color: var(--charcoal); }

/* ---------- Cards (What we do) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  padding: 32px 30px 34px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gray-150); }
.card__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent);
}
.card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card > p { color: var(--ink-soft); font-size: 15.8px; line-height: 1.6; }

.ticks { margin-top: 20px; display: grid; gap: 9px; }
.ticks li {
  position: relative; padding-left: 24px; font-size: 15px; color: var(--ink-soft);
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 11px; height: 6px;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chips span {
  padding: 6px 12px; border-radius: 999px; font-size: 13.4px; font-weight: 500;
  background: var(--gray-100); color: var(--ink-soft); border: 1px solid var(--gray-200);
  transition: background .2s, color .2s, border-color .2s;
}
.card:hover .chips span { background: var(--accent-soft); color: var(--accent-dark); border-color: transparent; }

/* ---------- Why India / map ---------- */
.mapwrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.mapwrap__map { position: relative; }
#indiaMap { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.map__disclaimer { margin-top: 6px; font-size: 11.5px; color: var(--gray-500); text-align: center; }

.mapnode { cursor: pointer; }
.mapnode__halo { fill: var(--accent); opacity: .16; transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-out infinite; }
.mapnode__dot  { fill: var(--accent); stroke: #fff; stroke-width: 1.6; transition: r .2s var(--ease); }
.mapnode:hover .mapnode__dot, .mapnode.is-active .mapnode__dot { r: 6.5px; fill: var(--charcoal); }
.mapnode__label { font-size: 9.5px; font-weight: 600; fill: var(--gray-600); letter-spacing: .01em; pointer-events: none; opacity: 0; transition: opacity .2s; }
.mapnode:hover .mapnode__label, .mapnode.is-active .mapnode__label { opacity: 1; fill: var(--charcoal); }
@keyframes pulse {
  0%   { transform: scale(.55); opacity: .34; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.mapinfo {
  padding: 24px 26px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm); min-height: 168px;
}
.mapinfo__eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.mapinfo__title { font-size: 23px; margin: 8px 0 8px; }
.mapinfo__desc { font-size: 15.4px; color: var(--ink-soft); }
.mapinfo__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.mapinfo__tags span {
  padding: 5px 11px; border-radius: 999px; font-size: 12.8px; font-weight: 500;
  background: var(--gray-100); color: var(--ink-soft);
}

.whylist { margin-top: 26px; display: grid; gap: 2px; }
.whylist li {
  display: grid; gap: 3px; padding: 16px 4px; border-top: 1px solid var(--gray-200);
}
.whylist li:last-child { border-bottom: 1px solid var(--gray-200); }
.whylist strong { font-size: 15.6px; font-weight: 600; letter-spacing: -.01em; }
.whylist span { font-size: 14.8px; color: var(--ink-soft); }

/* ---------- Industries grid ---------- */
.grid-12 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 30px;
  aspect-ratio: 1 / .92; padding: 20px 18px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white);
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.tile svg { width: 24px; height: 24px; fill: none; stroke: var(--gray-500); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.tile span { font-size: 14.4px; font-weight: 550; letter-spacing: -.01em; }
.tile:hover { transform: translateY(-3px); border-color: transparent; background: var(--charcoal); color: #fff; box-shadow: var(--shadow); }
.tile:hover svg { stroke: #7dabfb; }

/* ---------- Capabilities (dark) ---------- */
.caps { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.caps__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.capbtn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 15px 16px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.72); font-size: 14.6px; font-weight: 500; letter-spacing: -.01em;
  transition: background .22s, border-color .22s, color .22s, transform .22s var(--ease);
}
.capbtn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.capbtn:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateY(-2px); }
.capbtn.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59,130,246,.7);
}
.capbtn.is-active svg { opacity: 1; }

.caps__detail {
  position: sticky; top: calc(var(--nav-h) + 28px);
  padding: 30px 30px 32px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.10);
  min-height: 260px;
}
.caps__detail h3 { font-size: 24px; margin-bottom: 12px; }
.caps__detail > p { color: rgba(255,255,255,.7); font-size: 15.8px; line-height: 1.62; }
.caps__detail ul { margin-top: 20px; display: grid; gap: 10px; }
.caps__detail li {
  position: relative; padding-left: 22px; font-size: 14.8px; color: rgba(255,255,255,.62);
}
.caps__detail li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.caps__detail .capmeta {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  background: rgba(59,130,246,.16); color: #93bbfc;
}
.caps__detail.is-swapping { opacity: 0; transform: translateY(6px); }
.caps__detail { transition: opacity .22s var(--ease), transform .22s var(--ease); }

/* ---------- Workflow ---------- */
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px;
  padding-top: 46px;
}
.flow__rail { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--gray-200); border-radius: 2px; }
.flow__rail-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #7c5cf7); border-radius: 2px; transition: width .1s linear; }
.flow__step { position: relative; }
.flow__step::before {
  content: ""; position: absolute; top: -40px; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gray-300);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.flow__step.is-lit::before { border-color: var(--accent); background: var(--accent); transform: scale(1.15); }
.flow__num { display: block; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; color: var(--accent); margin-bottom: 9px; }
.flow__step h3 { font-size: 16.4px; margin-bottom: 8px; letter-spacing: -.015em; }
.flow__step p { font-size: 14px; line-height: 1.52; color: var(--ink-soft); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  padding: 30px 26px 32px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--gray-200);
}
.stat__num {
  display: block; font-size: clamp(38px, 4.6vw, 56px); font-weight: 600;
  letter-spacing: -.045em; line-height: 1; color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 14px; font-size: 15.6px; font-weight: 600; letter-spacing: -.01em; }
.stat__note { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-mute); line-height: 1.5; }
.stats__foot { margin-top: 26px; font-size: 13.6px; color: var(--gray-500); }

/* ---------- Technology pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.pipe { position: relative; padding: 30px 28px 34px; background: var(--white); transition: background .3s; }
.pipe:hover { background: var(--gray-50); }
.pipe__k { display: block; font-size: 12.4px; font-weight: 650; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.pipe h3 { font-size: 18.5px; margin-bottom: 9px; }
.pipe p { font-size: 14.8px; color: var(--ink-soft); line-height: 1.55; }

.roadmap { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.roadmap__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); }
.roadmap__items { display: flex; flex-wrap: wrap; gap: 8px; }
.roadmap__items span {
  padding: 7px 14px; border-radius: 999px; font-size: 13.6px; font-weight: 500;
  border: 1px dashed var(--gray-300); color: var(--ink-mute);
}

/* ---------- Security split ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.split__left h2 { font-size: clamp(28px, 3.4vw, 40px); }
.split__left .btn { margin-top: 28px; }

.seclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--gray-200); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.secitem { padding: 24px 22px 26px; background: var(--gray-50); transition: background .3s; }
.secitem:hover { background: var(--white); }
.secitem h3 { font-size: 16.4px; margin-bottom: 8px; letter-spacing: -.015em; }
.secitem p { font-size: 14.4px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare__col { padding: 34px 32px 38px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.compare__col h3 { font-size: 19px; margin-bottom: 22px; }
.compare__col ul { display: grid; gap: 13px; }
.compare__col li { position: relative; padding-left: 28px; font-size: 15.6px; }

.compare__col--muted { background: var(--gray-50); color: var(--ink-mute); }
.compare__col--muted li::before {
  content: ""; position: absolute; left: 5px; top: 10px; width: 11px; height: 1.8px;
  background: var(--gray-300); border-radius: 2px;
}

.compare__col--ours { position: relative; background: var(--charcoal); color: #fff; border-color: var(--charcoal); box-shadow: var(--shadow-lg); }
.compare__col--ours li { color: rgba(255,255,255,.82); }
.compare__col--ours li::before {
  content: ""; position: absolute; left: 5px; top: 7px; width: 11px; height: 6px;
  border-left: 1.9px solid #7dabfb; border-bottom: 1.9px solid #7dabfb; transform: rotate(-45deg);
}
.compare__badge {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 11.6px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: #fff;
}

/* ---------- Vision ---------- */
.vision {
  padding: clamp(88px, 11vw, 156px) 0;
  background:
    radial-gradient(760px 380px at 50% 0%, rgba(59,130,246,.20), transparent 70%),
    var(--charcoal-2);
  color: #fff;
}
.vision__inner { max-width: 880px; text-align: center; }
.vision blockquote {
  margin: 0; font-size: clamp(24px, 3.6vw, 42px); font-weight: 500;
  line-height: 1.3; letter-spacing: -.03em;
}
.vision__foot { margin-top: 28px; font-size: clamp(15.5px, 1.6vw, 18px); color: rgba(255,255,255,.6); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__intro h2 { font-size: clamp(30px, 3.8vw, 44px); }
.contact__ways { margin-top: 30px; display: grid; gap: 2px; }
.contact__ways li { display: grid; gap: 3px; padding: 15px 2px; border-top: 1px solid var(--gray-200); }
.contact__ways li:last-child { border-bottom: 1px solid var(--gray-200); }
.contact__ways strong { font-size: 15.6px; }
.contact__ways span { font-size: 14.8px; color: var(--ink-soft); }
.contact__direct { margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.contact__direct a { color: var(--accent); font-weight: 550; }
.contact__direct a:hover { text-decoration: underline; }

.form {
  display: grid; gap: 16px; padding: 32px 30px 34px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  background: var(--gray-50);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.6px; font-weight: 600; letter-spacing: -.005em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15.4px; font-weight: 400;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--gray-300); border-radius: 11px;
  transition: border-color .18s, box-shadow .18s;
}
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form input.is-invalid, .form select.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.form__note { font-size: 13px; color: var(--gray-500); text-align: center; }
.form__status { font-size: 14px; font-weight: 550; text-align: center; min-height: 20px; }
.form__status.is-ok { color: #15803d; }
.form__status.is-err { color: #dc2626; }

/* ---------- Footer ---------- */
.footer { padding: 66px 0 26px; background: var(--white); border-top: 1px solid var(--gray-200); }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 44px; }
.footer__brand p { margin-top: 16px; max-width: 320px; font-size: 14.6px; color: var(--ink-soft); line-height: 1.6; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h4 { font-size: 12.5px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 16px; }
.footer__cols a { display: block; padding: 6px 0; font-size: 14.8px; color: var(--ink-soft); transition: color .18s; }
.footer__cols a:hover { color: var(--charcoal); }
.footer__bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--gray-150);
  font-size: 13.4px; color: var(--gray-500);
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: .07s; }
.reveal[data-reveal-delay="2"] { transition-delay: .14s; }
.reveal[data-reveal-delay="3"] { transition-delay: .21s; }
.reveal[data-reveal-delay="4"] { transition-delay: .28s; }
.reveal[data-reveal-delay="5"] { transition-delay: .35s; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .grid-12 { grid-template-columns: repeat(4, 1fr); }
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .flow__rail { display: none; }
  .flow__step::before { display: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__signin { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile:not([hidden]) { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn--primary { display: none; }

  .cards { grid-template-columns: 1fr; }
  .mapwrap { grid-template-columns: 1fr; }
  .mapwrap__map { max-width: 420px; margin-inline: auto; }
  .caps { grid-template-columns: 1fr; }
  .caps__detail { position: static; }
  .split { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .grid-12 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; row-gap: 26px; padding-top: 0; }
  .flow__step { padding-left: 18px; border-left: 2px solid var(--gray-200); }
  .pipeline { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .seclist { grid-template-columns: 1fr; }
  .caps__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .strip__row { gap: 10px 22px; }
  .strip__row span { font-size: 13.6px; }
}

/* ---------- 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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .hero__canvas, .hero__scroll, .form { display: none; }
  .section { padding: 24px 0; }
  body { font-size: 12px; }
}

/* =====================================================================
   Use Cases page
   ===================================================================== */

/* Compact hero for interior pages */
.page-hero {
  padding: calc(var(--nav-h) + 76px) 0 clamp(48px, 6vw, 78px);
  background:
    radial-gradient(760px 380px at 76% 20%, rgba(59,130,246,.07), transparent 62%),
    var(--white);
  border-bottom: 1px solid var(--gray-150);
}
.page-hero h1 {
  font-size: clamp(36px, 5.4vw, 62px); letter-spacing: -.038em; line-height: 1.05;
  text-wrap: balance; max-width: 15ch;
}
.page-hero__sub {
  margin-top: 22px; max-width: 620px; text-wrap: balance;
  font-size: clamp(16.5px, 1.6vw, 19.5px); line-height: 1.6; color: var(--ink-soft);
}
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Manipulation primitives */
.prims { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.prim {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 15px; border: 1px solid var(--gray-200); border-radius: 13px;
  background: var(--white); font-size: 14.2px; font-weight: 550; letter-spacing: -.01em;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.prim svg {
  width: 19px; height: 19px; flex: none; fill: none; stroke: var(--accent);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.prim:hover { transform: translateY(-2px); border-color: var(--gray-300); box-shadow: var(--shadow-sm); }

/* Jump bar */
.jumpbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  padding: 14px 0; margin-bottom: 8px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--gray-150);
}
.jumpbar__row {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.jumpbar__row::-webkit-scrollbar { display: none; }
.jumpbar a {
  flex: none; padding: 7px 14px; border-radius: 999px;
  font-size: 13.4px; font-weight: 500; white-space: nowrap;
  color: var(--ink-soft); background: var(--gray-100);
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.jumpbar a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Use-case cards */
.ucgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.uc {
  display: flex; flex-direction: column;
  padding: 28px 28px 30px; scroll-margin-top: calc(var(--nav-h) + 78px);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.uc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.uc__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.uc__icon {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.uc__icon svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.uc__head h3 { font-size: 19.5px; margin-bottom: 5px; }
.uc__head p { font-size: 14.4px; color: var(--ink-mute); line-height: 1.5; }
.uc__tasks { display: grid; gap: 1px; background: var(--gray-200); border-radius: 12px; overflow: hidden; }
.uc__tasks li { display: grid; gap: 3px; padding: 13px 15px; background: var(--gray-50); }
.uc__tasks strong { font-size: 14.6px; font-weight: 600; letter-spacing: -.01em; }
.uc__tasks span { font-size: 13.8px; color: var(--ink-soft); line-height: 1.5; }
.uc__foot {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--gray-150);
  font-size: 13.2px; color: var(--gray-500);
}

/* Closing band */
.band {
  padding: clamp(60px, 7vw, 96px) 0; text-align: center;
  background: var(--charcoal); color: #fff;
}
.band h2 { font-size: clamp(26px, 3.4vw, 40px); text-wrap: balance; max-width: 20ch; margin-inline: auto; }
.band p { margin: 20px auto 0; max-width: 560px; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.6; }
.band .btn { margin-top: 30px; }
.band .btn--outline { background: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.band .btn--outline:hover { --btn-bd: #fff; }
.band__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1080px) {
  .nav__links { gap: 18px; }
  .prims { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .ucgrid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prims { grid-template-columns: repeat(2, 1fr); }
  .page-hero__cta .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Industries page
   ===================================================================== */
.indlist {
  display: grid; gap: 1px;
  background: var(--gray-200); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.ind {
  display: grid; grid-template-columns: 0.85fr 2fr; gap: clamp(24px, 3.5vw, 52px);
  padding: 36px 34px 40px; background: var(--white);
  scroll-margin-top: calc(var(--nav-h) + 74px);
  transition: background .3s;
}
.ind:hover { background: var(--gray-50); }
.ind__num {
  display: block; font-size: 12.4px; font-weight: 650; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 12px;
}
.ind__title { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.ind__title svg {
  width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-mute);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ind__title h3 { font-size: 22px; }
.ind__lead { font-size: 15.4px; line-height: 1.58; color: var(--ink-soft); }

.ind__cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.ind__cols h4 {
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 13px;
}
.ind__cols li {
  position: relative; padding-left: 17px; margin-bottom: 8px;
  font-size: 14.6px; line-height: 1.5; color: var(--ink-soft);
}
.ind__cols li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gray-300);
}
.ind__stack { grid-column: 1 / -1; padding-top: 6px; }
.ind__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ind__chips span {
  padding: 5px 11px; border-radius: 999px; font-size: 12.6px; font-weight: 500;
  background: var(--accent-soft); color: var(--accent-dark);
}

@media (max-width: 900px) {
  .ind { grid-template-columns: 1fr; gap: 24px; padding: 28px 22px 32px; }
}
@media (max-width: 620px) {
  .ind__cols { grid-template-columns: 1fr; }
}
.grid-12__more { margin-top: 26px; text-align: center; }

/* =====================================================================
   Blog — listing and article
   ===================================================================== */

/* Category filter */
.cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 36px; }
.cats button {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13.6px; font-weight: 500; white-space: nowrap;
  color: var(--ink-soft); background: var(--gray-100);
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.cats button:hover { background: var(--accent-soft); color: var(--accent-dark); }
.cats button.is-active { background: var(--charcoal); color: #fff; }

/* Post cards */
.postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.postcard {
  display: flex; flex-direction: column;
  padding: 26px 26px 28px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.postcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.postcard[hidden] { display: none !important; }
.postcard__cat {
  align-self: flex-start; margin-bottom: 14px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.4px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-dark);
}
.postcard h3 { font-size: 19px; line-height: 1.28; margin-bottom: 10px; text-wrap: balance; }
.postcard p { font-size: 14.8px; line-height: 1.55; color: var(--ink-soft); }
.postcard__meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: auto; padding-top: 20px;
  font-size: 13px; color: var(--gray-500);
}
.postcard__meta i { font-style: normal; opacity: .5; }

/* Featured post */
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; margin-bottom: 24px; padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(59,130,246,.05), rgba(124,92,247,.04)), var(--white);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; text-wrap: balance; margin: 14px 0 16px; }
.feature p { font-size: 16.4px; line-height: 1.6; color: var(--ink-soft); }
.feature__side { display: grid; gap: 14px; }
.feature__side .postcard__meta { margin-top: 0; padding-top: 0; }

/* No-results notice */
.noposts { padding: 44px 0; text-align: center; color: var(--gray-500); font-size: 15px; }

/* Subscribe band */
.subscribe { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.subscribe input {
  width: min(340px, 100%); padding: 13px 18px; font: inherit; font-size: 15.4px;
  color: #fff; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.20); border-radius: 999px;
}
.subscribe input::placeholder { color: rgba(255,255,255,.45); }
.subscribe input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.12); }
.subscribe input.is-invalid { border-color: #f87171; }
.subscribe .btn--primary { --btn-bg: #fff; --btn-fg: var(--charcoal); }
.subscribe .btn--primary:hover { --btn-bg: #fff; opacity: .9; }
.subscribe__status { width: 100%; margin-top: 14px; font-size: 14px; font-weight: 550; min-height: 20px; }
.subscribe__status.is-ok  { color: #7dabfb; }
.subscribe__status.is-err { color: #f87171; }

/* ---------- Article ---------- */
.article-head {
  padding: calc(var(--nav-h) + 66px) 0 40px;
  border-bottom: 1px solid var(--gray-150);
}
.article-head__inner { max-width: 760px; margin-inline: auto; }
.article-head h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.035em;
  text-wrap: balance; margin: 16px 0 20px;
}
.article-head .postcard__meta { margin-top: 0; padding-top: 0; font-size: 14px; }
.article-back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px;
  font-size: 14px; font-weight: 500; color: var(--ink-mute);
}
.article-back:hover { color: var(--accent); }
.article-back svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.prose { max-width: 720px; margin-inline: auto; padding: clamp(44px, 6vw, 72px) 0; }
.prose > * + * { margin-top: 24px; }
.prose p { font-size: 17.5px; line-height: 1.72; color: #33373d; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 52px; text-wrap: balance; }
.prose h3 { font-size: 20px; margin-top: 38px; }
.prose ul, .prose ol { display: grid; gap: 11px; }
.prose li {
  position: relative; padding-left: 24px; font-size: 17px; line-height: 1.65; color: #33373d;
}
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before {
  content: counter(n) "."; position: absolute; left: 0; top: 0;
  font-weight: 650; color: var(--accent); font-size: 15px; line-height: 1.85;
}
.prose blockquote {
  margin: 40px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent);
  font-size: 20px; line-height: 1.55; letter-spacing: -.015em; color: var(--charcoal);
}
.prose figure { margin: 40px 0; }
.prose figcaption { margin-top: 12px; font-size: 14px; color: var(--gray-500); text-align: center; }
.prose hr { margin: 48px 0; border: 0; border-top: 1px solid var(--gray-200); }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose code {
  padding: 2px 7px; border-radius: 6px; background: var(--gray-100);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
}
.prose__note {
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.prose__note p { font-size: 15.6px; margin: 0; }

@media (max-width: 1080px) { .postgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .feature { grid-template-columns: 1fr; } }
@media (max-width: 620px)  {
  .postgrid { grid-template-columns: 1fr; }
  .subscribe input { width: 100%; }
  .prose p, .prose li { font-size: 16.5px; }
}

/* =====================================================================
   Careers page
   ===================================================================== */
.roles {
  display: grid; gap: 1px;
  background: var(--gray-200); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
}
.role {
  display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 24px; align-items: center;
  padding: 26px 28px; background: var(--white);
  transition: background .25s;
}
.role:hover { background: var(--gray-50); }
.role[hidden] { display: none !important; }
.role h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -.018em; }
.role p { font-size: 14.6px; line-height: 1.5; color: var(--ink-soft); }
.role__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.role__meta span {
  padding: 5px 11px; border-radius: 999px; font-size: 12.6px; font-weight: 500;
  background: var(--gray-100); color: var(--ink-soft);
}
.role__meta span:first-child { background: var(--accent-soft); color: var(--accent-dark); }
.role__go {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; border: 1px solid var(--gray-300); color: var(--ink-mute);
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.role__go svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.role:hover .role__go {
  background: var(--charcoal); border-color: var(--charcoal); color: #fff; transform: translateX(3px);
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  padding: 28px 26px 30px;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white);
}
.value__k {
  display: block; font-size: 12.4px; font-weight: 650; letter-spacing: .1em;
  color: var(--accent); margin-bottom: 14px;
}
.value h3 { font-size: 18.5px; margin-bottom: 10px; text-wrap: balance; }
.value p { font-size: 15px; line-height: 1.58; color: var(--ink-soft); }

@media (max-width: 900px) {
  .role { grid-template-columns: 1fr auto; }
  .role__meta { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .role { padding: 22px 20px; }
}

/* =====================================================================
   Legal pages (privacy, terms)
   ===================================================================== */
.legal-note {
  margin-bottom: 34px; padding: 18px 22px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}
.legal-note p { font-size: 14.8px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

.toc {
  padding: 24px 26px 26px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); background: var(--gray-50);
}
.toc h2 {
  font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-500); margin: 0 0 14px;
}
.toc ol { display: grid; gap: 0; counter-reset: toc; }
.toc li { counter-increment: toc; padding: 0; margin: 0; }
.toc li::before { content: none; }
.toc a {
  display: block; padding: 6px 0 6px 30px; position: relative;
  font-size: 15px; color: var(--ink-soft); font-weight: 400;
}
.toc a::before {
  content: counter(toc) "."; position: absolute; left: 0; top: 6px;
  font-size: 13px; font-weight: 600; color: var(--gray-500); font-variant-numeric: tabular-nums;
}
.toc a:hover { color: var(--accent); text-decoration: none; }

.prose section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose section + section { margin-top: 52px; }
.prose section > h2:first-child { margin-top: 0; }
.legal-updated { font-size: 14px; color: var(--gray-500); }
