/* UnicareMind official site, v3
   Reference: pydantic.dev / vercel.com. A framed column of hairlines, a product family with its own colours,
   light by default, dark on a click. */

@font-face { font-family: "Host Grotesk"; font-weight: 400; font-display: swap; src: url("../fonts/host-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/host-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 600; font-display: swap; src: url("../fonts/host-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --nav: 64px; --gut: 32px; --pad: 64px; --padv: 112px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --zh: "UC Noto SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font: "Host Grotesk", var(--zh);
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --c-os: #5779ff; --c-align: #10b981; --c-rag: #0ea5e9; --c-studio: #f97316;
  --ease: cubic-bezier(.2,.8,.2,1);
}
html[lang^="zh-Hant"] { --zh: "UC Noto TC", "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif; }

html[data-grade="light"] {
  color-scheme: light;
  --c-os: #3d63ff;
  --bg: #ffffff; --bg-2: #f6f7f9; --bg-3: #eef0f4;
  --ink: #0b0d12; --ink-2: #3b4150; --muted: #687083;
  --line: #e6e8ec; --line-2: #d3d7de;
  --ok: #0c9466; --warn: #b16f08; --flag: #d1343e;
  --ok-bg: rgba(12,148,102,.09); --warn-bg: rgba(177,111,8,.09); --flag-bg: rgba(209,52,62,.07); --act-bg: rgba(61,99,255,.08);
  --shadow: 0 1px 2px rgba(11,13,18,.04), 0 16px 40px -16px rgba(11,13,18,.16);
  --glow: .55;
  --btn-bg: #0b0d12; --btn-ink: #ffffff;
}
html[data-grade="dark"] {
  color-scheme: dark;
  --bg: #08090c; --bg-2: #0f1116; --bg-3: #161922;
  --ink: #f2f3f6; --ink-2: #c5c9d3; --muted: #8a92a3;
  --line: rgba(255,255,255,.085); --line-2: rgba(255,255,255,.16);
  --ok: #2ccb94; --warn: #e6a43c; --flag: #f26b73;
  --ok-bg: rgba(44,203,148,.12); --warn-bg: rgba(230,164,60,.12); --flag-bg: rgba(242,107,115,.12); --act-bg: rgba(91,134,255,.16);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -24px rgba(0,0,0,.8);
  --glow: .5;
  --btn-bg: #f2f3f6; --btn-ink: #08090c;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: var(--nav); -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
ul, ol, dl, dd, p, h1, h2, h3, h4, h5, h6, figure, pre { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--c-os); outline-offset: 2px; border-radius: 4px; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pm { width: 22px; height: 22px; color: var(--pc); flex: none; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; color: var(--ink); }
h1 { font-size: clamp(42px, 5vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.1; letter-spacing: -0.035em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.015em; }
:lang(zh) :is(h1, h2), :lang(zh-Hant) :is(h1, h2) { letter-spacing: -0.02em; line-height: 1.16; }
.sub { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40em; text-wrap: pretty; }
:lang(zh) .sub, :lang(zh-Hant) .sub { max-width: 34em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); font-size: 15px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; transition: transform .2s var(--ease), background-color .2s, border-color .2s, opacity .2s; }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn--secondary { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn--light { background: #fff; color: #0b0d12; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--primary:hover, .btn--light:hover { opacity: .88; }
  .btn--secondary:hover { border-color: var(--ink-2); }
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .2s var(--ease); }
.link:hover { background-size: 100% 1px, 100% 1px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 8px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--bg-3); color: var(--ink); }

/* ---------- frame ---------- */
.frame { width: min(100% - 2 * var(--gut), 1280px); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.band { position: relative; border-top: 1px solid var(--line); }
.band:first-child { border-top: 0; }
.band::before, .band::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; z-index: 2; background: linear-gradient(var(--ink-2), var(--ink-2)) center / 11px 1px no-repeat, linear-gradient(var(--ink-2), var(--ink-2)) center / 1px 11px no-repeat; opacity: .55; }
.band::before { left: -6px; } .band::after { right: -6px; }
.band:first-child::before, .band:first-child::after { display: none; }
.cell { padding: var(--padv) var(--pad); }
.cell.head { padding-bottom: 56px; }
.cell--flush { padding-top: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 20px; }
.kicker .pm { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in oklab, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav__bar { width: min(100% - 2 * var(--gut), 1280px); margin: 0 auto; height: var(--nav); display: flex; align-items: center; gap: 36px; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark { width: 26px; height: 26px; }
.brand__name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav__words { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__word { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background-color .15s, color .15s; }
.nav__word:hover, .nav__item.is-open .nav__word { color: var(--ink); background: var(--bg-3); }
.ic--chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item.is-open .ic--chev { transform: rotate(180deg); }
.nav__panel { position: absolute; top: calc(100% + 10px); left: -8px; width: 620px; padding: 16px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .12s, transform .12s; }
.nav__panel--sm { width: 460px; }
.nav__panel--xs { width: 340px; }
.rmenu { display: grid; gap: 2px; }
.rmenu a { display: flex; gap: 12px; padding: 10px 12px; border-radius: var(--r-md); transition: background-color .15s; }
.rmenu a:hover { background: var(--bg-2); }
.rmenu .ic { color: var(--ink-2); margin-top: 2px; }
.rmenu b { display: block; font-weight: 600; font-size: 15px; }
.rmenu em { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.nav__login { font-size: 14.5px; font-weight: 500; color: var(--ink-2); padding: 0 10px; transition: color .15s; }
.nav__login:hover { color: var(--ink); }
.nav__demo { margin-left: 4px; }
.sheet__acct { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 24px; }
.nav__item.is-open .nav__panel { opacity: 1; transform: none; pointer-events: auto; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.nav__lead { font-size: 13px; color: var(--muted); padding: 4px 10px 12px; }
.pmenu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pmenu a, .smenu a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background-color .15s; }
.pmenu a:hover, .smenu a:hover { background: var(--bg-2); }
.pmenu .pm { margin-top: 1px; }
.pmenu b, .smenu b { display: block; font-weight: 600; font-size: 15px; }
.pmenu b i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--pc); margin-left: 4px; }
.pmenu em, .smenu em { display: block; font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.smenu { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.smenu .ic { color: var(--ink-2); margin-top: 2px; }
.nav__tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__cta { margin-left: 8px; }
@media (max-width: 1280px) { .nav__demo { display: none; } }
#grade .ic--sun { display: none; }
html[data-grade="dark"] #grade .ic--sun { display: block; }
html[data-grade="dark"] #grade .ic--moon { display: none; }
.lang { position: relative; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; padding: 6px; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .12s, transform .12s; }
.lang.is-open .lang__menu { opacity: 1; transform: none; pointer-events: auto; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2); }
.lang__menu a:hover { background: var(--bg-2); color: var(--ink); }
.lang__menu a.is-active::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-os); }
.nav__menu { display: none; position: relative; width: 40px; height: 40px; }
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .2s var(--ease), top .2s; }
.nav__menu span:first-child { top: 16px; } .nav__menu span:last-child { top: 23px; }
.nav.is-menu .nav__menu span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-menu .nav__menu span:last-child { top: 19.5px; transform: rotate(-45deg); }
.nav.is-menu { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.sheet { position: fixed; inset: var(--nav) 0 0; background: var(--bg); overflow-y: auto; padding: 8px 24px 40px; }
.sheet__h { font-size: 13px; color: var(--muted); padding: 20px 0 6px; }
.sheet > a { display: flex; align-items: center; height: 48px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.sheet__langs { display: flex; gap: 20px; padding-top: 24px; color: var(--muted); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 70% 40%, #000, transparent 75%); opacity: .7; }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 104px; }
.hero__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 15px; color: var(--ink-2); }
.hero__kicker b { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.hero__kicker span { padding-left: 10px; border-left: 1px solid var(--line-2); color: var(--muted); }
.hero h1 span { display: block; }
.hero h1 .h1-em { background: linear-gradient(100deg, var(--c-os) 10%, #22c59a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.st-os { border-color: color-mix(in oklab, var(--c-os) 55%, var(--line)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-os) 12%, transparent), 0 14px 36px -14px color-mix(in oklab, var(--c-os) 55%, transparent); }
.st-os span b { font-size: 17px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; margin-bottom: 28px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: border-color .2s; }
.pill:hover { border-color: var(--ink-2); }
.pill .ic { width: 15px; height: 15px; }
.pill .ic--arrow { transition: transform .2s var(--ease); }
.pill:hover .ic--arrow { transform: translateX(3px); }
.hero__lead { margin: 24px 0 36px; font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.hero__micro { margin-top: 28px; font-size: 13.5px; color: var(--muted); }

/* the stack */
.stack { position: relative; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg-2) 80%, transparent); box-shadow: var(--shadow); }
.stack__glow { position: absolute; inset: 10% -6% -4% -6%; z-index: -1; filter: blur(60px); opacity: var(--glow); background:
  radial-gradient(40% 40% at 20% 70%, color-mix(in oklab, var(--c-align) 70%, transparent), transparent 70%),
  radial-gradient(40% 40% at 50% 40%, color-mix(in oklab, var(--c-os) 75%, transparent), transparent 70%),
  radial-gradient(35% 35% at 85% 60%, color-mix(in oklab, var(--c-studio) 55%, transparent), transparent 70%),
  radial-gradient(35% 35% at 30% 20%, color-mix(in oklab, var(--c-rag) 60%, transparent), transparent 70%); }
.st { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.st__label { font-size: 12.5px; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.st-sol { flex-wrap: wrap; }
.st__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st__chips span { padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; }
.st-p { transition: border-color .2s, box-shadow .2s, opacity .25s, transform .2s var(--ease); }
.st-p span b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.st-p span i { display: block; font-style: normal; font-size: 12.5px; color: var(--pc); font-weight: 500; }
.st-p small { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; }
.st-p:hover, .st-p.is-hover { border-color: var(--pc); box-shadow: 0 0 0 3px color-mix(in oklab, var(--pc) 16%, transparent), 0 10px 30px -12px color-mix(in oklab, var(--pc) 60%, transparent); }
.stack.has-hover .st-p:not(.is-hover) { opacity: .5; }
.st__body { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 10px; }
.st__main { display: flex; flex-direction: column; }
.st__main > a.st-p:first-child { padding: 18px 16px; }
.st__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tag-open { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--c-align); background: color-mix(in oklab, var(--c-align) 12%, transparent); white-space: nowrap; }
.st-data { flex-wrap: wrap; gap: 6px; background: transparent; border-style: dashed; }
.st-data code { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.st-studio { flex-direction: column; justify-content: center; gap: 12px; padding: 14px 6px; text-align: center; }
.st-studio span { writing-mode: vertical-rl; text-orientation: mixed; display: flex; align-items: center; gap: 6px; }
.st-studio span b, .st-studio span i { display: inline; }
.flow { display: flex; justify-content: space-around; height: 26px; padding: 0 12%; }
.flow--sm { height: 18px; }
.flow i { position: relative; width: 1px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 3px, transparent 3px 6px); overflow: hidden; }
.flow i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 10px; border-radius: 2px; background: var(--c-os); bottom: -12px; animation: rise 2.4s linear infinite; }
.flow i:nth-child(2)::after { animation-delay: .6s; background: var(--c-rag); }
.flow i:nth-child(3)::after { animation-delay: 1.2s; background: var(--c-align); }
.flow i:nth-child(4)::after { animation-delay: 1.8s; }
@keyframes rise { from { bottom: -12px; } to { bottom: 100%; } }

/* ==========================================================================
   PRODUCTS
   ========================================================================== */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pcard { position: relative; display: flex; flex-direction: column; padding: 48px var(--pad) 44px; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.pcard:nth-child(odd) { border-right: 1px solid var(--line); }
.pcard:nth-last-child(-n+2) { border-bottom: 0; }
.pcard::before { content: ""; position: absolute; left: 0; top: -1px; width: 64px; height: 2px; background: var(--pc); }
.pcard:hover { background: color-mix(in oklab, var(--pc) 3%, var(--bg)); }
.pcard header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pcard header b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pcard .role { font-size: 13px; font-weight: 500; color: var(--pc); padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--pc) 10%, transparent); }
.pcard .tag-open { margin-left: 0; }
.pcard h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.025em; }
.pcard > p { margin-top: 10px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.feats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 28px; font-size: 14px; color: var(--ink-2); }
.feats li { display: flex; align-items: center; gap: 8px; }
.feats li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--pc); }
.viz { margin-top: auto; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); padding: 16px; min-height: 112px; }
.plink { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14.5px; font-weight: 500; color: var(--ink); width: fit-content; }
.plink .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.plink:hover .ic { transform: translateX(3px); }
.plink:hover { color: var(--pc); }
.viz-os { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 12.5px var(--mono); }
.viz-os span { padding: 6px 10px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.viz-os i { flex: 1; min-width: 16px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 7px); }
.viz-os .ok { color: var(--ok); border-color: color-mix(in oklab, var(--ok) 40%, var(--line)); background: var(--ok-bg); }
.viz-align { display: grid; grid-template-columns: auto auto 1fr auto; gap: 8px 10px; align-items: center; font-size: 12.5px; }
.viz-align code { font-size: 12.5px; color: var(--ink-2); }
.viz-align i { font-style: normal; color: var(--muted); }
.viz-align b { font-weight: 600; text-align: right; }
.viz-align .ok { color: var(--ok); } .viz-align .flag { color: var(--flag); }
.viz-rag { padding: 8px 16px; }
.viz-rag svg { width: 100%; height: auto; }
.viz-rag .e path { stroke: var(--line-2); stroke-width: 1.4; fill: none; }
.viz-rag .n circle { fill: var(--bg); stroke: var(--c-rag); stroke-width: 2; }
.viz-rag .n .hl { fill: var(--c-rag); }
.viz-rag .t text { font: 11px var(--mono); fill: var(--muted); }
.viz-studio { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); white-space: pre; overflow-x: auto; }
.viz-studio b { color: var(--c-studio); font-weight: 400; }

/* ==========================================================================
   SOLUTIONS (app window)
   ========================================================================== */
.win { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 13.5px; white-space: nowrap; }
.win__bar b { font-weight: 500; }
.win__dots { display: inline-flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win__meta { margin-left: auto; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.tag { padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--c-os); background: var(--act-bg); }
.app__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 440px; }
.app__side { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-right: 1px solid var(--line); background: var(--bg-2); }
.app__side button { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; border-radius: var(--r-md); text-align: left; color: var(--ink-2); }
.app__side button b { display: block; font-weight: 600; font-size: 14.5px; }
.app__side button i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.app__side button .ic { color: var(--muted); }
.app__side button[aria-selected="true"] { color: var(--ink); }
.app__side button[aria-selected="true"] .ic { color: var(--c-os); }
.app__ind { position: absolute; left: 12px; right: 12px; top: 12px; height: 60px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .24s var(--ease); }
.pane { padding: 24px 28px; }
.pane[hidden] { display: none; }
.pane__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pane__head h3 { font-size: 18px; }
.uses { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.uses i { font-style: normal; font-weight: 500; color: var(--pc); padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--pc) 10%, transparent); }
.rec { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 400; color: var(--flag); margin-left: 8px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s steps(1) infinite; }
.rec--ok { color: var(--ok); }
@keyframes blink { 50% { opacity: .25; } }
.ui-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--r-sm); background: var(--btn-bg); color: var(--btn-ink); font-size: 13px; font-weight: 500; }
.chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 500; color: var(--ok); background: var(--ok-bg); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.voice { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.voice__talk { display: flex; flex-direction: column; gap: 8px; }
.wave { display: flex; align-items: center; gap: 3px; height: 44px; padding: 0 8px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); }
.wave i { flex: 1; min-width: 2px; height: 12%; border-radius: 2px; background: var(--c-os); transition: height .12s linear; }
.wave i.pat { background: var(--c-align); }
.say { max-width: 92%; padding: 8px 12px; border-radius: var(--r-md); font-size: 14px; line-height: 1.55; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); }
.say b { display: block; font-size: 12px; font-weight: 500; color: var(--c-os); }
.say--pat { align-self: flex-end; background: color-mix(in oklab, var(--c-align) 9%, var(--bg)); border-color: transparent; }
.say--pat b { color: var(--c-align); }
.voice__draft { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); }
.voice__draft h4, .qc h4 { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.voice__draft dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.voice__draft dt { color: var(--c-os); font-weight: 500; white-space: nowrap; }
.med { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.rx { display: flex; flex-direction: column; gap: 8px; }
.rx__pt { font-size: 12.5px; color: var(--muted); padding: 0 2px 2px; }
.rx li:not(.rx__pt) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.rx b { font-weight: 500; }
.rx span { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
.rx .is-flag { box-shadow: inset 3px 0 0 var(--flag); }
.rx .is-warn { box-shadow: inset 3px 0 0 var(--warn); }
.alerts { display: flex; flex-direction: column; gap: 8px; }
.alert { padding: 9px 14px; border-radius: var(--r-md); font-size: 14px; line-height: 1.55; }
.alert b { display: block; font-weight: 500; font-size: 12.5px; }
.alert p { color: var(--ink-2); }
.alert--flag { background: var(--flag-bg); } .alert--flag b { color: var(--flag); }
.alert--warn { background: var(--warn-bg); } .alert--warn b { color: var(--warn); }
.alert--ok { background: var(--ok-bg); } .alert--ok b { color: var(--ok); }
.src { font-size: 12.5px; color: var(--muted); }
.emr { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; }
.sheetdoc { padding: 8px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-2); }
.sheetdoc section { padding: 12px 0; }
.sheetdoc section + section { border-top: 1px dashed var(--line-2); }
.sheetdoc h5 { font-size: 13px; font-weight: 500; color: var(--c-os); margin-bottom: 8px; }
.sheetdoc i { display: block; height: 7px; margin: 7px 0; width: var(--w); border-radius: 4px; background: var(--line-2); }
.caret { display: inline-block; width: 2px; height: 14px; background: var(--c-os); animation: blink 1s steps(1) infinite; }
.qc { padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); align-self: start; }
.qc p { position: relative; padding: 8px 0 8px 20px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); }
.qc p::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; }
.qc--ok::before { background: var(--ok); } .qc--flag::before { background: var(--flag); }
.drg { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
.drg__score { display: flex; flex-direction: column; gap: 16px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line); stroke-width: 9; }
.ring .ring__v { stroke: var(--c-os); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: calc(327 - 327 * var(--p) / 100); }
.ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring b { font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.ring span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; text-align: right; }
.issues { display: flex; flex-direction: column; gap: 8px; }
.issues li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; }
.issues .issues__act { background: none; border: 0; padding: 8px 0 0; }
.sev { flex: none; min-width: 40px; text-align: center; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--c-os); background: var(--act-bg); }
.sev--flag { color: var(--flag); background: var(--flag-bg); }
.sev--warn { color: var(--warn); background: var(--warn-bg); }
.sev--ok { color: var(--ok); background: var(--ok-bg); }
.pane__head h3 .tag-open { margin-left: 8px; vertical-align: 2px; }
.chronic__pt { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tgt { width: 100%; border-collapse: collapse; font-size: 14px; }
.tgt th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 0 0 8px; }
.tgt td { padding: 10px 0; border-top: 1px solid var(--line); }
.tgt td.num { font-family: var(--mono); font-size: 13.5px; }
.tgt td.muted { color: var(--muted); font-size: 13px; }
.tgt td:last-child { text-align: right; }
.trend { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 64px; margin: 16px 0; padding: 0 2px; border-bottom: 1px solid var(--line); }
.trend i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: color-mix(in oklab, var(--c-os) 22%, transparent); }
.trend i.now { background: var(--c-os); }
.trend__goal { position: absolute; left: 0; right: 0; bottom: 52%; border-top: 1px dashed var(--ok); }
.chronic__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.cost__foot { margin-top: 16px; }
.chronic__foot b.flagtxt { color: var(--flag); font-size: 14px; }
.chronic__foot b { font-weight: 500; color: var(--muted); margin-right: 10px; font-size: 13px; }

/* ==========================================================================
   GOVERNANCE
   ========================================================================== */
.gov { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.steps { counter-reset: s; margin-top: 36px; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px minmax(0, 1fr); padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 12.5px var(--mono); color: var(--muted); padding-top: 4px; }
.steps h3 { font-size: 17px; }
.steps p { font-size: 15px; color: var(--muted); }
.gov__art { position: relative; padding-bottom: 32px; }
.doc { display: flex; flex-direction: column; }
.doc__body { flex: 1; display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.gates { padding: 24px 0 24px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; font-size: 12.5px; color: var(--muted); }
.gates li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.gates i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s; }
.doc__text { display: flex; flex-direction: column; padding: 24px 28px 20px; font-size: 16px; line-height: 1.9; color: var(--ink-2); text-wrap: pretty; min-height: 400px; }
.cite { display: inline-block; margin-left: 3px; min-width: 16px; padding: 0 4px; height: 16px; border-radius: 4px; font: 500 11px/16px var(--mono); text-align: center; color: var(--c-rag); background: color-mix(in oklab, var(--c-rag) 12%, transparent); vertical-align: 6px; opacity: 0; transform: translateY(3px); transition: opacity .35s, transform .35s var(--ease); }
.mark-flag { background: linear-gradient(var(--flag), var(--flag)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 1px; }
.note { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-left: 2px solid var(--flag); background: var(--flag-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.note b { color: var(--flag); font-weight: 500; }
.refs { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .35s; }
.refs sup { font: 500 11px var(--mono); color: var(--c-rag); margin-right: 4px; }
.doc__foot { display: flex; justify-content: flex-end; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; color: var(--muted); }
.doc__foot code { font-size: 12px; }
.doc__foot span { display: inline-flex; align-items: center; gap: 6px; }
.doc__foot span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color .3s; }
.doc[data-step="1"] .gates [data-g="1"], .doc[data-step="2"] .gates li:nth-child(-n+2), .doc[data-step="3"] .gates li:nth-child(-n+3), .doc[data-step="4"] .gates li, .doc[data-step="5"] .gates li { color: var(--ink); }
.doc[data-step="1"] .gates [data-g="1"] i, .doc[data-step="2"] .gates li:nth-child(-n+2) i, .doc[data-step="3"] .gates li:nth-child(-n+3) i, .doc[data-step="4"] .gates li i, .doc[data-step="5"] .gates li i { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--bg); }
.doc:is([data-step="2"], [data-step="3"], [data-step="4"], [data-step="5"]) :is(.cite, .refs) { opacity: 1; transform: none; }
.doc:is([data-step="3"], [data-step="4"], [data-step="5"]) .mark-flag { background-size: 100% 2px; }
.doc:is([data-step="3"], [data-step="4"], [data-step="5"]) .note { opacity: 1; transform: none; }
.doc:is([data-step="4"], [data-step="5"]) .doc__foot span::before { background: var(--ok); }
.stamp { position: absolute; left: -36px; bottom: 96px; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .4s, transform .4s var(--ease); }
.stamp .ic { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--ok); color: #fff; stroke-width: 2.4; }
.stamp b { display: block; font-weight: 500; font-size: 15px; }
.stamp i { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
.doc[data-step="5"] ~ .stamp { opacity: 1; transform: none; }
.doc__toggle { position: absolute; right: 0; bottom: -8px; color: var(--muted); }
.doc__toggle .ic--play { display: none; }
.doc__toggle.is-paused .ic--play { display: block; }
.doc__toggle.is-paused .ic--pause { display: none; }

/* ==========================================================================
   OPEN SOURCE (inverse)
   ========================================================================== */
.band--ink { background: #0b0d12; color: #f2f3f6; border-top-color: #0b0d12; }
html[data-grade="dark"] .band--ink { background: #111319; border-top-color: var(--line); }
.band--ink h2 { color: #f2f3f6; }
.band--ink .sub { color: #9aa1b0; }
.oss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; background: radial-gradient(60% 80% at 100% 100%, rgba(16,185,129,.16), transparent 70%), radial-gradient(50% 70% at 0% 0%, rgba(61,99,255,.16), transparent 70%); }
.oss__mark { width: 40px; height: 40px; color: #fff; margin-bottom: 24px; }
.oss .btn { margin-top: 32px; }
.oss__repos { display: flex; flex-direction: column; gap: 12px; }
.repo { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.repo:hover { border-color: color-mix(in oklab, var(--pc) 70%, transparent); background: rgba(255,255,255,.05); transform: translateY(-2px); }
.repo__top { display: flex; align-items: center; gap: 10px; }
.repo__top b { font-size: 17px; font-weight: 600; }
.repo__top em { margin-left: auto; font-style: normal; font-size: 12px; color: #9aa1b0; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 1px 8px; }
.repo__d { color: #c5c9d3; font-size: 15px; }
.repo__meta { display: flex; align-items: center; gap: 6px; font: 12.5px var(--mono); color: #8a92a3; }
.repo__meta .ic { width: 14px; height: 14px; }
.oss__issues { font-size: 13.5px; color: #8a92a3; padding: 4px 4px 0; }

/* ==========================================================================
   TRUST + CLOSE
   ========================================================================== */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.kvrows { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kvrows > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.kvrows > div:nth-child(odd) { padding-right: 24px; }
.kvrows > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.kvrows dt { font-size: 13px; color: var(--muted); }
.kvrows dd { margin-top: 4px; font-size: 17px; font-weight: 500; }
.kvrows dd.big { font-size: 34px; letter-spacing: -0.03em; line-height: 1.2; }
.kvrows code { font-size: 14px; font-weight: 400; }
.close { background: var(--bg-2); }
.close__in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 48px; align-items: end; }
.close__act { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.close__act p { display: flex; flex-direction: column; font-size: 14.5px; }
.close__act p span { font-size: 12.5px; color: var(--muted); }
.close__qr { text-align: center; }
.close__qr img { width: 120px; height: 120px; padding: 6px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.close__qr figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { border-top: 1px solid var(--line); overflow: hidden; }
.foot .frame { border-bottom: 0; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.foot__grid h6, .foot__grid .foot__h { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.foot__grid > div:not(.foot__brand) a { display: block; width: fit-content; padding: 3px 0; font-size: 14.5px; color: var(--ink-2); transition: color .15s; }
.foot__grid > div:not(.foot__brand) a:hover { color: var(--ink); }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot__langs { display: flex; gap: 18px; }
.foot__langs a:hover { color: var(--ink); }
.foot__word { font-size: min(232px, calc((100vw - 2 * var(--gut)) * .158)); line-height: .78; font-weight: 600; letter-spacing: -0.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; margin-bottom: -0.12em; white-space: nowrap; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .stack { max-width: 640px; }
  .gov, .trust { grid-template-columns: 1fr; gap: 48px; }
  .stamp { left: 16px; }
}
@media (max-width: 1023px) {
  :root { --pad: 40px; --padv: 88px; }
  .nav__words, .nav__login { display: none; }
  .nav__menu { display: inline-flex; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard:nth-child(odd) { border-right: 0; }
  .pcard:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .oss { grid-template-columns: 1fr; gap: 40px; }
  .close__in { grid-template-columns: 1fr auto; }
  .close__in > div:first-child { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 760px) {
  .app__body { grid-template-columns: 1fr; }
  .app__side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .app__side button { flex: none; height: 48px; }
  .app__side button span i { display: none; }
  .app__ind { display: none; }
  .app__side button[aria-selected="true"] { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
  .voice, .med, .emr, .drg { grid-template-columns: 1fr; }
  .drg__score { flex-direction: row; align-items: center; }
  .drg__score .kv { flex: 1; }
}
@media (max-width: 639px) {
  :root { --gut: 0px; --pad: 20px; --padv: 72px; --nav: 56px; }
  .frame { border-left: 0; border-right: 0; }
  .band::before, .band::after { display: none; }
  .nav__bar { padding: 0 16px; gap: 12px; }
  .nav__cta { display: none; }
  .hero__grid { padding-top: 56px; padding-bottom: 64px; }
  .btn-row .btn { width: 100%; }
  .pill { height: auto; padding: 6px 12px; line-height: 1.4; }
  .st__body { grid-template-columns: 1fr; }
  .st-studio { flex-direction: row; justify-content: flex-start; padding: 12px 14px; text-align: left; }
  .st-studio span { writing-mode: horizontal-tb; }
  .st__pair { grid-template-columns: 1fr; }
  .st-p small { display: none; }
  .flow { padding: 0 20%; }
  .pcard { padding: 40px var(--pad); }
  .doc__body { grid-template-columns: 1fr; }
  .gates { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .doc__text { padding: 16px; font-size: 15px; min-height: 0; }
  .win__meta { display: none; }
  .stamp { position: relative; left: auto; bottom: auto; margin-top: 12px; }
  .doc__toggle { bottom: auto; top: 8px; right: 8px; }
  .pane { padding: 16px; }
  .kvrows { grid-template-columns: 1fr; }
  .kvrows > div:nth-child(n) { padding: 16px 0; border-left: 0; }
  .close__in { grid-template-columns: 1fr; }
  .close__act .btn { width: 100%; }
  .close__act { align-items: stretch; }
}
/* ==========================================================================
   v3.1 effects: hero light field, intro sequence, kernel ring, card spotlight
   ========================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .95; }
html[data-grade="light"] .hero__fx { opacity: .55; }
@media (max-width: 1180px) { .hero__fx { opacity: .45; } html[data-grade="light"] .hero__fx { opacity: .3; } }
.hero .cell { position: relative; z-index: 1; }
html[data-grade="dark"] .hero::before { opacity: .45; }
html[data-grade="dark"] .stack { background: color-mix(in oklab, var(--bg-2) 72%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-grade="dark"] .st { background: color-mix(in oklab, var(--bg) 82%, transparent); }
html[data-grade="dark"] .hero h1 span:not(.h1-em) { background: linear-gradient(180deg, #fff 30%, #aab3c5); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-grade="dark"] .hero h1 .h1-em { background-image: linear-gradient(100deg, #6e8bff 0%, #38d3f5 50%, #34e0a8 100%); filter: drop-shadow(0 0 28px rgba(61,99,255,.35)); }

/* kernel: rotating light on the border */
.st-os { overflow: visible; }
.st-os::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 62%, var(--c-os) 76%, #38d3f5 86%, #34e0a8 92%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ring 4.5s linear infinite; }
@keyframes ring { to { --ang: 360deg; } }

/* data flow: glowing pulses with a tail */
.flow i::after { height: 14px; width: 3px; left: -1px; border-radius: 3px; background: linear-gradient(to top, transparent, var(--fc, var(--c-os))); box-shadow: 0 -2px 10px 1px color-mix(in oklab, var(--fc, var(--c-os)) 70%, transparent); }
.flow i:nth-child(1)::after { --fc: var(--c-os); }
.flow i:nth-child(2)::after { --fc: var(--c-rag); background: linear-gradient(to top, transparent, var(--c-rag)); }
.flow i:nth-child(3)::after { --fc: var(--c-align); background: linear-gradient(to top, transparent, var(--c-align)); }
.flow i:nth-child(4)::after { --fc: #7aa2ff; background: linear-gradient(to top, transparent, #7aa2ff); }

/* product cards: cursor spotlight */
.pcard { background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in oklab, var(--pc) 12%, transparent), transparent 62%); }
.pcard .viz { transition: border-color .3s, box-shadow .3s; }
.pcard:hover .viz { border-color: color-mix(in oklab, var(--pc) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--pc) 8%, transparent); }
html[data-grade="dark"] .pcard:hover { background-color: transparent; }

/* one orchestrated intro: the words, then the stack assembles from the data up */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes layer-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes frame-in { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
html.intro .hero__text > *, html.intro .hero h1 span { animation: rise-in .9s var(--ease) both; }
html.intro .hero .pill { animation-delay: .05s; }
html.intro .hero__kicker { animation-delay: .12s; }
html.intro .hero h1 { animation: none !important; }
html.intro .hero h1 span:nth-child(1) { animation-delay: .2s; }
html.intro .hero h1 span:nth-child(2) { animation-delay: .32s; }
html.intro .hero h1 span:nth-child(3) { animation-delay: .44s; }
html.intro .hero__lead { animation-delay: .6s; }
html.intro .hero .btn-row { animation-delay: .7s; }
html.intro .hero__micro { animation-delay: .8s; }
html.intro .stack { animation: frame-in 1s var(--ease) .35s both; }
html.intro .stack .st-data { animation: layer-in .7s var(--ease) .9s both; }
html.intro .stack .st__pair > :nth-child(1) { animation: layer-in .7s var(--ease) 1.1s both; }
html.intro .stack .st__pair > :nth-child(2) { animation: layer-in .7s var(--ease) 1.18s both; }
html.intro .stack .st-os { animation: layer-in .7s var(--ease) 1.36s both; }
html.intro .stack .st-studio { animation: layer-in .7s var(--ease) 1.5s both; }
html.intro .stack .st-sol { animation: layer-in .7s var(--ease) 1.6s both; }
html.intro .stack .flow { animation: layer-in .6s var(--ease) 1.8s both; }
@media (prefers-reduced-motion: reduce) { .st-os::before { animation: none; } .hero__fx { display: none; } }

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

/* ==========================================================================
   DOCS + API (v3.2)
   ========================================================================== */
/* docs home */
.docs-home .band .cell { padding: 56px var(--pad); }
.dh-hero { overflow: hidden; }
.dh-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 120% at 85% 0%, color-mix(in oklab, var(--c-os) 22%, transparent), transparent 60%), radial-gradient(40% 90% at 100% 100%, color-mix(in oklab, var(--c-align) 14%, transparent), transparent 60%); }
.docs-home .dh-hero .cell { position: relative; padding-top: 96px; padding-bottom: 80px; }
.dh-hero h1 { font-size: clamp(40px, 4.6vw, 64px); }
.dsearch { display: flex; align-items: center; gap: 12px; width: min(100%, 640px); height: 54px; margin-top: 32px; padding: 0 14px 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.dsearch:focus-within { border-color: var(--c-os); box-shadow: 0 0 0 4px color-mix(in oklab, var(--c-os) 18%, transparent); }
.dsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; }
.dsearch input::-webkit-search-cancel-button { display: none; }
kbd { font: 12px var(--mono); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); }
.dh-h { font-size: 26px; margin-bottom: 24px; }
.dgrid { display: grid; gap: 16px; }
.dgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.dcard b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dcard > span:not(.dcard__ic) { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.dcard .pm, .dcard > .ic { width: 22px; height: 22px; color: var(--pc, var(--ink-2)); margin-bottom: 6px; }
.dcard__ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 8px; border-radius: 10px; color: var(--pc); background: color-mix(in oklab, var(--pc) 14%, transparent); }
.dcard__ic .ic { width: 20px; height: 20px; }
.dcard__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink); }
.dcard__go .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
a.dcard:hover { border-color: color-mix(in oklab, var(--pc, var(--ink-2)) 60%, var(--line)); transform: translateY(-2px); box-shadow: 0 16px 40px -20px color-mix(in oklab, var(--pc, #000) 50%, transparent); }
a.dcard:hover .dcard__go .ic { transform: translateX(3px); }
.dcard > em.tag-soon, .dcard > em.tag-open { position: absolute; top: 20px; right: 20px; }
.tag-soon { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line-2); }
.dcard.is-soon { background: transparent; }
.dcard.is-soon b { color: var(--ink-2); }
.dcard[hidden] { display: none; }
.dh-empty { color: var(--muted); padding: 24px 0; }

/* shared docs shell */
.doc-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr) 220px; }
.api-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.doc-side { position: sticky; top: var(--nav); align-self: start; height: calc(100vh - var(--nav)); overflow-y: auto; padding: 28px 16px 48px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.side { display: flex; flex-direction: column; }
.side__h { font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 22px 10px 6px; }
.side__h:first-child { margin-top: 0; }
.side__a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2); transition: background-color .15s, color .15s; }
a.side__a:hover { background: var(--bg-3); color: var(--ink); }
.side__a.is-active { background: var(--act-bg); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--c-os); }
.side__a > i { width: 7px; height: 7px; border-radius: 2px; background: var(--pc); flex: none; }
.side__a em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.side__a.is-soon { color: var(--muted); cursor: default; }
.side__sub { padding-left: 18px; }
.m { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 4px; letter-spacing: .02em; flex: none; }
.m--post { color: var(--c-os); background: color-mix(in oklab, var(--c-os) 14%, transparent); }
.m--get { color: var(--c-align); background: color-mix(in oklab, var(--c-align) 14%, transparent); }
.doc-side__toggle { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 14px; margin-bottom: 24px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* article */
.doc-body { padding: 48px 64px 96px; min-width: 0; }
.prose { max-width: 760px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--ink); }
.prose h1, .api-doc h1 { font-size: clamp(34px, 3.4vw, 46px); }
.lead { margin-top: 14px; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 40em; }
.prose h2 { font-size: 25px; margin-top: 56px; padding-top: 4px; scroll-margin-top: calc(var(--nav) + 24px); }
.prose h3 { font-size: 19px; margin-top: 36px; scroll-margin-top: calc(var(--nav) + 24px); }
.prose p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.prose a:not(.btn), .api-doc a:not(.btn) { color: var(--c-os); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--c-os) 40%, transparent); text-underline-offset: 3px; }
.crumbs a { color: inherit !important; text-decoration: none !important; }
:is(.prose, .api-doc, .table) :not(pre) > code { font-size: .86em; padding: 2px 6px; border-radius: 5px; background: var(--bg-3); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.callout { display: flex; gap: 12px; margin: 24px 0; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: 14.5px; }
.callout .ic { margin-top: 3px; }
.callout b { font-weight: 600; }
.callout p { margin: 2px 0 0 !important; font-size: 14.5px !important; line-height: 1.65 !important; color: var(--ink-2); }
.callout--info { border-color: color-mix(in oklab, var(--c-os) 35%, transparent); background: color-mix(in oklab, var(--c-os) 8%, transparent); color: var(--c-os); }
.callout--warn { border-color: color-mix(in oklab, var(--warn) 35%, transparent); background: var(--warn-bg); color: var(--warn); }
.callout b { color: var(--ink); }
.links { margin-top: 14px; display: grid; gap: 8px; }
.links li { display: flex; gap: 10px; }
.links li::before { content: "→"; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none !important; color: var(--ink) !important; transition: border-color .2s; }
.pager a:hover { border-color: var(--line-2); }
.pager span { font-size: 12.5px; color: var(--muted); }
.pager b { font-weight: 500; }
.pager__next { text-align: right; }

/* code blocks: always the dark terminal */
.code { margin: 20px 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: #0b0e14; overflow: hidden; box-shadow: 0 12px 32px -20px rgba(0,0,0,.6); }
html[data-grade="light"] .code { border-color: #1b2030; }
.code__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 8px 0 16px; background: #10141c; border-bottom: 1px solid rgba(255,255,255,.07); font: 12.5px var(--mono); color: #8a92a3; }
.code__tabs { display: flex; gap: 4px; margin-left: -8px; }
.code__tabs button { height: 28px; padding: 0 10px; border-radius: 6px; font: 12.5px var(--mono); color: #8a92a3; }
.code__tabs button.is-on { background: rgba(255,255,255,.08); color: #e6e9ef; }
.code__copy { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; font: 12px var(--font); color: #8a92a3; }
.code__copy:hover { background: rgba(255,255,255,.06); color: #e6e9ef; }
.code__copy .ic { width: 14px; height: 14px; }
.code__copy.is-done { color: #34e0a8; }
.code pre { margin: 0; padding: 16px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; color: #d6dae3; }
.code pre[hidden] { display: none; }
.code code { font-family: var(--mono); }
.t-s { color: #9fe3c2; } .t-k { color: #8fb2ff; } .t-n { color: #f5c176; } .t-c { color: #6b7385; font-style: italic; } .t-kw { color: #ff9e7a; } .t-f { color: #7dd3fc; }

.table { margin: 20px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 10px 14px; background: var(--bg-2); }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }

/* on this page */
.doc-toc { position: sticky; top: var(--nav); align-self: start; padding: 48px 20px; border-left: 1px solid var(--line); max-height: calc(100vh - var(--nav)); overflow-y: auto; }
.doc-toc__h { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }
.doc-toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 4px 0 4px 12px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13.5px; color: var(--muted); transition: color .15s, border-color .15s; }
.doc-toc a.lvl-3 { padding-left: 24px; font-size: 13px; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-on { color: var(--ink); border-left-color: var(--c-os); }

/* API reference */
.api-body { min-width: 0; }
.api-body > .doc-side__toggle { margin: 24px 0 0 24px; }
.api-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px 48px; border-top: 1px solid var(--line); scroll-margin-top: var(--nav); }
.api-sec:first-of-type { border-top: 0; }
.api-doc h2 { font-size: 25px; }
.api-doc > p:not(.ep) { margin-top: 12px; color: var(--ink-2); line-height: 1.75; }
.api-doc h4 { margin: 28px 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.api-code { position: sticky; top: calc(var(--nav) + 24px); align-self: start; }
.api-code .code { margin: 0; }
.api-code .code + .code { margin-top: 16px; }
.ep { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ep .m { font-size: 11px; padding: 4px 7px; }
.ep code { font: 15px var(--mono); color: var(--ink); }
.params li { padding: 14px 0; border-top: 1px solid var(--line); }
.params li:last-child { border-bottom: 1px solid var(--line); }
.params code { font: 500 14px var(--mono); color: var(--ink); }
.params span { margin-left: 10px; font-size: 12.5px; color: var(--muted); }
.params p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.api-facts { margin-top: 24px; border-top: 1px solid var(--line); }
.api-facts > div { display: grid; grid-template-columns: 120px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.api-facts dt { color: var(--muted); }

@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .doc-toc { display: none; }
  .api-sec { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .api-code { position: static; }
  .dgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .doc-layout, .api-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-side { position: fixed; z-index: 15; inset: var(--nav) auto 0 0; width: min(300px, 86vw); height: auto; background: var(--bg); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform .25s var(--ease); }
  .doc-side.is-open { transform: none; }
  .doc-side__toggle { display: inline-flex; }
  .doc-body { padding: 24px var(--pad) 80px; }
  .api-sec { padding: 40px var(--pad); }
  .dgrid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .dgrid--4, .dlist { grid-template-columns: 1fr; }
  .docs-home .dh-hero .cell { padding-top: 56px; padding-bottom: 48px; }
  .pager { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Hero: isometric stack (v3.3)
   ========================================================================== */
.iso-wrap { position: relative; width: 100%; height: calc(520px * var(--s, 1)); }
.iso { position: absolute; left: 0; top: 0; width: 640px; height: 520px; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.iso-wrap.is-compact .iso { width: 420px; }
.iso__glow { position: absolute; left: 10px; top: 40px; width: 420px; height: 460px; filter: blur(56px); opacity: var(--glow); pointer-events: none; background:
  radial-gradient(40% 32% at 50% 30%, color-mix(in oklab, var(--c-os) 80%, transparent), transparent 70%),
  radial-gradient(36% 28% at 30% 62%, color-mix(in oklab, var(--c-rag) 60%, transparent), transparent 70%),
  radial-gradient(36% 28% at 70% 66%, color-mix(in oklab, var(--c-align) 55%, transparent), transparent 70%); }
.iso__scene { position: absolute; left: 210px; top: 380px; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-45deg); }
.pl { position: absolute; left: -125px; top: -125px; width: 250px; height: 250px; transform-style: preserve-3d; transform: translateZ(calc(var(--z) * 1px)); transition: transform .6s var(--ease), opacity .3s; }
.pl::before { content: ""; position: absolute; inset: 10%; border-radius: 24px; background: rgba(0, 0, 0, .55); filter: blur(18px); transform: translateZ(-34px); pointer-events: none; }
html[data-grade="light"] .pl::before { background: rgba(25, 40, 90, .16); }
.pl-mid::before { inset: 6%; }
.iso:hover .pl { transform: translateZ(calc(var(--z) * 1.15px)); }
.iso .pl.is-hl { transform: translateZ(calc(var(--z) * 1.15px + 20px)); }
.pl__face { position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d; transition: opacity .3s, box-shadow .3s; }
.pl-data .pl__face { border: 1.5px dashed var(--line-2); background: radial-gradient(var(--line-2) 1.2px, transparent 1.6px) 0 0 / 18px 18px, color-mix(in oklab, var(--bg) 60%, transparent); }
.pl__tags { position: absolute; inset: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pl__tags b { display: grid; place-items: center; font: 600 13px var(--mono); color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); }
.pl__half { position: absolute; left: 0; width: 250px; height: 117px; border-radius: 16px; border: 1.5px solid color-mix(in oklab, var(--pc) 65%, transparent); background: linear-gradient(135deg, color-mix(in oklab, var(--pc) 24%, var(--bg)), color-mix(in oklab, var(--pc) 8%, var(--bg))); box-shadow: 0 0 30px color-mix(in oklab, var(--pc) 22%, transparent); transition: transform .5s var(--ease), opacity .3s; }
.pl-rag { top: 0; --pc: var(--c-rag); }
.pl-align { bottom: 0; --pc: var(--c-align); padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pl-rag svg { width: 100%; height: 100%; }
.pl-rag path { fill: none; stroke: color-mix(in oklab, var(--c-rag) 70%, var(--ink)); stroke-width: 2; opacity: .7; }
.pl-rag circle { fill: var(--c-rag); }
.pl-align i { display: block; height: 9px; width: var(--w); border-radius: 5px; background: color-mix(in oklab, var(--c-align) 70%, transparent); }
.pl__half.is-hl { transform: translateZ(18px); }
.pl-os .pl__face { border: 1.5px solid color-mix(in oklab, var(--c-os) 85%, #fff); background: linear-gradient(135deg, color-mix(in oklab, var(--c-os) 62%, #0a1030), color-mix(in oklab, var(--c-os) 20%, #070b1c)); box-shadow: 0 0 70px color-mix(in oklab, var(--c-os) 55%, transparent), inset 0 0 50px rgba(140, 170, 255, .25); display: grid; place-items: center; }
.pl-os .pl__face::before { content: ""; position: absolute; inset: -2px; border-radius: 20px; padding: 2px; background: conic-gradient(from var(--ang), transparent 0 60%, #7aa2ff 75%, #38d3f5 85%, #34e0a8 92%, transparent 98%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: ring 4.5s linear infinite; }
.pl__mark { width: 104px; height: 104px; transform: rotate(45deg); filter: drop-shadow(0 0 16px rgba(120, 160, 255, .8)); }
.pl-apps .pl__face { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; padding: 24px; border: 1.5px solid var(--line-2); background: color-mix(in oklab, var(--bg-2) 55%, transparent); }
.pl-apps i { display: grid; place-items: center; border-radius: 13px; border: 1px solid color-mix(in oklab, var(--pc) 60%, transparent); background: linear-gradient(135deg, color-mix(in oklab, var(--pc) 34%, var(--bg)), color-mix(in oklab, var(--pc) 12%, var(--bg))); box-shadow: 0 0 22px color-mix(in oklab, var(--pc) 35%, transparent); transform: translateZ(10px); }
.pl-apps i .ic { width: 28px; height: 28px; color: color-mix(in oklab, var(--pc) 75%, #fff); transform: rotate(45deg); }
.iso__beam { position: absolute; left: 209px; top: 140px; width: 2px; height: 250px; background: linear-gradient(to top, transparent, color-mix(in oklab, var(--c-os) 70%, transparent) 30%, color-mix(in oklab, #38d3f5 70%, transparent) 70%, transparent); pointer-events: none; }
html[data-grade="dark"] .iso__beam { mix-blend-mode: screen; }
.iso__beam i { position: absolute; left: -2px; bottom: 0; width: 6px; height: 26px; border-radius: 3px; background: linear-gradient(to top, transparent, #9ec0ff); box-shadow: 0 0 12px 2px rgba(120, 170, 255, .7); animation: beam 2.6s linear infinite; opacity: 0; }
.iso__beam i:nth-child(2) { animation-delay: .85s; }
.iso__beam i:nth-child(3) { animation-delay: 1.7s; }
@keyframes beam { 0% { bottom: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }
.iso__labels li { position: absolute; left: 418px; top: var(--y); transform: translateY(-50%); width: 222px; padding-left: 12px; transition: opacity .3s; cursor: default; }
.iso__labels li::before { content: ""; position: absolute; left: -26px; top: 50%; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.iso__labels b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.iso__labels b i, .iso__studio b em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--pc, var(--muted)); margin-left: 4px; }
.iso__labels span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.iso__pair span { display: flex; align-items: center; gap: 8px; }
.iso__pair span + span { margin-top: 4px; }
.iso__pair .tag-open { margin-left: 0; }
.iso__studio { position: absolute; left: 0; top: 64px; bottom: 6px; width: 200px; pointer-events: auto; transition: opacity .3s; }
.iso__studio i { position: absolute; left: 4px; top: 0; bottom: 46px; width: 10px; border: 1.5px dashed color-mix(in oklab, var(--c-studio) 70%, transparent); border-right: 0; border-radius: 8px 0 0 8px; }
.iso__studio b { position: absolute; left: 0; bottom: 18px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.iso__studio span { position: absolute; left: 0; bottom: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }
.iso.has-hover [data-p]:not(.is-hl) { opacity: .32; }
.iso.has-hover .iso__labels [data-p].is-hl, .iso.has-hover .iso__studio.is-hl { opacity: 1; }
.iso.has-hover .iso__pair:has(.is-hl) { opacity: 1; }
.iso-wrap.is-compact .iso__labels, .iso-wrap.is-compact .iso__studio { display: none; }
@keyframes pl-in { from { opacity: 0; transform: translateZ(calc(var(--z) * 1px + 170px)); } to { opacity: 1; transform: translateZ(calc(var(--z) * 1px)); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(-50%) translateX(-8px); } }
html.intro .iso__scene .pl { animation: pl-in .9s var(--ease) both; }
html.intro .pl-data { animation-delay: .45s !important; }
html.intro .pl-mid { animation-delay: .7s !important; }
html.intro .pl-os { animation-delay: .95s !important; }
html.intro .pl-apps { animation-delay: 1.2s !important; }
html.intro .iso__labels li { animation: fade-in .6s var(--ease) both; }
html.intro .iso__labels li:nth-child(4) { animation-delay: .9s; }
html.intro .iso__labels li:nth-child(3) { animation-delay: 1.1s; }
html.intro .iso__labels li:nth-child(2) { animation-delay: 1.35s; }
html.intro .iso__labels li:nth-child(1) { animation-delay: 1.6s; }
html.intro .iso__studio, html.intro .iso__beam { animation: rise-in .8s var(--ease) 1.7s both; }
@media (prefers-reduced-motion: reduce) { .iso__beam i, .pl-os .pl__face::before { animation: none; } }
.iso-wrap.is-compact { height: calc(470px * var(--s, 1)); }

/* ==========================================================================
   Recognition and news (v3.4)
   ========================================================================== */
.awards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.award { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 32px 28px 28px; min-height: 220px; transition: background-color .25s; }
.award + .award { border-left: 1px solid var(--line); }
.award::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, #f5c176, #e8a54b); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.award:hover { background: color-mix(in oklab, #f5c176 5%, var(--bg)); }
.award:hover::before { transform: scaleX(1); }
.award__ic { width: 28px; height: 28px; fill: none; stroke: #e8a54b; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 12px; }
.award b { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.award span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.award time { margin-top: auto; padding-top: 12px; font: 12.5px var(--mono); color: var(--ink-2); }
.research { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; border-bottom: 1px solid var(--line); }
.research h3 { font-size: 28px; letter-spacing: -0.025em; }
.research__text > p { margin-top: 14px; color: var(--ink-2); line-height: 1.75; max-width: 34em; }
.research__paper { font: italic 14px/1.6 var(--font) !important; color: var(--muted) !important; padding-left: 12px; border-left: 2px solid var(--line-2); }
.metrics { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.metrics > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.metrics > div:first-child { padding-top: 0; }
.metrics dt { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.metrics dd { display: flex; align-items: center; gap: 16px; }
.mb { position: relative; flex: 1; height: 16px; }
.mb::before, .mb::after { content: ""; position: absolute; left: 0; right: 0; border-radius: 3px; background: var(--bg-3); }
.mb::before { top: 0; height: 5px; } .mb::after { top: 8px; height: 8px; }
.mb i, .mb b { position: absolute; left: 0; width: var(--v); border-radius: 3px; z-index: 1 !important; }
.mb i { top: 0; height: 5px; } .mb b { top: 8px; height: 8px; }
.mb i { background: color-mix(in oklab, var(--muted) 45%, transparent); z-index: 1; }
.mb b { background: linear-gradient(90deg, var(--c-os), #34e0a8); }
.mb--down b { background: linear-gradient(90deg, var(--c-os), #34e0a8); z-index: 2; }
.mb--down i { z-index: 1; }
.metrics em { font-style: normal; font: 13px var(--mono); color: var(--muted); white-space: nowrap; min-width: 112px; text-align: right; }
.metrics strong { color: var(--ink); font-weight: 600; }
.metrics__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.newslist { padding-top: 48px; }
.newslist ol { border-top: 1px solid var(--line); }
.newslist a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 20px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: color .15s, padding .25s var(--ease); }
.newslist time { font: 13px var(--mono); color: var(--muted); }
.newslist b { font-weight: 500; font-size: 16px; color: var(--ink-2); transition: color .15s; }
.newslist .ic { width: 16px; height: 16px; color: var(--muted); transition: transform .2s var(--ease), color .15s; }
.newslist a:hover b { color: var(--ink); }
.newslist a:hover .ic { transform: translateX(4px); color: var(--ink); }
@media (max-width: 1180px) {
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .award:nth-child(3) { border-left: 0; }
  .award:nth-child(n+3) { border-top: 1px solid var(--line); }
  .research { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 639px) {
  .awards { grid-template-columns: 1fr; }
  .award + .award { border-left: 0; border-top: 1px solid var(--line); }
  .award { min-height: 0; padding: 24px var(--pad); }
  .newslist a { grid-template-columns: 1fr 16px; gap: 4px 12px; }
  .newslist time { grid-column: 1 / -1; }
  .metrics { padding: 20px; }
}
.iso__pair span { flex-wrap: wrap; row-gap: 2px; } .iso__pair b { white-space: nowrap; }

/* ==========================================================================
   About / Contact (v3.5)
   ========================================================================== */
.pg-hero .cell { position: relative; padding-top: 96px !important; padding-bottom: 72px !important; }
.page-about .band .cell, .page-contact .band .cell { padding: 72px var(--pad); }
.statement { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.statement__big { font-size: clamp(30px, 3.4vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -0.03em; background: linear-gradient(100deg, var(--ink) 30%, color-mix(in oklab, var(--c-os) 70%, var(--ink))); -webkit-background-clip: text; background-clip: text; color: transparent; }
:lang(zh) .statement__big, :lang(zh-Hant) .statement__big { letter-spacing: -0.01em; line-height: 1.3; }
.statement__body p { color: var(--ink-2); line-height: 1.85; }
.statement__body p + p { margin-top: 16px; }
.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.beliefs > div { padding: 28px 28px 8px 0; }
.beliefs > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.beliefs b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.beliefs p { margin-top: 10px; color: var(--muted); line-height: 1.75; }
.timeline { position: relative; margin-bottom: 28px; }
.timeline::before { content: ""; position: absolute; left: 112px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 108px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c-os); }
.timeline li:first-child::before { background: var(--c-os); box-shadow: 0 0 12px var(--c-os); }
.timeline time { font: 13px var(--mono); color: var(--muted); padding-top: 3px; }
.timeline b { display: block; font-weight: 500; font-size: 16px; }
.timeline span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.timeline li > div { padding-left: 8px; }
.kvrows--one { grid-template-columns: 1fr; }
.kvrows--one > div:nth-child(n) { display: grid; grid-template-columns: 140px 1fr; align-items: baseline; padding: 16px 0; border-left: 0; }
.kvrows--one dd { margin-top: 0; }
.close__in--2 { grid-template-columns: minmax(0, 1fr) auto; }
.contact-info { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 48px; align-items: start; }
.ci { display: flex; flex-direction: column; gap: 6px; }
.ci > .ic { width: 22px; height: 22px; color: var(--c-os); margin-bottom: 8px; }
.ci > span { font-size: 13px; color: var(--muted); }
.ci > a.link, .ci > p { font-size: 17px; width: fit-content; }
.ci > p + a { font-size: 14px; color: var(--muted); margin-top: 4px; }
.ci--qr { align-items: center; text-align: center; }
.ci--qr img { width: 148px; height: 148px; padding: 6px; border-radius: 10px; background: #fff; }
@media (max-width: 1023px) {
  .statement { grid-template-columns: 1fr; gap: 28px; }
  .beliefs { grid-template-columns: 1fr; }
  .beliefs > div, .beliefs > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact-info { grid-template-columns: 1fr; gap: 36px; }
  .ci--qr { align-items: flex-start; text-align: left; }
}
@media (max-width: 639px) {
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 24px; }
  .timeline li::before { left: 0; }
  .timeline li > div { padding-left: 0; }
  .kvrows--one > div:nth-child(n) { grid-template-columns: 1fr; gap: 2px; }
  .close__in--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v3.6 — centred hero, statement band, visual product cards
   ========================================================================== */
.hero--center::before { display: none; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; mask-image: radial-gradient(60% 55% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 20%, transparent 75%); opacity: .55; }
.hero__beam { position: absolute; left: 50%; top: -10%; width: 1100px; height: 80%; transform: translateX(-50%); background: radial-gradient(45% 60% at 50% 0%, color-mix(in oklab, var(--c-os) 38%, transparent), transparent 72%); filter: blur(10px); animation: breathe 9s ease-in-out infinite; }
.hero__spot { position: absolute; left: 50%; bottom: -8%; width: 900px; height: 520px; transform: translateX(-50%); filter: blur(70px); opacity: calc(var(--glow) * 1.1);
  background: radial-gradient(35% 45% at 45% 55%, color-mix(in oklab, var(--c-os) 70%, transparent), transparent 70%), radial-gradient(30% 40% at 30% 70%, color-mix(in oklab, var(--c-rag) 55%, transparent), transparent 70%), radial-gradient(30% 40% at 65% 75%, color-mix(in oklab, var(--c-align) 50%, transparent), transparent 70%); }
html[data-grade="light"] .hero__beam { opacity: .6; }
@keyframes breathe { 50% { opacity: .65; } }
.hero--center .hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; padding-top: 88px; padding-bottom: 24px; }
.hero--center .hero__text { display: flex; flex-direction: column; align-items: center; max-width: 980px; position: relative; z-index: 2; }
.hero--center .pill { margin-bottom: 24px; }
.hero--center h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: 1.04; }
:lang(zh) .hero--center h1, :lang(zh-Hant) .hero--center h1 { line-height: 1.14; }
.hero--center h1 span:not(.h1-em) { display: inline; }
.hero--center h1 .h1-em { display: block; }
.hero--center .hero__lead { margin: 28px auto 36px; max-width: 38em; font-size: 19px; }
.hero--center .btn-row { justify-content: center; }
.hero--center .hero__micro { margin-top: 22px; }
.hero--center .iso-wrap { width: min(100%, 1040px); margin-top: 8px; z-index: 1; }
.hero--center .iso { left: 50%; transform: translateX(-50%) scale(var(--s, 1)); transform-origin: top center; }
.hero--center .iso-wrap.is-compact .iso { left: 50%; }

/* statement */
.stmt { overflow: hidden; }
.stmt__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 50% 50%, color-mix(in oklab, var(--c-os) 20%, transparent), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px; mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(60% 80% at 50% 50%, #000, transparent 80%); opacity: .9; }
.stmt__in { position: relative; padding: 168px var(--pad) !important; text-align: center; }
.stmt__big { font-size: clamp(40px, 6vw, 92px); font-weight: 500; line-height: 1.1; letter-spacing: -0.045em; color: var(--ink); }
:lang(zh) .stmt__big, :lang(zh-Hant) .stmt__big { letter-spacing: -0.02em; line-height: 1.2; }
.stmt__big span { display: block; }
.stmt__em { background: linear-gradient(100deg, #6e8bff 0%, #38d3f5 50%, #34e0a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stmt__sub { margin: 36px auto 0; max-width: 40em; font-size: 19px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* product cards: visual first */
.pcard { padding: 56px var(--pad) 48px; overflow: hidden; background-image: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), color-mix(in oklab, var(--pc) 12%, transparent), transparent 62%), radial-gradient(70% 55% at 100% 0%, color-mix(in oklab, var(--pc) 16%, transparent), transparent 70%); }
.pcard > p { display: none; }
.pcard header { margin-bottom: 18px; }
.pcard header .pm { width: 28px; height: 28px; filter: drop-shadow(0 0 10px color-mix(in oklab, var(--pc) 60%, transparent)); }
.pcard header b { font-size: 19px; }
.pcard h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.22; }
.pcard .feats { margin: 18px 0 28px; font-size: 14.5px; }
.pcard .viz { min-height: 176px; padding: 24px; border-color: color-mix(in oklab, var(--pc) 32%, var(--line)); background: linear-gradient(180deg, color-mix(in oklab, var(--pc) 8%, var(--bg-2)), var(--bg-2)); box-shadow: 0 30px 60px -40px color-mix(in oklab, var(--pc) 70%, transparent); display: flex; flex-direction: column; justify-content: center; }
.pcard .viz-os { flex-direction: row; align-items: center; font-size: 14px; gap: 10px; }
.pcard .viz-os span { padding: 9px 14px; }
.pcard .viz-align { display: grid; font-size: 14px; gap: 12px 14px; }
.pcard .viz-align code { font-size: 14px; }
.pcard .viz-rag svg { max-height: 150px; }
.pcard .viz-rag .t text { font-size: 12px; }
.pcard .viz-studio { font-size: 14.5px; line-height: 1.9; display: block; }
.pcard .plink { margin-top: 24px; }

/* short news list on the home page */
.newslist--short { padding-top: 40px; }
.newslist--short ol { margin-bottom: 24px; }

@media (max-width: 1023px) {
  .stmt__in { padding: 112px var(--pad) !important; }
}
@media (max-width: 639px) {
  .hero--center .hero__grid { padding-top: 48px; }
  .hero--center h1 span:not(.h1-em) { display: block; }
  .stmt__in { padding: 88px var(--pad) !important; }
  .pcard .viz-os { flex-wrap: wrap; }
}
.hero--center .iso { text-align: left; }
.hero--center .hero__grid { padding-top: 64px; gap: 0; }
.hero--center .pill { margin-bottom: 18px; }
.hero--center .hero__kicker { margin-bottom: 14px; }
.hero--center h1 { font-size: clamp(44px, 5.8vw, 84px); }
.hero--center .hero__lead { margin: 22px auto 28px; }
.hero--center .hero__micro { margin-top: 16px; }
.hero--center .iso-wrap { margin-top: -24px; }

/* ===== v3.7 polish ===== */
.newslist .plink { white-space: nowrap; }
.stmt__in { padding: 120px var(--pad) !important; }
@media (max-width: 900px) { .stmt__in { padding: 88px var(--pad) !important; } }
@media (max-width: 560px) { .stmt__in { padding: 72px var(--pad) !important; } }
.stmt__sub { margin-top: 28px; }
/* tab autoplay progress */
.app__side button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--c-os); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.app.is-auto.is-tick .app__side button[aria-selected="true"]::after { opacity: .85; animation: tabprog var(--auto-ms, 6000ms) linear forwards; }
@keyframes tabprog { to { transform: scaleX(1); } }
@media (max-width: 900px) { .app__side button::after { display: none; } }
/* registration line */
.foot__reg { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; }
.foot__reg a { color: inherit; }
.foot__reg a:hover { color: var(--ink); }
.nf .cell { text-align: left; }
.nf__code { font-family: var(--mono); font-size: 14px; color: var(--c-os); margin-bottom: 16px; }
.nf__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
/* case study */
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.case__card { position: relative; padding: 32px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: radial-gradient(80% 120% at 100% 0%, color-mix(in oklab, var(--pc) 14%, transparent), transparent 60%), var(--bg-2, var(--bg)); overflow: hidden; }
.case__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--pc); }
.case__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--pc); font-weight: 500; }
.case__tag .ic { width: 16px; height: 16px; }
.case__card h3 { margin: 14px 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.case__card p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 36em; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 28px; } .case__card { padding: 24px; } }

/* ===== v3.8 applications: who/status, governance trail, staged demo, detail pages ===== */
.pane__title { display: grid; gap: 6px; min-width: 0; }
.pane__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--ink-2); }
.pane__who > span { color: var(--muted); }
.tag-live { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--c-align); border: 1px solid color-mix(in oklab, var(--c-align) 35%, transparent); }
.tag-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-align); box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-align) 60%, transparent); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); list-style: none; }
.trail li { display: inline-flex; align-items: center; gap: 6px; }
.trail li + li::before { content: ""; width: 22px; height: 1px; margin: 0 10px; background: var(--line-2); }
.trail .ic { width: 14px; height: 14px; color: var(--c-align); }
.trail__doc { color: var(--ink); font-weight: 500; }
.trail__dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--c-studio); animation: livepulse 1.8s infinite; box-shadow: 0 0 0 0 color-mix(in oklab, var(--c-studio) 60%, transparent); }
.pane__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.pane__more .ic { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.pane__more:hover .ic { transform: translateX(3px); }

/* staged playback: JS tags steps with --s and toggles .is-play */
.pane.is-play [data-s] { animation: stepin .5s var(--ease) both; animation-delay: calc(var(--s) * 260ms); }
@keyframes stepin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pane.is-play .ring__v { animation: ringin 1.1s var(--ease) both .2s; }
@keyframes ringin { from { stroke-dashoffset: 327; } }
.pane.is-play .trend i { animation: barin .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + .2s); transform-origin: bottom; }
@keyframes barin { from { transform: scaleY(0); } }
.pane.is-play .trail li { animation: stepin .4s var(--ease) both; animation-delay: calc(var(--s) * 260ms); }
@media (prefers-reduced-motion: reduce) { .pane.is-play [data-s], .pane.is-play .trail li, .pane.is-play .ring__v, .pane.is-play .trend i { animation: none; } }

/* detail page */
.crumb { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb .ic { width: 14px; height: 14px; transform: rotate(-90deg); }
.apphero h1 { max-width: 18em; }
.apphero__who { margin: 18px 0 28px; font-size: 14px; }
.app--solo .app__body { display: block; }
.app--solo .pane { padding: 28px 32px; }
.app--solo .pane__more { display: none; }
.win__bar .win__meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.probs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.probs > div { padding: 28px var(--pad); border-right: 1px solid var(--line); }
.probs > div:last-child { border-right: 0; }
.probs b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.probs p, .howsteps p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.howsteps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid var(--line); }
.howsteps li { position: relative; padding: 28px var(--pad); border-right: 1px solid var(--line); }
.howsteps li:last-child { border-right: 0; }
.howsteps span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--c-os); margin-bottom: 14px; }
.howsteps b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.howsteps li.is-doc span { color: var(--c-studio); }
.howsteps li.is-doc::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--c-studio); }
.others { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.other { display: grid; gap: 6px; padding: 24px var(--pad); border-right: 1px solid var(--line); transition: background-color .2s; }
.other:last-child { border-right: 0; }
.other:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.other .ic { width: 20px; height: 20px; color: var(--c-os); margin-bottom: 6px; }
.other b { font-size: 15.5px; color: var(--ink); }
.other span { font-size: 13px; color: var(--muted); line-height: 1.55; }
@media (max-width: 1100px) { .others { grid-template-columns: repeat(3, 1fr); } .other { border-bottom: 1px solid var(--line); } .howsteps { grid-template-columns: repeat(2, 1fr); } .howsteps li { border-bottom: 1px solid var(--line); } }
@media (max-width: 760px) { .probs, .howsteps, .others { grid-template-columns: 1fr; } .probs > div, .howsteps li, .other { border-right: 0; border-bottom: 1px solid var(--line); } .app--solo .pane { padding: 20px; } .trail li + li::before { width: 10px; margin: 0 6px; } }

/* ===== v3.9 application cards carousel (Apple-style) ===== */
.acards-wrap { position: relative; padding-bottom: 28px; }
.acards { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 8px var(--pad) 24px; scrollbar-width: none; outline: none; }
.acards::-webkit-scrollbar { display: none; }
.acards:focus-visible { box-shadow: inset 0 0 0 2px var(--c-os); }
.acard { position: relative; flex: 0 0 clamp(300px, 30vw, 400px); height: 560px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 70% at 0% 0%, color-mix(in oklab, var(--pc) 18%, transparent), transparent 60%), var(--bg-2, var(--bg)); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease); }
.acard:hover { transform: scale(1.012); border-color: color-mix(in oklab, var(--pc) 40%, var(--line)); box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--pc) 55%, transparent); }
.acard__txt { padding: 32px 30px 0; }
.acard__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.acard__eyebrow .ic { width: 18px; height: 18px; color: var(--pc); }
.acard__eyebrow b { color: var(--ink); font-weight: 600; }
.acard__eyebrow .tag-open { margin-left: 2px; }
.acard h3 { margin-top: 14px; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.acard__who { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.acard__viz { position: relative; flex: 1; margin: 24px 0 0 30px; overflow: hidden; border-top-left-radius: 14px; border: 1px solid var(--line-2); border-right: 0; border-bottom: 0; background: var(--bg); -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.acard__scale { width: 760px; transform: scale(.56); transform-origin: top left; pointer-events: none; }
.acard__scale .pane { padding: 26px 28px; }
.acard__scale .pane__head, .acard__scale .pane__more { display: none; }
.acard__link { position: absolute; inset: 0; border-radius: inherit; }
.acard__link:focus-visible { outline: 2px solid var(--c-os); outline-offset: -4px; }
.acard__plus { position: absolute; right: 20px; bottom: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transition: transform .3s var(--ease); }
.acard__plus .ic { width: 18px; height: 18px; }
.acard:hover .acard__plus { transform: rotate(-45deg) scale(1.06); }
.acards__nav { display: flex; justify-content: flex-end; gap: 12px; padding: 0 var(--pad); }
.acards__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); transition: background-color .2s, opacity .2s; }
.acards__btn:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.acards__btn:disabled { opacity: .35; cursor: default; }
.acards__btn .ic { width: 18px; height: 18px; transform: rotate(90deg); }
.acards__btn[data-dir="1"] .ic { transform: rotate(-90deg); }
@media (max-width: 760px) {
  .acard { flex-basis: 84vw; height: 500px; border-radius: 22px; }
  .acard__txt { padding: 26px 22px 0; }
  .acard h3 { font-size: 22px; }
  .acard__viz { margin-left: 22px; }
  .acard__scale { transform: scale(.48); }
  .acards { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .acard, .acard__plus { transition: none; } .acards { scroll-behavior: auto; } }
.acards-wrap { padding-left: 0; padding-right: 0; }
.acards { padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.acard { height: 520px; }
.acard__scale { transform: scale(.64); width: 700px; }
.acard__viz { -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
@media (max-width: 760px) { .acard { height: 480px; } .acard__scale { transform: scale(.52); } }
.acard__viz { margin-right: 0; }
.acard__scale { width: calc(100% / .64); }
@media (max-width: 760px) { .acard__scale { width: calc(100% / .52); } }
/* emr: voice + template input */
.emr__in { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.emr__in .rec { margin-left: 0; color: var(--flag); }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.wave i { width: 2px; height: 100%; border-radius: 1px; background: var(--flag); opacity: .8; animation: wave 1s ease-in-out infinite; transform-origin: center; }
.wave i:nth-child(2) { animation-delay: .1s } .wave i:nth-child(3) { animation-delay: .2s } .wave i:nth-child(4) { animation-delay: .3s } .wave i:nth-child(5) { animation-delay: .15s } .wave i:nth-child(6) { animation-delay: .25s } .wave i:nth-child(7) { animation-delay: .05s }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.chip--tpl { margin-left: auto; color: var(--c-os); background: color-mix(in oklab, var(--c-os) 12%, transparent); }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; transform: scaleY(.6); } }
/* cards: bigger, sparser type */
.acard h3 { font-size: 30px; line-height: 1.2; margin-top: 16px; }
@media (max-width: 760px) { .acard h3 { font-size: 24px; } }
/* keep CJK phrases whole; wrap at punctuation */
.acard h3 { word-break: keep-all; overflow-wrap: anywhere; }

/* ===== v4.0 home order: proof block merged, hero awards ===== */
.hero__awards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.hero__awards a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.hero__awards a:hover { color: var(--ink); }
.hero__awards .ic { width: 15px; height: 15px; color: #f5b544; }
.trust--merged { align-items: stretch; }
.trust__lead { display: flex; flex-direction: column; gap: 0; }
.trust__lead .case__card { margin-top: 32px; }
.trust--merged .kvrows { align-self: start; margin-top: 6px; }
/* UnicareStudio: chat viz */
.viz-chat { display: grid; gap: 10px; font-size: 13px; line-height: 1.6; }
.chat__q { justify-self: end; max-width: 86%; padding: 8px 12px; border-radius: 12px 12px 4px 12px; background: color-mix(in oklab, var(--pc) 16%, var(--bg)); color: var(--ink); }
.chat__a { display: flex; gap: 8px; align-items: flex-start; max-width: 94%; color: var(--ink-2); }
.chat__a > .pm { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--pc); }
.chat__a > span { padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--bg); border: 1px solid var(--line); }
.chat__a em { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-style: normal; font-size: 11.5px; color: var(--pc); }
.chat__a em .ic { width: 13px; height: 13px; }

/* ===== v4.1 card key visuals (readable, one idea per card) ===== */
.acard__viz.akey { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; margin: 24px 24px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: color-mix(in oklab, var(--bg) 82%, transparent); -webkit-mask-image: none; mask-image: none; font-size: 15px; line-height: 1.55; color: var(--ink-2); overflow: hidden; }
.akey .sev { font-size: 12.5px; padding: 2px 9px; font-style: normal; }
.k-rows { display: grid; gap: 8px; }
.k-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2, var(--bg)); border: 1px solid var(--line); }
.k-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-row b { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--ink); }
.k-row.is-flag { border-color: color-mix(in oklab, var(--flag) 45%, var(--line)); }
.k-row.is-warn { border-color: color-mix(in oklab, var(--warn) 40%, var(--line)); }
.k-sum { color: var(--flag); font-weight: 600; }
.k-ctx { color: var(--muted); font-size: 14px; } .k-ctx b { color: var(--ink); font-weight: 600; margin: 0 4px; } .k-ctx span { color: var(--ink-2); }
.k-alert { padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--flag) 40%, var(--line)); background: var(--flag-bg); }
.k-alert b { display: block; font-size: 13px; color: var(--flag); margin-bottom: 4px; }
.k-alert p { color: var(--ink); font-size: 15.5px; }
.k-src { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); } .k-src .ic { width: 14px; height: 14px; }
.k-voice { display: flex; align-items: center; gap: 14px; } .k-voice .rec { margin: 0; font-size: 13.5px; }
.k-voice .wave { height: 26px; gap: 4px; } .k-voice .wave i { width: 3px; }
.k-tpl { align-self: flex-start; font-size: 13px; padding: 3px 10px; border-radius: 8px; color: var(--c-os); background: color-mix(in oklab, var(--c-os) 12%, transparent); }
.k-doc { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2, var(--bg)); }
.k-doc h5 { font-size: 14px; color: var(--c-os); font-weight: 600; margin-bottom: 6px; }
.k-doc i, .k-para i { display: block; height: 8px; margin: 9px 0; width: var(--w); border-radius: 4px; background: var(--line-2); }
.k-score { display: flex; justify-content: center; padding: 4px 0; } .k-score .ring { width: 150px; height: 150px; } .k-score .ring b { font-size: 42px; }
.k-issue { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2, var(--bg)); color: var(--ink); font-size: 14.5px; }
.k-trend { height: 110px; margin: 6px 0; gap: 10px; }
.k-para { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2, var(--bg)); }
.k-para i.is-hit { background: color-mix(in oklab, var(--flag) 55%, transparent); box-shadow: 0 0 0 4px var(--flag-bg); }
.k-doc-chip { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 13px; color: var(--ink); }
.pane.akey.is-play [data-k] { animation: stepin .5s var(--ease) both; animation-delay: calc(var(--s) * 220ms); }
.pane.akey.is-play .k-score .ring__v { animation: ringin 1.1s var(--ease) both .2s; }
@media (prefers-reduced-motion: reduce) { .pane.akey.is-play [data-k] { animation: none; } }
@media (max-width: 760px) { .acard__viz.akey { margin: 20px 18px 18px; padding: 18px; font-size: 14px; } .k-score .ring { width: 124px; height: 124px; } }
/* nav: counter + progress */
.acards__nav { align-items: center; }
.acards__count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-right: 4px; } .acards__count b { color: var(--ink); font-weight: 500; }
.acards__bar { width: 120px; height: 2px; border-radius: 2px; background: var(--line-2); margin-right: 12px; overflow: hidden; }
.acards__bar i { display: block; height: 100%; width: calc(100% / 6); background: var(--ink); border-radius: 2px; transform: translateX(calc(var(--idx, 0) * 100%)); transition: transform .35s var(--ease); }
.acards.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .acards { cursor: grab; } }
.acards::after { content: ""; flex: 0 0 1px; }
.acard__viz.akey { margin-bottom: 84px; }
@media (max-width: 760px) { .acard__viz.akey { margin-bottom: 76px; } }
:lang(en) .k-row { grid-template-columns: 1fr auto; row-gap: 4px; }
:lang(en) .k-row span { grid-column: 1 / -1; white-space: normal; }
@media (max-width: 760px) { .k-row { grid-template-columns: 1fr auto; row-gap: 4px; } .k-row span { grid-column: 1 / -1; white-space: normal; } }
.acard { height: auto; min-height: 520px; }
@media (max-width: 760px) { .acard { min-height: 480px; } }

/* ===== v4.2 apps: Apple-style sticky stacking cards ===== */
.astack-wrap { padding-bottom: 8vh; }
.astack { display: block; padding: 0 var(--pad); }
.astack .acard { position: sticky; top: calc(88px + var(--i) * 14px); flex-direction: row; width: 100%; height: clamp(440px, 66vh, 580px); min-height: 0; margin-bottom: 16vh; transform-origin: 50% 0; transform: scale(calc(1 - var(--p, 0) * .06)); transition: none; will-change: transform; box-shadow: 0 -18px 50px -30px rgba(0,0,0,.6); }
.astack .acard:last-child { margin-bottom: 0; }
.astack .acard:hover { transform: scale(calc(1 - var(--p, 0) * .06)); }
.astack .acard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--bg); opacity: calc(var(--p, 0) * .55); pointer-events: none; }
.astack .acard__txt { flex: 0 0 42%; display: flex; flex-direction: column; padding: 52px 48px; }
.astack .acard h3 { font-size: clamp(32px, 3.4vw, 48px); margin-top: 22px; line-height: 1.15; }
.astack .acard__sub { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--muted); max-width: 26em; }
.astack .acard__eyebrow { font-size: 15px; } .astack .acard__eyebrow .ic { width: 22px; height: 22px; }
.astack .acard__viz.akey { flex: 1; margin: 36px 36px 36px 0; justify-content: center; font-size: 16px; }
.astack .akey .k-row, .astack .akey .k-issue { font-size: 15.5px; }
.astack .k-score .ring { width: 170px; height: 170px; } .astack .k-score .ring b { font-size: 48px; }
.astack .k-trend { height: 140px; }
.astack .acard__plus { left: 48px; right: auto; bottom: 48px; width: 48px; height: 48px; }
@media (max-width: 900px) {
  .astack .acard { flex-direction: column; height: auto; top: calc(72px + var(--i) * 10px); margin-bottom: 10vh; }
  .astack .acard__txt { flex: none; padding: 28px 24px 0; }
  .astack .acard h3 { font-size: 28px; margin-top: 14px; }
  .astack .acard__sub { font-size: 15px; margin-top: 10px; }
  .astack .acard__viz.akey { margin: 22px 20px 84px; }
  .astack .acard__plus { left: auto; right: 20px; bottom: 20px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .astack .acard { transform: none; } .astack .acard::after { opacity: 0; } }
.astack .acard h3 { font-size: clamp(30px, 2.9vw, 42px); word-break: keep-all; }
.astack .acard__viz.akey { justify-content: center; gap: 14px; padding: 32px; }
.astack .k-doc-chip { margin-top: 10px; }
@media (max-width: 900px) { .astack .acard h3 { font-size: 26px; } .astack .acard__viz.akey { padding: 18px; } }
/* tighter stack: shorter scroll between cards */
.astack .acard { margin-bottom: 7vh; height: clamp(420px, 60vh, 540px); }
.astack .acard:last-child { margin-bottom: 0; }
.astack-wrap { padding-bottom: 4vh; }
@media (max-width: 900px) { .astack .acard { height: auto; margin-bottom: 5vh; } .astack .acard:last-child { margin-bottom: 0; } }
.astack .acard { margin-bottom: 4vh; height: clamp(400px, 52vh, 470px); }
.astack .acard__txt { padding: 44px 44px; }
.astack .acard__viz.akey { margin: 28px 28px 28px 0; padding: 24px 28px; }
.astack .acard__plus { left: 44px; bottom: 40px; }
.astack .k-score .ring { width: 140px; height: 140px; } .astack .k-score .ring b { font-size: 40px; }
.astack .k-trend { height: 110px; }
.astack .acard:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .astack .acard { height: auto; margin-bottom: 3vh; } .astack .acard__txt { padding: 24px 22px 0; } .astack .acard__viz.akey { margin: 18px 18px 76px; padding: 16px; } .astack .acard__plus { left: auto; right: 18px; bottom: 18px; } .astack .acard:last-child { margin-bottom: 0; } }

/* ===== v4.3 demo request page ===== */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; padding-top: 72px !important; padding-bottom: 96px !important; }
.demo__intro h1 { font-size: clamp(36px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.03em; }
.demo__intro .sub { margin-top: 18px; }
.demo__list { list-style: none; margin-top: 32px; display: grid; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.demo__list li { display: flex; gap: 10px; align-items: flex-start; }
.demo__list .ic { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--c-align); }
.demo__alt { display: flex; gap: 16px; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.demo__alt img { width: 120px; height: 120px; flex: none; border-radius: 10px; background: #fff; padding: 6px; }
.demo__alt p { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.demo__form { display: grid; gap: 18px; padding: 32px; border: 1px solid var(--line-2); border-radius: 22px; background: radial-gradient(90% 60% at 100% 0%, color-mix(in oklab, var(--c-os) 12%, transparent), transparent 60%), var(--bg-2, var(--bg)); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.f > span i { font-style: normal; color: var(--flag); }
.f input, .f textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; }
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--c-os); box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-os) 25%, transparent); }
.f-chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips legend { width: 100%; margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.f-chips label { position: relative; cursor: pointer; }
.f-chips input { position: absolute; opacity: 0; inset: 0; }
.f-chips span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.f-chips input:checked + span { color: var(--ink); border-color: var(--c-os); background: color-mix(in oklab, var(--c-os) 16%, transparent); }
.f-chips input:focus-visible + span { box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-os) 35%, transparent); }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.f-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.6; cursor: pointer; }
.f-consent input { margin-top: 4px; accent-color: var(--c-os); width: 16px; height: 16px; flex: none; }
.demo__form .btn { justify-self: start; }
.f-status { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.f-status.is-ok { color: var(--ok); } .f-status.is-err { color: var(--flag); }
.demo__form.is-sent .btn { opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; gap: 40px; padding-top: 40px !important; } .demo__form { padding: 22px; } }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; } .demo__form .btn { width: 100%; justify-self: stretch; } }

/* ===== v4.4 inner pages: page headers match home / app pages ===== */
.pg-hero { overflow: hidden; }
.pg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 120% at 85% 0%, color-mix(in oklab, var(--c-os) 20%, transparent), transparent 60%), radial-gradient(40% 90% at 100% 100%, color-mix(in oklab, var(--c-align) 12%, transparent), transparent 60%); }
.pg-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.03em; }
.pg-hero .sub { margin-top: 18px; font-size: 17.5px; }
.page-demo .demo-pg { position: relative; overflow: hidden; }
.page-demo .demo-pg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 70% at 0% 0%, color-mix(in oklab, var(--c-os) 16%, transparent), transparent 60%); }
.page-demo .demo { position: relative; }
.pg-hero { position: relative; } .pg-hero .cell { z-index: 1; }
/* pause looping animations in sections that are off-screen (set by JS) */
.anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }
html:not([data-grade="light"]) .tag { color: #8ea3ff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== v4.5 legal pages ===== */
.legal { max-width: 46em; padding-top: 72px !important; padding-bottom: 96px !important; color: var(--ink-2); font-size: 16px; line-height: 1.85; }
.legal h1 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
.legal h1 + p { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; color: var(--ink); margin: 40px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p { margin: 0 0 14px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal mark.todo { background: color-mix(in oklab, var(--warn) 22%, transparent); color: var(--ink); padding: 1px 4px; border-radius: 4px; }
.legal__note { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2, var(--bg)); font-size: 14px; color: var(--muted); margin-bottom: 32px !important; }
.foot__policies { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__policies a { color: inherit; } .foot__policies a:hover { color: var(--ink); }

/* v4.6 review fixes */
html[lang^="en"] .hero--center h1 span:not(.h1-em) { display: block; }
h1, h2, h3 { text-wrap: balance; }
@media (max-width: 520px) {
  .stmt__big { font-size: 34px; }
  .stmt__in { padding: 112px var(--pad) !important; }
}

/* v4.7 social QR codes */
.close__qrs { display: flex; gap: 16px; }
.close__qr a { display: block; }
.ci-qrs { display: flex; gap: 28px; }
.ci--qr span { max-width: 160px; }

/* v4.8 three layers of trust */
.steps--trust h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 19px; }
.steps--trust h3 small { font-size: 13px; font-weight: 500; color: var(--c-os); }
.gov h2 { word-break: keep-all; }
