/*
 * Trek public site. Fixed brand palette (light page, one deep-navy hero moment), after AIBO V3's landing:
 * hairlines not cards, heavy display type, outlined kinetic words, numbered section eyebrows with a ghost word.
 * Navy = Trek standard blue #1D5193; orange is its complement and marks action (CTA, live states, highlights).
 */
:root {
  --navy: #1d5193;          /* Trek standard blue (logo) */
  --navy-deep: #0b1f3f;     /* hero / dark bands */
  --navy-ink: #071630;
  --navy-wash: #eef3fb;
  --orange: #ff6b1a;        /* complement: action */
  --orange-ink: #c94a05;    /* orange text on white (4.6:1) */
  --orange-wash: #fff2ea;
  --ink: #0e1b33;
  --ink-2: #44526b;
  --ink-3: #5f6b80;
  --line: rgb(14 27 51 / 10%);
  --line-dark: rgb(255 255 255 / 14%);
  --green: #12a150;
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* theme tokens (navy mode = default) */
  --stage: #0b1f3f; --stage-2: #1d5193; --on: 255 255 255; --nav-bg: rgb(11 31 63 / 82%);
  --glow-1: rgb(29 81 147 / 85%); --glow-2: rgb(255 107 26 / 22%);
  --hl: #ff6b1a; --hl-rgb: 255 107 26; --on-accent: #fff; --accent-hover: #ff7f3a; --accent-shadow: rgb(255 107 26 / 70%);
  --font: "Manrope", "Inter", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 8px 12px; background: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— buttons ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; transition: background-color .15s, color .15s, transform .12s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--orange { background: var(--orange); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--accent-shadow); }
.btn--orange:hover { background: var(--accent-hover); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #18457e; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgb(var(--on) / 40%); color: rgb(var(--on)); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--on)); }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn svg { width: 18px; height: 18px; }

/* ——— top bar + nav ——— */
.promo { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; font-size: 13px; color: #fff; background: var(--navy-ink); border-bottom: 1px solid var(--line-dark); text-align: center; }
.promo i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 107 26 / 25%); animation: pulse 2s infinite; }
.promo a { font-weight: 700; color: #fff; border-bottom: 1px solid rgb(255 255 255 / 40%); }
.nav { position: sticky; top: 0; z-index: 40; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-dark); color: rgb(var(--on)); }
.nav--light { background: rgb(255 255 255 / 88%); color: var(--ink); border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 12px; height: 64px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; flex: none; }
.nav__logo img { height: 34px; width: auto; }
.nav__tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: var(--orange); color: var(--on-accent); }
.nav__links { display: flex; gap: 4px; margin-left: 20px; font-size: 14px; font-weight: 600; }
.nav__links a { padding: 8px 12px; border-radius: 999px; opacity: .88; }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; background: rgb(var(--on) / 10%); }
.nav--light .nav__links a:hover, .nav--light .nav__links a[aria-current="page"] { background: var(--navy-wash); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__signin { font-size: 14px; font-weight: 600; padding: 8px 10px; }
button.nav__signin, .nav__out-m { background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; }
.outask { width: min(380px, calc(100vw - 32px)); padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.outask::backdrop { background: rgb(11 31 63 / 45%); }
.outask__title { margin: 0 0 8px; font-size: 18px; }
.outask__text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.outask__row { display: flex; justify-content: flex-end; gap: 8px; }
.nav__out-m { display: none; font-size: inherit; font-weight: inherit; text-align: left; padding: 8px 12px; opacity: .88; }
.nav__menu { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.nav__menu svg { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .nav__links, .nav__right .nav__signin { display: none; }
  .nav__menu { display: inline-flex; margin-left: 0; }
  .nav__right { margin-left: auto; }
  .nav[data-open] .nav__links { display: flex; position: absolute; inset: 64px 0 auto; flex-direction: column; margin: 0; padding: 12px 16px 20px; background: var(--navy-deep); border-bottom: 1px solid var(--line-dark); }
  .nav--light[data-open] .nav__links { background: #fff; }
  .nav[data-open] .nav__out-m { display: block; }
}

/* ——— hero: the navy moment ——— */
.hero { position: relative; background: radial-gradient(1200px 600px at 85% -10%, var(--glow-1), transparent 60%), radial-gradient(800px 500px at 0% 110%, var(--glow-2), transparent 60%), var(--stage); color: rgb(var(--on)); isolation: isolate; overflow: hidden; }
.kinetic { position: absolute; inset: 0; display: grid; align-content: center; gap: .02em; z-index: -1; pointer-events: none; font-size: clamp(64px, 12vw, 190px); font-weight: 800; line-height: .9; letter-spacing: -.04em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px rgb(var(--on) / 13%); mask-image: linear-gradient(transparent, #000 15%, #000 75%, transparent); }
.kinetic i { display: block; font-style: normal; animation: drift 18s linear infinite; animation-delay: calc(-4s * var(--n)); }
.kinetic i:nth-child(even) { animation-direction: reverse; }
.kinetic b { color: transparent; -webkit-text-stroke: 1.2px rgb(var(--hl-rgb) / 55%); font-weight: inherit; }
.hero__in { padding: clamp(56px, 10vh, 112px) 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgb(var(--on) / 8%); box-shadow: inset 0 0 0 1px var(--line-dark); font-size: 13px; font-weight: 600; }
.chip b { padding: 2px 8px; border-radius: 999px; background: var(--orange); color: rgb(var(--on)); font-size: 11px; letter-spacing: .06em; }
.hero h1 { margin: 22px 0 0; font-size: clamp(42px, 7vw, 96px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; }
.hero h1 span { display: block; animation: rise .9s var(--ease) both; animation-delay: calc(.1s + .12s * var(--i)); }
.hero h1 em { font-style: normal; color: var(--hl); }
.hero__lead { max-width: 660px; margin: 26px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.8; color: rgb(var(--on) / 86%); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 14px; font-size: 13px; color: rgb(var(--on) / 70%); }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: 13px; color: rgb(var(--on) / 75%); }
.hero__proof span { display: inline-flex; align-items: center; gap: 6px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--orange); }
.hero__stage { position: relative; margin-top: 56px; margin-bottom: -110px; z-index: 2; }
.hero + .after-hero { padding-top: 150px; }

/* ——— simulated agent window ——— */
.win { background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgb(14 27 51 / 8%), 0 40px 80px -30px rgb(7 22 48 / 55%); }
.win__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ee; }
.win__bar span { margin-left: 10px; }
.win__bar em { margin-left: auto; font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--navy-wash); color: var(--navy); font-weight: 600; }
.agent { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 380px; }
.agent__feed { padding: 8px 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); background: #fbfcfe; }
.agent__side { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.agent__side h3 { margin: 0; font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--navy), #4a82c9); height: var(--h); transform-origin: bottom; animation: grow .8s var(--ease) both; animation-delay: calc(1.8s + .05s * var(--n)); }
.spark i:last-child { background: var(--orange); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-row div { padding: 10px 0; border-top: 1px solid var(--line); }
.stat-row small { display: block; font-size: 11.5px; color: var(--ink-3); }
.stat-row strong { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.demo-tag { font-size: 11.5px; color: var(--ink-3); text-align: right; padding: 8px 16px 12px; }
@media (max-width: 820px) { .agent { grid-template-columns: 1fr; } .agent__feed { border-right: 0; border-bottom: 1px solid var(--line); } }
/* homepage hero: an app feed with one native ad (illustration only), in .agent__feed */
.feed__row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feed__row:last-child { border-bottom: 0; }
.feed__row > i { width: 44px; height: 44px; border-radius: 10px; background: #dfe7f2; }
.feed__row span { display: grid; gap: 8px; }
.feed__row b { display: block; height: 9px; width: var(--w); border-radius: 5px; background: #e3e7ee; }
.feed__row--ad { margin: 6px -12px; padding: 14px 12px; border-radius: 12px; border-bottom: 0; background: var(--navy-wash); box-shadow: inset 0 0 0 1px rgb(29 81 147 / 18%); animation: rise .8s var(--ease) both; animation-delay: .9s; }
.feed__row--ad > i { display: grid; place-items: center; background: var(--navy); color: #fff; }
.feed__row--ad > i svg { width: 20px; height: 20px; }
.feed__row--ad b { background: rgb(29 81 147 / 35%); }
.feed__row--ad small { font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }
.feed__ad { margin: 6px -12px; padding: 12px 12px 0; border-radius: 12px; background: var(--navy-wash); box-shadow: inset 0 0 0 1px rgb(29 81 147 / 18%); animation: rise .8s var(--ease) both; animation-delay: .9s; }
.feed__ad .feed__row--ad { margin: 0; padding: 12px 0; background: none; box-shadow: none; animation: none; }
.feed__media, .mmedia { display: grid; place-items: center; height: 120px; border-radius: 8px; background: linear-gradient(135deg, var(--stage-2), var(--stage)); }
.feed__media u, .mmedia u { position: relative; width: 36px; height: 36px; border-radius: 50%; background: rgb(255 255 255 / 92%); }
.feed__media u::after, .mmedia u::after { content: ""; position: absolute; left: 14px; top: 10px; border-left: 12px solid #1d5193; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.feed__row--ad em { font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: #fff; white-space: nowrap; }

/* homepage: AI assistant callout inside the integration section (even hairline, no side stripe) */
.aiblock { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: clamp(36px, 5vw, 56px); padding: 26px 28px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.aiblock > svg.ic { width: 30px; height: 30px; color: var(--navy); }
.aiblock h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.aiblock p { margin: 0; color: var(--ink-2); font-size: 15px; }
.aiblock .aiblock__go { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .aiblock { grid-template-columns: 1fr; padding: 22px 20px; } }

/* ——— sections ——— */
.sec { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.sec--wash { background: var(--navy-wash); }
.sec--dark { background: var(--stage); color: rgb(var(--on)); }
.sec__head { position: relative; max-width: 820px; margin-bottom: 52px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.eyebrow span { font-family: var(--mono); color: var(--orange-ink); }
.sec--dark .eyebrow { color: rgb(var(--on) / 80%); }
.sec--dark .eyebrow span { color: var(--orange); }
.ghost { position: absolute; top: -.55em; right: -.05em; z-index: -1; margin: 0; font-size: clamp(80px, 16vw, 220px); font-weight: 800; letter-spacing: -.05em; line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px rgb(29 81 147 / 12%); pointer-events: none; user-select: none; }
.sec--dark .ghost { -webkit-text-stroke-color: rgb(var(--on) / 9%); }
.sec__head .ghost { left: -.04em; right: auto; }
.sec { isolation: isolate; }
h2.h2 { margin: 0; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
h2.h2 em { font-style: normal; color: var(--orange-ink); }
.sec--dark h2.h2 em { color: var(--hl); }
.lead { margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); line-height: 1.85; }
.sec--dark .lead { color: rgb(var(--on) / 78%); }

/* steps */

/* code / connect tabs */
.connect { margin-top: 56px; display: grid; grid-template-columns: 260px minmax(0, 1fr); border-radius: 18px; overflow: hidden; background: var(--navy-ink); color: #dfe8f7; box-shadow: 0 30px 60px -30px rgb(7 22 48 / 50%); }
.connect__tabs { display: flex; flex-direction: column; padding: 14px; gap: 2px; border-right: 1px solid rgb(255 255 255 / 14%); }
.connect__tabs button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: rgb(255 255 255 / 72%); }
.connect__tabs button:hover { color: #fff; background: rgb(255 255 255 / 6%); }
.connect__tabs button[aria-selected="true"] { --bl: #ff6b1a; color: #fff; background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), inset 0 0 0 1px rgb(255 255 255 / 14%), 0 10px 22px -12px #ff6b1a; }
.connect__tabs small { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--orange); }
.connect__body { padding: 22px 24px; min-width: 0; }
.connect__body p { margin: 0 0 12px; font-size: 14px; color: rgb(255 255 255 / 75%); }
.code { position: relative; margin: 0 0 14px; padding: 16px 18px; border-radius: 12px; background: rgb(0 0 0 / 30%); box-shadow: inset 0 0 0 1px var(--line-dark); font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; color: #e8eefb; }
.code .k { color: #ffb184; } .code .s { color: #9fd3ff; } .code .c { color: #7f8ba3; }
.copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 0; background: rgb(255 255 255 / 10%); color: #fff; font: 600 12px var(--font); cursor: pointer; }
.copy:hover { background: var(--orange); }
.copy[data-done] { background: var(--green); }
.light-code .code { background: #0d1f3c; }
@media (max-width: 860px) { .connect { grid-template-columns: 1fr; } .connect__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-dark); } .connect__tabs button { white-space: nowrap; } .connect__tabs small { display: none; } }

/* feature grid with hairlines */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.grid3 > * { padding: 30px 26px 34px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid3 > *:nth-child(3n+2), .grid3 > *:nth-child(3n) { padding-left: 26px; }
.grid3 > *:nth-child(3n) { border-right: 0; }
.sec--dark .grid3, .sec--dark .grid3 > * { border-color: var(--line-dark); }
.feat svg.ic { width: 28px; height: 28px; color: var(--navy); }
.sec--dark .feat svg.ic { color: var(--orange); }
.feat h3 { margin: 14px 0 6px; font-size: 20px; letter-spacing: -.01em; font-weight: 800; }
.feat p { margin: 0; color: var(--ink-2); font-size: 15px; }
.sec--dark .feat p { color: rgb(var(--on) / 72%); }
.feat a.more { display: inline-flex; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--navy); }
.sec--dark .feat a.more { color: var(--orange); }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } .grid3 > *, .grid3 > *:nth-child(3n+2), .grid3 > *:nth-child(3n) { padding: 26px 0; border-right: 0; } }

/* format showcase */
.formats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fmt { border-radius: 20px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.fmt:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--navy), 0 24px 40px -24px rgb(29 81 147 / 40%); }
.fmt img { width: 100%; aspect-ratio: 960/544; object-fit: cover; background: #e6ecf5; }
.fmt__b { padding: 18px 22px 22px; }
.fmt__b h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.fmt__b p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--navy-wash); color: var(--navy); }
.tags span.o { background: var(--orange-wash); color: var(--orange-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pills span { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; background: #fff; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; } }

/* split media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split img.illus { width: min(440px, 100%); margin-inline: auto; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--orange); }
.checks b { display: block; }
.checks span { color: var(--ink-2); font-size: 15px; }
.sec--dark .checks span { color: rgb(var(--on) / 72%); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* big numbers */

/* compare table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: .02em; }
.tbl td:first-child { font-weight: 700; width: 24%; }
.tbl .y { color: var(--green); font-weight: 700; }
.tbl .hl { background: var(--orange-wash); }
.tbl-wrap { overflow-x: auto; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--orange-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 860px; }
/* FAQ search */
.faqs { margin: 0 0 56px; max-width: 720px; }
.faqs__box { position: relative; display: flex; align-items: center; }
.faqs__box .ic { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.faqs input { width: 100%; height: 54px; padding: 0 50px; border: 0; border-radius: 999px; font: 500 16px var(--font); color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgb(14 27 51 / 45%); appearance: none; -webkit-appearance: none; }
.faqs input::-webkit-search-cancel-button { -webkit-appearance: none; }
.faqs input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.faqs__clear { all: unset; position: absolute; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: var(--ink-3); font-size: 22px; line-height: 1; }
.faqs__clear[hidden] { display: none; }
.faqs__clear:hover { background: rgb(14 27 51 / 6%); color: var(--ink); }
.faqs__clear:focus-visible { outline: 2px solid var(--orange); }
.faqs__count { margin: 12px 6px 0; font-size: 14px; color: var(--ink-3); }
.faq details[hidden] { display: none; }
.faq mark { background: rgb(255 107 26 / 22%); color: inherit; border-radius: 3px; padding: 0 1px; }
:root[data-theme="orange"] .faqs input { box-shadow: 0 0 0 2px rgb(11 31 63 / 20%); }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--stage-2) 0%, var(--stage) 60%); color: rgb(var(--on)); border-radius: 28px; padding: clamp(40px, 7vw, 80px); }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgb(255 107 26 / 55%), transparent 65%); z-index: -1; }
.cta h2 { margin: 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.cta p { margin: 16px 0 28px; max-width: 620px; color: rgb(var(--on) / 82%); font-size: 17px; }

/* footer */
.foot { background: var(--navy-ink); color: rgb(255 255 255 / 75%); padding: 64px 0 36px; font-size: 14px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot h4 { margin: 0 0 12px; color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a:hover { color: #fff; }
.foot__brand img { height: 36px; width: auto; }
.foot__brand p { margin: 14px 0 0; max-width: 300px; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 14%); font-size: 13px; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }

/* page hero (inner pages) */
.phero { background: var(--stage); color: rgb(var(--on)); padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 80px); position: relative; overflow: hidden; isolation: isolate; }
.phero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, var(--glow-1), transparent 60%); z-index: -1; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: rgb(var(--on) / 65%); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: rgb(var(--on)); }
.phero h1 { margin: 0; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; max-width: 920px; }
.phero h1 em { font-style: normal; color: var(--hl); }
.phero p { margin: 20px 0 0; max-width: 680px; font-size: 18px; color: rgb(var(--on) / 80%); }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; padding: 40px 0 100px; }
.docs__nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; }
.docs__nav h4 { margin: 18px 0 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.docs__nav a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); }
.docs__nav a:hover { background: var(--navy-wash); color: var(--ink); }
.docs__nav a[aria-current="page"] { --bl: var(--orange); color: var(--navy); font-weight: 700; background: linear-gradient(180deg, #fff, rgb(238 243 251 / 70%)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(29 81 147 / 14%), 0 8px 18px -10px rgb(255 107 26 / 55%); }
.docs__toc { position: sticky; top: 84px; align-self: start; font-size: 13px; }
.docs__toc h4 { margin: 0 0 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.docs__toc a { display: block; padding: 4px 0; color: var(--ink-3); }
.docs__toc a:hover { color: var(--navy); }
.prose { min-width: 0; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 800; }
.prose .sub { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
.prose h2 { font-size: 26px; letter-spacing: -.02em; margin: 48px 0 12px; padding-top: 12px; font-weight: 800; scroll-margin-top: 84px; }
.prose h3 { font-size: 19px; margin: 30px 0 8px; font-weight: 800; scroll-margin-top: 84px; }
.prose p, .prose li { color: #26344d; }
.prose a:not(.btn) { color: var(--navy); font-weight: 600; border-bottom: 1px solid rgb(29 81 147 / 30%); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--navy-wash); color: var(--navy-ink); padding: 2px 6px; border-radius: 6px; }
.prose .code code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 16px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; color: var(--ink-3); }
.note { margin: 20px 0; font-size: 15px; }
.note b { display: block; margin-bottom: 2px; }
.ai-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.ai-bar a, .ai-bar button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font: 600 13px var(--font); color: var(--ink-2); background: #fff; border: 0; cursor: pointer; }
.ai-bar a:hover, .ai-bar button:hover { box-shadow: inset 0 0 0 1px var(--navy); color: var(--navy); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { display: grid; padding: 14px 18px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); min-width: 40%; }
.pager a:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.pager small { color: var(--ink-3); }
.pager b { color: var(--navy); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.cards a { display: block; padding: 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); border: 0 !important; }
.cards a:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.cards b { display: block; color: var(--ink); font-size: 16px; }
.cards span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 14px; font-weight: 400; }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs__toc { display: none; } }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; gap: 20px; } .docs__nav { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 12px; } }

/* motion */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scaleY(1.1); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(255 107 26 / 0%); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .promo, .foot, .docs__nav, .docs__toc { display: none; } }

/* ——— homepage additions: expanders, tiles, DCR, verify, SDK row ——— */
.more-d { margin-top: 28px; border-top: 1px solid var(--line); }
.sec--dark .more-d { border-color: var(--line-dark); }
.more-d > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 18px 0; font-weight: 700; color: var(--navy); }
.sec--dark .more-d > summary { color: var(--orange); }
.more-d > summary::-webkit-details-marker { display: none; }
.more-d > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 16px; transition: transform .2s; }
.more-d[open] > summary::before { transform: rotate(45deg); }
.more-d > div { padding: 4px 0 8px; animation: pop .4s var(--ease); }
.more-d .connect { margin-top: 8px; }
.dcr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px; border-radius: 18px; background: var(--stage); color: rgb(var(--on)); }
.dcr__n { padding: 14px; border-radius: 12px; background: rgb(var(--on) / 8%); font-size: 14px; font-weight: 600; text-align: center; }
.dcr__room { grid-column: 1 / -1; display: grid; justify-items: center; gap: 4px; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), #2b6cc0); box-shadow: 0 0 0 2px rgb(255 107 26 / 60%); }
.dcr__room svg { width: 26px; height: 26px; color: var(--orange); }
.dcr__room small { color: rgb(var(--on) / 75%); }
.dcr__out { grid-column: 1 / -1; text-align: center; font-weight: 800; color: var(--orange); }
a.feat { display: block; color: inherit; transition: background-color .2s; }
a.feat:hover { background: var(--navy-wash); }
a.feat .more { display: inline-flex; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--navy); }
.verify { display: flex; gap: 10px; max-width: 760px; }
.verify input { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 0; font: 500 16px var(--font); color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.verify input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 560px) { .verify { flex-direction: column; } }
.verify__out:not(:empty) { margin-top: 20px; max-width: 760px; padding: 18px 20px; border-radius: 16px; background: rgb(var(--on) / 6%); box-shadow: inset 0 0 0 1px var(--line-dark); }
.verify__out ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.verify__out li { display: grid; grid-template-columns: 22px 150px 1fr; gap: 8px; font-size: 14px; }
.verify__out li span:last-child { color: rgb(var(--on) / 72%); word-break: break-all; }
.verify__out .ok { color: #3ddc84; } .verify__out .no { color: var(--orange); }
@media (max-width: 560px) { .verify__out li { grid-template-columns: 22px 1fr; } .verify__out li span:last-child { grid-column: 2; } }
.sdkrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 44px; border-top: 1px solid var(--line-dark); }
.sdkrow a { padding: 18px 16px 4px 0; display: grid; gap: 2px; }
.sdkrow small { font-size: 12.5px; color: rgb(var(--on) / 65%); }
.sdkrow b { font-family: var(--mono); font-size: 20px; }
.sdkrow a:hover b { color: var(--orange); }
.sdkrow__all b { color: var(--orange); font-family: var(--font); }
.ai-bar svg, .copy svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 520px) { .nav__tag { display: none; } .nav__logo img { height: 30px; } }

/* ——— Orange mode: bright orange stage, navy type; accent flips to deep navy ——— */
:root[data-theme="orange"] {
  --stage: #ff6b1a; --stage-2: #ff8a3d; --on: 11 31 63; --nav-bg: rgb(255 107 26 / 88%);
  --glow-1: rgb(255 196 120 / 75%); --glow-2: rgb(29 81 147 / 28%);
  --hl: #fff; --hl-rgb: 255 255 255;
  --orange: #0b1f3f; --orange-ink: #1d5193; --orange-wash: #eef3fb;
  --on-accent: #fff; --accent-hover: #1d3a66; --accent-shadow: rgb(11 31 63 / 45%);
  --line-dark: rgb(11 31 63 / 16%);
}
:root[data-theme="orange"] .hero h1 em, :root[data-theme="orange"] .phero h1 em { text-shadow: 0 2px 0 rgb(11 31 63 / 25%); }
:root[data-theme="orange"] .hero .tlogo { color: #fff; filter: drop-shadow(0 2px 0 rgb(11 31 63 / 25%)); }
:root[data-theme="orange"] .ghost { -webkit-text-stroke-color: rgb(11 31 63 / 10%); }
.logo-b { display: none !important; }
:root[data-theme="orange"] .nav:not(.nav--light) .logo-w { display: none !important; }
:root[data-theme="orange"] .nav:not(.nav--light) .logo-b { display: block !important; }
.nav--light .logo-w { display: none !important; } .nav--light .logo-b { display: block !important; }
:root[data-theme="orange"] .spark i { background: linear-gradient(#ff6b1a, #ffa36e); }
:root[data-theme="orange"] .spark i:last-child { background: var(--navy); }
:root[data-theme="orange"] .verify input { box-shadow: 0 0 0 2px rgb(11 31 63 / 20%); }
:root[data-theme="orange"] .verify__out .ok { color: #0b6b33; } :root[data-theme="orange"] .verify__out .no { color: #0b1f3f; }
:root[data-theme="orange"] .dcr__room { background: linear-gradient(135deg, #0b1f3f, #1d5193); color: #fff; }
:root[data-theme="orange"] .dcr__room small { color: rgb(255 255 255 / 75%); }
:root[data-theme="orange"] .sec--dark .feat svg.ic { color: #0b1f3f; }
:root[data-theme="orange"] .sec--dark .feat a.more, :root[data-theme="orange"] .sec--dark .more-d > summary { color: #0b1f3f; }

/* theme switch: a spaceship cockpit toggle — one flip, hints the colour can change */
.ship { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: none; width: 62px; height: 32px; border-radius: 999px;
  background: linear-gradient(180deg, #1a2b4d, #050d1f); box-shadow: inset 0 2px 4px rgb(0 0 0 / 60%), inset 0 0 0 1px rgb(255 255 255 / 14%), 0 0 0 2px rgb(var(--on) / 12%); }
.ship::before, .ship::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; transition: opacity .3s, box-shadow .3s; }
.ship::before { left: 9px; background: #4a8dff; box-shadow: 0 0 8px 2px rgb(74 141 255 / 70%); }          /* navy LED */
.ship::after { right: 9px; background: #ff8a3d; opacity: .25; box-shadow: none; }                        /* orange LED */
.ship__knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, #c9d4e6 70%); box-shadow: 0 2px 6px rgb(0 0 0 / 45%), inset 0 -2px 3px rgb(0 0 0 / 15%); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ship__knob svg { width: 15px; height: 15px; color: #0b1f3f; transform: rotate(45deg); transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.ship[aria-checked="true"] .ship__knob { transform: translateX(30px); }
.ship[aria-checked="true"] .ship__knob svg { transform: rotate(45deg) translate(1px, -1px); color: #c94a05; }
.ship[aria-checked="true"]::before { opacity: .25; box-shadow: none; }
.ship[aria-checked="true"]::after { opacity: 1; box-shadow: 0 0 8px 2px rgb(255 138 61 / 75%); }
.ship:hover .ship__knob svg { animation: thrust .6s ease-in-out infinite alternate; }
.ship:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@keyframes thrust { to { translate: 1px -1px; } }

/* inline Trek logo inside headlines: cropped to the artwork, sized so "trek" matches the CJK x-height */
.tlogo { display: inline-block; height: 1.12em; width: auto; vertical-align: -.2em; margin: 0 .12em 0 .06em; color: var(--hl); }
@media (max-width: 520px) { .tlogo { height: 1.08em; vertical-align: -.18em; } }

/* new-style illustrations (themeable) */
.ill { width: 100%; height: auto; display: block; font-family: var(--font); }
.ill-room { fill: var(--navy-wash); stroke: var(--navy); stroke-width: 1.5; stroke-dasharray: 7 6; }
.ill-stage { fill: var(--stage); } .ill-ring { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 5 6; }
.ill-card { fill: #fff; stroke: var(--line); stroke-width: 1.2; filter: drop-shadow(0 8px 14px rgb(14 27 51 / 10%)); }
.ill-glow { stroke: var(--orange); stroke-width: 2; }
.ill-navy { fill: var(--navy); } .ill-navy-s { stroke: var(--navy); } .ill-accent { fill: var(--orange); } .ill-accent-s { stroke: var(--orange); } .ill-accent-f { fill: var(--orange-ink); }
.ill-ink-f { fill: var(--ink-3); } .ill-ink-s { stroke: var(--ink-3); fill: none; } .ill-green { fill: var(--green); }
.ill-line { fill: #dfe6f1; } .ill-streak { fill: var(--navy); opacity: .14; }
.ill-on { fill: rgb(var(--on)); } .ill-on-s { stroke: rgb(var(--on-accent-rgb, 255 255 255)); } .ill-on-faint { fill: rgb(var(--on) / 35%); }
.ill-on-accent { fill: var(--on-accent); } .ill-on-accent-f { fill: var(--on-accent); } .ill-on-accent-s { stroke: var(--on-accent); } .ill-white { fill: #fff; }
.ill-h { font-size: 19px; font-weight: 800; } .ill-t { font-size: 14px; font-weight: 800; fill: var(--ink); } .ill-t.ill-white, .ill-t.ill-on-accent { fill: #fff; }
.ill-small { font-size: 12px; fill: var(--ink-3); } .ill-tiny { font-size: 11px; font-weight: 700; fill: var(--ink-3); } .ill-mono { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.ill-float { animation: floaty 5s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes floaty { to { transform: translateY(-6px); } }
.ill-panel { padding: clamp(16px, 3vw, 28px); border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(14 27 51 / 35%); }

/* monitor robot — ported 1:1 from trek-official (tk-jumbotron-circle + robot stage + ScrambleText) */
.robot { position: relative; isolation: isolate; width: min(460px, 100%); margin-inline: auto; }
.robot__circle { position: absolute; z-index: -2; left: -32%; top: -30%; width: 164%; aspect-ratio: 1; mask-image: linear-gradient(to bottom, black, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%); pointer-events: none; }
.robot__circle::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background-image: linear-gradient(145deg, #FCEFFF80 15%, #C7EBF780, #8FC8F080, #5984C080, #6F9BD880); }
.robot__circle svg { position: absolute; inset: 0; display: block; }
.robot__stage { position: relative; width: 100%; aspect-ratio: 1; }
.robot__stage > img { width: 100%; height: auto; }
.robot__vectors { position: absolute; inset: 0; z-index: -1; user-select: none; }
.robot__vectors img { position: absolute; height: auto; }
.robot__screen { position: absolute; inset: 0; z-index: 2; aspect-ratio: 17 / 14; display: flex; justify-content: center; align-items: center; user-select: none; }
.robot__screen > div { width: 50%; text-align: center; color: #d6d3d1; font-family: var(--mono); font-weight: 700; font-size: clamp(14px, 2.1vw, 26px); line-height: 1.5; }
.robot__screen img { display: inline; height: 1.5em; width: auto; vertical-align: bottom; }
[data-fadeup] .fu { opacity: 0; transform: translateY(50px); transition: opacity 1.2s cubic-bezier(.19, 1, .22, 1), transform 1.2s cubic-bezier(.19, 1, .22, 1); }
[data-fadeup].in .fu { opacity: 1; transform: none; }
[data-fadeup].in .fu:nth-child(1) { transition-delay: 0s; }
.robot__stage .fu:nth-child(1) { transition-delay: .3s; } .robot__stage .fu:nth-child(2) { transition-delay: .6s; } .robot__stage .fu:nth-child(3) { transition-delay: .9s; }
@media (prefers-reduced-motion: reduce) { [data-fadeup] .fu { opacity: 1; transform: none; } }

/* visitor router (homepage 00) */
.router { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.route { position: relative; display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.route:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--navy), 0 20px 36px -24px rgb(29 81 147 / 45%); }
.route svg.ic { width: 26px; height: 26px; color: var(--navy); margin-bottom: 4px; }
.route b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.route span { color: var(--ink-2); font-size: 14.5px; }
.route em { font-style: normal; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--orange-ink); }
@media (max-width: 900px) { .router { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .router { grid-template-columns: 1fr; } }

/* language switcher */
.langs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(var(--on) / 18%); font-size: 12.5px; font-weight: 700; }
.nav--light .langs { box-shadow: inset 0 0 0 1px var(--line); }
.langs a { padding: 4px 9px; border-radius: 999px; opacity: .75; }
.langs a:hover { opacity: 1; }
.langs a[aria-current] { opacity: 1; background: rgb(var(--on) / 14%); }
.nav--light .langs a[aria-current] { background: var(--navy-wash); color: var(--navy); }
.nav__langs-m { display: none; }
.langs--foot { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%); }
.langs--foot a[aria-current] { background: rgb(255 255 255 / 14%); }
.foot__right { display: inline-flex; align-items: center; gap: 12px; }
@media (max-width: 960px) {
  .nav__right .langs { display: none; }
  .nav[data-open] .nav__langs-m { display: flex; gap: 6px; padding-top: 10px; margin-top: 6px; border-top: 1px solid rgb(var(--on) / 14%); }
  .nav--light[data-open] .nav__langs-m { border-color: var(--line); }
}
@media (max-width: 420px) { .nav__right .ship { display: none; } .nav__right .btn--sm { padding: 0 12px; } }

/* decorative bleed (robot circle, ghost words) never causes horizontal scroll */
.sec { overflow-x: clip; }
.chip b { color: #fff; }
h2.h2, .phero h1, .cta h2, .route b { text-wrap: balance; }
.lead, .hero__lead, .phero p { text-wrap: pretty; }

/* ——— 2026-11-10 round 3 ——— */
/* Liquid-glass notes (replaces the left edge bar) */
.note { position: relative; overflow: hidden; isolation: isolate; padding: 18px 22px; border-radius: 20px; box-shadow: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(238 243 251 / 55%)); border: 1px solid rgb(255 255 255 / 90%);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 18px 40px -26px rgb(14 27 51 / 45%), inset 0 1px 0 rgb(255 255 255 / 95%), inset 0 -1px 0 rgb(29 81 147 / 8%); }
.note::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 12% 0%, rgb(29 81 147 / 20%), transparent 45%), radial-gradient(circle at 96% 100%, rgb(255 107 26 / 18%), transparent 42%); }
.note--warn { background: linear-gradient(135deg, rgb(255 255 255 / 80%), rgb(255 242 234 / 60%)); }
.note b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.note b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 107 26 / 18%); }

/* Illustrations: cards fly in once when the panel scrolls into view — no looping */
.ill-card { filter: none; }
.ill-float { animation: none; opacity: 0; transform: translateY(-34px) scale(.92); transform-box: fill-box; transform-origin: center; }
.ill-panel.in .ill-float { animation: flyin .9s var(--ease) forwards; }
@keyframes flyin { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ill-float { opacity: 1; transform: none; } }

/* Certifications & partners */
.partners { display: grid; grid-template-columns: 1.1fr 2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.badge-iab { display: flex; gap: 18px; align-items: center; padding: 22px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 24px 40px -30px rgb(14 27 51 / 40%); }
.badge-iab img { width: 96px; height: auto; flex: none; }
.badge-iab b { display: block; font-size: 18px; } .badge-iab span { color: var(--ink-2); font-size: 14px; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.logos figure { margin: 0; display: grid; place-items: center; gap: 6px; padding: 18px 14px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.logos img { max-width: 140px; width: 100%; height: 44px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logos figure:hover img { filter: none; opacity: 1; }
.logos figcaption { font-size: 12px; color: var(--ink-3); text-align: center; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.certs span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--navy-wash); color: var(--navy); }
@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } .logos { grid-template-columns: repeat(2, 1fr); } }

/* Tablet on a desk mat — a near-real interface preview */
.desk { position: relative; padding: clamp(24px, 5vw, 56px); border-radius: 28px; background: radial-gradient(120% 120% at 0% 0%, #2a3f63, #121c2e 70%); overflow: hidden; isolation: isolate; }
.desk::before { content: ""; position: absolute; inset: 7% 5%; border-radius: 26px; background: #1c2a42; box-shadow: inset 0 0 0 2px rgb(255 255 255 / 5%), 0 30px 60px rgb(0 0 0 / 35%); transform: rotate(-3deg); z-index: -1; }
:root[data-theme="orange"] .desk { background: radial-gradient(120% 120% at 0% 0%, #ffb27a, #e8590c 70%); }
:root[data-theme="orange"] .desk::before { background: #f27a2a; }
.pen { position: absolute; right: 6%; bottom: 9%; width: 14px; height: 46%; border-radius: 8px; background: linear-gradient(90deg, #e9eef6, #b8c3d6); transform: rotate(24deg); box-shadow: 6px 10px 18px rgb(0 0 0 / 35%); }
.pen::after { content: ""; position: absolute; left: 3px; bottom: -14px; border: 4px solid transparent; border-top: 16px solid #8a95a8; }
.tablet { position: relative; max-width: 860px; margin-inline: auto; padding: 16px; border-radius: 30px; background: #0b0f17; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 60%), inset 0 0 0 2px #2a2f3a; transform: rotate(-1.2deg); }
.tablet__screen { border-radius: 18px; overflow: hidden; background: #f5f7fb; color: var(--ink); display: grid; grid-template-columns: 150px 1fr; min-height: 380px; font-size: 12.5px; }
.tablet__side { background: var(--stage); color: rgb(var(--on)); padding: 14px 10px; display: grid; align-content: start; gap: 4px; }
.tablet__side i { display: block; height: 8px; border-radius: 4px; background: rgb(var(--on) / 20%); margin: 6px 6px 10px; width: 60%; }
.tablet__side span { padding: 7px 9px; border-radius: 8px; opacity: .8; } .tablet__side span.on { --bl: var(--hl); opacity: 1; background: linear-gradient(180deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 6%)); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), inset 0 0 0 1px rgb(255 255 255 / 14%), 0 10px 22px -12px var(--hl); }
:root[data-theme="orange"] .tablet__side span.on { --bl: #0b1f3f; box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), inset 0 0 0 1px rgb(255 255 255 / 14%), 0 10px 22px -12px #0b1f3f; }
.tablet__main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.tablet__main h4 { margin: 0; font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.tablet__main h4 small { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: #fff6d6; color: #8a5a00; }
.tkpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tkpis div { background: #fff; border-radius: 10px; padding: 8px 10px; box-shadow: 0 0 0 1px var(--line); }
.tkpis div:first-child { background: linear-gradient(135deg, var(--stage-2), var(--stage)); color: rgb(var(--on)); box-shadow: none; }
.tkpis small { display: block; font-size: 10px; opacity: .7; } .tkpis b { font-size: 16px; }
.tpanel { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); }
.tbars { display: grid; gap: 7px; } .tbars div { display: grid; grid-template-columns: 70px 1fr 36px; gap: 8px; align-items: center; }
.tbars i { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--navy), #4a82c9); width: var(--w); transform-origin: left; animation: growx .9s var(--ease) both; }
.tbars div:first-child i { background: linear-gradient(90deg, #ff6b1a, #ffa36e); }
@keyframes growx { from { transform: scaleX(0); } }
.theat { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; } .theat i { aspect-ratio: 1; border-radius: 2px; background: var(--navy); }
.tline { width: 100%; height: 90px; }
.tview { display: none; } .tview.on { display: grid; gap: 10px; animation: pop .45s var(--ease); }
.tabs-demo { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.tabs-demo button { all: unset; cursor: pointer; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: rgb(255 255 255 / 10%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 22%); backdrop-filter: blur(10px); }
.tabs-demo button[aria-selected="true"] { background: #fff; color: #0b1f3f; }
.tabs-demo button:focus-visible { outline: 2px solid var(--orange); }
.desk__cap { text-align: center; margin: 12px 0 0; font-size: 12.5px; color: rgb(255 255 255 / 70%); }
@media (max-width: 700px) { .tablet__screen { grid-template-columns: 1fr; } .tablet__side { display: none; } .tkpis { grid-template-columns: 1fr 1fr; } .tablet { transform: none; padding: 10px; } }

/* Redesigned format cards with fly-in demo */
.fmt2 { position: relative; display: grid; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -36px rgb(14 27 51 / 45%); transition: transform .3s var(--ease), box-shadow .3s; }
.fmt2:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--navy), 0 28px 50px -30px rgb(29 81 147 / 45%); }
.fmt2__stage { position: relative; height: 280px; display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 0%, var(--navy-wash), #e2e9f4); overflow: hidden; }
.fmt2__b { padding: 20px 24px 24px; } .fmt2__b h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; } .fmt2__b p { margin: 0; color: var(--ink-2); font-size: 15px; }
.mphone { position: relative; width: 190px; height: 330px; margin-top: 70px; border-radius: 30px; background: #fff; box-shadow: 0 0 0 7px #0e1b33, 0 30px 50px -20px rgb(14 27 51 / 50%); padding: 26px 14px; display: grid; align-content: start; gap: 10px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: 36px 1fr; gap: 8px; align-items: center; }
.mrow i { width: 36px; height: 36px; border-radius: 9px; background: #8fc5ad; } .mrow span { display: grid; gap: 5px; } .mrow span::before, .mrow span::after { content: ""; height: 7px; border-radius: 4px; background: #c4cbd6; } .mrow span::after { width: 60%; }
.mrow--ad { padding: 8px; margin: 0 -6px; border-radius: 12px; background: var(--navy-wash); box-shadow: 0 0 0 1.5px var(--orange); }
.mrow--ad i { background: var(--navy); display: grid; place-items: center; } .mrow--ad i svg { width: 20px; height: 20px; color: #fff; }
.mrow--ad span::before, .mrow--ad span::after { background: #3a4152; }
.mrow--ad em { position: absolute; right: 8px; top: -8px; font: 800 9px var(--font); font-style: normal; padding: 2px 6px; border-radius: 6px; background: var(--orange); color: #fff; }
.mbanner { position: absolute; left: 10px; right: 10px; bottom: 12px; height: 46px; border-radius: 10px; background: linear-gradient(90deg, var(--stage-2), var(--stage)); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: rgb(var(--on)); font: 800 11px var(--font); box-shadow: 0 0 0 1.5px var(--orange), 0 10px 20px -10px rgb(0 0 0 / 50%); }
.mbanner b { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; }
:root[data-theme="orange"] .mbanner b { background: #fff; color: #0b1f3f; }
.mmulti { position: relative; display: grid; gap: 8px; margin: 0 -6px; padding: 8px; border-radius: 12px; background: var(--navy-wash); box-shadow: 0 0 0 1.5px var(--orange); }
.mmedia { height: 92px; } .mmedia u { width: 30px; height: 30px; } .mmedia u::after { left: 11px; top: 8px; border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.mmulti .mrow i { background: var(--navy); display: grid; place-items: center; } .mmulti .mrow i svg { width: 20px; height: 20px; color: #fff; }
.mmulti .mrow span::before, .mmulti .mrow span::after { background: #3a4152; }
.mmulti em { position: absolute; right: 8px; top: -8px; font: 800 9px var(--font); font-style: normal; padding: 2px 6px; border-radius: 6px; background: var(--orange); color: #fff; }
.fmt2--lead { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.fmt2--lead .fmt2__stage { height: 340px; } .fmt2--lead .mphone { margin-top: 50px; }
.fmt2--lead .fmt2__b { padding: 28px 36px; } .fmt2--lead .fmt2__b h3 { font-size: clamp(24px, 3vw, 30px); } .fmt2--lead .fmt2__b p { font-size: 16px; }
.fmt2__tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
@media (max-width: 760px) { .fmt2--lead { grid-template-columns: 1fr; } .fmt2--lead .fmt2__stage { height: 280px; } .fmt2--lead .fmt2__b { padding: 20px 24px 24px; } }
.fly-r, .fly-u { opacity: 0; } .fmt2.in .fly-r { animation: flyR 1s cubic-bezier(.2, 1.4, .4, 1) .35s forwards; } .fmt2.in .fly-u { animation: flyU 1s cubic-bezier(.2, 1.4, .4, 1) .45s forwards; }
@keyframes flyR { from { opacity: 0; transform: translateX(140%) rotate(8deg); } to { opacity: 1; transform: none; } }
@keyframes flyU { from { opacity: 0; transform: translateY(160%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fly-r, .fly-u { opacity: 1; } }

/* Ad gallery + glass modal */
.gbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; }
.gbar .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gbar button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.gbar button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.gbar button:focus-visible { outline: 2px solid var(--orange); }
.gbar input { flex: 1; min-width: 200px; height: 42px; border: 0; border-radius: 999px; padding: 0 18px; font: 500 15px var(--font); box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.gbar input:focus { outline: 2px solid var(--orange); }
.gbar .count { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gcard { all: unset; box-sizing: border-box; cursor: pointer; display: grid; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.gcard:hover, .gcard:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1.5px var(--navy), 0 20px 40px -28px rgb(29 81 147 / 50%); }
/* The square device shots are cropped to 4:3 a little below the top, so the whole logo bar, with even space above and
   below the rocket, stays in view. */
.gcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; background: #e2e9f4; }
.gcard div { padding: 12px 14px 14px; display: grid; gap: 4px; } .gcard b { font-size: 16px; } .gcard span { font-size: 13px; color: var(--ink-2); }
.gcard small { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; } .gcard small em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--navy-wash); color: var(--navy); }
.gcard small em.c { background: var(--orange-wash); color: var(--orange-ink); }
.gempty { padding: 40px; text-align: center; color: var(--ink-3); }
.gmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(7 22 48 / 35%); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); animation: pop .3s var(--ease); }
.gmodal[hidden] { display: none; }
.gcard[hidden] { display: none; }
.gglass { position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; padding: 26px; border-radius: 28px;
  background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 45%)); border: 1px solid rgb(255 255 255 / 80%); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 40px 80px -30px rgb(7 22 48 / 60%), inset 0 1px 0 #fff; }
.gclose { all: unset; cursor: pointer; position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 70%); font-size: 20px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gclose:focus-visible { outline: 2px solid var(--orange); }
.gdev { display: grid; justify-items: center; gap: 12px; align-content: start; }
.gdev__seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / 70%); box-shadow: inset 0 0 0 1px var(--line); }
.gdev__seg button { all: unset; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.gdev__seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.dphone { width: 250px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 12px; background: #0e1b33; box-shadow: 0 30px 60px -24px rgb(7 22 48 / 70%); }
.ddesk { width: 100%; max-width: 480px; aspect-ratio: 16 / 10.5; border-radius: 14px; padding: 26px 10px 10px; background: #0e1b33; box-shadow: 0 30px 60px -24px rgb(7 22 48 / 70%); position: relative; }
.ddesk::before { content: "• • •"; position: absolute; top: 5px; left: 12px; color: #4a5672; font-size: 11px; letter-spacing: 2px; }
.dscreen { width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; display: grid; align-content: start; gap: 8px; padding: 14px 12px; }
.ddesk .dscreen { border-radius: 6px; }
.dscreen i { display: block; height: 8px; border-radius: 4px; background: #d6dce6; } .dscreen i.s { width: 60%; }
.dscreen figure { margin: 4px 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px var(--orange); position: relative; }
.dscreen figure img, .dscreen figure video { width: 100%; display: block; background: #e2e9f4; }
.dscreen figure figcaption { position: absolute; top: 6px; left: 6px; font: 800 9px var(--font); padding: 2px 6px; border-radius: 6px; background: var(--orange); color: #fff; }
.ginfo h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .ginfo p { margin: 0 0 12px; color: var(--ink-2); }
.ginfo h4 { margin: 18px 0 8px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.gex { display: grid; gap: 10px; }
.gex details { border-radius: 14px; background: rgb(255 255 255 / 75%); box-shadow: inset 0 0 0 1px var(--line); padding: 10px 14px; }
.gex summary { cursor: pointer; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; } .gex summary small { color: var(--ink-3); font-weight: 600; }
.gex video { width: 100%; margin-top: 10px; border-radius: 10px; background: #000; max-height: 280px; }
.gcta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 820px) { .gglass { grid-template-columns: 1fr; padding: 20px; } .dphone { width: 210px; } }
body.locked { overflow: hidden; }

/* Full media scenes (RMN) */
.scenes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.scene { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: grid; }
.scene__art { background: radial-gradient(100% 100% at 50% 0%, var(--navy-wash), #e8eef7); padding: 10px; }
.scene__art svg { width: 100%; height: auto; display: block; }
.scene div { padding: 12px 14px 16px; } .scene b { display: block; font-size: 16px; } .scene span { font-size: 13px; color: var(--ink-2); }
.scene .sc-ad { transform-box: fill-box; transform-origin: center; }
.scenes.in .scene .sc-ad { animation: adpulse 1.2s var(--ease) both; }
.scenes .scene:nth-child(2) .sc-ad { animation-delay: .15s; } .scenes .scene:nth-child(3) .sc-ad { animation-delay: .3s; } .scenes .scene:nth-child(4) .sc-ad { animation-delay: .45s; } .scenes .scene:nth-child(5) .sc-ad { animation-delay: .6s; }
@keyframes adpulse { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } to { transform: none; } }
.decide { display: grid; grid-template-columns: repeat(3, 1fr) auto 1fr; gap: 12px; align-items: center; margin-top: 28px; }
.decide > div { padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.decide > div b { display: block; } .decide > div span { font-size: 13px; color: var(--ink-2); }
.decide > i { font-style: normal; font-size: 26px; color: var(--orange-ink); font-weight: 800; }
.decide > div.out { background: linear-gradient(135deg, var(--stage-2), var(--stage)); color: rgb(var(--on)); box-shadow: none; } .decide > div.out span { color: rgb(var(--on) / 80%); }
@media (max-width: 1000px) { .scenes { grid-template-columns: repeat(3, 1fr); } .decide { grid-template-columns: 1fr; } .decide > i { justify-self: center; transform: rotate(90deg); } }
@media (max-width: 600px) { .scenes { grid-template-columns: 1fr 1fr; } }

/* KeyKey in the CTA band — suit colour follows the mode */
.cta--kk { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 0; }
.cta--kk > div:first-child { padding-bottom: clamp(40px, 7vw, 80px); }
.kk { position: relative; width: clamp(180px, 22vw, 260px); --kk-suit: #ff6b1a; --kk-suit-dark: #c94a05; --kk-accent: #1d5193; }
:root[data-theme="orange"] .kk { --kk-suit: #1d5193; --kk-suit-dark: #143b6b; --kk-accent: #ff6b1a; }
.kk svg { display: block; width: 100%; height: auto; } .kk .kk-body path, .kk .kk-body rect, .kk .kk-body ellipse, .kk .kk-body circle { transition: fill .5s ease; }
.kk .kk-arm { transform-box: fill-box; transform-origin: 10% 90%; }
.cta.in .kk .kk-arm { animation: wave 1.6s ease-in-out .6s 2; }
@keyframes wave { 25% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } }
.kk__bubble { position: absolute; right: 88%; top: 8%; width: max-content; max-width: 230px; padding: 12px 14px; border-radius: 18px 18px 4px 18px; background: rgb(255 255 255 / 88%); color: #0e1b33; font-size: 14px; font-weight: 700; line-height: 1.5; box-shadow: 0 18px 40px -20px rgb(0 0 0 / 50%); backdrop-filter: blur(10px); opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s; }
.kk__bubble small { display: block; font-size: 11.5px; font-weight: 700; color: var(--orange-ink); margin-bottom: 2px; }
.cta.in .kk__bubble { opacity: 1; transform: none; }
@media (max-width: 760px) { .cta--kk { grid-template-columns: 1fr; } .kk { justify-self: end; width: 170px; margin-top: -20px; } .kk__bubble { right: 95%; top: 0; max-width: 170px; font-size: 13px; } }

.kk__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgb(0 0 0 / 30%)); }
.kk__img--orange { display: none; }
:root[data-theme="orange"] .kk__img--navy { display: none; }
:root[data-theme="orange"] .kk__img--orange { display: block; }
.cta.in .kk__img { animation: kkin .9s var(--ease) both; }
@keyframes kkin { from { opacity: 0; transform: translateY(30px); } }
.mbanner { bottom: auto; top: 158px; }
.tbars div { grid-template-columns: minmax(70px, auto) 1fr 72px; } .tbars b { text-align: right; white-space: nowrap; font-size: 11.5px; }
.cta { overflow: clip; }
.cta .kk__bubble { color: #0e1b33; margin: 0; }
.scene { margin: 0; }
.gmodal { background: rgb(7 22 48 / 55%); }
.gglass { background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(240 245 252 / 84%)); }
@media (max-width: 820px) { .gmodal { padding: 10px; } .gglass { max-height: calc(100vh - 20px); } }
.gmodal { animation: none; }
.gmodal:not([hidden]) .gglass { animation: glassin .35s var(--ease); }
@keyframes glassin { from { transform: translateY(14px) scale(.98); } }

/* No edge bars anywhere: accents live as bottom lines and soft glow on liquid glass */
.note { --bl: rgb(29 81 147 / 35%); border-bottom: 0; box-shadow: 0 18px 40px -26px rgb(14 27 51 / 45%), inset 0 1px 0 rgb(255 255 255 / 95%), 0 10px 24px -18px rgb(29 81 147 / 60%); }
.note--warn { --bl: rgb(255 107 26 / 55%); box-shadow: 0 18px 40px -26px rgb(14 27 51 / 45%), inset 0 1px 0 rgb(255 255 255 / 95%), 0 10px 24px -18px rgb(255 107 26 / 65%); }
.nav__links a[aria-current="page"] { --bl: var(--hl); background: linear-gradient(180deg, rgb(var(--on) / 16%), rgb(var(--on) / 5%)); box-shadow: inset 0 1px 0 rgb(var(--on) / 25%); }
.nav--light .nav__links a[aria-current="page"] { --bl: var(--orange); background: linear-gradient(180deg, #fff, var(--navy-wash)); box-shadow: inset 0 0 0 1px rgb(29 81 147 / 12%); }

/* Bottom accent line: straight, stops short of the rounded corners (no curve-following inset shadow) */
:where(.connect__tabs button, .docs__nav a, .tablet__side span, .note, .note--warn, .nav__links a, .nav--light .nav__links a) { position: relative; --bl: transparent; }
:is(.connect__tabs button, .docs__nav a, .tablet__side span, .note, .note--warn, .nav__links a, .nav--light .nav__links a)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--bl, transparent); box-shadow: 0 0 10px var(--bl, transparent); pointer-events: none; }
.note::after { left: 22px; right: 22px; }

/* KeyKey CTA: she stands on the card's bottom edge and breaks out of the top; the card keeps its text height */
.cta--kk { --kkw: clamp(240px, 28vw, 370px); display: block; overflow: visible; margin-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(40px, 7vw, 80px); padding-right: calc(var(--kkw) + clamp(40px, 6vw, 90px));
  background: radial-gradient(circle at 88% 8%, rgb(255 107 26 / 50%), transparent 38%), linear-gradient(120deg, var(--stage-2) 0%, var(--stage) 60%); }
:root[data-theme="orange"] .cta--kk { background: radial-gradient(circle at 88% 8%, rgb(29 81 147 / 45%), transparent 38%), linear-gradient(120deg, var(--stage-2) 0%, var(--stage) 60%); }
.cta--kk::after { content: none; }
.cta--kk > div:first-child { padding-bottom: 0; }
.cta--kk .kk { position: absolute; right: clamp(20px, 4vw, 64px); bottom: 0; width: var(--kkw); margin: 0; z-index: 1; }
.cta--kk .kk__img { filter: drop-shadow(0 -6px 28px rgb(0 0 0 / 28%)); }
.cta--kk .kk__bubble { right: 86%; top: 12%; }
@media (max-width: 760px) {
  .cta--kk { --kkw: 190px; margin-top: 16px; padding-right: clamp(24px, 6vw, 40px); padding-bottom: 0; }
  .cta--kk .kk { position: relative; right: auto; display: block; margin: 8px -6px 0 auto; }
  .cta--kk .kk__bubble { right: 74%; top: 10%; max-width: 150px; }
}
/* Bubble sits left of KeyKey's pointing hand, wide and low so the finger points at it */
.cta--kk .kk__bubble { right: 90%; top: 13%; max-width: min(420px, 46vw); border-radius: 18px 18px 6px 18px; }

/* Error pages (400 / 404 / 500) */
.err { padding: clamp(110px, 14vw, 170px) 0 clamp(60px, 8vw, 110px); background: radial-gradient(circle at 85% 20%, rgb(255 107 26 / 16%), transparent 40%), linear-gradient(180deg, var(--navy-wash, #eef3fb), #fff 70%); overflow-x: clip; }
.err__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.err__code { display: inline-block; font-size: clamp(64px, 10vw, 128px); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--navy); background: linear-gradient(90deg, var(--navy), var(--orange)); -webkit-background-clip: text; background-clip: text; opacity: .9; }
.err h1 { margin: 14px 0 0; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.err__lead { margin: 16px 0 0; max-width: 560px; font-size: 17px; color: var(--ink-2, #3a4660); }
.err__tips { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 560px; }
.err__tips li { position: relative; padding: 12px 16px 12px 40px; border-radius: 14px; font-size: 15px; color: var(--ink-2, #3a4660); background: linear-gradient(135deg, rgb(255 255 255 / 85%), rgb(238 243 251 / 60%)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(29 81 147 / 10%); }
.err__tips li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgb(255 107 26 / 18%); }
.err__tips a { color: var(--navy); font-weight: 700; border-bottom: 1px solid currentColor; }
.err .hero__actions { margin-top: 28px; }
.err__links { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 600px; }
.err__links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; background: linear-gradient(180deg, #fff, rgb(255 255 255 / 70%)); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(29 81 147 / 12%), 0 10px 20px -18px rgb(14 27 51 / 50%); transition: transform .2s, box-shadow .2s; }
.err__links a .ic { width: 16px; height: 16px; color: var(--orange); transition: transform .2s; }
.err__links a:hover { --bl: var(--orange); transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(29 81 147 / 22%), 0 14px 26px -18px rgb(255 107 26 / 70%); }
.err__links a:hover .ic { transform: translateX(3px); }
:where(.err__links a) { position: relative; --bl: transparent; }
.err__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--bl, transparent); box-shadow: 0 0 10px var(--bl, transparent); pointer-events: none; }
.err__art .robot { width: min(420px, 100%); }
@media (max-width: 860px) { .err__grid { grid-template-columns: 1fr; } .err__art { order: -1; width: 200px; margin: -30px auto 0; } .err { padding-top: 96px; } .err__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* One colour at a time: no navy↔orange blends. Glows are a lighter tint of the current theme colour. */
.cta::after { background: radial-gradient(circle, rgb(255 255 255 / 16%), transparent 65%); }
.cta--kk, :root[data-theme="orange"] .cta--kk { background: radial-gradient(circle at 88% 8%, rgb(255 255 255 / 16%), transparent 40%), linear-gradient(120deg, var(--stage-2) 0%, var(--stage) 60%); }
.note::before { background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--stage) 14%, transparent), transparent 45%), radial-gradient(circle at 96% 100%, color-mix(in srgb, var(--stage) 10%, transparent), transparent 42%); }
.note--warn::before { background: radial-gradient(circle at 96% 100%, rgb(255 107 26 / 16%), transparent 45%); }
.err { background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--stage) 12%, transparent), transparent 42%), linear-gradient(180deg, var(--navy-wash), #fff 70%); }
.err__code { color: var(--stage); -webkit-text-stroke: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; opacity: 1; }
.err__code { color: var(--navy); } :root[data-theme="orange"] .err__code { color: #ff6b1a; }

/* Tablet mock-ups now show real dashboard screens (16:10), swapped with the colour mode */
.tablet__screen--real { display: block; min-height: 0; aspect-ratio: 16 / 10; background: #0b0f17; position: relative; }
.tablet__screen--real .tview { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; animation: none; }
.tablet__screen--real .tview.on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.tshot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tshot--orange { display: none; }
:root[data-theme="orange"] .tshot--navy { display: none; }
:root[data-theme="orange"] .tshot--orange { display: block; }
.desk .tablet { max-width: 980px; }
@media (max-width: 600px) { .tablet { padding: 8px; border-radius: 18px; } .tablet__screen--real { border-radius: 11px; } }
@media (max-width: 600px) {
  .desk { padding: 16px 12px 18px; }
  .desk .pen { display: none; }
  .tabs-demo { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-top: 16px; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
  .tabs-demo::-webkit-scrollbar { display: none; }
  .tabs-demo button { flex: none; padding: 8px 13px; font-size: 13px; scroll-snap-align: start; }
}
/* KeyKey bubble: white on a light page needs an edge — hairline + soft shadow */
.kk__bubble, .cta .kk__bubble { border: 1px solid rgb(14 27 51 / 10%); box-shadow: 0 1px 2px rgb(14 27 51 / 8%), 0 12px 32px -14px rgb(14 27 51 / 32%); }
@media (min-width: 761px) and (max-width: 1180px) { .cta--kk .kk__bubble { top: auto; bottom: 83%; } }
@media (max-width: 760px) { .cta--kk .kk__bubble { right: 72%; top: 12%; max-width: min(220px, calc(100vw - 196px)); font-size: 12.5px; } }
