/* itokens website: the same liquid-glass look as the app (owner-approved, 2026-09-28): soft colour glows behind
   translucent, blurred panels, pill controls, rounded cards, the app's burnt-orange accent; strong type with mono labels
   and thin line icons. Text contrast is measured against the glass over the darkest background and the brightest glow. */
/* the wordmark's face: Tilt Neon (SIL Open Font License 1.1, fonts/TiltNeon-OFL.txt), Latin subset, served locally */
@font-face { font-family: 'Tilt Neon'; src: url('/assets/fonts/TiltNeon-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --hair: 0.5px; /* the hairline outlining every surface, as macOS draws its menus (owner request, 2026-09-28) */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px; --gutter: 32px; --btn-radius: 999px; --card: 22px;
  /* a subtle burnt orange (owner decision, 2026-09-28; final values pending the owner's tuning; the app's app.css matches) */
  --accent: #811e0e; --accent-hover: #6b180b; --accent-2: #b1611b; --on-accent: #ffffff;
  --blur: blur(24px) saturate(160%);
}
:root, :root[data-theme='dark'] {
  --bg: #0c0b0a; --surface: rgba(29, 27, 25, 0.72); --surface-2: rgba(46, 43, 40, 0.72);
  --line: rgba(255, 255, 255, 0.16); --line-strong: rgba(255, 255, 255, 0.22); --glass-hi: rgba(255, 255, 255, 0.06);
  /* the glows: burnt orange, low */
  --glow-a: rgba(218, 39, 11, 0); --glow-b: rgba(129, 30, 14, 0); --glow-c: rgba(177, 97, 27, 0);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.50);
  --grad-2: #f5805a; --grad-3: #e8944f; /* gradient text, after --accent-text */
  --text: #f2efec; --muted: #b5aea8; --faint: #948c86; --link: #f2efec; --ok: #5fb98a; --accent-text: #f55e47; --brand-ai: color-mix(in srgb, var(--text) 70%, var(--accent-text)); /* the wordmark's leading "i": a very slight tint */
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f7f5f2; --surface: rgba(255, 255, 255, 0.72); --surface-2: rgba(238, 234, 229, 0.85);
  --line: rgba(40, 30, 20, 0.16); --line-strong: rgba(40, 30, 20, 0.22); --glass-hi: rgba(255, 255, 255, 0.9);
  --glow-a: rgba(218, 39, 11, 0); --glow-b: rgba(129, 30, 14, 0); --glow-c: rgba(177, 97, 27, 0);
  --shadow: 0 24px 70px rgba(60, 40, 20, 0.16);
  --grad-2: #a8300d; --grad-3: #9a4a12; /* darker for light: >= 4.5:1 over the brightest glow */
  --text: #1b1714; --muted: #574f49; --faint: #665d57; --link: #1b1714; --ok: #186641; --accent-text: #b8210a; --brand-ai: color-mix(in srgb, var(--text) 62%, var(--accent-text));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(60vw 60vw at 78% 18%, var(--glow-a), transparent 62%), radial-gradient(46vw 46vw at 8% 42%, var(--glow-b), transparent 62%),
    radial-gradient(44vw 44vw at 60% 96%, var(--glow-c), transparent 62%), var(--bg);
  background-attachment: fixed; }
/* glass: a translucent, blurred panel */
.glass, .cells > *, .dl > div, .cards a, .notice, .cmd { background: var(--surface); border: var(--hair) solid var(--line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 1px 0 var(--glass-hi); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; font-weight: 700; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: 0.86em; }
:not(pre) > code { border: var(--hair) solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface); overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.after { margin-top: 40px; padding-top: 24px; border-top: var(--hair) solid var(--line); }
.label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 12px; }

/* top bar: glass */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: var(--hair) solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 21px 'Tilt Neon', var(--display); color: var(--text); text-decoration: none; letter-spacing: 0.5px; }
/* the name in running text (build.mjs wraps it): the wordmark's face at the text's own size; Tilt Neon's x-height (0.509 em)
   matches the system sans (0.508 em), so it sits level. One weight only: never synthesised bold in a heading. */
.brand { font-family: 'Tilt Neon', var(--display); font-weight: 400; font-synthesis: none; letter-spacing: 0.01em; text-transform: none; }
.logo img { width: 26px; height: 26px; border-radius: 22%; }
/* the icon follows the theme: the light icon on the light site, the dark one on the dark site */
.logo .ic-light, :root[data-theme='light'] .logo .ic-dark { display: none; }
:root[data-theme='light'] .logo .ic-light { display: block; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover, .links a[aria-current] { color: var(--text); }
.theme { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; flex: none; }

/* buttons: pills; the primary carries the accent gradient */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--line-strong); border-radius: var(--btn-radius);
  color: var(--text); text-decoration: none; font: 600 15px var(--font); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); cursor: pointer; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--on-accent); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn.primary:hover { background: linear-gradient(135deg, var(--accent-hover), var(--accent-2)); color: var(--on-accent); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* hero: left-aligned, typographic */
.hero { padding: 96px 0 0; border-bottom: var(--hair) solid var(--line); }
.hero .label { display: block; margin-bottom: 28px; }
.hero h1 { max-width: 13ch; }
.grad { background: linear-gradient(90deg, var(--accent-text), var(--grad-2) 60%, var(--grad-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 640px; margin-top: 28px; }
/* the three steps as a journey: numbered stops joined by a line that ends in an arrow at the next stop; the last stop
   (chatting) is filled. Square, 1px lines, monochrome. Phones: the same path, downwards. */
.steps3 { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; font-size: 15px; }
.steps3 li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 16px; line-height: 1.35; }
.steps3 li > span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-2); font: 500 13px var(--mono); backdrop-filter: var(--blur); }
.steps3 li:last-child > span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: var(--on-accent); }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 42px; right: 8px; border-top: 1px solid var(--faint); } /* --faint: >= 3:1, the path must read */
.steps3 li:not(:last-child)::before { content: ""; position: absolute; top: 13px; right: 8px; width: 7px; height: 7px; border-top: 1px solid var(--faint); border-right: 1px solid var(--faint); transform: rotate(45deg); }
@media (max-width: 560px) {
  .steps3 { grid-template-columns: 1fr; gap: 18px; }
  .steps3 li { flex-direction: row; align-items: center; gap: 14px; padding: 0; }
  .steps3 li:not(:last-child)::after { top: 40px; left: 16px; right: auto; bottom: -14px; border-top: 0; border-left: 1px solid var(--faint); }
  .steps3 li:not(:last-child)::before { top: auto; bottom: -13px; left: 13px; right: auto; transform: rotate(135deg); }
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; align-items: center; }
.cta-row.start { margin-top: 8px; }
.req { margin-top: 18px; font: 13px var(--mono); color: var(--faint); }
.cmd { display: flex; align-items: stretch; max-width: 520px; margin-top: 20px; border-radius: 16px; overflow: hidden; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; border: 0; padding: 13px 16px; font-size: 14px; scrollbar-width: none; }
.cmd .p { color: var(--faint); user-select: none; }
.cmd.inline { margin-top: 8px; }
.copy { flex: none; padding: 0 18px; border: 0; border-left: var(--hair) solid var(--line); background: transparent; color: var(--text); font: 500 13px var(--mono); cursor: pointer; }
.copy:hover { background: var(--surface-2); }
.copy.done { color: var(--ok); }
.shot { margin-top: 72px; border: var(--hair) solid var(--line); border-radius: var(--card) var(--card) 0 0; overflow: hidden; box-shadow: var(--shadow); }
.frame { border: var(--hair) solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.frame img, .shot img { width: 100%; }
.shot, .frame { position: relative; }
/* sections */
section.band { padding: 112px 0; border-bottom: var(--hair) solid var(--line); }
section.band.flush { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; margin-bottom: 64px; }
.head .label { display: block; margin-bottom: 20px; }
.head p { color: var(--muted); font-size: 19px; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; padding: 56px 0; border-top: var(--hair) solid var(--line); }
.feature .text { display: grid; gap: 16px; }
.feature .text p { color: var(--muted); }
.feature .num { font: 500 13px var(--mono); color: var(--faint); }
.feature ul { margin: 6px 0 0; padding: 0; list-style: none; border-top: var(--hair) solid var(--line); }
.feature li { padding: 10px 0; border-bottom: var(--hair) solid var(--line); font-size: 15px; color: var(--text); }

/* a ruled grid of cells */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cells > * { border-radius: var(--card); padding: 30px; display: grid; gap: 12px; align-content: start; }
.cells p { color: var(--muted); font-size: 16px; }
.ico { width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); }
.ico svg { width: 20px; height: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--hair) solid var(--line); }
.facts div { padding: 28px 28px 0 0; color: var(--muted); }
.facts strong { display: block; color: var(--text); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.faq { border-top: var(--hair) solid var(--line); }
details { border-bottom: var(--hair) solid var(--line); }
summary { cursor: pointer; font-size: 18px; font-weight: 600; min-height: 68px; display: flex; align-items: center; gap: 16px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; margin-left: auto; font: 400 22px var(--mono); color: var(--faint); }
details[open] summary::after { content: '−'; }
details > div { padding: 0 0 24px; color: var(--muted); max-width: 760px; }
.final .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }

/* download */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl > div { border-radius: var(--card); padding: 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.dl p { color: var(--muted); }
.dl.one { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.dl.brew { margin: 16px 0 8px; }
.dl.brew h3 { margin: 0; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.release { font: 13px var(--mono); color: var(--muted); margin-top: 20px; }
.sha { font: 12px var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.sha.meta { margin-top: -6px; }
.notice { border-radius: 16px; padding: 18px 22px; margin-bottom: 40px; color: var(--muted); }
.notice strong { color: var(--text); }
.hero-tight { padding-bottom: 72px; }
.facts.near { margin-top: 48px; }
[hidden] { display: none !important; }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; }
.docnav { position: sticky; top: 64px; align-self: start; display: grid; border-right: var(--hair) solid var(--line); padding: 40px 24px 40px 0; min-height: calc(100vh - 64px); align-content: start; }
.docnav a { color: var(--muted); text-decoration: none; padding: 8px 0 8px 14px; font-size: 15px; border-left: 2px solid transparent; }
.docnav a:hover { color: var(--text); }
.docnav a[aria-current] { color: var(--text); font-weight: 600; border-left-color: var(--text); }
.doc { min-width: 0; max-width: 820px; padding: 40px 0 112px 56px; }
.doc h1 { font-size: clamp(36px, 4.6vw, 56px); margin-bottom: 20px; }
.doc h2 { font-size: 28px; margin: 56px 0 14px; padding-top: 24px; border-top: var(--hair) solid var(--line); scroll-margin-top: 80px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol:not(.crumbs) { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc strong { color: var(--text); }
.doc.policy { padding: 0 0 40px; }
.doc.policy h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.doc pre { border: var(--hair) solid var(--line); border-radius: 14px; padding: 16px 18px; overflow-x: auto; margin: 16px 0; line-height: 1.6; background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 18px 0; border-top: 1px solid var(--text); }
.doc th, .doc td { text-align: left; padding: 12px 16px 12px 0; border-bottom: var(--hair) solid var(--line); vertical-align: top; }
.doc th { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.doc td { color: var(--muted); }
.doc .frame { margin: 28px 0; }
.tablewrap { overflow-x: auto; }
.tablewrap table { min-width: 560px; }
.crumbs { list-style: none; padding: 0; margin: 0 0 28px; display: flex; gap: 10px; font: 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.crumbs li + li::before { content: '/'; margin-right: 10px; }
.crumbs a { color: var(--faint); text-decoration: none; }
.lede { font-size: 20px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; margin-top: 72px; border-top: var(--hair) solid var(--line); }
.pager a { display: grid; gap: 4px; padding: 20px 0; text-decoration: none; color: var(--text); font-weight: 600; }
.pager a span { font: 12px var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 400; }
.pager .next { text-align: right; grid-column: 2; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.cards a { border-radius: 18px; padding: 22px 24px; text-decoration: none; display: grid; gap: 6px; }
.cards a:hover { background: var(--surface-2); }
.cards a strong { color: var(--text); font-size: 17px; }
.cards a > span:not(.brand) { color: var(--muted); font-size: 15px; }

/* footer */
.foot { padding: 56px 0 72px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.fbrand { display: grid; gap: 10px; align-content: start; }
.fbrand span { font: 400 21px 'Tilt Neon', var(--display); letter-spacing: 0.5px; color: var(--text); }
.fbrand p { color: var(--faint); }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot h2 { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 960px) {
  .head, .feature, .dl { grid-template-columns: minmax(0, 1fr); }
  .head { gap: 16px; }
  .feature { gap: 28px; }
  .cells, .facts, .facts.two { grid-template-columns: minmax(0, 1fr); }
  .facts div { padding-right: 0; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docnav { position: static; min-height: 0; border-right: 0; border-bottom: var(--hair) solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
  .docnav a { padding: 6px 0; border-left: 0; }
  .docnav a[aria-current] { border-left: 0; text-decoration: underline; text-underline-offset: 6px; }
  .doc { padding: 32px 0 80px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  /* phones: the brand and theme on one row, the main links on a full-width row below (no hidden menu) */
  html { scroll-padding-top: 124px; }
  .top .wrap { flex-wrap: wrap; height: auto; gap: 0; }
  .top .logo { min-height: 56px; }
  .top .theme { margin-left: auto; }
  .top .cta { display: none; }
  .links { order: 3; flex: 0 0 100%; margin: 0; gap: 0; justify-content: space-between; border-top: var(--hair) solid var(--line); }
  .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { padding-top: 56px; }
  section.band { padding: 72px 0; }
  .cells > *, .dl > div { padding: 24px; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (pointer: coarse) { .copy, .theme, .demo-nav button { min-width: 44px; min-height: 44px; } .docnav a { padding-top: 10px; padding-bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* the wordmark: the leading "i" a very slight tint of the accent (owner request, 2026-09-28) */
.wm-ai { color: var(--brand-ai); }

/* the home page's demo (assets/demo.js): a live itokens window */
.demo { border-radius: 26px; padding: 18px; display: grid; gap: 14px; }
.demo-win { border-radius: 18px; border: var(--hair) solid var(--line); background: var(--bg); overflow: hidden; }
.demo-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: var(--hair) solid var(--line); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.demo-stage { height: 440px; padding: 22px clamp(14px, 4vw, 48px); display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; overflow: hidden; font-size: 15px; }
.demo-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.demo-nav button { font: 500 13px/1 var(--font); color: var(--muted); background: none; border: var(--hair) solid var(--line); border-radius: var(--btn-radius); padding: 9px 14px; cursor: pointer; min-height: 36px; }
.demo-nav button[aria-selected='true'] { color: var(--on-accent); background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.demo-nav .demo-toggle { margin-left: auto; }
.d-conv { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: flex-end; min-height: 0; }
.d-user { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 18px 18px 6px 18px; background: var(--surface-2); border: var(--hair) solid var(--line); }
.d-answer p { margin: 0 0 4px; }
.d-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 22px; border: var(--hair) solid var(--line-strong); background: var(--surface); }
.d-field { flex: 1; color: var(--faint); min-height: 22px; }
.d-field.typing { color: var(--text); }
.d-send { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); flex: none; }
.d-tools { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 0 6px; }
.d-grow { flex: 1; }
.d-chip { padding: 4px 10px; border-radius: var(--btn-radius); }
.d-chip.strong { background: var(--surface-2); color: var(--text); }
.d-plus { font-size: 18px; padding: 0 6px; }
.d-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); }
.d-card { border-radius: 16px; border: var(--hair) solid var(--line); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.d-card-h { display: flex; gap: 10px; align-items: center; }
.d-ic { width: 26px; height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 22%, transparent); flex: none; }
.d-muted { color: var(--muted); font-size: 14px; }
.d-opt { padding: 9px 12px; border-radius: 12px; border: var(--hair) solid var(--line); background: var(--surface-2); font-size: 14px; transition: border-color 0.2s, transform 0.2s; }
.d-opt.faint { color: var(--faint); }
.d-row { display: flex; gap: 8px; flex-wrap: wrap; }
.d-btn { align-self: flex-start; padding: 8px 14px; border-radius: var(--btn-radius); background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); font-size: 14px; transition: transform 0.2s, box-shadow 0.2s; }
.d-btn.ghost { background: none; color: var(--text); border: var(--hair) solid var(--line-strong); }
.pressed { transform: scale(0.96); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-text) 30%, transparent); border-color: var(--accent-text); }
.d-ok { color: var(--ok); font-size: 14px; }
.d-used { align-self: flex-start; font-size: 12px; color: var(--muted); padding: 3px 10px; border-radius: var(--btn-radius); background: var(--surface-2); }
.d-scan, .d-hello, .d-settings { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.d-scan h4, .d-hello h4, .d-greet, .d-settings h4 { font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.d-greet { text-align: center; margin: auto 0 18px; }
.d-greet span { color: var(--accent-text); }
.d-orbc { display: block; flex: none; }
.d-thinking { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.d-private { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin: 0; }
.demo-bar { align-items: center; }
.demo-local { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1 var(--font); color: var(--text); padding: 6px 12px; border-radius: var(--btn-radius); background: color-mix(in srgb, var(--ok) 14%, transparent); border: var(--hair) solid color-mix(in srgb, var(--ok) 45%, transparent); }
.demo-local i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.d-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(420px, 100%); }
.d-part, .d-set { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; border: var(--hair) solid var(--line); opacity: 0.35; transition: opacity 0.4s, border-color 0.4s; text-align: left; }
.d-part.lit, .d-set.lit { opacity: 1; border-color: color-mix(in srgb, var(--accent-text) 50%, var(--line)); }
.d-k { color: var(--muted); font-size: 13px; }
.d-input { min-width: 220px; min-height: 44px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--accent-text); font-size: 17px; text-align: left; }
.d-setup { width: min(380px, 100%); display: grid; gap: 8px; }
.d-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.d-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.d-settings { align-items: stretch; }
.d-set { flex-direction: column; gap: 2px; }
@media (max-width: 640px) { .demo { padding: 10px; } .demo-stage { height: 460px; font-size: 14px; } .d-tools .d-chip:not(.strong) { display: none; } }
@media (prefers-reduced-motion: reduce) { .d-part, .d-set { opacity: 1; } }
.demo-local { white-space: nowrap; }
@media (max-width: 640px) { .demo-local { font-size: 11.5px; padding: 5px 9px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
