/* =============================================================
   EAST AI landing — light editorial-ops ("cue sheet") theme.
   Paper white + ink black + mono data labels + 4-color service
   palette. Self-contained: tokens → base → nav → hero → sections →
   live demos → flow timeline → faq → cta → footer → modal →
   reveal → responsive
   Scope: this file is dedicated to index.html only. Do not
   link it from other pages (they use /assets/styles.css).
   ============================================================= */

/* ---------- tokens ---------- */
:root {
  --paper:  #f6f7f9;
  --card:   #ffffff;
  --panel:  #eef0f4;
  --line:   #e3e6ec;
  --line-2: #cdd2db;

  --ink:       #101318;
  --ink-soft:  rgba(16,19,24,0.62);
  --ink-faint: rgba(16,19,24,0.40);

  --qr:    oklch(0.55 0.19 255);
  --vote:  oklch(0.58 0.13 165);
  --video: oklch(0.52 0.21 300);
  --ai:    oklch(0.62 0.15 55);
  --ok:    oklch(0.58 0.15 155);

  --ring-track: rgba(16,19,24,0.08);

  /* demo-widget surfaces referenced via var() by inline markup */
  --bg-2:    #ffffff;
  --panel-2: #f1f3f6;
  --panel-3: #e7eaef;

  --seam: linear-gradient(90deg, var(--qr) 0 25%, var(--vote) 25% 50%, var(--video) 50% 75%, var(--ai) 75% 100%);

  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 980px;

  --t-hero:    clamp(42px, 6.2vw, 92px);
  --t-display: clamp(32px, 4vw, 56px);
  --t-title:   clamp(26px, 3vw, 40px);
  --t-lead:    clamp(17px, 1.4vw, 21px);
  --t-body:    16.5px;
  --t-small:   14.5px;
  --t-eyebrow: 11px;

  --maxw: 1080px; --maxw-wide: 1200px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,
          system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body {
  margin: 0; font-family: var(--font); font-size: var(--t-body); line-height: 1.55;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,p { margin: 0; }
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input,textarea,select { font-family: inherit; }
::selection { background: rgba(16,19,24,0.12); }

/* ---------- accessibility: focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

/* ---------- layout helpers ---------- */
.wrap   { width: 100%; max-width: var(--maxw);      margin-inline: auto; padding-inline: 24px; }
.wrap-w { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: 24px; }
.eyebrow { font-family: var(--mono); font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.section { padding-block: clamp(80px, 11vh, 150px); position: relative; }
.section-head { text-align: center; max-width: 46ch; margin: 0 auto clamp(40px,6vh,72px); }
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head h2 { font-size: var(--t-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.section-head p { color: var(--ink-soft); font-size: var(--t-lead); margin-top: 16px; text-wrap: pretty; }
.grad-text {
  color: inherit;
  background-image: var(--seam);
  background-size: 100% 6px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 10px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding-inline: 28px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 600;
  line-height: 1; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16,19,24,0.06);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(16,19,24,.45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { background: var(--panel); box-shadow: none; }
.btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn--lg { height: 56px; padding-inline: 34px; font-size: 17px; }
.btn--block { width: 100%; }
.textlink { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.textlink .arr { color: var(--svc, var(--ink)); transition: transform .2s var(--ease); }
.textlink:hover .arr { transform: translateX(4px); }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.pulse-dot::after { content:""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); animation: pulsering 1.8s var(--ease) infinite; }
@keyframes pulsering { 0%{ transform: scale(.6); opacity:.9; } 100%{ transform: scale(1.8); opacity:0; } }

/* ---------- scroll progress ---------- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: var(--seam); width: 0; transition: width .1s linear; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 120; height: var(--nav-h);
  background: rgba(246,247,249,0.72);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.nav__inner { height: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; gap: clamp(12px,2.2vw,34px); }
.brand { font-size: clamp(17px,2vw,20px); font-weight: 800; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand__mark { width: 24px; height: 24px; border-radius: 8px; object-fit: cover; }
.nav__links { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: clamp(12px,2vw,28px); margin: 0 auto 0 6px; list-style: none; padding: 0; }
.nav__links button { font-size: clamp(13px,1.4vw,15px); color: var(--ink-soft); transition: color .2s var(--ease); position: relative; }
.nav__links button:hover, .nav__links button.active { color: var(--ink); }
.nav__links button.active::after { content:""; position: absolute; left: 0; right: 0; bottom: -20px; height: 2px;
  background: var(--ink); border-radius: 2px; }
.nav__cta { display: flex; align-items: center; gap: 12px; flex: none; }
.nav__user { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding-inline: 16px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft); max-width: 200px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; transition: color .2s var(--ease); }
.nav__user:hover { color: var(--ink); }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; place-items: center; color: var(--ink); }
.nav__toggle:hover { background: rgba(16,19,24,0.06); }

.drawer { position: fixed; inset: var(--nav-h) 0 0; z-index: 110; background: rgba(246,247,249,0.98);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer ul { list-style: none; margin: 0; padding: 16px 24px; display: grid; gap: 2px; }
.drawer button { display: block; width: 100%; text-align: left; padding: 16px 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.drawer .btn { margin: 18px 24px; width: calc(100% - 48px); }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center; padding: clamp(70px,9vh,120px) 0 clamp(48px,7vh,90px); }
.hero__eyebrow { display: block; text-align: center; margin: 0 auto 26px; }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; max-width: 15ch; margin-inline: auto; }
.hero h1 .thin { font-weight: 350; }
.hero__lead { font-size: var(--t-lead); color: var(--ink-soft); max-width: 44ch; margin: 26px auto 0; text-wrap: pretty; }
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero__services { display: none; } /* mobile-only quick links to the 4 services — rules in the 680px block */

/* ---------- service explorer ---------- */
.explorer__tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tabbtn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding-inline: 20px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink-soft);
  transition: all .25s var(--ease); }
.tabbtn:hover { border-color: var(--line-2); color: var(--ink); transform: translateY(-1px); }
.tabbtn.active { color: var(--svc); border-color: var(--svc);
  background: var(--card); box-shadow: 0 8px 20px -12px color-mix(in oklab, var(--svc) 60%, transparent); }
.tabbtn .ic { width: 22px; height: 22px; display: grid; place-items: center; color: var(--svc); }
.explorer__panel { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px,5vw,72px); align-items: center; }
.explorer__copy { max-width: 32rem; }
.explorer__copy .eyebrow { color: var(--svc); margin-bottom: 14px; display: block; }
.explorer__copy h3 { font-size: clamp(26px,3vw,40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.explorer__copy p.lead { color: var(--ink-soft); font-size: var(--t-lead); margin-top: 16px; }
.flist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.flist .dot { flex: none; margin-top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in oklab, var(--svc) 14%, #fff); color: var(--svc); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.explorer__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.fade-swap { animation: fadeSwap .45s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* live demo shell */
.demo-note { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); text-align: right; }
.demo { --c: var(--svc); position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px rgba(16,19,24,0.25), 0 2px 8px rgba(16,19,24,0.04);
  padding: 22px; min-height: 440px; display: flex; flex-direction: column; }
.demo__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.demo__bar .live { font-family: var(--mono); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--c); }
.demo__bar .title { font-size: 13.5px; color: var(--ink-soft); margin-left: auto; font-weight: 600; }
.demo__body { flex: 1; display: flex; flex-direction: column; }

/* QR demo */
.qr-demo { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.qr-card { width: 168px; padding: 16px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 24px -10px rgba(16,19,24,0.22); }
.qr-grid { display: grid; grid-template-columns: repeat(9,1fr); gap: 3px; }
.qr-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--ink); transition: background .3s; }
.qr-grid i.off { background: transparent; }
.qr-card .meta { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); font-weight: 500; letter-spacing: .04em; }
.qr-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ring-stat { display: flex; align-items: center; gap: 14px; }
.ring { --p: 0; width: 72px; height: 72px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p)*1%), var(--ring-track) 0); transition: --p .6s var(--ease); }
.ring::after { content:""; position: absolute; }
.ring .inner { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--mono); font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-stat .rl { font-size: 13px; color: var(--ink-soft); }
.ring-stat .rl b { font-family: var(--mono); display: block; font-size: 22px; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.feed { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel-2);
  animation: feedIn .5s var(--spring); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.feed-row .av { width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 11px; font-weight: 800; display: grid; place-items: center; color: #fff; }
.feed-row .nm { font-size: 13.5px; font-weight: 600; }
.feed-row .tm { font-family: var(--mono); margin-left: auto; font-size: 11.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.feed-row .ok { color: var(--ok); font-size: 13px; }

/* vote demo */
.vote-q { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 16px; }
.vote-opts { display: grid; gap: 11px; }
.vote-opt { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2);
  padding: 14px 16px; cursor: pointer; transition: border-color .2s var(--ease), transform .15s var(--ease); text-align: left; }
.vote-opt:hover { border-color: var(--line-2); transform: translateX(2px); }
.vote-opt.voted { cursor: default; }
.vote-opt.mine { border-color: color-mix(in oklab, var(--c) 70%, transparent); }
.vote-opt .fill { position: absolute; inset: 0; width: 0; background: color-mix(in oklab, var(--c) 32%, transparent); transition: width .7s var(--ease); z-index: 0; }
.vote-opt .row { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.vote-opt .lbl { font-size: 14.5px; font-weight: 600; }
.vote-opt .pct { font-family: var(--mono); margin-left: auto; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .3s; }
.vote-opt.voted .pct { opacity: 1; }
.vote-opt .badge-me { font-size: 10.5px; font-weight: 700; color: var(--c); border: 1px solid color-mix(in oklab,var(--c) 50%, transparent); border-radius: 6px; padding: 1px 6px; }
.vote-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 13px; }
.vote-foot .total { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* video demo — tiles stay dark on purpose (feels like a live feed) */
.vid-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.vid-tile { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  border: 2px solid transparent; transition: border-color .3s var(--ease); }
.vid-tile.speaking { border-color: var(--c); box-shadow: 0 0 26px -6px color-mix(in oklab, var(--c) 90%, transparent); }
.vid-tile .ava { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 16px; }
.vid-tile .nm { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 6px; backdrop-filter: blur(4px); color: #fff; }
.vid-tile .mic { position: absolute; right: 7px; bottom: 7px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; background: rgba(0,0,0,.45); color: #fff; }
.vid-tile .mic.off { color: oklch(0.68 0.21 25); }
.vid-tile.self { outline: 1px dashed rgba(255,255,255,.3); }
.hand-flag { position: absolute; top: 7px; right: 7px; font-size: 16px; }
.vid-controls { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; justify-content: center; }
.vctl { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line);
  transition: all .2s var(--ease); }
.vctl:hover { background: var(--panel-3); }
.vctl.off { background: oklch(0.5 0.19 25); color: #fff; border-color: transparent; }
.vctl.end { background: oklch(0.5 0.19 25); color: #fff; border-color: transparent; width: 64px; border-radius: 24px; }
.vid-caption { text-align: center; margin-top: 14px; font-size: 13px; color: var(--ink-soft); min-height: 1.4em; }
.vid-caption b { color: var(--c); }

/* AI interview demo */
.ai-stage { flex: 1; display: flex; flex-direction: column; }
.ai-q { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.ai-q .bot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--ai); color: #fff; font-size: 16px; }
.ai-q .qt { font-size: 15px; font-weight: 600; line-height: 1.5; }
.ai-q .qt small { display: block; color: var(--ink-soft); font-weight: 500; margin-top: 4px; font-size: 12px; }
.ai-mid { flex: 1; display: grid; place-items: center; padding: 18px 0; }
.wavebox { display: flex; align-items: center; gap: 5px; height: 60px; }
.wavebox span { width: 5px; border-radius: 4px; background: var(--c); box-shadow: 0 0 6px -2px var(--c); transition: height .12s linear; }
.ai-hint { text-align: center; color: var(--ink-soft); font-size: 13.5px; }
.score-card { display: grid; gap: 12px; animation: fadeSwap .5s var(--ease); }
.score-top { display: flex; align-items: center; gap: 16px; }
.score-ring { width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p,0)*1%), var(--ring-track) 0); }
.score-ring .inner { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; flex-direction: column; }
.score-ring .inner b { font-family: var(--mono); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.score-ring .inner small { font-size: 10px; color: var(--ink-soft); }
.score-top .lead { font-size: 13.5px; color: var(--ink-soft); }
.score-top .lead b { display: block; color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.metric { display: grid; grid-template-columns: 84px 1fr 38px; align-items: center; gap: 10px; font-size: 13px; }
.metric .bar { height: 7px; border-radius: 5px; background: var(--ring-track); overflow: hidden; }
.metric .bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, color-mix(in oklab,var(--c) 55%, #fff), var(--c)); transition: width .9s var(--ease); }
.metric .mv { font-family: var(--mono); text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.ai-actions { margin-top: 16px; display: flex; gap: 10px; }

/* ---------- flow / run-sheet timeline ---------- */
.flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px 24px; position: relative; }
.flow__rail { position: absolute; left: 6%; right: 6%; top: 5px; height: 4px; border-radius: 4px; background: var(--seam); }
.flow-step { position: relative; text-align: center; padding-top: 40px; }
.flow-step__time { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; color: var(--c); margin-bottom: 10px; }
.flow-step__dot { position: absolute; top: 7px; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line); z-index: 1; transition: transform .25s var(--spring); }
.flow-step:hover .flow-step__dot { transform: translate(-50%, -50%) scale(1.15); }
.flow-step h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.flow-step p { font-size: 13.5px; color: var(--ink-soft); max-width: 22ch; margin-inline: auto; }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq-item { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: var(--line-2); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 600; }
.faq-q .pm { margin-left: auto; flex: none; width: 22px; height: 22px; display: grid; place-items: center; transition: transform .3s var(--ease); color: var(--ink-faint); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--ink); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- CTA — the one dark block on a light page ---------- */
.cta-panel { position: relative; border-radius: var(--r-lg); overflow: hidden; text-align: center;
  padding: clamp(48px,7vw,92px) 24px; background: var(--ink); color: #fff; }
.cta-panel h2 { font-size: var(--t-display); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; margin-inline: auto; color: #fff; }
.cta-panel p { color: rgba(255,255,255,.7); font-size: var(--t-lead); margin: 18px auto 0; max-width: 38ch; }
.cta-panel .acts { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-panel .btn { background: #fff; color: var(--ink); box-shadow: none; }
.cta-panel .btn:hover { box-shadow: 0 10px 24px -12px rgba(0,0,0,.4); }
.cta-panel .btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cta-panel .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 40px; color: var(--ink-soft); font-size: var(--t-small); }
.footer button { font-size: inherit; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: var(--t-small); color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer button:hover, .footer a:hover { color: var(--ink); }
.footer__brand .brand { font-size: 18px; color: var(--ink); }
.footer__brand p { margin-top: 12px; max-width: 28ch; line-height: 1.55; }
.footer__bottom { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(16,19,24,0.4); backdrop-filter: blur(6px); animation: backIn .25s var(--ease); }
@keyframes backIn { from { opacity: 0; } to { opacity: 1; } }
.modal { width: min(520px,100%); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--card);
  box-shadow: 0 40px 90px -40px rgba(16,19,24,.35); overflow: hidden; animation: modalIn .35s var(--spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.modal__head { padding: 22px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: 18px; font-weight: 700; }
.modal__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.modal__close:hover { background: var(--panel-2); color: var(--ink); }
.modal__body { padding: 24px; }
.steps-ind { display: flex; gap: 8px; margin-bottom: 22px; }
.steps-ind i { height: 4px; flex: 1; border-radius: 3px; background: var(--line-2); transition: background .3s; }
.steps-ind i.done { background: var(--seam); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); color: var(--ink); font-size: 15px; transition: border-color .2s; }
.field textarea { height: 92px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: color-mix(in oklab, var(--ink) 45%, transparent); }
.field input.err, .field textarea.err { border-color: oklch(0.55 0.19 25); }
.field .msg { font-size: 12px; color: oklch(0.55 0.19 25); margin-top: 6px; }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc-pick button { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-align: left; transition: all .2s var(--ease); }
.svc-pick button .ic { width: 20px; height: 20px; color: var(--c); }
.svc-pick button.sel { color: var(--ink); border-color: color-mix(in oklab,var(--c) 60%, transparent); background: color-mix(in oklab,var(--c) 14%, var(--panel-2)); }
.modal__foot { padding: 18px 24px; display: flex; gap: 12px; border-top: 1px solid var(--line); }
.done-screen { text-align: center; padding: 14px 0 6px; }
.done-screen .ok-ic { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center;
  background: color-mix(in oklab,var(--ok) 22%, transparent); color: var(--ok); animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.done-screen h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.done-screen p { color: var(--ink-soft); font-size: 15px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .explorer__panel { grid-template-columns: 1fr; }
  .explorer__visual { order: -1; }
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .flow__rail { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; margin-left: auto; }
  .nav__cta .btn--ghost { display: none; }
  /* hero: keep all four services above the fold on phones */
  .hero { padding: 32px 0 28px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 22px; }
  .hero__actions .btn--lg { height: 52px; padding-inline: 22px; font-size: 15.5px; }
  .hero__services { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 340px; margin: 18px auto 0; }
  .hero__services button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; white-space: nowrap; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: background .2s var(--ease); }
  .hero__services button:active { background: var(--panel); }
  .hero__services .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
  .qr-demo { grid-template-columns: 1fr; }
  .qr-card { margin-inline: auto; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow-step { text-align: left; padding: 0 0 0 22px; border-left: 2px solid var(--line-2); }
  .flow-step__dot { top: 4px; left: -2px; transform: translate(-50%, -50%); }
  .flow-step:hover .flow-step__dot { transform: translate(-50%, -50%) scale(1.15); }
  .footer__top { grid-template-columns: 1fr; }
  .svc-pick { grid-template-columns: 1fr; }
}
