/* ==========================================================================
   GyaanKool Research Labs Private Limited — site styles
   Theme: light and airy. White pages, thin structure, green as the only
   accent. Globe stays as the centrepiece. Generous whitespace throughout.
   ========================================================================== */

:root {
  --g-900: #082a1c;
  --g-800: #0d3b29;
  --g-700: #126b48;
  --g-600: #16875a;
  --g-500: #1fa56d;
  --g-300: #86e3b8;
  --g-200: #c3ebd6;
  --g-100: #e1f3e9;
  --g-50:  #f1f8f4;

  --ink:        #0f1b15;
  --ink-2:      #29382f;
  --muted:      #56665e;
  --line:       #dde6e0;
  --line-strong: #c4d1c9;
  --bg:         #ffffff;
  --bg-alt:     #f5f8f6;
  --warn:       #b45309;

  --font: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius:    8px;
  --radius-lg: 14px;
  --container: 1220px;
  --header-h:  72px;
  --ease:      cubic-bezier(.2, .8, .2, 1);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img,svg,canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button,input,select,textarea { font: inherit; color: inherit; }
::selection { background: var(--g-100); color: var(--g-900); }
h1,h2,h3,h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--g-700); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--g-500); outline-offset: 3px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Icons ---------- */
[data-icon] { display: inline-flex; width: 1.2em; height: 1.2em; flex: none; }
[data-icon] svg { width: 100%; height: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn [data-icon] { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover [data-icon="arrow-right"] { transform: translateX(3px); }
.btn-primary { background: var(--g-700); color: #fff; }
.btn-primary:hover { background: var(--g-800); box-shadow: 0 0 0 4px var(--g-100); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--g-700); color: var(--g-700); }
.btn-cta { background: var(--g-700); color: #fff; border-color: var(--g-700); box-shadow: 0 0 0 3px var(--g-100); }
.btn-cta:hover { background: var(--g-800); border-color: var(--g-800); box-shadow: 0 0 0 4px var(--g-200); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--g-700); }
.link [data-icon] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover [data-icon] { transform: translateX(3px); }

/* ---------- Header — light glass ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }

.wordmark { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--g-600); white-space: nowrap; }
.wordmark b { font-weight: 700; color: var(--g-600); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: var(--radius); transition: color .2s ease, background-color .2s ease;
}
.nav > a:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: var(--g-700); background: var(--g-50); }
.nav-trigger.active { color: var(--g-700); }
.nav-trigger [data-icon] { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.nav-item.open .nav-trigger [data-icon] { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 20px); left: 50%; width: 640px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -20px rgba(8,42,28,.18);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.mega::before { content:""; position: absolute; left:0; right:0; top:-22px; height:22px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease, transform .25s var(--ease); }
.mega-col { padding: 24px; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-label { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mega-product { display: block; margin: 12px -14px 0; padding: 14px; border-radius: var(--radius); transition: background-color .2s ease; }
.mega-product:hover { background: var(--g-50); }
.mega-product strong { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--g-800); }
.mega-product strong [data-icon] { width: 16px; height: 16px; }
.mega-product span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.mega-links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.mega-links a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--ink-2); }
.mega-links a:hover { color: var(--g-700); }

.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.nav-toggle [data-icon] { width: 22px; height: 22px; }

.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 99;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
  display: none; flex-direction: column;
}
body.nav-open .mobile-nav { display: flex; }
.mobile-nav .m-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 16px 4px 4px; }
.mobile-nav a:not(.btn) { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-nav a.m-product { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mobile-nav a.m-product small { color: var(--muted); font-size: 14px; font-weight: 400; }
.mobile-nav .btn { margin-top: 16px; }

/* ---------- Labels ---------- */
.label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--g-700); }
.label.dot::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--g-500); box-shadow:0 0 0 0 var(--g-500); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,165,109,.55); } 80%,100% { box-shadow: 0 0 0 8px rgba(31,165,109,0); } }

.live-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--g-700); padding: 3px 8px; border-radius: 999px; background: var(--g-50); border: 1px solid var(--g-200); }
.live-badge::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--g-600); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity:.25; } }

/* ---------- Sections ---------- */
.section { padding-block: 112px; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; letter-spacing: -0.03em; }
.section-head p { font-size: 18.5px; color: var(--muted); margin-top: 18px; }
.section-head.split-head { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.section-head.split-head > div { max-width: 720px; }

/* ---------- Hero — light ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(60% 70% at 78% 45%, var(--g-50), transparent 65%), var(--bg);
  padding-block: 64px 88px;
}
.hero::before {
  content:""; position: absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .5;
  -webkit-mask-image: radial-gradient(70% 70% at 72% 40%, #000, transparent 80%);
  mask-image: radial-gradient(70% 70% at 72% 40%, #000, transparent 80%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -0.045em; margin-top: 22px; font-weight: 600; }
.hero-lead { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--g-700); }
.breadcrumbs [data-icon] { width: 14px; height: 14px; }

.rotator { display: inline-grid; vertical-align: top; }
.rotator > span {
  grid-area: 1/1; opacity: 0; transform: translateY(.45em); filter: blur(6px); color: var(--g-600);
  transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease);
}
.rotator > span.on  { opacity: 1; transform: none; filter: none; }
.rotator > span.out { opacity: 0; transform: translateY(-.45em); filter: blur(6px); }

.hero-stage { position: relative; aspect-ratio: 1/1; width: 100%; max-width: 560px; margin-left: auto; }
.hero-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero-stage canvas:active { cursor: grabbing; }
.stage-caption { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* Ticker row — now light */
.ticker-row { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.ticker { padding: 18px 22px; min-width: 0; }
.ticker + .ticker { border-left: 1px solid var(--line); }
.ticker .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticker .what { font-size: 13.5px; color: var(--muted); }
.ticker .value { display: block; font-size: clamp(20px, 2.2vw, 28px); color: var(--ink); margin-top: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker .src { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.ticker .src a { text-decoration: underline; text-underline-offset: 2px; }
.ticker .src a:hover { color: var(--g-700); }

/* Mesh hero background for inner pages */
.hero-mesh { position: absolute; inset:0; width:100%; height:100%; opacity:.45; pointer-events:none; }

/* ---------- Stats bento — light only ---------- */
.pulse { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 4; min-width: 0; padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .3s ease, transform .3s var(--ease);
}
.tile:hover { border-color: var(--g-200); transform: translateY(-2px); }
.tile.w5 { grid-column: span 5; } .tile.w6 { grid-column: span 6; } .tile.w7 { grid-column: span 7; }
.tile .t-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile .big { font-size: clamp(40px, 4.6vw, 60px); font-weight: 400; line-height: 1; margin-top: 18px; color: var(--ink); }
.tile .big small { font-size: .45em; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.tile .desc { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.tile .src { margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--muted); }
.tile .src a { text-decoration: underline; text-underline-offset: 2px; }
.tile .src a:hover { color: var(--g-700); }
/* accent tile — replaces the old .tile.dark */
.tile.accent { background: var(--g-50); border-color: var(--g-200); }
.tile.accent .big { color: var(--g-800); }
.tile.accent .t-label { color: var(--g-700); }

.live-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.live-pair > div { min-width: 0; }
.live-pair .v { display: block; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pair .k { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.live-pair .since { display: block; font-size: 13px; color: var(--g-600); margin-top: 10px; }

/* Year bars */
.ybars { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; align-items: end; height: 150px; margin-top: 24px; border-bottom: 1px solid var(--line-strong); }
.ybar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.ybar i { display: block; height: var(--h); border-radius: 4px 4px 0 0; background: var(--g-100); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.ybar.hl i { background: var(--g-600); }
.ybar b { font-family: var(--mono); font-size: 14px; font-weight: 500; text-align: center; margin-bottom: 6px; color: var(--ink); }
.ybar-years { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: center; }
.in .ybar i { transform: scaleY(1); }
.in .ybar:nth-child(2) i { transition-delay:.15s; }
.in .ybar:nth-child(3) i { transition-delay:.3s; }

/* Ring */
.ring-wrap { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.ring { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--g-100); }
.ring .val { stroke: var(--g-600); stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.6s var(--ease); }

/* 10×10 dot grid */
.dotgrid { display: grid; grid-template-columns: repeat(10,1fr); gap: 5px; margin-top: 20px; max-width: 220px; }
.dotgrid i { aspect-ratio:1; border-radius:50%; background: var(--g-50); border: 1px solid var(--line); transition: background-color .3s ease, border-color .3s ease; }
.dotgrid i.on { background: var(--g-600); border-color: var(--g-600); }
.dotgrid i.gap { background: #fde7c7; border-color: #f2c48a; }
.dot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.dot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* Horizontal compare bars */
.hbars { display: grid; gap: 14px; margin-top: 22px; }
.hbar .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.hbar .row b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.hbar .track { height: 10px; border-radius: 3px; background: var(--g-50); margin-top: 6px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--g-600); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.hbar.muted .track i { background: var(--g-300); }
.in .hbar .track i { transform: scaleX(1); }
.in .hbar:nth-child(2) .track i { transition-delay:.15s; }
.in .hbar:nth-child(3) .track i { transition-delay:.3s; }

/* ---------- Product cards — light ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product {
  position: relative; padding: 40px; border-radius: var(--radius-lg); min-width: 0;
  background: var(--bg); border: 1px solid var(--line);
  border-top: 3px solid var(--g-500);
  display: flex; flex-direction: column;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}
.product:hover { box-shadow: 0 24px 48px -30px rgba(8,42,28,.2); transform: translateY(-3px); }
.product .audience { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product h3 { font-size: 34px; margin-top: 10px; color: var(--g-800); letter-spacing: -0.03em; }
.product > p { color: var(--muted); margin-top: 12px; }
.product .checks li { color: var(--ink-2); }
.product .checks [data-icon] { color: var(--g-700); }
.product .actions { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.product .viz { margin: 4px 0 26px; height: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); overflow: hidden; }
.product .viz svg { width: 100%; height: 100%; }

/* Flow diagram (light) */
.flow-line { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.flow-dash { fill: none; stroke: var(--g-500); stroke-width: 2; stroke-dasharray: 6 120; animation: flow 2.8s linear infinite; }
.flow-dash.d2 { animation-delay: -.9s; } .flow-dash.d3 { animation-delay: -1.8s; }
@keyframes flow { to { stroke-dashoffset: -126; } }
.flow-node { fill: var(--bg); stroke: var(--line-strong); stroke-width: 1.5; }
.flow-node.core { stroke: var(--g-600); fill: var(--g-50); }
.flow-text { fill: var(--ink-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.flow-text.dim { fill: var(--muted); }
.core-pulse { fill: none; stroke: var(--g-500); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: corePulse 2.4s ease-out infinite; }
@keyframes corePulse { from { opacity:.7; transform: scale(1); } to { opacity:0; transform: scale(1.9); } }

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checks [data-icon] { width: 18px; height: 18px; color: var(--g-700); margin-top: 4px; }

/* ---------- Agent console — light ---------- */
.agent-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.agent-split > * { min-width: 0; }
.leak-list { margin-top: 32px; border-top: 1px solid var(--line); }
.leak-list > div { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.leak-list [data-icon] { width: 20px; height: 20px; color: var(--g-600); margin-top: 3px; }
.leak-list h3 { font-size: 16.5px; }
.leak-list p { font-size: 15px; color: var(--muted); margin-top: 2px; }

.console {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg); box-shadow: 0 32px 64px -40px rgba(8,42,28,.25);
}
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.console-bar .live-badge { margin-left: auto; }
.console-body { padding: 20px; min-height: 340px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }
.console-body .ln { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); animation: lnIn .35s var(--ease) forwards; }
.console-body .ln .m { flex: none; width: 1.2em; text-align: center; }
.console-body .ok .m { color: var(--g-600); }
.console-body .warn .m, .console-body .warn .hl { color: var(--warn); }
.console-body .cmd { color: var(--ink); }
.console-body .cmd .m { color: var(--g-600); }
.console-body .sum { color: var(--g-700); margin-top: 6px; }
.console-body .caret { display: inline-block; width: 8px; height: 1.1em; background: var(--g-500); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.console-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
@keyframes lnIn { to { opacity:1; transform:none; } }

/* ---------- Bento capabilities ---------- */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cell {
  position: relative; min-width: 0; padding: 30px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s ease, transform .3s var(--ease);
}
.cell:hover { border-color: var(--g-300); transform: translateY(-2px); }
.cell.span-2 { grid-column: span 2; }
.cell.span-3 { grid-column: span 3; }
.cell .feature-icon { width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--g-50); border: 1px solid var(--g-100); color: var(--g-700); }
.cell h3 { font-size: 20px; margin-top: 20px; }
.cell p { color: var(--muted); margin-top: 8px; font-size: 16px; max-width: 560px; }
.cell ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.cell ul li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink-2); }
.cell ul li::before { content:""; position: absolute; left:0; top:11px; width:7px; height:1.5px; background: var(--g-600); }
.cell .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; border-radius: 6px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-2); }

/* prompt demo (light) */
.prompt-demo { margin-top: 20px; border: 1px solid var(--g-200); border-radius: var(--radius); padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; background: var(--g-50); min-height: 100px; }
.prompt-demo .q { color: var(--g-700); font-weight: 500; }
.prompt-demo .a { color: var(--ink); margin-top: 10px; line-height: 1.6; }

/* ---------- Pipeline — light ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split > * { min-width: 0; }
.split .section-head { margin-bottom: 28px; }

.list-rows { border-top: 1px solid var(--line); }
.list-rows > div { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-rows [data-icon] { width: 22px; height: 22px; color: var(--g-700); margin-top: 3px; }
.list-rows h3 { font-size: 17px; }
.list-rows p { font-size: 15.5px; color: var(--muted); margin-top: 2px; }

.pipeline { position: relative; padding: 32px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 48px -30px rgba(8,42,28,.2); overflow: hidden; }
.pipeline .p-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.pipeline .p-head b { font-weight: 600; }
.pipeline ol { list-style: none; margin: 0; padding: 0; position: relative; }
.pipeline ol::before { content:""; position: absolute; left:17px; top:18px; bottom:18px; width:2px; background: var(--line); }
.pipeline ol::after { content:""; position: absolute; left:17px; top:18px; width:2px; height: calc(100% - 36px); background: var(--g-500); transform-origin: top; transform: scaleY(var(--fill,0)); transition: transform .6s var(--ease); }
.pipeline li { position: relative; z-index:1; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 12px 0; }
.pipeline li .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1.5px solid var(--line-strong); color: var(--muted); transition: all .4s var(--ease); }
.pipeline li.lit .n { border-color: var(--g-600); color: #fff; background: var(--g-600); box-shadow: 0 0 0 6px var(--g-100); }
.pipeline li b { display: block; font-weight: 600; margin-top: 6px; color: var(--muted); transition: color .3s ease; }
.pipeline li.lit b { color: var(--ink); }
.pipeline li span { display: block; font-size: 14.5px; color: var(--muted); }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 28px; position: relative; }
.process::before { content:""; position: absolute; left:0; right:0; top:19px; height:2px; background: var(--line); }
.process::after { content:""; position: absolute; left:0; right:0; top:19px; height:2px; background: var(--g-600); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.process.in::after { transform: scaleX(1); }
.process li { position: relative; min-width: 0; }
.process .n { position: relative; z-index:1; width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-family:var(--mono); font-size:13px; background:var(--bg); border:2px solid var(--line); color:var(--muted); transition: all .4s var(--ease); }
.process.in .n { border-color: var(--g-600); color:#fff; background: var(--g-600); }
.process.in li:nth-child(2) .n { transition-delay:.35s; } .process.in li:nth-child(3) .n { transition-delay:.7s; }
.process.in li:nth-child(4) .n { transition-delay:1.05s; } .process.in li:nth-child(5) .n { transition-delay:1.4s; }
.process h3 { font-size: 18px; margin-top: 22px; }
.process p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }
.about-grid > * { min-width: 0; }
.about-text h2 { font-size: clamp(30px, 3.4vw, 42px); margin-top: 16px; letter-spacing: -0.03em; }
.about-text p { color: var(--ink-2); margin-top: 18px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.principles > div { padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; transition: background-color .2s ease; }
.principles > div:hover { background: var(--g-50); }
.principles [data-icon] { width: 24px; height: 24px; color: var(--g-700); }
.principles h3 { font-size: 17.5px; margin-top: 14px; }
.principles p { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* ---------- Hairline grids ---------- */
.grid-lines { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid-lines.cols-2 { grid-template-columns: repeat(2,1fr); }
.grid-lines > * { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; transition: background-color .25s ease; }
.grid-lines > *:hover { background: var(--g-50); }
.grid-lines .feature-icon { width: 26px; height: 26px; color: var(--g-700); }
.grid-lines h3 { font-size: 19px; margin-top: 18px; }
.grid-lines p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.grid-lines ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.grid-lines ul li { position: relative; padding-left: 16px; font-size: 15px; color: var(--ink-2); }
.grid-lines ul li::before { content:""; position: absolute; left:0; top:11px; width:7px; height:1.5px; background: var(--g-600); }

/* Light columns (replaces cols-dark) */
.cols-light { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; row-gap: 40px; }
.cols-light > div { border-top: 3px solid var(--g-200); padding-top: 22px; min-width: 0; }
.cols-light [data-icon] { width: 24px; height: 24px; color: var(--g-700); }
.cols-light h3 { font-size: 18px; margin-top: 14px; }
.cols-light p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }

/* Use-case grid */
.uc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.uc-cell {
  padding: 36px 32px; min-width: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg); transition: background-color .2s ease;
}
.uc-cell:hover { background: var(--g-50); }
.uc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--g-100); color: var(--g-700);
  display: grid; place-items: center; margin-bottom: 20px;
}
.uc-icon [data-icon] { width: 22px; height: 22px; }
.uc-icon [data-icon] svg { width: 100%; height: 100%; }
.uc-cell h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.uc-cell p { font-size: 15.5px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat-strip.cols-3 { grid-template-columns: repeat(3,1fr); }
.stat-strip > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; display: flex; flex-direction: column; }
.stat-strip .big { font-size: clamp(36px, 3.6vw, 48px); font-weight: 400; line-height: 1; color: var(--g-800); }
.stat-strip .big small { font-size: .5em; color: var(--muted); margin-left: 2px; }
.stat-strip .desc { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.stat-strip .src { margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--muted); }
.stat-strip .src a { text-decoration: underline; text-underline-offset: 2px; }
.stat-strip .live-badge { margin-bottom: 14px; align-self: flex-start; }

/* Learning path panel — light */
.path-panel { position: relative; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); box-shadow: 0 24px 48px -30px rgba(8,42,28,.18); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--mono); padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13.5px; color: var(--ink-2); background: var(--bg); transition: border-color .2s ease, color .2s ease; }
.tag:hover { border-color: var(--g-600); color: var(--g-700); }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.model { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); min-width: 0; transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.model:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(5,24,15,.2); border-color: var(--g-200); }
.model.recommended { background: var(--g-50); border-color: var(--g-200); border-top: 3px solid var(--g-600); }
.model .kind { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.model.recommended .kind { color: var(--g-700); }
.model h3 { font-size: 22px; margin-top: 10px; }
.model > p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.model .checks { margin-bottom: 28px; }
.model .checks li { font-size: 15.5px; }
.model .btn { margin-top: auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); width: fit-content; max-width: 100%; margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 7px; font-size: 15.5px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--g-700); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity:0; transform: translateY(8px); } }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.panel-grid > * { min-width: 0; }
.panel-grid h3 { font-size: clamp(24px, 2.4vw, 30px); }
.panel-grid > div > p { color: var(--muted); margin-top: 14px; font-size: 17.5px; }
.panel-grid .checks { margin-bottom: 32px; }
.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.outcome { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); min-width: 0; transition: border-color .2s ease; }
.outcome:hover { border-color: var(--g-200); }
.outcome [data-icon] { width: 22px; height: 22px; color: var(--g-700); }
.outcome b { display: block; margin-top: 12px; font-weight: 600; }
.outcome small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; line-height: 1.5; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; position: relative; }
.timeline::before { content:""; position: absolute; left:0; right:0; top:0; height:1px; background: var(--line); }
.timeline::after { content:""; position: absolute; left:0; right:0; top:0; height:1px; background: var(--g-600); transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.timeline.in::after { transform: scaleX(1); }
.timeline li { padding-top: 24px; position: relative; min-width: 0; }
.timeline li::before { content:""; position: absolute; top:-5px; left:0; width:11px; height:11px; border-radius:50%; background: var(--bg); border: 2px solid var(--g-600); }
.timeline .yr { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--g-700); }
.timeline h3 { font-size: 19px; margin-top: 6px; }
.timeline p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.calc > * { min-width: 0; }
.calc-in { padding: 40px; display: grid; gap: 28px; }
.range-row { display: grid; gap: 10px; }
.range-row .top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.range-row label { font-weight: 600; font-size: 15.5px; }
.range-row output { font-family: var(--mono); font-weight: 500; color: var(--g-800); font-variant-numeric: tabular-nums; white-space: nowrap; }
.range-row small { color: var(--muted); font-size: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 8px 0; border-radius: 2px; background: linear-gradient(90deg, var(--g-600) var(--p,50%), var(--line) var(--p,50%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--g-600); box-shadow: 0 2px 6px rgba(5,24,15,.2); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--g-600); }
/* calc-out — now light green accent panel */
.calc-out { padding: 40px; background: var(--g-50); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.calc-out .lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.calc-out .big { font-family: var(--mono); font-size: clamp(32px, 3.6vw, 44px); font-weight: 400; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.calc-out .big.accent { color: var(--g-700); }
.calc-out .row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.calc-out .mini { padding-top: 16px; min-width: 0; }
.calc-out .mini + .mini { padding-left: 20px; border-left: 1px solid var(--line); }
.calc-out .mini b { display: block; font-family: var(--mono); color: var(--ink); font-size: 22px; font-weight: 400; }
.calc-out .mini small { font-size: 13.5px; color: var(--muted); }
.calc-out .fine { font-size: 13.5px; color: var(--muted); }
.calc-out .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--g-700); }
.faq summary [data-icon] { width: 20px; height: 20px; color: var(--g-700); transition: transform .3s var(--ease); }
.faq details[open] summary [data-icon] { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }


/* ---------- Clients marquee ---------- */
.clients-section { padding-block: 80px; overflow: hidden; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-head { text-align: center; margin-bottom: 52px; }
.clients-head h2 { font-size: clamp(26px, 3vw, 40px); margin-top: 10px; }
.clients-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.clients-count { color: var(--g-600); }
.marquee-wrap { margin-bottom: 0; }
.marquee-track { overflow: hidden; padding-block: 8px; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%); }
.marquee-inner { display: flex; gap: 14px; width: max-content; animation: marquee-scroll 80s linear infinite; }
.marquee-track:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; flex-shrink: 0; transition: border-color .2s, background-color .2s, box-shadow .2s; cursor: default; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.client-pill:hover { border-color: var(--g-300); background: var(--g-50); box-shadow: 0 4px 12px rgba(22,135,90,.1); }
.cp-sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.cp-biz { background: var(--g-500); }
.cp-edu { background: #3b82f6; }
.clients-legend { display: flex; gap: 20px; justify-content: center; margin-top: 28px; font-size: 13px; color: var(--muted); font-weight: 500; }
.clients-legend span { display: inline-flex; align-items: center; gap: 7px; }
@media (prefers-reduced-motion: reduce) { .marquee-inner { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Activities grid ---------- */
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; grid-auto-flow: dense; }
.act-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.act-card.act-wide { grid-column: span 2; aspect-ratio: 16/7; }
.act-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.act-card:hover img { transform: scale(1.04); }
.act-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,42,28,.82) 0%, transparent 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px; opacity: 0; transition: opacity .3s ease; }
.act-card:hover .act-overlay { opacity: 1; }
.act-tag { display: inline-block; background: var(--g-600); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; width: fit-content; }
.act-overlay p { margin: 0; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.4; }
@media (max-width: 860px) {
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .act-card.act-wide { grid-column: span 2; }
}
@media (max-width: 540px) {
  .act-grid { grid-template-columns: 1fr; }
  .act-card.act-wide { grid-column: span 1; aspect-ratio: 4/3; }
  .act-overlay { opacity: 1; }
  .client-pill { font-size: 13px; padding: 8px 16px; }
}

/* ---------- CTA band — light ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--g-50)); border-top: 1px solid var(--line); padding-block: 96px; }
.cta-band canvas { position: absolute; inset:0; width:100%; height:100%; opacity:.3; pointer-events:none; }
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.035em; max-width: 820px; margin: 0 auto; }
.cta-band p { color: var(--muted); margin: 18px auto 0; max-width: 620px; font-size: 18px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list [data-icon] { width: 20px; height: 20px; color: var(--g-700); margin-top: 3px; }
.contact-list small { display: block; font-size: 13.5px; color: var(--muted); }
.contact-list a, .contact-list b { font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--g-700); }
.next-steps { margin-top: 32px; }
.next-steps h3 { font-size: 17px; }
.next-steps .checks { margin-top: 14px; }
.next-steps .checks li { font-size: 15.5px; }

.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; background: var(--bg); box-shadow: 0 24px 48px -36px rgba(5,24,15,.2); }
.form-card h3 { font-size: 24px; }
.form-card > p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.form-grid > * { min-width: 0; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label, .field .field-label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--g-700); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg); font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(31,165,109,.16); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b42318; }
.seg { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: block; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink); background: var(--bg); transition: all .2s ease; }
.seg label small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.seg input:checked + label { border-color: var(--g-600); background: var(--g-50); box-shadow: inset 0 0 0 1px var(--g-600); }
.seg input:focus-visible + label { outline: 2px solid var(--g-500); outline-offset: 2px; }
/* Contact tabs (form / Calendly) */
.contact-right { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.contact-tabs { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--bg-alt); }
.ctab { flex: 1; padding: 14px 20px; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.ctab:hover { color: var(--ink); background: var(--bg); }
.ctab.active { color: var(--g-700); background: var(--bg); border-bottom-color: var(--g-600); }
.ctab-panel { border-top: 0 !important; border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
.ctab-panel[hidden] { display: none; }
.calendly-card { border: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--bg); overflow: hidden; }

.form-foot { margin-top: 24px; display: grid; gap: 12px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form-status.ok { display: block; background: var(--g-50); color: var(--g-900); border: 1px solid var(--g-100); }
.form-status.err { display: block; background: #fef3f2; color: #912018; border: 1px solid #fecdca; }

/* ---------- Footer — light ---------- */
.site-footer { background: var(--bg-alt); color: var(--muted); padding-block: 80px 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > * { min-width: 0; }
.site-footer .wordmark { white-space: normal; }
.footer-about { margin-top: 16px; max-width: 380px; font-size: 15px; }
.footer-loc { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.footer-loc [data-icon] { width: 16px; height: 16px; color: var(--g-600); }
.site-footer h4 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { font-size: 15px; transition: color .2s ease; }
.site-footer ul a:hover { color: var(--g-700); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; display: flex; flex-direction: column; gap: 16px; }
.footer-company { display: flex; flex-direction: column; gap: 4px; }
.footer-company strong { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.footer-company span { color: var(--muted); font-size: 13px; }
.footer-company a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-company a:hover { color: var(--g-700); }
.footer-reg { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.footer-reg span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-reg a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-reg a:hover { color: var(--g-700); }
.footer-bottom-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--g-700); }

/* ---------- Legal pages ---------- */
.legal-page { padding-block: 80px; }
.legal-container { max-width: 800px; }
.legal-header { margin-bottom: 48px; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.legal-header h1 { font-size: clamp(28px, 4vw, 44px); margin-top: 12px; }
.legal-meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.legal-body h2 { font-size: 20px; font-weight: 600; margin-top: 48px; margin-bottom: 14px; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.legal-body h3 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 10px; color: var(--ink-2); }
.legal-body p { color: var(--ink-2); line-height: 1.75; margin-bottom: 16px; }
.legal-body ul { padding-left: 20px; margin-bottom: 16px; }
.legal-body ul li { color: var(--ink-2); line-height: 1.75; margin-bottom: 8px; }
.legal-body a { color: var(--g-700); text-decoration: underline; text-underline-offset: 3px; }
.legal-highlight { background: #fff3cd; border: 1.5px solid #f59e0b; border-radius: var(--radius-lg); padding: 24px 28px; margin: 24px 0; }
.legal-highlight p, .legal-highlight li { color: #78350f; }
.legal-highlight strong { color: #92400e; }

/* ---------- WhatsApp FAB ---------- */
.fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom,0px)); z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 20px -6px rgba(0,0,0,.3); }
.fab svg { width: 28px; height: 28px; }
.fab[hidden] { display: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.load-in > * { animation: loadIn 1s var(--ease) both; }
.load-in > *:nth-child(2) { animation-delay:.08s; } .load-in > *:nth-child(3) { animation-delay:.16s; }
.load-in > *:nth-child(4) { animation-delay:.24s; } .load-in > *:nth-child(5) { animation-delay:.32s; }
.load-in > *:nth-child(6) { animation-delay:.4s; }
@keyframes loadIn { from { opacity:0; transform:translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .contact-grid, .panel-grid, .calc, .about-grid, .agent-split { grid-template-columns: 1fr; gap: 48px; }
  .hero-stage { max-width: 480px; margin: 0 auto; }
  .tile, .tile.w5, .tile.w6, .tile.w7 { grid-column: span 6; }
  .tile.w7 { grid-column: span 12; }
  .bento, .grid-lines, .models, .cols-light, .uc-grid { grid-template-columns: repeat(2,1fr); }
  .cell.span-3 { grid-column: span 2; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(2,1fr); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .timeline li { border-top: 1px solid var(--line); }
  .process { grid-template-columns: repeat(3,1fr); row-gap: 40px; }
  .process::before, .process::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .site-header .container { gap: 12px; }
  .wordmark { font-size: clamp(12px, 3.5vw, 16px); }
  .section { padding-block: 80px; }
  .hero { padding-block: 48px 64px; }
  .hero-lead { font-size: 17.5px; }
  .ticker-row { grid-template-columns: 1fr; }
  .ticker + .ticker { border-left: 0; border-top: 1px solid var(--line); }
  .tile, .tile.w5, .tile.w6, .tile.w7 { grid-column: span 12; padding: 24px 20px; }
  .live-pair { grid-template-columns: 1fr; }
  .products, .bento, .grid-lines, .grid-lines.cols-2, .models, .cols-light, .uc-grid, .timeline, .outcomes, .principles, .stat-strip, .stat-strip.cols-3 { grid-template-columns: 1fr; }
  .cell.span-2, .cell.span-3 { grid-column: auto; }
  .product, .form-card, .calc-in, .calc-out, .pipeline { padding: 26px 20px; }
  .cell, .grid-lines > *, .principles > * { padding: 24px 20px; }
  .calc-out { border-left: 0; border-top: 1px solid var(--line); }
  .process { grid-template-columns: 1fr; }
  .form-grid, .seg { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .faq details p { padding-right: 0; }
  .console-body { font-size: 12px; padding: 16px; min-height: 320px; }
  .stage-caption { font-size: 10px; }
  .cta-band { padding-block: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
