/* Layout: a working lookup is the hero. The audience switch swaps the story and the demo; shared bands stay put. */
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('https://sso.vinficient.com/sdk/fonts/dm-sans-400.woff2') format('woff2'); }
:root {
  --bg: #0D0F14; --panel: #161920; --card: #1C2030; --line: #2A2E3F;
  --fg: #E8EAF0; --muted: #9096AD;
  --dev: #3CC6B4; --dev-ink: #04201C;
  --shop: #A98BF5; --shop-ink: #160B33;
  --mkt: #F0935A; --mkt-ink: #2A1203;
  --good: #4CAF82; --warn: #E6A23C; --bad: #E05C5C;
  --ed: var(--dev); --ed-ink: var(--dev-ink);
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F7F9; --panel: #EEF1F6; --card: #FFFFFF; --line: #D5DBE5;
    --fg: #1C2330; --muted: #556070;
    --dev: #0B7568; --dev-ink: #FFFFFF;
    --shop: #6541C4; --shop-ink: #FFFFFF; --mkt: #A8500F; --mkt-ink: #FFFFFF;
    --good: #1E7F55; --warn: #A66A0E; --bad: #B83A3A;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F7F9; --panel: #EEF1F6; --card: #FFFFFF; --line: #D5DBE5;
  --fg: #1C2330; --muted: #556070;
  --dev: #0B7568; --dev-ink: #FFFFFF;
  --shop: #6541C4; --shop-ink: #FFFFFF; --mkt: #A8500F; --mkt-ink: #FFFFFF;
  --good: #1E7F55; --warn: #A66A0E; --bad: #B83A3A;
  color-scheme: light;
}
body[data-edition="shop"] { --ed: var(--shop); --ed-ink: var(--shop-ink); }
body[data-edition="mkt"] { --ed: var(--mkt); --ed-ink: var(--mkt-ink); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); }
a { color: var(--ed); }
:focus-visible { outline: 2px solid var(--ed); outline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: .85em; }
code { overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; margin: 0 0 14px; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { background: var(--panel); }
section .wrap { padding-block: 56px; }
.intro { max-width: 62ch; color: var(--muted); margin-bottom: 26px; font-size: 1.05rem; }
.kicker { font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ed); font-weight: 600; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sample { display: inline-block; font-size: .72rem; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--muted); color: var(--muted); white-space: nowrap; }

.notice { background: var(--panel); border-bottom: 1px solid var(--warn); font-size: .86rem; }
.notice .wrap { padding-block: 8px; }
.notice strong { color: var(--warn); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-block: 10px; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: -.01em; }
.logo em { font-style: normal; color: var(--ed); }
.toplinks { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .88rem; margin-left: auto; }
.toplinks a { color: var(--muted); text-decoration: none; }
.toplinks a:hover { color: var(--fg); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--panel); flex-wrap: wrap; }
.seg button { font: inherit; font-size: .86rem; border: 0; background: transparent; color: var(--muted); padding: 5px 12px; border-radius: 6px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ed); color: var(--ed-ink); font-weight: 600; }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: .94rem; padding: 9px 18px; border-radius: 8px; border: 1px solid var(--ed); background: var(--ed); color: var(--ed-ink); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ed); }
.btn.sm { font-size: .8rem; padding: 4px 10px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { padding-block: 44px 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.lead { font-size: 1.14rem; max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .94rem; }
.facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.facts li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--ed); }

/* browser mock */
.browser { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.addr { flex: 1; min-width: 0; font-family: var(--mono); font-size: .74rem; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page { padding: 14px 16px 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.page-title { font-weight: 700; font-size: 1.08rem; }
.demo-opts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: .84rem; color: var(--muted); align-items: center; }
.demo-opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.field { display: grid; gap: 4px; font-size: .84rem; min-width: 0; }
.field select, .field input[type="text"], .field input[type="number"] { font: inherit; font-size: .88rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; width: 100%; max-width: 100%; min-width: 0; }
.field.check { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; }
.field.check label { overflow-wrap: anywhere; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; align-items: end; }
.msg { font-size: .86rem; margin: 8px 0 0; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--good); } .msg.note { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; }

/* sandbox demo */
.bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8rem; color: var(--muted); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-bottom: 10px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border-radius: 2px; background: var(--line); display: block; }
.pips i.on { background: var(--ed); }
.sb { display: grid; grid-template-columns: 158px minmax(0, 1fr); gap: 12px; }
.sb-list { display: grid; gap: 6px; align-content: start; }
.sb-list button { font: inherit; font-size: .84rem; text-align: left; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); cursor: pointer; display: grid; gap: 1px; min-width: 0; }
.sb-list button span { font-size: .7rem; color: var(--muted); }
.sb-list button[aria-pressed="true"] { border-color: var(--ed); box-shadow: inset 0 0 0 1px var(--ed); }
.sb-panel { min-width: 0; }
.call { font-family: var(--mono); font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; margin: 0 0 10px; }
.call b { color: var(--ed); font-weight: 400; }
pre.out { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin: 10px 0 0; font-size: .76rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 250px; overflow-y: auto; }

/* checkout demo */
.co-note { font-size: .78rem; color: var(--muted); margin: 0 0 10px; }
.co-err { color: var(--bad); font-size: .82rem; }
.notice-box { font-size: .84rem; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); margin-top: 10px; }
.notice-box.bad { border-color: var(--bad); } .notice-box.good { border-color: var(--good); } .notice-box.warn { border-color: var(--warn); }

/* assistant demo */
.chat { display: grid; gap: 8px; align-content: start; min-height: 150px; max-height: 400px; overflow-y: auto; margin-bottom: 12px; }
.chat .q { justify-self: end; max-width: 88%; background: var(--ed); color: var(--ed-ink); border-radius: 10px 10px 2px 10px; padding: 6px 10px; font-size: .86rem; }
.chat .a { max-width: 96%; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; padding: 8px 10px; font-size: .86rem; }
.chat .tool { font-family: var(--mono); font-size: .72rem; color: var(--muted); border-left: 2px solid var(--ed); padding-left: 8px; overflow-wrap: anywhere; }
.chat .hint { font-size: .82rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: .8rem; text-align: left; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--ed); background: transparent; color: var(--ed); cursor: pointer; }
.bar select { font: inherit; font-size: .8rem; background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }

.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-width: 0; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--ed); color: var(--ed); font-size: .84rem; margin-bottom: 8px; }
.shape { font-size: .72rem; font-family: var(--mono); color: var(--ed); display: block; margin-bottom: 6px; }

/* dashboard mock */
.dash { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.dash-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.dash-body { padding: 14px; min-width: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); }
.tile b { display: block; font-size: 1.3rem; line-height: 1.2; }
.tile span { font-size: .76rem; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ed); }
.keybox { border: 1px solid var(--warn); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; font-size: .86rem; }
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 560px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.grp td { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ed); background: var(--panel); }
table.mini { min-width: 0; font-size: .8rem; margin-top: 10px; }
table.mini th, table.mini td { padding: 5px 8px; }
.pill { display: inline-block; font-size: .72rem; padding: 0 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.good { color: var(--good); } .pill.warn { color: var(--warn); } .pill.bad { color: var(--bad); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 780px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

footer .wrap { padding-block: 30px 40px; font-size: .84rem; color: var(--muted); }

@media (max-width: 940px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .toplinks { margin-left: 0; width: 100%; order: 3; }
}
@media (max-width: 560px) {
  .top { position: static; }
  .sb { grid-template-columns: minmax(0, 1fr); }
  .sb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section .wrap { padding-block: 40px; }
}
