/* Duka Search landing. Tokens and components from the Broadsheet design system (Claude Design project), trimmed to what the page uses. */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --color-bg: #f3f2f2; --color-surface: #eae9e9; --color-text: #201e1d;
  --color-accent: #0088b0; --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);
  --color-neutral-100: #f8f4f4; --color-neutral-200: #eae7e7; --color-neutral-300: #d7d3d3; --color-neutral-600: #7d7979; --color-neutral-800: #444141;
  --color-accent-100: #e9f8ff; --color-accent-600: #1186ac; --color-accent-700: #006786; --color-accent-800: #004961; --color-accent-900: #0a303e;
  --color-accent-2-100: #fff1f4; --color-accent-2-600: #d82071; --color-accent-2-800: #790e3d;
  --font-heading: "Source Serif 4", system-ui, sans-serif; --font-body: "Source Serif 4", system-ui, sans-serif;
  --radius-md: 2px; --radius-lg: 4px;
  --sev-high-bg: var(--color-accent-2-100); --sev-high-fg: var(--color-accent-2-800); --sev-high-dot: var(--color-accent-2-600);
  --sev-medium-bg: #fbeed3; --sev-medium-fg: #6a4500; --sev-medium-dot: #b27c00;
  --ink-2: color-mix(in srgb, var(--color-text) 72%, transparent);
  --wa-bg: #efeae2; --wa-dot: rgba(0,0,0,.045); --wa-bar: #f6f6f6; --wa-in: #fff; --wa-out: #d9fdd3;
  --wa-ink: #111b21; --wa-meta: #667781; --wa-tick: #53bdeb; --wa-send: #21c063; --wa-chip: #fff;
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 18%, transparent); --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg: #161514; --color-surface: #211f1e; --color-text: #ecebe9; --color-accent: #62c5ee; --color-accent-2: #ff90b1;
    --color-divider: color-mix(in srgb, #ecebe9 18%, transparent);
    --color-neutral-100: #2d2b2b; --color-neutral-200: #444141; --color-neutral-300: #605d5d; --color-neutral-600: #bab6b6; --color-neutral-800: #eae7e7;
    --color-accent-100: #0a303e; --color-accent-600: #62c5ee; --color-accent-700: #99e0ff; --color-accent-800: #cbeeff; --color-accent-900: #e9f8ff;
    --color-accent-2-100: #4b1528; --color-accent-2-600: #ff90b1; --color-accent-2-800: #ffdee6;
    --sev-medium-bg: #3b2d0e; --sev-medium-fg: #f6d68c; --sev-medium-dot: #e0a52a;
    --wa-bg: #0b141a; --wa-dot: rgba(255,255,255,.03); --wa-bar: #1f2c34; --wa-in: #202c33; --wa-out: #005c4b;
    --wa-ink: #e9edef; --wa-meta: #8696a0; --wa-chip: #182229;
    --shadow-md: 0 3px 10px rgba(0,0,0,.55); --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 15px/1.55 var(--font-body); font-variant-numeric: tabular-nums; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 10px; }
h3 { font-size: 25px; }
p { margin: 0 0 15px; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
summary::-webkit-details-marker { display: none; }
details[open] .caret { transform: rotate(180deg); }
svg { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--color-text); background: transparent; border: 1px solid transparent; padding: 10px 18px; border-radius: var(--radius-md); min-height: 44px; }
.btn-primary { background: var(--color-accent-700); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-800); color: var(--color-bg); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-ghost { color: var(--color-accent-700); padding-inline: 12px; }
.btn-ghost:hover { color: var(--color-accent-800); background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-block { width: 100%; margin-top: 10px; }
.btn-lg { min-height: 52px; font-size: 17px; padding-inline: 28px; }

.card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius-md); background: var(--color-surface); }
.tag { display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em; padding: 3px 10px; border-radius: 1.5px; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-muted { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.field label { display: block; font-size: 14px; margin-bottom: 5px; color: color-mix(in srgb, var(--color-text) 78%, transparent); }
.input { width: 100%; min-height: 48px; padding: 6px 12px; font: inherit; font-size: 16px; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }

/* page */
.page { background: var(--color-bg); color: var(--color-text); min-height: 100vh; container-type: inline-size; position: relative; isolation: isolate; }

/* living background (web/pulse.js): pulse behind the hero, still ledger further down */
.ledger { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--color-text) 6%, transparent) 31px 32px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 1100px, #000 1800px); mask-image: linear-gradient(180deg, transparent 0, transparent 1100px, #000 1800px); }
.ledger span { position: absolute; top: 0; left: calc(50% + 624px); width: 96px; padding-top: 7px; text-align: right; font-size: 13px; line-height: 32px; white-space: pre; opacity: .16; }
.hero-wrap { position: relative; isolation: isolate; }
.pulse { position: absolute; left: 0; right: 0; top: 8px; height: 88px; z-index: -1; overflow: hidden; pointer-events: none; color: var(--color-text);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pulse-track { position: absolute; left: 0; top: 0; width: 3200px; height: 88px; animation: dpDrift 80s linear infinite; will-change: transform; }
.pulse svg { position: absolute; left: 0; top: 0; opacity: .2; fill: none; }
.pulse i { position: absolute; top: 46px; width: 2px; height: 16px; animation: dpRise 80s ease-in-out var(--d) infinite; }
.pulse i::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .2; }
.pulse b { position: absolute; inset: -1px -1px 0; background: var(--color-accent-2); opacity: 0; animation: dpMag 80s ease-in-out var(--d) infinite; }
.pulse u { position: absolute; left: 50%; top: -12px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; border: 1.5px solid var(--color-accent-2); opacity: 0; animation: dpRing 80s ease-in-out var(--d) infinite; }
.pulse i.lit { transform: translateY(-20px); }
.pulse .lit b, .pulse .lit u { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pulse * { animation: none !important; } }
@keyframes dpDrift { to { transform: translate3d(-1600px,0,0); } }
@keyframes dpRise { 0%,5%,100% { transform: translateY(0); } .8%,3.8% { transform: translateY(-20px); } }
@keyframes dpMag { 0%,5%,100% { opacity: 0; } .8%,3.8% { opacity: 1; } }
@keyframes dpRing { 0%,.6% { opacity: 0; transform: scale(.3); } 1.6%,3.4% { opacity: 1; transform: scale(1); } 4.4%,100% { opacity: 0; transform: scale(1.5); } }

/* chip rows: chat apps, POS systems */
.join .hint { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.banner { margin: 0; padding: 10px clamp(20px,5cqw,72px); text-align: center; font-size: 14px; line-height: 1.5; background: var(--color-surface); }
.banner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.banner .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-2); }
.banner span:not(.dot) { margin-left: 4px; }
.banner a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; }
.sec { max-width: 1200px; margin: 0 auto; padding: clamp(56px,8cqw,104px) clamp(20px,5cqw,72px); }
.eyebrow { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.h2 { font-size: clamp(28px,3.6cqw,44px); margin: 0 0 12px; }
.lead { font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 56ch; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.top { max-width: 1200px; margin: 0 auto; padding: 16px clamp(20px,5cqw,72px); display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: baseline; gap: 5px; color: var(--color-text); text-decoration: none; margin-right: auto; font-family: var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
/* Mark: 1em tall, feet on the text baseline, gap 1.5 stems (docs/design-prompt-rebrand.md; Claude Design "Logo" page). */
.logo { height: 1em; width: auto; flex: none; }
.logo .dot { fill: var(--color-accent); }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px clamp(32px,6cqw,96px); padding-top: clamp(112px,9cqw,136px); }
.hero h1 { font-size: clamp(36px,6cqw,76px); line-height: 1.06; letter-spacing: -.022em; margin: 0 0 0 -.035em; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--color-accent-700); }
.sub { font-size: clamp(17px,1.6cqw,20px); line-height: 1.6; max-width: 52ch; margin: 28px 0 0; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.cta > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.cta-note { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
.aside { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: var(--color-text) !important; }
.aside > span:first-child { margin-top: 3px; display: inline-flex; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.steps li { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; align-items: baseline; }
.steps .n { font-family: var(--font-heading); font-weight: 600; font-size: 44px; line-height: 1; color: var(--color-accent-700); }
.steps li > span:last-child { display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.steps h3 { font-size: 22px; margin: 0; color: var(--color-text); }
.steps.small h3 { font-size: 20px; }
/* proof row, POS cards, setup call */
.ext { display: inline-block; width: 12px; height: 12px; margin-left: 6px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.proof { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.proof .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.proof a { display: inline-flex; align-items: center; min-height: 44px; }
.st { display: inline-flex; justify-content: center; min-width: 72px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 1.5px; background: var(--color-neutral-200); color: var(--color-neutral-800); }
.st-live { background: var(--color-accent-700); color: var(--color-bg); }
.st-pilot { background: none; box-shadow: inset 0 0 0 1.5px var(--color-accent-700); color: var(--color-accent-700); }
.pos-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: 48px; }
.pos-cards .card { padding: 28px clamp(20px,3cqw,32px); gap: 20px; scroll-margin-top: 24px; }
.pos-cards .head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pos-cards .card h3 { font-size: 26px; }
.pos-cards .card > p { font-size: 16px; }
.pos-cards .aside { margin: 0; }
.steps.compact { gap: 16px; }
.steps.compact li { grid-template-columns: 28px minmax(0,1fr); gap: 12px; }
.steps.compact .n { font-size: 24px; }
.steps h4 { font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.2; margin: 0; color: var(--color-text); }
.steps.compact li > span:last-child { gap: 4px; font-size: 15px; }
.act { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.act > a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.act small { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px,7cqw,112px); }
.split > div { flex: 1 1 320px; min-width: 0; max-width: 560px; }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; padding: 8px 0; font-size: 17px; line-height: 1.5; }
.ticks li > span { margin-top: 2px; display: inline-flex; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.h3 { font-size: clamp(26px,3cqw,36px); margin: 0 0 24px; }
.sees li small { display: block; margin-left: 18px; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.phone { flex: 0 0 auto; margin: 0 auto; zoom: .78; }

/* catch cards */
.sev { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 1.5px; }
.sev i { width: 7px; height: 7px; border-radius: 50%; }
.sev-high { background: var(--sev-high-bg); color: var(--sev-high-fg); } .sev-high i { background: var(--sev-high-dot); }
.sev-med { background: var(--sev-medium-bg); color: var(--sev-medium-fg); } .sev-med i { background: var(--sev-medium-dot); }
.sev-plan { background: var(--color-neutral-200); color: var(--color-neutral-800); } .sev-plan i { background: var(--color-neutral-600); }
.big { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.big small { font-size: 22px; font-weight: 400; color: var(--ink-2); }
.card h3 { font-size: 19px; margin: 0; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.pt { color: var(--color-accent-700); }
.bars { display: grid; grid-template-columns: auto minmax(0,1fr) 3ch; align-items: center; gap: 8px 10px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-2); }
.bars > span:nth-child(3n) { text-align: right; }
.bar, .stack > div { display: flex; height: 12px; border-radius: 1.5px; overflow: hidden; background: var(--color-neutral-300); }
.stack > div { background: var(--color-neutral-200); }
.bar i, .stack i { display: block; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 6px; }
.stack p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.stack p span { display: inline-flex; align-items: center; gap: 5px; }
.stack p i { width: 8px; height: 8px; }
.stack i.miss { background: repeating-linear-gradient(135deg, var(--sev-medium-dot) 0 3px, transparent 3px 6px); }

details { padding: 4px 0; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-family: var(--font-heading); font-weight: 600; font-size: 19px; }
summary .caret { color: var(--color-accent-700); display: inline-flex; }
details p { margin: 4px 0 16px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; }

/* form */
.join { display: grid; gap: 16px; max-width: 28rem; }
.join p { margin: 0; font-size: 14px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.join button { font: inherit; font-family: var(--font-heading); font-weight: 600; border: 0; }

footer.sec { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 20px 40px; font-size: 14px; color: var(--ink-2); }
footer .col { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
footer .fine { font-size: 12px; max-width: 52ch; }
footer .brand-s { display: inline-flex; align-items: baseline; gap: 4px; color: var(--color-text); font-family: var(--font-heading); font-weight: 600; font-size: 16px; }

/* phone + WhatsApp-style chat */
.device { width: 402px; height: 874px; padding: 12px; border-radius: 58px; background: #111; box-shadow: var(--shadow-lg); }
.screen { position: relative; height: 100%; border-radius: 46px; overflow: hidden; }
.screen::before { content: ""; position: absolute; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; border-radius: 17px; background: #000; z-index: 2; }
.wa { height: 100%; display: flex; flex-direction: column; font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; color: var(--wa-ink); background: var(--wa-bg) radial-gradient(circle, var(--wa-dot) 1px, transparent 1.5px) 0 0 / 10px 10px; }
.wa-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 8px 10px; overflow: hidden; }
.wa-day { align-self: center; font-size: 12px; padding: 4px 10px; border-radius: 8px; background: var(--wa-chip); color: var(--wa-meta); margin-bottom: 4px; box-shadow: 0 1px .5px rgba(11,20,26,.1); }
.b { max-width: 86%; padding: 6px 9px 5px; font-size: 16px; line-height: 1.33; box-shadow: 0 1px .5px rgba(11,20,26,.13); color: var(--wa-ink); }
.b-in { align-self: flex-start; background: var(--wa-in); border-radius: 2px 8px 8px 8px; }
.b-out { align-self: flex-end; max-width: 80%; background: var(--wa-out); border-radius: 8px 2px 8px 8px; }
.b strong { font-weight: 600; }
.b .t { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px 0 -3px 10px; font-size: 11px; color: var(--wa-meta); }
.b .blk { display: block; }
.b .tbl { display: grid; gap: 3px 12px; }
.b .mut { font-size: 13px; color: var(--wa-meta); }

/* Telegram-style chat: reuses the .wa bubbles with Telegram colours and shapes */
.tg { --ch-bar: color-mix(in srgb, var(--color-bg) 55%, #fff); --ch-line: color-mix(in srgb, var(--color-text) 14%, transparent);
  --ch-ib: color-mix(in srgb, var(--color-text) 60%, var(--color-surface));
  --wa-in: color-mix(in srgb, var(--color-bg) 25%, #fff); --wa-out: var(--color-accent-100); --wa-ink: var(--color-text);
  --wa-meta: color-mix(in srgb, var(--color-text) 68%, transparent); --wa-tick: var(--color-accent-700); background: var(--color-surface); }
@media (prefers-color-scheme: dark) { .tg { --ch-bar: var(--color-surface); --wa-in: var(--color-neutral-100); background: var(--color-bg); } }
.tg .b { box-shadow: none; padding: 7px 12px 6px; max-width: 88%; }
.tg .b-in { border-radius: 18px 18px 18px 6px; }
.tg .b-out { border-radius: 18px 18px 6px 18px; max-width: 80%; }
.tg .wa-day { background: var(--ch-ib); color: var(--color-bg); border-radius: 12px; box-shadow: none; font-weight: 500; }
.tg-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 56px 12px 8px; background: var(--ch-bar); border-bottom: .5px solid var(--ch-line); }
.tg-back { display: flex; align-items: center; gap: 4px; color: var(--color-accent-700); font-size: 17px; }
.tg-title { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.tg-title b { font-size: 16.5px; font-weight: 600; }
.tg-title small { font-size: 13px; color: var(--wa-meta); }
/* App-style mark: paper on a fixed ink square, light cyan dot, in both themes. */
.tg-av { justify-self: end; width: 38px; height: 38px; border-radius: 50%; background: #201e1d; color: #f3f2f2; display: grid; place-items: center; }
.tg-av .logo { height: 22px; }
.tg-av .dot { fill: #62c5ee; }
.tg-msg { align-self: flex-start; width: 86%; display: flex; flex-direction: column; gap: 4px; }
.tg-msg .b { max-width: none; }
.tg-btns { display: flex; gap: 4px; }
.tg-btns span { flex: 1; display: grid; place-items: center; min-height: 40px; padding: 0 10px; border-radius: 10px; background: var(--ch-ib); color: var(--color-bg); font-size: 15px; font-weight: 600; }
.tg-foot { display: flex; align-items: center; gap: 10px; padding: 8px 10px 34px; background: var(--ch-bar); border-top: .5px solid var(--ch-line); color: var(--wa-meta); }
.tg-foot .field-fake { flex: 1; height: 36px; border-radius: 18px; background: var(--wa-in); border: .5px solid var(--ch-line); display: flex; align-items: center; padding: 0 14px; font-size: 16px; }

/* how it works (web/hiw.js): sticky, scroll-driven. Without .on (no JS, reduced motion) it is a plain list + final frame. */
.steps li[hidden] { display: none; }
.hiw-in { display: grid; gap: 40px; }
.hiw-fig { display: flex; justify-content: center; min-width: 0; }
.hiw-fig:empty, .hiw-rail { display: none; }
.hiw.on { position: relative; height: 300vh; }
.hiw.on.wide { height: 320vh; }
.hiw.on .hiw-in { position: sticky; top: 0; height: 100vh; align-content: center; gap: 20px; padding: 20px 0; }
.hiw.on.wide .hiw-in { gap: 48px; padding: 0; }
.hiw.on.side .hiw-in { grid-template-columns: minmax(0,.62fr) minmax(0,1.38fr); align-items: center; gap: 40px; }
.hiw.on:not(.wide) .hiw-fig { order: -1; }
.hiw.on .hiw-rail { display: flex; gap: 6px; max-width: 320px; margin-bottom: 14px; }
.hiw.on.wide .hiw-rail { max-width: 420px; margin-bottom: 24px; }
.hiw-rail span { flex: 1; height: 3px; background: var(--color-neutral-300); overflow: hidden; }
.hiw-rail i { display: block; height: 100%; width: 0; background: var(--color-accent); }
.hiw.on .steps li { grid-template-columns: 52px minmax(0,1fr); gap: 14px; }
.hiw.on .steps .n { font-size: 40px; line-height: .9; }
.hiw.on .steps h3 { font-size: 20px; line-height: 1.15; }
.hiw.on .steps li > span:last-child { font-size: 15px; }
.hiw.on.wide:not(.side) .hiw-steps { min-height: 190px; }
.hiw.on.wide .steps li { grid-template-columns: 88px minmax(0,1fr); gap: 24px; }
.hiw.on.wide .steps .n { font-size: 84px; }
.hiw.on.wide .steps h3 { font-size: clamp(30px,3.2cqw,40px); }
.hiw.on.wide .steps li > span:last-child { font-size: 19px; gap: 10px; }
.hiw.on.side .steps li { grid-template-columns: 60px minmax(0,1fr); gap: 16px; }
.hiw.on.side .steps .n { font-size: 56px; }
.hiw.on.side .steps h3 { font-size: 26px; }
.hiw.on.side .steps li > span:last-child { font-size: 17px; }
.hiw-stage { position: relative; }
.hiw-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hiw-canvas > div { position: absolute; }
.hiw-canvas .trk { background: var(--color-neutral-300); }
.hiw-canvas .dash { background: repeating-linear-gradient(90deg, var(--color-accent) 0 6px, transparent 6px 12px); }
.hiw:not(.wide) .hiw-canvas .dash { background: repeating-linear-gradient(180deg, var(--color-accent) 0 6px, transparent 6px 12px); }
.hiw-canvas .tile { border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--color-surface); color: var(--color-accent-700); }
.hiw-canvas .tile.me { position: absolute; background: #201e1d; color: #f3f2f2; }
.hiw-canvas .tile.me .logo { height: 58%; }
.hiw-canvas .tile.me .dot { fill: #62c5ee; }
.hiw-canvas .tile.me.flagged .dot { fill: var(--color-accent-2); }
.hiw-canvas .ring { box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent-2) 22%, transparent); }
.hiw-canvas [data-k^="l"] b { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 26px; }
.hiw-canvas [data-k^="l"] span { display: block; margin-top: 4px; font-size: 18px; color: var(--ink-2); }
.hiw:not(.wide) .hiw-canvas [data-k^="l"] b { font-size: 18px; }
.hiw:not(.wide) .hiw-canvas [data-k^="l"] span { margin-top: 2px; font-size: 14px; }
.hiw-canvas .badge { display: flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 2px; font-size: 15px; font-weight: 600; white-space: nowrap; background: var(--color-accent-700); color: var(--color-bg); }
.hiw:not(.wide) .hiw-canvas .badge { padding: 3px 8px; font-size: 12px; }
.hiw-canvas .keybox { display: flex; align-items: center; gap: 6px; min-width: 236px; padding: 9px 14px; border-radius: 2px; background: var(--color-bg); box-shadow: var(--shadow-md); font: 18px ui-monospace, 'SF Mono', Menlo, Consolas, monospace; white-space: nowrap; }
.hiw:not(.wide) .hiw-canvas .keybox { min-width: 0; padding: 6px 10px; font-size: 14px; }
.hiw-canvas .ki { display: inline-flex; color: var(--color-accent-700); }
.hiw-canvas .kc { width: 2px; height: 15px; background: var(--color-accent); }
.hiw-canvas .kc[hidden] { display: none; }
.hiw-canvas .rec { left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 2px; border-left: 3px solid var(--color-accent); font-size: 17px; font-weight: 600; white-space: nowrap; background: var(--color-bg); box-shadow: var(--shadow-md); will-change: transform; }
.hiw:not(.wide) .hiw-canvas .rec { padding: 4px 8px; font-size: 13px; }
.hiw-canvas .rec.flag { border-left-color: var(--color-accent-2); }
.hiw-canvas .bubble { padding: 9px 11px 7px; border-radius: 2px 10px 10px 10px; background: var(--wa-in); color: var(--wa-ink); box-shadow: var(--shadow-md); font: 18px/1.35 -apple-system, 'SF Pro Text', system-ui, sans-serif; }
.hiw:not(.wide) .hiw-canvas .bubble { font-size: 15px; }
.hiw-canvas .bubble strong { font-weight: 600; }
.hiw-canvas .bubble small { display: block; text-align: right; font-size: 11px; color: var(--wa-meta); margin-top: 2px; }
.steps code { font-size: .92em; }

/* demo page (web/demo.html) */
.demo-hero { padding-bottom: 0; }
.demo-hero h1 { font-size: clamp(34px,5cqw,60px); line-height: 1.08; max-width: 18ch; }
.demo-hero .lead { margin: 16px 0 0; }
.demo-sec { padding-top: clamp(40px,5cqw,64px); padding-bottom: 0; }
.demo-sec .lead { margin-bottom: 28px; }
.roles .card { gap: 18px; padding: 24px 20px; }
.roles .card .sees + .sees { margin-top: auto; }
.try { display: flex; flex-wrap: wrap; gap: 8px; }
.try button { min-height: 44px; padding: 6px 12px; font: inherit; font-size: 15px; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-divider); border-radius: var(--radius-md); cursor: pointer; }
.try button::before { content: "“"; } .try button::after { content: "”"; }
.try button.on { background: var(--color-accent-100); border-color: var(--color-accent); }
.try button.on::after { content: "”  ✓ Copied"; color: var(--color-accent-700); font-size: 13px; }
.roles .card h3 { font-size: 22px; margin: 0 0 4px; }
.sees { display: flex; flex-direction: column; gap: 8px; }
.sees h4 { font-size: 14px; margin: 6px 0 0; }
.sees ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.sees li::before { display: inline-block; width: 18px; }
.sees li.yes::before { content: "✓"; color: var(--color-accent-700); }
.sees li.no { color: var(--ink-2); } .sees li.no::before { content: "✕"; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.try button:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.totals p { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.totals span, .totals small { font-size: 14px; color: var(--ink-2); }
.totals b { font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px,3cqw,34px); line-height: 1.1; }
.demo-h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin: 48px 0 20px; }
.demo-h3 h3 { font-size: 20px; margin: 0; } .demo-h3 span { font-size: 14px; color: var(--ink-2); }
.card details summary { font-size: 15px; min-height: 44px; color: var(--color-accent-700); }
.card dl { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 4px 12px; margin: 0 0 4px; font-size: 14px; }
.card dt { color: var(--ink-2); } .card dd { margin: 0; overflow-wrap: anywhere; }
