/* Ensemble site styles. Institutional layout; palette from the Ensemble mark. */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); }

:root {
  --navy: #141A33;
  --navy-deep: #0D1226;
  --navy-2: #1D2547;
  --navy-line: #2C3663;
  --bg: #FFFFFF;
  --surface: #F4F6FA;
  --surface-2: #EAEEF5;
  --ink: #141A33;
  --ink-2: #4A5270;
  --ink-3: #69718F;
  --rule: #DCE1EB;
  --rule-strong: #C5CCDB;
  --mint: #7DD8B5;
  --mint-ink: #12795A;
  --mint-wash: #E3F5EE;
  --coral: #F0857A;
  --coral-ink: #B4473B;
  --coral-wash: #FCE9E6;
  --on-navy: #E9ECF5;
  --on-navy-2: #A9B1CF;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 12px;
  --r-md: 8px;
  --r-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 26, 51, .06), 0 8px 24px rgba(20, 26, 51, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; }
[hidden] { display: none !important; }
::marker { font-variant-numeric: normal; }
:focus-visible { outline: 2px solid var(--mint-ink); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--bg); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }


/* ---------- Type scale ---------- */
.h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lede { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.kicker { font-size: 14px; font-weight: 600; color: var(--mint-ink); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 8px; }
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.alt { background: var(--surface); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { max-width: 46em; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }
.text-link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #222B55; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: #95E2C5; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--navy-deep); color: var(--on-navy-2); font-size: 13px; }
.utility .wrap { display: flex; align-items: center; gap: 24px; height: 36px; }
.utility .note { display: inline-flex; align-items: center; gap: 8px; }
.utility .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(125, 216, 181, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125, 216, 181, .55); } 70% { box-shadow: 0 0 0 8px rgba(125, 216, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 216, 181, 0); } }
.utility nav { margin-left: auto; display: flex; gap: 20px; }
.utility a { color: var(--on-navy-2); text-decoration: none; }
.utility a:hover { color: #fff; }
@media (max-width: 700px) { .utility nav { display: none; } }

.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); transition: box-shadow .25s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(20, 26, 51, .07); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); flex: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.menu { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; height: 100%; }
.menu > li { position: relative; display: flex; }
.menu-trigger, .menu > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; position: relative; }
.menu-trigger::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .6; }
.menu > li > :first-child::before { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu > li:hover > :first-child::before, .menu > li.open > :first-child::before { transform: scaleX(1); }
.menu > li.open .menu-trigger::after { transform: translateY(1px) rotate(-135deg); }
.mega { position: absolute; top: 100%; left: -12px; min-width: 560px; background: #fff; border: 1px solid var(--rule); border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: 0 18px 40px rgba(20, 26, 51, .12); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.menu > li:hover > .mega, .menu > li.open > .mega, .menu > li:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: block; padding: 10px 12px; border-radius: var(--r-md); text-decoration: none; transition: background-color .15s; }
.mega a:hover { background: var(--surface); }
.mega b { display: block; font-size: 15px; font-weight: 600; }
.mega span { display: block; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.mega .mega-foot { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; content: ""; }
.burger span { top: 21px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after { top: 6px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 1020px) {
  .menu, .header-cta .btn-outline { display: none; }
  .burger { display: inline-block; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .drawer { display: block; position: fixed; inset: 105px 0 0 0; background: #fff; z-index: 39; overflow-y: auto; padding: 8px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
  .drawer.open { opacity: 1; visibility: visible; transform: none; }
  .drawer details { border-bottom: 1px solid var(--rule); }
  .drawer summary { list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; display: flex; justify-content: space-between; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary::after { content: "+"; font-weight: 400; color: var(--ink-3); }
  .drawer details[open] summary::after { content: "\2212"; }
  .drawer details a { display: block; padding: 10px 0 10px 4px; text-decoration: none; color: var(--ink-2); }
  .drawer > a { display: block; padding: 18px 0; font-weight: 600; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--rule); }
  .drawer .btn { width: 100%; margin-top: 24px; }
}
@media (max-width: 480px) { .header-cta .btn-primary { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 48px 48px; opacity: .35; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 75% 40%, #000 20%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero .lede { margin-top: 22px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); list-style: none; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--mint-ink); flex: none; }
@media (max-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Index monitor */
.monitor { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); box-shadow: 0 30px 60px -20px rgba(13, 18, 38, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset; overflow: hidden; font-size: 14px; }
.mon-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--navy-line); background: var(--navy-deep); }
.mon-bar .title { font-weight: 600; font-size: 13px; color: var(--on-navy); }
.mon-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-navy-2); }
.mon-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mon-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--navy-line); }
.mon-tab { flex: none; background: none; border: 0; color: var(--on-navy-2); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 10px 11px; cursor: pointer; position: relative; border-radius: 6px 6px 0 0; transition: color .2s, background-color .2s; }
.mon-tab:hover { color: #fff; }
.mon-tab[aria-selected="true"] { color: #fff; background: var(--navy-2); }
.mon-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--mint); border-radius: 2px; }
.mon-body { padding: 16px 18px 6px; background: var(--navy-2); }
.mon-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.mon-head .name { font-size: 15px; font-weight: 600; color: #fff; }
.mon-head .tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(125, 216, 181, .14); color: var(--mint); }
.mon-head .level { margin-left: auto; font-size: 26px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.mon-head .chg { font-size: 14px; font-weight: 600; }
.up { color: var(--mint); }
.down { color: var(--coral); }
.mon-chart { margin-top: 8px; }
.mon-chart svg { width: 100%; height: auto; }
.mon-table { width: 100%; border-collapse: collapse; background: var(--navy); }
.mon-table th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--on-navy-2); padding: 9px 12px; border-bottom: 1px solid var(--navy-line); }
.mon-table td { padding: 9px 12px; border-bottom: 1px solid rgba(44, 54, 99, .6); font-size: 13px; color: var(--on-navy); white-space: nowrap; transition: background-color .6s; }
.mon-table td:first-child { white-space: normal; color: #fff; }
.mon-table th:not(:first-child), .mon-table td:not(:first-child) { text-align: right; }
.mon-table tr:last-child td { border-bottom: 0; }
.mon-table .vn { color: var(--on-navy-2); font-size: 12px; }
.mon-table td.flash-up { background: rgba(125, 216, 181, .16); transition: none; }
.mon-table td.flash-down { background: rgba(240, 133, 122, .16); transition: none; }
.mon-table tbody tr { animation: rowin .45s var(--ease) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mon-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 16px 12px; font-size: 12px; color: var(--on-navy-2); border-top: 1px solid var(--navy-line); background: var(--navy-deep); }
.mon-foot .sim { margin-left: auto; }
@media (max-width: 560px) { .mon-table .hide-sm { display: none; } .mon-head .level { margin-left: 0; width: 100%; } }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: var(--on-navy); padding: clamp(40px, 5vw, 56px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 4px 28px; border-left: 1px solid var(--navy-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .v { font-size: clamp(32px, 3.6vw, 46px); font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1.1; }
.stat .l { margin-top: 8px; font-size: 14px; color: var(--on-navy-2); line-height: 1.45; }
.stats .src { margin-top: 28px; font-size: 12.5px; color: var(--on-navy-2); }
.stats .src a { color: var(--on-navy); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; } .stat:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } .stat { border-left: 0; padding-left: 0; } }

/* ---------- Why (explainer with bars) ---------- */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-grid .body p + p { margin-top: 16px; }
.why-grid .body p { color: var(--ink-2); font-size: 17px; }
.bars-card { background: var(--navy); border-radius: var(--r-lg); padding: 22px 22px 18px; }
.bars-card svg { width: 100%; height: auto; }
.bars-card .cap { margin-top: 14px; font-size: 13.5px; color: var(--on-navy-2); line-height: 1.5; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 2px; vertical-align: -1px; }
.key-yes { background: var(--mint); }
.key-no { background: var(--coral); }
.key-line { background: #fff; height: 3px; width: 14px; vertical-align: 3px; border-radius: 2px; }
#ensemble-viz .yes { fill: var(--mint); }
#ensemble-viz .no { fill: var(--coral); }
@media (max-width: 900px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Solutions cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--navy); margin-bottom: 20px; }
.card .icon svg { width: 22px; height: 22px; }
.card .who { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 6px; }
.card p.desc { margin-top: 12px; color: var(--ink-2); }
.card ul { margin: 18px 0 22px; padding: 0; list-style: none; font-size: 15px; }
.card li { padding: 8px 0 8px 24px; border-top: 1px solid var(--rule); position: relative; }
.card li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--mint-ink); border-bottom: 2px solid var(--mint-ink); transform: rotate(-45deg); }
.card .text-link { margin-top: auto; }
@media (max-width: 960px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Platform tabs ---------- */
.ptabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ptab-list { display: flex; flex-direction: column; gap: 8px; }
.ptab { text-align: left; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px 18px 20px; cursor: pointer; font: inherit; color: var(--ink); position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ptab:hover { border-color: var(--rule-strong); }
.ptab .n { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ptab h3 { font-size: 18px; margin-top: 2px; }
.ptab p { margin-top: 6px; color: var(--ink-2); font-size: 15px; display: none; }
.ptab[aria-selected="true"] { border-color: var(--navy); box-shadow: var(--shadow); }
.ptab[aria-selected="true"] p { display: block; animation: fadein .35s var(--ease); }
.ptab .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--mint-ink); transform: scaleX(0); transform-origin: left; }
.ptab[aria-selected="true"] .prog.run { animation: prog var(--dur, 7s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ppanels { position: relative; }
.ppanel { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); min-height: 420px; }
.ppanel[hidden] { display: none; }
.ppanel.show { animation: panelin .45s var(--ease); }
@keyframes panelin { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.ppanel .cap { font-size: 12.5px; color: var(--on-navy-2); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ppanel pre { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--on-navy); }
@media (max-width: 600px) { .ppanel pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; } }
.ppanel .k { color: var(--mint); }
.ppanel .c { color: #7E88B3; }
.ppanel .s { color: #F4C08B; }
.report { width: 100%; border-collapse: collapse; font-size: 14px; }
.report td { padding: 11px 0; border-bottom: 1px solid var(--navy-line); }
.report td:last-child { text-align: right; color: var(--on-navy-2); }
.report tr:last-child td { border-bottom: 0; }
.ok { color: var(--mint); font-weight: 600; }
.approval { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-md); padding: 18px; }
.approval .t { font-weight: 600; color: #fff; font-size: 16px; }
.approval .meta { margin-top: 4px; font-size: 13px; color: var(--on-navy-2); }
.approval table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; }
.approval th { text-align: left; color: var(--on-navy-2); font-weight: 600; font-size: 12px; padding: 6px 0; border-bottom: 1px solid var(--navy-line); }
.approval td { padding: 8px 0; border-bottom: 1px solid rgba(44, 54, 99, .6); }
.approval th:not(:first-child), .approval td:not(:first-child) { text-align: right; }
.approval .actions { display: flex; gap: 10px; margin-top: 16px; }
.approval .actions span { flex: 1; text-align: center; padding: 10px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.approval .approve { background: var(--mint); color: var(--navy); }
.approval .reject { border: 1px solid var(--navy-line); color: var(--on-navy); }
.signers { margin-top: 14px; display: grid; gap: 8px; font-size: 13px; color: var(--on-navy-2); }
.signers b { color: #fff; font-weight: 600; }
.log { font-family: var(--mono); font-size: 12.8px; line-height: 1.85; }
.log div { opacity: 0; transform: translateY(3px); }
.ppanel.show .log div { animation: logline .35s var(--ease) forwards; }
@keyframes logline { to { opacity: 1; transform: none; } }
.log .t { color: #7E88B3; }
@media (max-width: 960px) { .ptabs { grid-template-columns: minmax(0, 1fr); } .ppanel { min-height: 0; } }

/* ---------- Spec table ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: #fff; }
.spec { width: 100%; border-collapse: collapse; min-width: 940px; font-size: 15px; }
.spec .lvl { text-align: right; white-space: nowrap; }
.spec td.lvl b { color: var(--ink); font-family: var(--font); font-weight: 700; font-variant-numeric: tabular-nums; }
.spec td.lvl i { display: block; font-style: normal; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.spec th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-3); background: var(--surface); padding: 14px 18px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.spec td { padding: 18px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.spec tr:last-child td { border-bottom: 0; }
.spec tbody tr { transition: background-color .15s; }
.spec tbody tr:hover { background: #FAFBFD; }
.spec td.idx { color: var(--ink); font-weight: 600; white-space: nowrap; }
.spec .idx-cell { display: flex; align-items: center; gap: 12px; }
.glyph { width: 44px; height: 28px; flex: none; }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-theme { background: var(--surface-2); color: var(--ink); }
.pill-hedge { background: var(--mint-wash); color: var(--mint-ink); }
.table-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); max-width: 60em; }
@media (max-width: 960px) {
  .table-wrap { overflow: visible; border: 0; border-radius: 0; background: none; }
  .spec { min-width: 0; }
  .spec thead { display: none; }
  .spec, .spec tbody, .spec tr, .spec td { display: block; }
  .spec tbody { display: grid; gap: 12px; }
  .spec tbody tr { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px 12px; }
  .spec tbody tr:hover { background: #fff; }
  .spec td { padding: 7px 0; border: 0; }
  .spec td.idx { padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px solid var(--rule); white-space: normal; }
  .spec td[data-label] { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .spec td[data-label]::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--ink-3); }
  .spec td[data-label] .pill { justify-self: start; }
  .spec td.lvl { text-align: left; }
  .spec td.lvl i { display: inline; margin-left: 8px; }
}
@media (min-width: 620px) and (max-width: 960px) { .spec:not(.compare) tbody { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- Architecture ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.2fr) 110px minmax(0, 1fr); align-items: center; }
.node { border-radius: var(--r-lg); padding: 20px; background: #fff; border: 1px solid var(--rule); }
.node h3 { font-size: 16px; }
.node p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.node.cloud { border-style: dashed; border-color: var(--rule-strong); background: transparent; }
.node.home { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.node.home h3 { color: #fff; }
.node.home .chips { margin-top: 12px; display: grid; gap: 8px; }
.node.home .chip { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-md); padding: 10px 12px; }
.node.home .chip b { display: block; color: #fff; font-size: 14px; }
.node.home .chip span { color: var(--on-navy-2); font-size: 13px; }
.venues { display: grid; gap: 10px; }
.wire { position: relative; height: 2px; margin: 0 8px; }
.wire::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 8px, transparent 8px 14px); background-size: 14px 2px; animation: flow 1s linear infinite; }
.wire.dashed::before { background: repeating-linear-gradient(90deg, var(--ink-3) 0 4px, transparent 4px 9px); background-size: 9px 2px; animation-duration: 1.6s; }
.wire::after { content: ""; position: absolute; right: -3px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--navy); border-right: 0; }
.wire.dashed::after { border-left-color: var(--ink-3); }
.wire span { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
@keyframes flow { to { background-position: 14px 0; } }
.controls { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.controls div { padding: 18px 20px 0 0; }
.controls b { display: block; font-size: 15px; }
.controls span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 1000px) {
  .arch { grid-template-columns: minmax(0, 1fr); }
  .wire { height: 56px; width: 2px; margin: 6px auto; }
  .wire::before { background: repeating-linear-gradient(180deg, var(--navy) 0 8px, transparent 8px 14px); background-size: 2px 14px; animation-name: flowv; }
  .wire.dashed::before { background: repeating-linear-gradient(180deg, var(--ink-3) 0 4px, transparent 4px 9px); background-size: 2px 9px; }
  .wire::after { right: auto; left: -5px; top: auto; bottom: -3px; border: 6px solid transparent; border-top: 8px solid var(--navy); border-bottom: 0; }
  .wire.dashed::after { border-top-color: var(--ink-3); border-left-color: transparent; }
  .wire span { left: 16px; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); width: 9em; text-align: left; }
  .controls { grid-template-columns: 1fr 1fr; }
}
@keyframes flowv { to { background-position: 0 14px; } }
@media (max-width: 560px) { .controls { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Editions matrix ---------- */
.matrix-wrap { position: relative; overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-lg); background: #fff; }
.matrix { width: 100%; border-collapse: collapse; min-width: 760px; }
.matrix th, .matrix td { padding: 14px 20px; border-bottom: 1px solid var(--rule); text-align: center; font-size: 15px; }
.matrix th:first-child, .matrix td:first-child { text-align: left; color: var(--ink-2); }
.matrix thead th { vertical-align: bottom; padding-top: 24px; padding-bottom: 20px; }
.matrix thead th .plan-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.matrix thead th .plan-for { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.matrix thead th .price { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; color: var(--ink); }
.matrix thead th .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.matrix thead th .btn { margin-top: 14px; }
.matrix .featured { background: #F7FBF9; }
.matrix thead .featured { box-shadow: inset 0 3px 0 var(--mint-ink); }
.matrix .group td { background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: left; padding: 10px 20px; }
.matrix tr:last-child td { border-bottom: 0; }
.yes-i { display: inline-block; width: 14px; height: 8px; border-left: 2.5px solid var(--mint-ink); border-bottom: 2.5px solid var(--mint-ink); transform: rotate(-45deg) translate(1px, -2px); }
.no-i { display: inline-block; width: 10px; height: 2px; background: var(--rule-strong); vertical-align: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pricing-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.plans { display: none; }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 22px 14px; display: grid; justify-items: start; }
.plan.featured { box-shadow: inset 0 3px 0 var(--mint-ink); }
.plan .plan-name { font-size: 19px; font-weight: 700; }
.plan .plan-for { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.plan .price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 10px 0 14px; line-height: 1.1; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan-feats { list-style: none; margin: 18px 0 0; padding: 0; width: 100%; font-size: 15px; }
.plan-feats li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.plan-feats li.grp { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); border-top: 0; padding: 14px 0 6px; }
.plan-feats li.grp:first-child { padding-top: 0; }
.plan-feats li.off > span:last-child { color: var(--ink-3); }
.plan-feats .yes-i { justify-self: center; }
.plan-feats .no-i { justify-self: center; vertical-align: 0; }
@media (max-width: 900px) { .matrix-wrap { display: none; } .plans { display: grid; gap: 16px; } }
@media (min-width: 620px) and (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .plan.featured { grid-column: 1 / -1; } }

/* ---------- Access form ---------- */
.access { background: var(--navy); color: var(--on-navy); }
.access .h2 { color: #fff; }
.access .kicker { color: var(--mint); }
.access-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.access .lede { color: var(--on-navy-2); margin-top: 14px; }
.steps-mini { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--navy-line); }
.steps-mini li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--navy-line); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--mint); }
.steps-mini b { color: #fff; font-weight: 600; display: block; }
.steps-mini span { font-size: 14.5px; color: var(--on-navy-2); }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label, .field legend { font-weight: 600; font-size: 14px; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 13px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input[type=email], input[type=text], select { width: 100%; min-height: 46px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input::placeholder { color: #9AA1B8; }
input:focus, select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 26, 51, .12); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg label { position: relative; }
.seg label + label { border-left: 1px solid var(--rule-strong); }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--mint-ink); outline-offset: -4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-msg { font-size: 14px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--coral-ink); }
.form .fine { font-size: 12.5px; color: var(--ink-3); }
.done h3 { font-size: 22px; }
.done p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 900px) { .access-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 359px) { .seg { grid-template-columns: minmax(0, 1fr); } .seg label + label { border-left: 0; border-top: 1px solid var(--rule-strong); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 0 20px; color: var(--ink-2); max-width: 46em; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: var(--on-navy-2); padding: 56px 0 36px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer .brand { color: #fff; }
.footer .about { margin-top: 14px; max-width: 26em; line-height: 1.55; }
.footer .foot-h { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; line-height: 1.6; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-navy-2); text-decoration: none; }
.footer a:hover { color: #fff; }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--navy-line); }
.disclaimer { font-size: 12.5px; line-height: 1.65; max-width: 72em; }
.copy { margin-top: 14px; font-size: 12.5px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { transform: none; }

/* ---------- Document pages ---------- */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0; }
.page-hero .lede { margin-top: 14px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.doc-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc b { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.toc a { display: block; padding: 6px 0 6px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--rule); transition: border-color .2s, color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--navy); }
.prose { max-width: 720px; }
.prose h2 { font-size: 26px; margin-top: 48px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { color: var(--ink); }
.prose .formula { margin: 18px 0; padding: 16px 18px; background: var(--surface); border-radius: var(--r-md); font-family: var(--mono); font-size: 14.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.prose .formula span { display: block; }
.prose .formula span + span { margin-top: 8px; }
@media (max-width: 560px) { .prose .formula { font-size: 13px; padding: 14px; } }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.prose th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule-strong); }
.prose td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); vertical-align: top; }
.prose .updated { font-size: 14px; color: var(--ink-3); }
@media (max-width: 860px) { .doc-grid { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.notfound { min-height: 56vh; display: flex; align-items: center; }
.notfound p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.notfound .btn { margin-top: 26px; }

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

.utility .short { display: none; }
@media (max-width: 560px) { .utility .long { display: none; } .utility .short { display: inline; } }
@media (max-width: 1020px) { .drawer > a.btn { display: flex; justify-content: center; padding: 0 20px; border-bottom: 0; color: #fff; font-size: 16px; } }


/* ---------- Comparison table ---------- */
.spec.compare td.idx { width: 22%; }
.spec.compare td:nth-child(3) { color: var(--ink); }
@media (max-width: 960px) { .spec.compare td.idx { width: auto; } .spec.compare td[data-label] { grid-template-columns: 92px minmax(0, 1fr); } }

/* ---------- Worked example ---------- */
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ex-steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: ex; display: grid; gap: 4px; }
.ex-steps li { counter-increment: ex; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ex-steps li::before { content: counter(ex); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.ex-steps b { font-size: 16px; }
.ex-steps span { color: var(--ink-2); font-size: 15px; }
.ex-card { background: var(--navy); color: var(--on-navy); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 60px -24px rgba(13, 18, 38, .45); }
.ex-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-navy-2); margin-bottom: 8px; }
.ex-head span:first-child { color: #fff; font-weight: 600; font-size: 15px; }
.ex-legs, .ex-scen { list-style: none; margin: 0; padding: 0; }
.ex-legs li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
.ex-legs b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
.ex-legs span { display: block; font-size: 13px; color: var(--on-navy-2); margin-top: 2px; }
.ex-legs .num { text-align: right; flex: none; }
.ex-total { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin: 14px 0 0; font-size: 14px; }
.ex-total dt { color: var(--on-navy-2); }
.ex-total dd { margin: 0; text-align: right; font-weight: 600; color: #fff; }
.ex-total .sum { border-top: 1px solid var(--navy-line); padding-top: 8px; margin-top: 2px; }
.ex-sub { margin-top: 20px; font-size: 13px; font-weight: 600; color: var(--mint); }
.ex-scen li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--navy-line); font-size: 14px; }
.ex-scen li:last-child { border-bottom: 0; }
.ex-scen b { color: #fff; font-weight: 600; text-align: right; }
.ex-scen em { font-style: normal; font-weight: 600; text-align: right; min-width: 6.5em; }
.ex-cap { margin-top: 14px; font-size: 13px; color: var(--on-navy-2); line-height: 1.5; }
@media (max-width: 960px) { .example-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .ex-scen li { grid-template-columns: minmax(0, 1fr) auto; } .ex-scen span { grid-column: 1 / -1; } .ex-scen b { text-align: left; } }

/* ---------- Venues ---------- */
.venue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.venue { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px; }
.venue dl { margin: 16px 0 0; display: grid; }
.venue dt { font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 12px; border-top: 1px solid var(--rule); margin-top: 12px; }
.venue dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.venue dd { margin: 3px 0 0; font-size: 15px; color: var(--ink); }
.venue-stack { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.venue-stack .h3 { color: #fff; }
.venue-stack ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.venue-stack b { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.venue-stack span { display: block; font-size: 14px; color: var(--on-navy-2); margin-top: 2px; }
@media (max-width: 1000px) { .venue-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .venue-stack { grid-column: 1 / -1; } .venue-stack ul { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 640px) { .venue-grid, .venue-stack ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Regulatory posture ---------- */
.controls.posture { margin-top: 0; }
.controls.posture + .table-note { margin-top: 28px; }

/* ---------- 404 links ---------- */
.nf-links { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 760px; }
.nf-links a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; transition: border-color .2s, background-color .2s; }
.nf-links a:hover { border-color: var(--rule-strong); background: var(--surface); }
.nf-links b { display: block; font-size: 15px; }
.nf-links span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.notfound .nf-links + .btn { margin-top: 24px; }
@media (max-width: 600px) { .nf-links { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .prose table.stack-sm thead { display: none; }
  .prose table.stack-sm, .prose table.stack-sm tbody, .prose table.stack-sm tr, .prose table.stack-sm td { display: block; }
  .prose table.stack-sm tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .prose table.stack-sm td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .prose table.stack-sm td::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
}

/* ===== Demo app (shared with the artifact) ===== */
/* ---------- Views and artifact shell ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy-deep); }
.header { top: env(safe-area-inset-top, 0px); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.h1-doc { font-size: clamp(34px, 4.4vw, 52px); }
.copy-mail { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-mail code { font-family: var(--mono); font-size: .92em; background: var(--surface); padding: 2px 6px; border-radius: 4px; color: var(--ink); user-select: all; }
.copy-btn { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 3px 10px; cursor: pointer; color: var(--ink); }
.footer .copy-mail code { background: var(--navy-2); color: var(--on-navy); }
.footer .copy-btn { color: var(--on-navy); border-color: var(--navy-line); }

/* ---------- Demo app ---------- */
.app { background: var(--surface); min-height: 70vh; }
.app-top { background: #fff; border-bottom: 1px solid var(--rule); }
.app-top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.app-id { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-name { font-weight: 700; font-size: 17px; margin: 0 4px 0 0; letter-spacing: -0.01em; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip-paper { background: var(--mint-wash); color: var(--mint-ink); }
.chip-sim { background: var(--surface-2); color: var(--ink-2); }
.app-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-state { font-size: 13px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.save-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rule-strong); }
.save-state.cloud::before { background: var(--mint-ink); }
.app-body { padding-block: 22px 48px; display: grid; gap: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.kpi { padding: 16px 20px; display: grid; gap: 2px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi .k { font-size: 13px; color: var(--ink-3); }
.kpi .v { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v.up { color: var(--mint-ink); }
.kpi .v.down { color: var(--coral-ink); }
@media (max-width: 760px) { .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--rule); } }
.app-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule-strong); overflow-x: auto; scrollbar-width: none; }
.app-tabs::-webkit-scrollbar { display: none; }
.app-tab { flex: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 10px 14px 12px; cursor: pointer; position: relative; }
.app-tab:hover { color: var(--ink); }
.app-tab[aria-selected="true"] { color: var(--ink); }
.app-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--navy); }
.app-tab .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--surface-2); font-size: 12px; text-align: center; }
.app-panel.enter { animation: panelin .35s var(--ease); }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px; min-width: 0; }
.panel h2, .panel h3 { font-size: 17px; letter-spacing: -0.01em; }
.panel-plain { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); }
.empty-mini { font-size: 14px; color: var(--ink-3); padding: 6px 0; }
.app-note { font-size: 13px; color: var(--ink-3); max-width: 60em; }

/* Indexes */
.ix-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.ix-list { display: grid; gap: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.ix-group { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin: 8px 0 4px; }
.ix-group:first-child { margin-top: 0; }
.ix-item { width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid transparent; background: none; font: inherit; color: var(--ink); cursor: pointer; transition: background-color .15s, border-color .15s; }
.ix-item:hover { background: #fff; border-color: var(--rule); }
.ix-item[aria-current="true"] { background: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.ix-item b { font-size: 14.5px; font-weight: 600; }
.ix-item .lv { font-size: 14px; font-weight: 600; text-align: right; }
.ix-item .sub { font-size: 12.5px; color: var(--ink-3); }
.ix-item .ch { font-size: 12.5px; text-align: right; }
.ix-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.ix-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: start; }
@media (max-width: 520px) { .ix-head { grid-template-columns: minmax(0, 1fr); } .ix-level { text-align: left; } }
.ix-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ix-desc { font-size: 14px; color: var(--ink-2); margin-top: 4px; max-width: 46em; }
.ix-level { text-align: right; }
.ix-level #ix-level { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.ix-level .chg { font-size: 14px; font-weight: 600; }
.chg.up, td.up, .up-ink { color: var(--mint-ink); }
.chg.down, td.down, .down-ink { color: var(--coral-ink); }
.ix-chart { margin-top: 12px; }
.ix-chart svg { width: 100%; height: 170px; }
.ix-rules { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.ix-rules span { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--rule); }
.tbl-scroll { overflow-x: auto; position: relative; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 9px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; transition: background-color .6s; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; white-space: nowrap; }
.tbl .ven { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.tbl td.flash-up { background: var(--mint-wash); transition: none; }
.tbl td.flash-down { background: var(--coral-wash); transition: none; }
.tbl-sm td, .tbl-sm th { padding: 7px 8px; font-size: 13px; }
.ven-sm, .side-sm, .t-sm { display: none; }
.tbl .ven-sm { margin-top: 2px; white-space: normal; }
.tbl-rebal td:first-child { min-width: 0; }
@media (max-width: 640px) {
  #ix-legs th:nth-child(2), #ix-legs td:nth-child(2), #ix-legs th:nth-child(6), #ix-legs td:nth-child(6),
  #b-table th:nth-child(3), #b-table td:nth-child(3), #b-table th:nth-child(4), #b-table td:nth-child(4),
  .tbl-rebal .side { display: none; }
  .tbl .ven-sm { display: block; }
  .side-sm { display: inline; }
  .tbl-rebal { table-layout: fixed; }
  .tbl-rebal th:nth-child(3) { width: 66px; }
  .tbl-rebal th:nth-child(4) { width: 46px; }
  .tbl-rebal th:nth-child(5) { width: 62px; }
  .tbl-rebal td:first-child { overflow-wrap: anywhere; }
  .tbl th, .tbl td { padding-inline: 6px; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 0; }
  .tbl th:last-child, .tbl td:last-child { padding-right: 0; }
  .app-meta { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .app-meta .save-state { grid-column: 1 / -1; }
  .app-meta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .app-tabs { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0; }
  .app-tab { padding: 10px 6px 12px; font-size: 14px; }
  .app-tab[aria-selected="true"]::after { left: 4px; right: 4px; }
  .t-lg { display: none; }
  .t-sm { display: inline; }
}
#pv-table { table-layout: fixed; }
#pv-table th, #pv-table td { padding-inline: 5px; }
#pv-table th:first-child, #pv-table td:first-child { padding-left: 0; overflow-wrap: anywhere; }
#pv-table th:last-child, #pv-table td:last-child { padding-right: 0; }
#pv-table th:nth-child(2) { width: 68px; }
#pv-table th:nth-child(3) { width: 46px; }
#pv-table th:nth-child(4) { width: 64px; }
.empty-cell { color: var(--ink-3); text-align: center; padding: 28px 10px !important; }

/* Ticket */
.ticket { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 14px; }
.ticket-form { display: grid; gap: 14px; }
.money { display: flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); background: #fff; }
.money span { padding-left: 12px; color: var(--ink-3); font-weight: 600; }
.money input { border: 0 !important; box-shadow: none !important; font-weight: 600; font-size: 17px !important; }
.money:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 26, 51, .12); }
.quick { display: flex; gap: 6px; margin-top: 4px; }
.quick button { flex: 1; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 0; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); cursor: pointer; color: var(--ink-2); }
.quick button:hover { border-color: var(--rule-strong); color: var(--ink); }
.seg.seg-2 { grid-template-columns: 1fr 1fr; }
.t-msg { font-size: 13.5px; }
.t-msg:empty { display: none; }
.t-msg.err { color: var(--coral-ink); }
.t-msg.ok { color: var(--mint-ink); }
.preview { border-top: 1px solid var(--rule); padding-top: 14px; display: grid; gap: 10px; animation: panelin .3s var(--ease); }
.preview-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.preview-head span { color: var(--ink-3); font-size: 13px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 0; margin: 0; font-size: 14px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; padding-left: 12px; text-align: right; font-weight: 600; white-space: nowrap; }
.totals .sum { border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 2px; }
.approve-row { display: flex; gap: 8px; }
.approve-row .btn { flex: 1 1 auto; white-space: nowrap; padding-inline: 16px; }
@media (max-width: 1100px) { .ix-main { grid-template-columns: minmax(0, 1fr); } .ticket { position: static; } }
@media (max-width: 860px) {
  .ix-layout { grid-template-columns: minmax(0, 1fr); }
  .ix-list { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .ix-list .ix-group, .ix-list .empty-mini { display: none; }
  #ix-ref, #ix-mine { display: contents; }
  .ix-item { min-width: 0; background: #fff; border-color: var(--rule); }
}

/* Portfolio */
.pos { display: grid; gap: 12px; }
.pos-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 20px; display: grid; gap: 12px; animation: panelin .35s var(--ease); }
.pos-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: start; }
.pos-name { font-weight: 700; font-size: 17px; }
.pos-sub { font-size: 13px; color: var(--ink-3); }
.pos-stats { display: grid; grid-template-columns: repeat(5, minmax(0, auto)); gap: 4px 26px; }
.pos-stats div { display: grid; }
.pos-stats .k { font-size: 12px; color: var(--ink-3); }
.pos-stats .v { font-weight: 600; font-size: 15px; white-space: nowrap; }
.drift { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.drift-bar { flex: 1; max-width: 220px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.drift-bar i { display: block; height: 100%; background: var(--mint-ink); border-radius: 999px; transition: width .6s var(--ease); }
.drift-bar i.warn { background: var(--coral); }
.pos-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; padding: 10px 12px; background: var(--coral-wash); border-radius: var(--r-md); }
.empty-state { background: #fff; border: 1px dashed var(--rule-strong); border-radius: var(--r-lg); padding: 36px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty-state p { color: var(--ink-2); max-width: 32em; }
.rebal { display: grid; gap: 12px; animation: panelin .35s var(--ease); border-color: var(--navy); }
@media (max-width: 760px) { .pos-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Builder */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.b-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tbl input[type=checkbox] { width: 18px; height: 18px; accent-color: #141A33; cursor: pointer; }
.tbl tr.sel td { background: #F7FBF9; }
.b-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 14px; }
.b-weights { display: grid; gap: 6px; font-size: 13.5px; }
.b-weights .w { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; align-items: center; }
.b-weights .w span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-weights .w b { text-align: right; font-weight: 600; }
.b-weights .bar { grid-column: 1 / -1; height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.b-weights .bar i { display: block; height: 100%; background: var(--navy); transition: width .4s var(--ease); }
@media (max-width: 960px) { .builder { grid-template-columns: minmax(0, 1fr); } .b-side { position: static; } }

/* Activity */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.activity li:last-child { border-bottom: 0; }
.activity time { color: var(--ink-3); font-size: 13px; }
.activity .empty-mini { display: block; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-md); font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(13, 18, 38, .3); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 95; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ----- Guided tour ----- */
.tour-spot { position: fixed; z-index: 90; border-radius: 12px; box-shadow: 0 0 0 200vmax rgba(13, 18, 38, .52); outline: 2px solid var(--mint); pointer-events: none; }
.tour-spot.center { outline: 0; }
.tour-card { position: fixed; z-index: 91; width: min(360px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(13, 18, 38, .35); padding: 18px 20px 20px; transition: left .35s var(--ease), top .35s var(--ease); animation: tour-in .3s var(--ease); }
.tour-card.centered { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); padding: 24px 26px 26px; }
.tour-card.sheet { left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 16px 16px 0 0; max-height: 46vh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; min-height: 30px; }
.tour-step { font-size: 13px; font-weight: 600; color: var(--mint-ink); }
.tour-x { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 13px; color: var(--ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tour-x:hover { color: var(--ink); }
.tour-card h2 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; outline: none; }
.tour-card.centered h2 { font-size: 22px; }
.tour-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tour-bar { height: 3px; background: var(--rule); border-radius: 2px; margin: 16px 0 14px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; background: var(--mint-ink); transition: width .35s var(--ease); }
.tour-gap { height: 18px; }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tour-hint { font-size: 13px; color: var(--ink-3); }
.touring .toast { top: calc(84px + env(safe-area-inset-top, 0px)); bottom: auto; transform: translate(-50%, -12px); }
.touring .toast.show { transform: translate(-50%, 0); }
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card, .tour-bar i { transition: none; animation: none; } }

/* Access requests: stacked rows on small screens */
@media (max-width: 760px) {
  #req-table thead { display: none; }
  #req-table, #req-table tbody, #req-table tr, #req-table td { display: block; }
  #req-table tr { padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  #req-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; overflow-wrap: anywhere; }
  #req-table td::before { content: attr(data-label); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
  #req-table td.empty-cell { display: block; }
  #req-table td.empty-cell::before { content: none; }
}

/* Footer contact: plain text with a small inline copy button */
.footer .copy-mail { gap: 8px; flex-wrap: nowrap; }
.footer .copy-mail code { background: none; padding: 0; font-family: inherit; font-size: inherit; color: var(--on-navy-2); user-select: all; }
.footer .copy-btn { padding: 1px 8px; font-size: 12px; line-height: 1.6; }

/* About this demo */
.demo-about { padding: 8px 0 56px; background: var(--surface); }
.demo-about .h3 { margin-bottom: 14px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.about-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 18px 20px; }
.about-card h3 { font-size: 15px; margin-bottom: 6px; }
.about-card p, .about-card li { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.about-card ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.about-try { background: var(--navy); border-color: var(--navy); }
.about-try h3 { color: #fff; }
.about-try li { color: var(--on-navy); }
.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 1100px) { .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .about-try { grid-column: 1 / -1; } }
@media (max-width: 700px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }
