/* ==========================================================
   HEALTHIUM — design system
   Type: Pretendard Variable (UI/Korean) · Instrument Serif (accent)
         · Geist Mono (data). All fonts self-hosted.
   Color: near-white canvas, ink, one signal green used only for
          data and the mark.
   ========================================================== */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --sunken: #F7F8FA;
  --ink: #0B0B0C;
  --ink-2: #3F4045;
  --ink-3: #74757B;
  --ink-4: #A6A7AC;
  --line: rgba(11, 11, 12, .08);
  --line-2: rgba(11, 11, 12, .14);
  --accent: #19C37D;
  --accent-ink: #0B7A4B;
  --red: #D4443E;
  --amber: #C27A12;

  --sh-1: 0 0 0 1px rgba(11,11,12,.06), 0 1px 2px rgba(11,11,12,.04);
  --sh-2: 0 0 0 1px rgba(11,11,12,.06), 0 1px 2px rgba(11,11,12,.04), 0 16px 40px -16px rgba(11,11,12,.14);
  --sh-3: 0 0 0 1px rgba(11,11,12,.07), 0 2px 4px rgba(11,11,12,.04), 0 48px 96px -36px rgba(11,11,12,.28);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 450 16px/1.6 var(--sans); letter-spacing: -0.011em;
  font-feature-settings: "ss06", "tnum" 0;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #CDF3E1; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 10px; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.num, .mono { font-family: var(--sans); }

/* ---------- logos ---------- */
.lg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.lg--mono { display: inline-grid; place-items: center; border-radius: 5px; background: var(--ink); color: #fff; font: 700 10.5px/1 var(--sans); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border: 0; border-radius: 10px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.012em; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s;
}
.btn--sm { height: 36px; padding: 0 13px; border-radius: 9px; font-size: 14px; }
.btn--lg { height: 50px; padding: 0 22px; border-radius: 12px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(0) scale(.98); }
.btn__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.btn--primary {
  color: #fff; background: linear-gradient(180deg, #2B2B30 0%, #0B0B0C 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 0 1px #0B0B0C, 0 1px 2px rgba(11,11,12,.24), 0 6px 16px -6px rgba(11,11,12,.4);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 0 1px #0B0B0C, 0 2px 4px rgba(11,11,12,.2), 0 14px 28px -10px rgba(11,11,12,.5); }
.btn--secondary { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px rgba(11,11,12,.12), 0 1px 2px rgba(11,11,12,.06), inset 0 -1px 0 rgba(11,11,12,.04); }
.btn--secondary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(11,11,12,.2), 0 8px 20px -10px rgba(11,11,12,.25); }

/* ---------- brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo__mark { width: 22px; height: 22px; fill: currentColor; overflow: visible; }
.logo__r { transition: transform .5s var(--ease); }
.logo:hover .logo__r { transform: translateY(-3px); }
.logo__word { font: 650 19px/1 var(--sans); letter-spacing: -0.035em; }
.mini-mark { width: 18px; height: 18px; fill: var(--ink); flex: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.8); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 transparent; transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav__menu { display: flex; align-items: center; gap: 30px; }
.nav__menu > a:not(.btn) { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav__menu > a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 13px 11px; cursor: pointer; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.nav__toggle span + span { margin-top: 7px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero__wash {
  position: absolute; left: 50%; top: 360px; width: 1400px; height: 760px; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(36% 46% at 28% 42%, rgba(25,195,125,.14), transparent 70%),
    radial-gradient(34% 44% at 70% 36%, rgba(96,150,255,.14), transparent 70%),
    radial-gradient(30% 40% at 52% 72%, rgba(170,140,255,.10), transparent 70%);
  filter: blur(20px);
}
.hero__top { position: relative; text-align: center; }
.h1 { font-size: clamp(40px, 5.3vw, 68px); line-height: 1.04; font-weight: 680; letter-spacing: -0.048em; }
.h1__line { display: block; animation: up .9s var(--ease) both; }
.h1__line:nth-child(2) { animation-delay: .06s; }
.h1__line:nth-child(3) { animation-delay: .12s; }
.h1__line:nth-child(4) { animation-delay: .18s; }
.h1__line--soft { color: var(--ink-4); }
.h1 .serif { font-style: italic; font-size: 1.12em; letter-spacing: -0.015em; padding-right: .04em; }
@keyframes up { from { transform: translateY(16px); } to { transform: none; } }
.hero__sub { max-width: 620px; margin: 28px auto 0; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

.frame { position: relative; margin-top: 72px; background: var(--surface); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; animation: rise 1s .2s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.frame__bar, .app__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 20px; box-shadow: 0 1px 0 var(--line); }
.frame__site { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.frame__site svg { width: 22px; height: 22px; }
.frame__meta { font-size: 13px; color: var(--ink-3); }
.frame__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.frame__main { padding: 28px 28px 20px; box-shadow: 1px 0 0 var(--line); }
.frame__side { padding: 28px; }

.metric__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.metric__label .lg { width: 16px; height: 16px; color: var(--ink); }
.metric { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.metric__val { font-size: 52px; font-weight: 650; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.metric__val small { font-size: .5em; font-weight: 550; color: var(--ink-3); margin-left: 2px; letter-spacing: -0.02em; }
.metric--sm .metric__val { font-size: 30px; }
.delta { font: 500 13px/1 var(--sans); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.delta--up { color: var(--accent-ink); }
.delta--down { color: var(--red); }

.chart-box { position: relative; width: 100%; }
.chart-box--hero { height: 236px; margin-top: 18px; }
.chart-box--care { height: 170px; margin-top: 14px; }
.chart-box--trend { height: 260px; }
.chart-box--bars { height: 230px; }
.chart-box--donut { width: 168px; height: 168px; flex: none; }

.engines { margin-top: 14px; }
.engines li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 72px 40px 30px; align-items: center; gap: 10px; padding: 11px 0; box-shadow: 0 1px 0 var(--line); font-size: 14.5px; }
.engines li:last-child { box-shadow: none; }
.engines__n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engines__bar { height: 4px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.engines__bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); animation: growx 1.1s .6s var(--ease) both; transform-origin: left center; }
.w0 { width: 0; } .w36 { width: 36%; } .w39 { width: 39%; } .w58 { width: 58%; } .w64 { width: 64%; } .w71 { width: 71%; }
.engines__v { text-align: right; font: 500 13.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.engines .delta { text-align: right; }
@keyframes growx { from { transform: scaleX(0); } }

.logos { position: relative; padding: 72px 32px 0; text-align: center; }
.logos__title { font-size: 14px; color: var(--ink-3); }
.logos__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 24px; max-width: 920px; margin: 28px auto 0; text-align: left; }
.logos__grid li { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 600; color: var(--ink-3); letter-spacing: -0.02em; transition: color .2s; }
.logos__grid li:hover { color: var(--ink); }
.logos__grid .lg { width: 20px; height: 20px; }

/* ---------- sections ---------- */
.sec { padding: 140px 0; }
.hero + .sec { padding-top: 160px; }
.sec--sunken { background: var(--sunken); }
.head { max-width: 720px; margin-bottom: 64px; }
.head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.head--split .lead { margin-top: 0; }
.eyebrow { font-size: 14.5px; font-weight: 600; color: var(--accent-ink); margin-bottom: 16px; }
.head h2, .apply h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.12; font-weight: 680; letter-spacing: -0.042em; }
.lead { margin-top: 22px; max-width: 600px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 32px; }
.stat__num { font-size: clamp(60px, 6.4vw, 84px); line-height: 1; letter-spacing: -0.02em; }
.stat h3 { margin-top: 32px; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.stat p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--ink-3); }

/* steps */
.step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; padding: 72px 0; box-shadow: 0 -1px 0 var(--line-2); }
.step:first-child { box-shadow: none; padding-top: 8px; }
.step__no { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.step__no .num { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.step h3 { margin-top: 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; font-weight: 650; letter-spacing: -0.038em; }
.step__text > p:not(.step__no) { margin-top: 16px; max-width: 480px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.card { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-2); padding: 24px; }

.ask__q { display: flex; align-items: baseline; gap: 12px; }
.ask__lang { font: 500 12px/1 var(--sans); color: var(--ink-3); flex: none; }
.ask__q p { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ask__tr { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.ask__rows { margin-top: 18px; box-shadow: 0 -1px 0 var(--line); }
.ask__rows li { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; padding: 13px 0; box-shadow: 0 1px 0 var(--line); font-size: 14.5px; }
.ask__rows span { font-weight: 600; }
.ask__rows b { justify-self: end; font-weight: 500; color: var(--ink); }
.ask__rows .is-miss b, .ask__rows .is-miss span { color: var(--ink-4); }
.ask__rows .is-miss .lg { opacity: .35; }
.ask__foot { display: flex; justify-content: space-between; padding-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.ask__foot b { color: var(--ink); font-weight: 650; }

.issues__head { display: flex; justify-content: space-between; padding: 0 0 12px 42px; font-size: 12.5px; color: var(--ink-3); box-shadow: 0 1px 0 var(--line); }
.issues li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 0; box-shadow: 0 1px 0 var(--line); }
.issues li:last-child { box-shadow: none; padding-bottom: 0; }
.issues p { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.issues small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.issues__eng { display: flex; gap: 6px; color: var(--ink-3); }
.issues__eng .lg { width: 16px; height: 16px; }
.sev { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sev i { width: 4px; border-radius: 1px; background: var(--line-2); }
.sev i:nth-child(1) { height: 6px; } .sev i:nth-child(2) { height: 10px; } .sev i:nth-child(3) { height: 14px; }
.sev--3 i { background: var(--red); }
.sev--2 i:nth-child(-n+2) { background: var(--amber); }
.sev--1 i:nth-child(1) { background: var(--ink-3); }

.code { padding: 0; overflow: hidden; background: #0E0E10; color: #E8E8E6; box-shadow: 0 0 0 1px #0E0E10, 0 24px 48px -24px rgba(11,11,12,.5); }
.code__bar { display: flex; justify-content: space-between; padding: 14px 20px; font: 500 12px/1 var(--mono); color: #8A8A90; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font: 450 13px/1.75 var(--mono); }
.code .t { color: #8A8A90; } .code .a { color: #C9C9CE; } .code .s { color: #5BE3A6; }

.care__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.care__cap { margin-top: 12px; padding-top: 12px; box-shadow: 0 -1px 0 var(--line); font-size: 13.5px; color: var(--ink-3); }

.sec-cta { margin-top: 56px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.sec-cta p { font-size: 14.5px; color: var(--ink-3); }

/* coverage */
.tabs { display: flex; gap: 28px; box-shadow: inset 0 -1px 0 var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 0 0 14px; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); }
.tab.is-on::after { transform: scaleX(1); }
.geo__panel { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.geo__data { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 32px; }
.geo__label { margin: 0 0 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.geo__label + .ai-grid, .se + .geo__label { margin-top: 0; }
.se + .geo__label { margin-top: 32px; }
.se li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-bottom: 16px; }
.se__n { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.se__v { font: 500 13.5px/1.6 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; width: 100%; height: 4px; border-radius: 4px; overflow: hidden; }
.bar__bg { fill: var(--sunken); }
.bar__fg { fill: var(--ink); transform-box: fill-box; transform-origin: left center; animation: growx .9s var(--ease) both; }
.se li:first-child .bar__fg { fill: var(--accent); }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ai-grid li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo__ask { display: flex; flex-direction: column; background: var(--ink); color: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 24px 48px -28px rgba(11,11,12,.6); }
.geo__ask .ask__lang { color: #8A8A90; }
.geo__query { margin-top: 18px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.38; letter-spacing: -0.02em; }
.geo__tr { margin-top: 10px; font-size: 15px; color: #9A9AA0; }
.geo__tip { margin-top: auto; padding-top: 24px; box-shadow: 0 -1px 0 rgba(255,255,255,.12); font-size: 15px; line-height: 1.7; color: #D4D4D1; }
.geo__tr + .geo__tip { margin-top: 40px; }

/* dashboard */
.app { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-3); overflow: hidden; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sunken); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgba(11,11,12,.06), 0 1px 2px rgba(11,11,12,.1); }
.app__body { padding: 20px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 18px 20px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.app__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.panel { padding: 20px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.panel--wide { grid-column: 1 / -1; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head p:first-child { font-size: 15px; font-weight: 650; }
.panel__hint { font-size: 13px; color: var(--ink-3); }
.share-wrap { display: flex; align-items: center; gap: 28px; }
.legend { flex: 1; min-width: 0; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 8px 0; box-shadow: 0 1px 0 var(--line); font-size: 14px; }
.legend li:last-child { box-shadow: none; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font: 500 13.5px/1 var(--sans); }
.legend .is-you { font-weight: 650; }
.sw-0 { background: var(--accent); } .sw-1 { background: #0B0B0C; } .sw-2 { background: #8E8F94; } .sw-3 { background: #C9CACD; } .sw-4 { background: #E6E6E3; }
.alerts li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; box-shadow: 0 1px 0 var(--line); }
.alerts li:first-child { padding-top: 0; }
.alerts li:last-child { box-shadow: none; padding-bottom: 0; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico--bad { color: var(--red); } .ico--warn { color: var(--amber); } .ico--ok { color: var(--accent-ink); }
.alerts p { font-size: 14.5px; color: var(--ink-2); }
.alerts b { color: var(--ink); font-weight: 650; margin-right: 6px; }
.alerts time { font: 450 12.5px/1 var(--sans); color: var(--ink-3); white-space: nowrap; }
.caption { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: right; }

/* why us */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars article { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 32px; }
.pillars__k { font-size: 56px; line-height: 1; }
.pillars h3 { margin-top: 28px; font-size: 21px; font-weight: 650; letter-spacing: -0.035em; }
.pillars p:last-child { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.team { margin-top: 16px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: 40px; align-items: start; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 32px; }
.team__lead { font-size: 21px; font-weight: 650; line-height: 1.45; letter-spacing: -0.035em; }
.team ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team li { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; box-shadow: inset 2px 0 0 var(--ink); }
.team b { font-size: 15.5px; font-weight: 650; }
.team span { font-size: 14px; line-height: 1.6; color: var(--ink-3); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.faq__head { position: sticky; top: 100px; margin-bottom: 0; }
.faq__list { box-shadow: 0 -1px 0 var(--line-2); }
.faq details { box-shadow: 0 1px 0 var(--line-2); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; font-size: 16px; line-height: 1.8; color: var(--ink-2); }

/* apply */
.apply-sec { padding-top: 120px; }
.apply { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; background: var(--ink); color: #fff; border-radius: 28px; padding: 64px; }
.apply::before { content: ""; position: absolute; z-index: -1; inset: auto -20% -60% auto; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(25,195,125,.28), transparent 70%), radial-gradient(closest-side at 70% 30%, rgba(96,150,255,.2), transparent 70%); filter: blur(10px); pointer-events: none; }
.apply__copy > p { margin-top: 20px; font-size: 18px; color: #B4B4B8; }
.apply__list { margin-top: 36px; box-shadow: 0 -1px 0 rgba(255,255,255,.12); }
.apply__list li { display: flex; align-items: center; gap: 12px; padding: 15px 0; box-shadow: 0 1px 0 rgba(255,255,255,.12); font-size: 16px; font-weight: 500; }
.apply__list li::before { content: ""; width: 9px; height: 5px; flex: none; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { padding: 0; font-size: 13.5px; font-weight: 600; }
.field small { margin-left: 4px; font-weight: 450; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(11,11,12,.04); font-size: 15.5px;
  transition: box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%230B0B0C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { height: auto; min-height: 76px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(25,195,125,.2); }
.field .is-invalid { box-shadow: 0 0 0 1px var(--red), 0 0 0 4px rgba(212,68,62,.12); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.checks label { position: relative; cursor: pointer; }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks span { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); font-size: 14.5px; font-weight: 600; transition: box-shadow .2s, background-color .2s; }
.checks span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--ink-4); background: var(--surface) center / 12px no-repeat; transition: background-color .2s, box-shadow .2s; }
.checks label:hover span { box-shadow: 0 0 0 1px rgba(11,11,12,.3); }
.checks input:checked + span { box-shadow: 0 0 0 1.5px var(--ink); background: #FAFBFC; }
.checks input:checked + span::before { box-shadow: none; background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form__err { font-size: 14px; font-weight: 600; color: var(--red); }
.form__err:empty { display: none; }
.form__fine { font-size: 13px; color: var(--ink-3); text-align: center; }
.fallback { display: grid; gap: 10px; padding: 16px; border-radius: 12px; background: var(--sunken); }
.fallback p { font-size: 13.5px; }
.fallback pre { margin: 0; max-height: 200px; overflow: auto; padding: 12px; border-radius: 8px; background: var(--surface); font: 12.5px/1.6 var(--sans); white-space: pre-wrap; word-break: break-all; }
.fallback .btn { justify-self: start; }
.noscript { margin-top: 16px; }
.noscript a { text-decoration: underline; }

/* footer */
.footer { padding: 40px 0; }
.footer__in { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-top: 32px; box-shadow: 0 -1px 0 var(--line); }
.footer__nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.footer__nav a:hover, .footer__mail a:hover { color: var(--ink); }
.footer__mail { font-size: 14px; font-weight: 600; }
.footer__copy { width: 100%; font-size: 13px; color: var(--ink-3); }

/* mobile sticky CTA */
.mcta { display: none; }

/* reveal (class added by JS only) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .frame__body { grid-template-columns: 1fr; }
  .frame__main { box-shadow: 0 1px 0 var(--line); }
  .step { grid-template-columns: 1fr; gap: 36px; padding: 56px 0; }
  .geo__panel { grid-template-columns: 1fr; }
  .head--split { grid-template-columns: 1fr; gap: 0; }
  .head--split .lead { margin-top: 22px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq__head { position: static; }
  .apply { grid-template-columns: 1fr; gap: 40px; padding: 48px; }
  .team { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 20px 20px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a:not(.btn) { padding: 15px 0; box-shadow: 0 1px 0 var(--line); font-size: 16px; }
  .nav__menu .nav__cta { margin-top: 16px; height: 48px; }
  .stats, .pillars { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .app__grid { grid-template-columns: 1fr; }
  .team ul { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
  .mcta { display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; transform: translateY(160%); transition: transform .45s var(--ease); }
  .mcta.is-shown { transform: none; }
  .footer { padding-bottom: 104px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .logos { padding: 56px 20px 0; }
  .hero { padding-top: 56px; }
  .h1 { font-size: 38px; letter-spacing: -0.05em; }
  .hero__sub { font-size: 16.5px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .frame { margin-top: 48px; border-radius: 16px; }
  .frame__meta { display: none; }
  .frame__main, .frame__side { padding: 20px; }
  .metric__val { font-size: 42px; }
  .chart-box--hero { height: 190px; }
  .engines li { grid-template-columns: 18px minmax(0, 1fr) 54px 38px 28px; gap: 8px; font-size: 14px; }
  .logos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; max-width: 320px; }
  .logos__grid li { font-size: 14.5px; }
  .sec { padding: 88px 0; }
  .hero + .sec { padding-top: 104px; }
  .head { margin-bottom: 44px; }
  .lead { font-size: 16.5px; }
  .stat, .pillars article, .geo__data, .geo__ask, .team { padding: 24px; }
  .card { padding: 20px; }
  .ask__q { flex-direction: column; gap: 8px; }
  .issues__head { padding-left: 0; }
  .issues li { grid-template-columns: 22px minmax(0, 1fr); }
  .issues__eng { grid-column: 2; }
  .app__body { padding: 12px; }
  .app__bar { padding: 12px; }
  .seg { width: 100%; overflow-x: auto; }
  .seg button { flex: 1; padding: 7px 8px; }
  .kpi { padding: 14px 16px; }
  .panel { padding: 16px; }
  .share-wrap { flex-direction: column; align-items: stretch; gap: 16px; }
  .chart-box--donut { margin: 0 auto; }
  .alerts li { grid-template-columns: 20px minmax(0, 1fr); }
  .alerts time { grid-column: 2; }
  .apply { padding: 32px 20px; border-radius: 22px; }
  .form { padding: 20px 16px; }
  .form__row { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr 1fr; }
  .footer__nav { margin-left: 0; width: 100%; }
}

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

/* apply headline sizing */
.apply h2 { font-size: clamp(28px, 3.3vw, 42px); }
@media (max-width: 560px) {
  .h1 { font-size: 34px; line-height: 1.16; }
  .h1__line { display: inline; }
}

/* ==========================================================
   Flags, color logos, tracking, playbooks, cases
   ========================================================== */
.flag { width: 20px; height: 15px; flex: none; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11,11,12,.1); }
.flag--lg { width: 28px; height: 21px; border-radius: 4px; }
.ai { width: 20px; height: 20px; flex: none; }
.ai--sm { width: 16px; height: 16px; }
.ai--lg { width: 24px; height: 24px; }

/* flag tabs (hero frame + playbooks + dashboard) */
.ftabs { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--sunken); overflow-x: auto; scrollbar-width: none; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab { display: inline-flex; align-items: center; gap: 8px; flex: none; border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s; }
.ftab .flag { width: 18px; height: 13.5px; }
.ftab:hover { color: var(--ink); }
.ftab.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px rgba(11,11,12,.06), 0 1px 2px rgba(11,11,12,.1); }

/* tracking: tech cards */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tech article { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 26px; display: flex; flex-direction: column; }
.tech__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.tech__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tech__name { margin-top: 22px; font: 500 12.5px/1 var(--sans); color: var(--accent-ink); }
.tech h3 { margin-top: 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.35; }
.tech p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.tech__spec { margin-top: auto; padding-top: 18px; font: 450 12px/1.6 var(--sans); color: var(--ink-3); }

/* tracking: matrix */
.matrix-wrap { margin-top: 16px; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); overflow-x: auto; }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.matrix caption { text-align: left; padding: 22px 24px 6px; font-size: 15px; font-weight: 650; }
.matrix caption span { display: block; margin-top: 4px; font-size: 13px; font-weight: 450; color: var(--ink-3); }
.matrix th, .matrix td { padding: 12px 10px; text-align: center; }
.matrix thead th { font-size: 12.5px; font-weight: 600; color: var(--ink-3); vertical-align: bottom; }
.matrix thead th .flag { margin: 0 auto 6px; }
.matrix tbody th { text-align: left; padding-left: 24px; font-weight: 600; white-space: nowrap; }
.matrix tbody th span { display: inline-flex; align-items: center; gap: 10px; }
.matrix tbody tr { box-shadow: 0 -1px 0 var(--line); }
.matrix tbody tr:hover { background: #FAFBFC; }
.matrix td svg { width: 16px; height: 16px; margin: 0 auto; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.matrix td.no { color: var(--ink-4); }
.matrix td.freq { font: 450 12px/1 var(--sans); color: var(--ink-3); }

/* playbooks */
.pb__panel { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; animation: fade .5s var(--ease); }
.pb__data { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 30px; }
.pb__head { display: flex; align-items: center; gap: 12px; }
.pb__head h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.035em; }
.pb__fact { margin-top: 24px; padding: 20px 0; box-shadow: 0 -1px 0 var(--line), 0 1px 0 var(--line); }
.pb__fact b { display: block; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: -0.02em; }
.pb__fact span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.pb__label { margin: 24px 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.pb__engines { display: grid; gap: 12px; }
.pb__engines li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.pb__engines .se__n img { width: 18px; height: 18px; }
.pb__ais { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.pb__ais li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.pb__cites { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14.5px; color: var(--ink-2); }
.pb__cites li + li::before { content: "/"; margin-right: 14px; color: var(--ink-4); }
.pb__plan { background: var(--ink); color: #fff; border-radius: 18px; padding: 30px; box-shadow: 0 24px 48px -28px rgba(11,11,12,.6); }
.pb__plan h4 { margin: 0; font-size: 15px; font-weight: 600; color: #9A9AA0; }
.pb__plan ol { margin-top: 14px; counter-reset: s; }
.pb__plan li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 15px 0; box-shadow: 0 1px 0 rgba(255,255,255,.1); }
.pb__plan li:last-child { box-shadow: none; padding-bottom: 0; }
.pb__plan li::before { content: counter(s, decimal-leading-zero); font: 500 12.5px/1.9 var(--sans); color: var(--accent); }
.pb__plan b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -0.02em; }
.pb__plan span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.6; color: #B4B4B8; }
.pb__q { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.06); }
.pb__q small { display: block; font: 500 11.5px/1 var(--sans); color: #8A8A90; }
.pb__q p { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.45; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.case { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 28px; display: flex; flex-direction: column; }
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case__who { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.case__who small { font-weight: 450; color: var(--ink-3); margin-left: 2px; }
.case__engines { display: flex; gap: 6px; }
.case__metric { margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }
.case__nums { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.case__from { font-size: 26px; font-weight: 600; color: var(--ink-4); letter-spacing: -0.03em; }
.case__arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink-4); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; align-self: center; }
.case__to { font-size: 48px; font-weight: 650; line-height: 1; letter-spacing: -0.045em; }
.case__period { font: 450 12.5px/1 var(--sans); color: var(--accent-ink); }
.chart-box--case { height: 120px; margin-top: 16px; }
.case__did { margin-top: 18px; padding-top: 16px; box-shadow: 0 -1px 0 var(--line); display: grid; gap: 8px; }
.case__did li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.case__did li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 5px; border-left: 1.6px solid var(--accent-ink); border-bottom: 1.6px solid var(--accent-ink); transform: rotate(-45deg); }
.case__result { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.case__result div { padding: 12px 14px; border-radius: 12px; background: var(--sunken); }
.case__result b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.case__result span { font-size: 12.5px; color: var(--ink-3); }

/* checkbox labels with flags */
.checks span .flag { width: 18px; height: 13.5px; }

@media (max-width: 1024px) {
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pb__panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tech { grid-template-columns: 1fr; }
  .pb__data, .pb__plan, .case { padding: 22px; }
  .case__to { font-size: 40px; }
  .frame__bar { flex-direction: column; align-items: stretch; }
}

/* tab and segment details */
.tab { display: inline-flex; align-items: center; gap: 8px; }
.tab .flag { width: 18px; height: 13.5px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button .flag { width: 16px; height: 12px; }
.src { margin-top: 18px; padding-top: 14px; box-shadow: 0 -1px 0 var(--line); font: 450 12px/1.5 var(--sans); color: var(--ink-4); }
.matrix__group th { padding: 18px 24px 8px !important; text-align: left !important; font-size: 12.5px; font-weight: 600; color: var(--ink-3); background: transparent; }
.matrix tbody tr.matrix__group { box-shadow: none; }
.matrix tbody tr.matrix__group:hover { background: transparent; }
.matrix tbody th .ai { width: 18px; height: 18px; }
.matrix thead th { min-width: 72px; }
.official { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 20px 24px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); }
.official p { font-size: 14px; font-weight: 600; }
.official ul { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.official li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.frame__site img { width: 22px; height: 22px; }
.engines li .ai { width: 18px; height: 18px; }
.engines__bar i { width: 0; }
.case__engines .ai { width: 22px; height: 22px; }
.pb__ais .ai { width: 20px; height: 20px; }
.pb__plan li > div { min-width: 0; }
@media (max-width: 560px) {
  .official { padding: 18px; }
  .tabs { gap: 20px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.matrix thead th .flag { display: block; }


/* ==========================================================
   Overrides: buttons, hero before/after, flat blocks
   ========================================================== */
p, li, small, summary { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
.delta, .engines__v, .se__v, .src, .tech__spec, .tech__name, .alerts time, .legend b, .case__period,
.kpi .metric__val, .metric__val, .stat__num, .pillars__k, .case__to, .case__from { font-variant-numeric: tabular-nums; }
.tech__name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.tech__spec { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.src { font-size: 13px; font-weight: 500; color: var(--ink-4); letter-spacing: -0.005em; }
.ask__lang, .pb__q small { font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.delta { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; }

/* buttons — flat, crisp, icon chip */
.btn { border-radius: 10px; box-shadow: none; transition: background-color .2s var(--ease), color .2s, transform .15s var(--ease); }
.btn:hover { transform: none; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn--primary:hover { background: #26272B; box-shadow: none; transform: none; }
.btn--secondary { background: #F1F2F4; color: var(--ink); box-shadow: none; }
.btn--secondary:hover { background: #E7E8EB; box-shadow: none; transform: none; }
.btn:has(.btn__icon) { padding-right: 6px; gap: 14px; }
.btn--sm:has(.btn__icon) { padding-right: 5px; gap: 10px; }
.btn__icon { box-sizing: content-box; width: 14px; height: 14px; padding: 9px; border-radius: 7px; background: rgba(255,255,255,.12); stroke-width: 2; transition: background-color .25s var(--ease), color .25s, transform .3s var(--ease); }
.btn--sm .btn__icon { width: 12px; height: 12px; padding: 6px; border-radius: 6px; }
.btn--primary:hover .btn__icon { background: #fff; color: var(--ink); transform: none; }
.btn--lg { height: 52px; border-radius: 12px; }
.btn--lg:has(.btn__icon) { padding-left: 22px; }

/* hero frame: before/after + AI answer */
.frame__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.metric--ba { align-items: center; gap: 12px; }
.metric__from { font-size: 28px; font-weight: 600; color: var(--ink-4); letter-spacing: -0.03em; }
.metric__arrow { width: 20px; height: 20px; fill: none; stroke: var(--ink-4); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ba-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.ba-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ba-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sw-before { background: #D5D7DC; } .sw-after { background: var(--ink); }
.chart-box--hero { height: 250px; margin-top: 10px; }
.answer { height: 100%; display: flex; flex-direction: column; }
.answer__head { display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.answer__head b { font-weight: 650; }
.answer__lang { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.answer__q { margin-top: 16px; align-self: flex-end; max-width: 92%; padding: 11px 14px; border-radius: 14px 14px 4px 14px; background: #F1F2F4; font-size: 15px; font-weight: 500; line-height: 1.45; }
.answer__lead { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.answer__list { margin-top: 10px; display: grid; gap: 2px; }
.answer__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; }
.answer__list li.is-you { background: #F6F7F9; box-shadow: inset 2px 0 0 var(--ink); }
.answer__n { font-size: 13px; font-weight: 600; color: var(--ink-3); line-height: 1.6; }
.answer__list b { display: block; font-size: 15px; font-weight: 600; }
.answer__list .is-you b { font-weight: 700; }
.answer__list small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.answer__list .is-you small { color: var(--accent-ink); font-weight: 600; }
.answer__foot { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink-3); box-shadow: 0 -1px 0 var(--line); }

/* stats + pillars: no cards, column rules */
.stats, .pillars { gap: 0; box-shadow: 0 -1px 0 var(--ink); }
.stat, .pillars article { background: none; box-shadow: none; border-radius: 0; padding: 32px 40px 8px 0; }
.stat + .stat, .pillars article + article { padding-left: 40px; box-shadow: inset 1px 0 0 var(--line); }
.stat h3 { margin-top: 28px; }
.stat p:not(.stat__num):not(.src) { max-width: none; }
.src { margin-top: 16px; padding-top: 0; box-shadow: none; }

/* official data row: one line, no card */
.official { margin-top: 40px; padding: 22px 0 0; background: none; border-radius: 0; box-shadow: 0 -1px 0 var(--line); flex-wrap: nowrap; justify-content: space-between; gap: 24px; }
.official p { white-space: nowrap; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.official ul { flex-wrap: nowrap; gap: 26px; }
.official li { white-space: nowrap; font-size: 14px; font-weight: 500; }

/* matrix: two plain tables, flags on each */
.matrix-block { margin-top: 56px; }
.matrix-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 8px; }
.matrix-head h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.03em; }
.matrix-head p { font-size: 14px; color: var(--ink-3); }
.matrix-wrap { margin-top: 20px; background: none; border-radius: 0; box-shadow: none; overflow-x: auto; }
.matrix-wrap + .matrix-wrap { margin-top: 36px; }
.matrix { min-width: 820px; }
.matrix thead th { padding: 14px 6px 12px; box-shadow: inset 0 -1px 0 var(--ink); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.matrix thead th .flag { display: block; margin: 0 auto 7px; }
.matrix thead th.matrix__title { text-align: left; padding-left: 0; font-size: 14px; font-weight: 650; color: var(--ink); vertical-align: bottom; }
.matrix tbody th { padding-left: 0; }
.matrix tbody tr { box-shadow: 0 1px 0 var(--line); }
.matrix th, .matrix td { padding-top: 11px; padding-bottom: 11px; }

@media (max-width: 1100px) {
  .official { flex-direction: column; align-items: flex-start; }
  .official ul { flex-wrap: wrap; row-gap: 14px; }
}
@media (max-width: 860px) {
  .stat, .pillars article { padding: 28px 0 0; }
  .stat + .stat, .pillars article + article { padding-left: 0; box-shadow: 0 -1px 0 var(--line); margin-top: 28px; }
  .stat p:not(.stat__num):not(.src) { max-width: none; }
  .official ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
}
@media (max-width: 560px) {
  .frame__side { padding-top: 8px; }
  .metric__from { font-size: 22px; }
}

/* responsive overrides (keep after the rules above) */
@media (max-width: 1024px) {
  .frame__body { grid-template-columns: 1fr; }
  .frame__side { box-shadow: 0 -1px 0 var(--line); }
}
@media (max-width: 560px) {
  .h1 { font-size: 36px; line-height: 1.14; }
  .h1__line { display: block; }
  .chart-box--hero { height: 230px; }
}

/* lead text */
.lead { max-width: 680px; text-wrap: balance; }
.head--split .lead { max-width: none; }
@media (min-width: 768px) {
  .lead .s { display: block; }
}
.head h2 { max-width: 16em; }
.head--split h2 { max-width: none; }
.tech p:last-child { margin-bottom: 0; }


/* arrow buttons, answer list */
.btn:has(.btn__icon) { padding-right: 18px; gap: 8px; }
.btn--lg:has(.btn__icon) { padding: 0 22px; }
.btn--sm:has(.btn__icon) { padding-right: 13px; gap: 6px; }
.btn__icon, .btn--sm .btn__icon { box-sizing: border-box; width: 16px; height: 16px; padding: 0; border-radius: 0; background: none; stroke-width: 1.9; }
.btn--sm .btn__icon { width: 14px; height: 14px; }
.btn--primary:hover .btn__icon { background: none; color: #fff; transform: translateX(3px); }
.btn:hover .btn__icon { transform: translateX(3px); }

.answer__list { gap: 0; margin-top: 12px; box-shadow: 0 -1px 0 var(--line); }
.answer__list li, .answer__list li.is-you { padding: 12px 0; border-radius: 0; background: none; box-shadow: 0 1px 0 var(--line); }
.answer__list li:not(.is-you) b { color: var(--ink-3); font-weight: 500; }
.answer__list li:not(.is-you) small { color: var(--ink-4); }
.answer__list .is-you b { font-size: 16px; font-weight: 700; color: var(--ink); }
.answer__list .is-you small { color: var(--ink-2); font-weight: 500; }
.answer__list .is-you .answer__n { color: var(--ink); font-weight: 700; }
.answer__foot { box-shadow: none; padding-top: 14px; }

.chart-box--hero { height: 240px; }
.footnote { margin-top: 28px; font-size: 13px; color: var(--ink-4); }

.hero__sub { max-width: 760px; }
p .s { text-wrap: balance; }
@media (min-width: 768px) {
  p .s { display: block; }
  .hero__sub .s + .s { margin-top: 2px; }
}
.step__text > p:not(.step__no) { max-width: 520px; }


/* product frames */
.hero__wash { display: none; }
.hero__sub { max-width: 880px; }
.frame, .app { background: #F6F7F9; box-shadow: none; border-radius: 22px; }
.frame__bar, .app__bar { box-shadow: none; padding: 16px 22px 6px; }
.frame__main { box-shadow: none; }
.frame__body { gap: 8px; padding: 8px; }
.frame__main, .frame__side { background: #FFFFFF; border-radius: 16px; }
.frame .ftabs, .app .seg { background: #ECEDF0; }
.answer__q { background: #F3F4F6; }
.app__body { padding: 8px; }
.kpis { gap: 8px; }
.app__grid { gap: 8px; margin-top: 8px; }
.kpi, .panel { background: #FFFFFF; box-shadow: none; border-radius: 16px; }
@media (max-width: 1024px) {
  .frame__side { box-shadow: none; }
}
@media (max-width: 560px) {
  .frame__body, .app__body { padding: 6px; gap: 6px; }
  .frame__bar, .app__bar { padding: 12px 14px 4px; }
}

/* section backgrounds and dividers */
.sec--sunken { background: #FFFFFF; }
.sec + .sec { box-shadow: 0 -1px 0 var(--line); }
.hero + .sec { box-shadow: none; }

/* Unovis charts */
:root {
  --vis-font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --vis-axis-font-family: "Pretendard Variable", Pretendard, -apple-system, sans-serif;
  --vis-axis-tick-label-color: #A6A7AC;
  --vis-axis-tick-label-font-size: 11px;
  --vis-axis-grid-color: rgba(11, 11, 12, 0.07);
  --vis-axis-domain-color: transparent;
  --vis-axis-tick-color: transparent;
  --vis-tooltip-background-color: #0B0B0C;
  --vis-tooltip-text-color: #FFFFFF;
  --vis-tooltip-border-color: transparent;
  --vis-tooltip-border-radius: 8px;
  --vis-tooltip-padding: 8px 11px;
  --vis-tooltip-box-shadow: 0 10px 24px -10px rgba(11, 11, 12, 0.5);
  --vis-crosshair-line-stroke-color: rgba(11, 11, 12, 0.22);
  --vis-crosshair-circle-stroke-color: #FFFFFF;
  --vis-donut-central-label-font-size: 26px;
  --vis-donut-central-label-font-weight: 650;
  --vis-donut-central-label-text-color: #0B0B0C;
  --vis-donut-central-sub-label-font-size: 11.5px;
  --vis-donut-central-sub-label-text-color: #74757B;
  --vis-donut-segment-stroke-color: #FFFFFF;
  --vis-stacked-bar-stroke-width: 0;
}
.chart, .case-chart { position: relative; width: 100%; height: 100%; }
.chart-box .chart, .chart-box .case-chart { position: absolute; inset: 0; }
#heroChart text, #engineChart text { fill: #3F4045; font-size: 13px; font-weight: 600; }
#engineChart .tick text { font-size: 12.5px; }
.bar-labels { position: absolute; inset: 0; pointer-events: none; }
.bar-label { position: absolute; transform: translateY(-50%); display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.bar-label b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.bar-label em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }


/* multi-engine legends */
.series-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.series-legend li { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.series-legend i { width: 14px; height: 3px; border-radius: 2px; flex: none; }
.series-legend .sl-0 { background: #19C37D; } .series-legend .sl-1 { background: #0B0B0C; } .series-legend .sl-2 { background: #7C8CF8; }
.series-legend b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.series-legend em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); }
.series-legend--inline { margin-top: 0; }
.series-legend--sm { margin-top: 18px; gap: 6px 14px; }
.series-legend--sm li { font-size: 13px; }
.care__head { align-items: center; }
.chart-box--care { height: 190px; }


/* hero before/after chart */
.chart-box--hero { height: 270px; margin-top: 18px; }
#heroChart .tick text { font-size: 12.5px; font-weight: 600; fill: #3F4045; }
.col-label { position: absolute; transform: translate(-50%, -100%); display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.col-label b { font-size: 14px; font-weight: 700; color: var(--ink); }
.col-label em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
@media (max-width: 560px) {
  .chart-box--hero { height: 250px; }
  #heroChart .tick text { font-size: 11px; }
  .col-label { flex-direction: column; align-items: center; gap: 0; }
  .col-label b { font-size: 12.5px; }
  .col-label em { font-size: 11px; }
}


/* dumbbell and area charts */
.series-legend .sl-0 { background: #4D8CFD; } .series-legend .sl-1 { background: #FF6B7E; }
.series-legend .sl-2 { background: #F4B83E; } .series-legend .sl-3 { background: #00C19A; }
.series-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sw-before { background: #C9CBD1; } .sw-after { background: #4D8CFD; }
.ba-legend i { border-radius: 50%; }
.sw-0 { background: #4D8CFD; } .sw-1 { background: #FF6B7E; } .sw-2 { background: #F4B83E; } .sw-3 { background: #C9CBD1; } .sw-4 { background: #E6E7EA; }
.chart-box--hero { height: 250px; margin-top: 12px; }
#heroChart .tick text, #engineChart .tick text { font-size: 12.5px; font-weight: 600; fill: #3F4045; }
#heroChart text, #engineChart text { font-size: 12.5px; font-weight: 650; }
.panel .ba-legend { margin-top: 0; }


/* scrollbar */
html {
  background-color: var(--bg);
  scrollbar-color: rgba(10, 10, 12, 0.22) var(--bg);
  scrollbar-width: thin;
  scrollbar-gutter: stable both-edges;
}
html::-webkit-scrollbar { width: 10px; height: 0; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb { border: 3px solid var(--bg); border-radius: 9999px; background: rgba(10, 10, 12, 0.22); }
html::-webkit-scrollbar-thumb:hover { background: rgba(10, 10, 12, 0.38); }
