/* Docsift — one-page marketing site */
:root {
  --ink: #0b1b2e;
  --ink-2: #33445a;
  --muted: #66758a;
  --line: #e2e7ef;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --soft-2: #eef2fb;
  --accent: #3b5bfd;
  --accent-ink: #2442e6;
  --accent-soft: #eaeeff;
  --amber: #ffc83d;
  --amber-soft: #fff3cc;
  --green: #16a34a;
  --green-soft: #e7f7ec;
  --navy: #081524;
  --navy-2: #0f2238;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 46, .06), 0 1px 1px rgba(11, 27, 46, .04);
  --shadow: 0 1px 2px rgba(11, 27, 46, .05), 0 8px 24px -6px rgba(11, 27, 46, .10);
  --shadow-lg: 0 2px 4px rgba(11, 27, 46, .04), 0 24px 60px -12px rgba(20, 40, 90, .22);
  --nav-h: 68px;
  --wrap: 1180px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id], header[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
::selection { background: var(--amber-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.028em; font-weight: 650; color: var(--ink); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.hl { background: linear-gradient(transparent 58%, var(--amber) 58%, var(--amber) 92%, transparent 92%); padding: 0 .08em; }
.accent { color: var(--accent); }
.sec { padding: 112px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin: 14px 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -6px rgba(59, 91, 253, .6); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 24px -8px rgba(59, 91, 253, .7); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfd6e2; transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #172a42; transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 9px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 12px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11,27,46,.35); }
.nav .wrap { display: flex; align-items: center; height: 100%; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
.mobile-menu { display: none; }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 380px at 78% 30%, rgba(59,91,253,.14), transparent 70%),
    radial-gradient(420px 300px at 92% 70%, rgba(255,200,61,.18), transparent 70%),
    radial-gradient(520px 360px at 8% 10%, rgba(59,91,253,.07), transparent 70%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 99px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.pill b { background: var(--accent); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 99px; font-weight: 600; }
.hero h1 { margin: 22px 0 22px; }
.hero .lead { max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; margin: 32px 0 26px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-proof .checks { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-proof .checks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-proof .checks svg { width: 16px; height: 16px; color: var(--green); }

/* Hero mockup: document -> fields */
.parse-demo { position: relative; }
.parse-demo .art {
  position: absolute; right: -120px; top: -80px; width: 720px; max-width: none; opacity: .0; z-index: -1; pointer-events: none;
}
.doc-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px; width: 304px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
}
.doc-card .doc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.doc-card .doc-title { font-weight: 700; color: var(--accent); letter-spacing: .06em; font-size: 14px; }
.doc-card .mono { font-family: var(--mono); font-size: 11.5px; }
.doc-card table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12px; }
.doc-card th { text-align: left; font-weight: 600; color: var(--ink); background: var(--soft); padding: 6px 8px; font-size: 11px; }
.doc-card td { padding: 6px 8px; border-bottom: 1px dashed var(--line); }
.doc-card td:last-child, .doc-card th:last-child { text-align: right; }
.doc-card .totals { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; justify-items: end; font-size: 12px; }
.doc-card .totals b { color: var(--ink); }
.fld { position: relative; border-radius: 4px; padding: 0 3px; margin: 0 -3px; transition: background .3s ease, box-shadow .3s ease; }
.fld.on { background: var(--amber-soft); box-shadow: 0 0 0 1.5px var(--amber); }
.scanline {
  position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px rgba(59,91,253,.35);
  opacity: 0;
}
.out-card {
  position: absolute; right: 0; top: 96px; width: 262px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.out-card header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.out-card header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.out-card header .tag { margin-left: auto; font: 500 11px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; }
.out-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--line-2); align-items: center; min-height: 36px; }
.out-row:last-child { border-bottom: 0; }
.out-row .k { color: var(--muted); font-size: 12px; }
.out-row .v { font-family: var(--mono); font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.out-row .v:empty::after { content: ""; display: inline-block; width: 60%; height: 10px; border-radius: 4px; background: var(--line-2); vertical-align: middle; }
.out-row.fill .v { animation: pop .35s ease; }
.out-foot { display: flex; gap: 6px; padding: 10px 14px; background: var(--soft); border-top: 1px solid var(--line); }
.chip { font: 500 11.5px var(--mono); padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; }
.chip.ok { background: var(--green-soft); border-color: #c6ecd2; color: #11703a; }
.flow-arrow { display: none; }
.flow-arrow path { stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.hero-demo-wrap { position: relative; height: 470px; }
.hero-demo-wrap .doc-card { position: absolute; left: 0; top: 0; }
.float-badge {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.float-badge small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.float-badge .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.float-badge.b1 { left: 24px; bottom: 34px; }
.float-badge.b2 { right: 10px; top: -8px; }

/* Integrations marquee */
.proof { padding: 30px 0 20px; }
.proof p.cap { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; }
.logo-pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink-2); font-size: 15.5px; white-space: nowrap; }
.logo-pill i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; font-weight: 700; flex: none; }
.logo-pill i.lg { border-radius: 0; background: var(--c); -webkit-mask: var(--u) center / contain no-repeat; mask: var(--u) center / contain no-repeat; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stat { padding: 28px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stat .n small { font-size: 22px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 10px; }

/* Problem */
.problem { background: linear-gradient(180deg, #fff, var(--soft)); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem h2 { margin: 14px 0 18px; }
.problem-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.problem-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.problem-list li b { color: var(--ink); font-weight: 600; }
.problem-list .x { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #fde8e8; color: #c03a3a; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: 1px; }
.hero-art { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-art img { width: 100%; height: auto; }

/* How it works — diagram 1 */
.how-diagram { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--soft); padding: 12px; }
.how-diagram svg { width: 100%; height: auto; }
.how-diagram .d-mobile { display: none; }
.d-node rect.box { fill: #fff; stroke: var(--line); }
.d-node text { font-family: var(--sans); fill: var(--ink); }
.d-label { font: 600 16px var(--sans); fill: var(--ink); }
.d-sub { font: 400 14px var(--sans); fill: var(--muted); }
.d-mono { font: 500 14px var(--mono); fill: var(--ink-2); }
.d-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.d-path-bg { fill: none; stroke: #d5dcea; stroke-width: 2; stroke-dasharray: 3 6; }
.d-pulse { fill: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.step { padding: 30px 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { font: 600 14px var(--mono); color: var(--accent); }
.step h3 { margin: 12px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.center-cta { text-align: center; margin-top: 40px; }
.center-cta small { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* Live demo */
.demo { background: var(--navy); color: #d6deea; overflow: hidden; }
.demo h2, .demo h3 { color: #fff; }
.demo .lead { color: #aebbd0; }
.demo .eyebrow { color: #8fa6ff; }
.demo-shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: var(--navy-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.demo-tabs { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.08); grid-column: 1 / -1; background: rgba(255,255,255,.02); overflow-x: auto; }
.demo-tab { border: 1px solid rgba(255,255,255,.1); background: transparent; color: #aebbd0; height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.demo-tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.demo-tab .src { font: 500 11px var(--mono); opacity: .7; }
.demo-stage { position: relative; min-height: 520px; padding: 28px; display: grid; place-items: center; background: radial-gradient(500px 300px at 50% 40%, rgba(59,91,253,.18), transparent 70%); }
.demo-panel { display: none; width: 100%; }
.demo-panel.on { display: block; }
.receipt-wrap { position: relative; width: min(360px, 100%); margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.receipt-wrap img { width: 100%; height: auto; }
.bbox { position: absolute; border: 2px solid var(--amber); background: rgba(255,200,61,.18); border-radius: 4px; opacity: 0; transform: scale(.96); transition: opacity .3s ease, transform .3s ease; }
.bbox.on { opacity: 1; transform: none; }
.bbox::after { content: attr(data-k); position: absolute; left: -2px; bottom: calc(100% + 2px); font: 600 10.5px var(--mono); background: var(--amber); color: var(--ink); padding: 2px 6px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.bbox.cur::after, .bbox:hover::after { opacity: 1; }
.bbox { cursor: default; }
.mail-card { width: min(430px, 100%); margin: 0 auto; background: #fff; color: var(--ink-2); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); font-size: 14px; overflow: hidden; }
.mail-card .mh { padding: 16px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 13px; }
.mail-card .mh b { color: var(--ink); }
.mail-card .mb { padding: 18px; display: grid; gap: 8px; line-height: 1.55; }
.demo-out { border-left: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; }
.demo-out-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-out-head b { color: #fff; font-size: 15px; }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #aebbd0; font: 500 12.5px var(--mono); padding: 5px 10px; border-radius: 6px; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.14); color: #fff; }
.demo-fields { padding: 8px 0; flex: 1; }
.dfield { display: grid; grid-template-columns: 130px 1fr auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.dfield .k { color: #8e9bb2; font-size: 13px; }
.dfield .v { color: #fff; font-family: var(--mono); font-size: 13.5px; min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dfield .c { font: 500 11px var(--mono); color: #6fd79a; opacity: 0; transition: opacity .3s; }
.dfield.done .c { opacity: 1; }
.dfield.low .c { color: #ffcf5c; }
.dfield.low .v { color: #ffe2a0; }
.demo-json { display: none; margin: 0; padding: 16px 20px; font: 12.5px/1.6 var(--mono); color: #cfe0ff; white-space: pre; overflow: auto; flex: 1; }
.demo-out.json .demo-fields { display: none; }
.demo-out.json .demo-json { display: block; }
.demo-out-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.demo-out-foot .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #cdd6e4; }
.demo-out-foot .chip.ok { background: rgba(22,163,74,.15); border-color: rgba(22,163,74,.35); color: #7ee2a4; }
.demo-note { margin-top: 18px; font-size: 13.5px; color: #7f8ca3; text-align: center; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6ddea; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; }
.span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; }
.card .viz { margin-top: 22px; }
.prompt-box { border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 14px; font-size: 14px; display: grid; gap: 8px; }
.prompt-box .row { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.prompt-box .row code { font: 600 12.5px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 5px; }
.prompt-box .row span { color: var(--ink-2); font-size: 13.5px; }
.try-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-docs a { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--soft); }
.try-docs img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.try-docs a:hover img { transform: scale(1.05); }
.try-docs span { position: absolute; left: 6px; bottom: 6px; font: 600 11.5px var(--mono); background: var(--ink); color: #fff; padding: 4px 7px; border-radius: 6px; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-cloud span { font: 500 12.5px var(--mono); padding: 5px 9px; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.table-viz { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font: 12.5px var(--mono); }
.table-viz .tr { display: grid; grid-template-columns: 1.6fr .5fr .8fr; border-bottom: 1px solid var(--line-2); }
.table-viz .tr:last-child { border-bottom: 0; }
.table-viz .tr span { padding: 8px 10px; }
.table-viz .tr span:not(:first-child) { text-align: right; }
.table-viz .th { background: var(--soft); color: var(--muted); font-weight: 600; }
.rule-list { display: grid; gap: 8px; font: 12.5px var(--mono); }
.rule-list div { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.rule-list em { font-style: normal; color: var(--accent); }
.api-snip { background: var(--navy); color: #cfe0ff; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.65 var(--mono); overflow-x: auto; white-space: pre; }
.api-snip .c1 { color: #8fa6ff; } .api-snip .c2 { color: #ffd66b; } .api-snip .c3 { color: #7ee2a4; }
.inbox-viz { display: grid; gap: 8px; }
.inbox-viz .ir { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: #fff; }
.inbox-viz .ir b { font: 500 12.5px var(--mono); color: var(--ink); }
.inbox-viz .ir small { color: var(--muted); display: block; font-size: 11.5px; }

/* Use cases */
.uc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.uc-tab { border: 1px solid var(--line); background: #fff; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.uc-tab:hover { border-color: #cdd5e3; }
.uc-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.uc-panel { display: none; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; background: linear-gradient(135deg, #fff 40%, var(--soft)); }
.uc-panel.on { display: grid; animation: fadeUp .35s ease; }
.uc-panel h3 { font-size: 28px; letter-spacing: -.03em; }
.uc-panel p { color: var(--ink-2); margin: 12px 0 18px; }
.uc-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.uc-panel li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.uc-panel li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.uc-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-fields span { font: 500 13px var(--mono); padding: 8px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.uc-fields span:nth-child(3n+1) { background: var(--amber-soft); border-color: #ffe08a; }

/* Compare — diagram 2 */
.compare { background: var(--soft); }
.vs-diagram { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 12px; margin-bottom: 40px; }
.vs-diagram .d-mobile { display: none; }
.vs-slow { fill: none; stroke: #e4a4a4; stroke-width: 2; stroke-dasharray: 4 6; }
.vs-fast { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line-2); }
.cmp-table thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: #fbfcfe; }
.cmp-table thead th.us { color: var(--accent); background: var(--accent-soft); }
.cmp-table td.us { background: #f7f9ff; font-weight: 600; color: var(--ink); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table .y { color: var(--green); font-weight: 700; }
.cmp-table .n { color: #c03a3a; font-weight: 700; }
.cmp-table .m { color: #b7791f; font-weight: 700; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-lg); }

/* Security */
.sec-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec-item { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sec-item .ico { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); margin-bottom: 14px; }
.sec-item .ico svg { width: 18px; height: 18px; }
.sec-item h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.sec-item p { color: var(--ink-2); font-size: 14.5px; }

/* Pricing */
.pricing { background: linear-gradient(180deg, #fff, var(--soft) 60%, #fff); }
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.bill-toggle button { border: 0; background: transparent; height: 36px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.save-tag { font: 600 12px var(--mono); color: #11703a; background: var(--green-soft); padding: 3px 8px; border-radius: 99px; margin-left: 6px; }
.slider-box { max-width: 760px; margin: 36px auto 0; text-align: center; }
.slider-box label { display: block; font-size: 18px; color: var(--ink-2); margin-bottom: 20px; }
.slider-box label b { color: var(--ink); font-size: 22px; letter-spacing: -.02em; }
input[type=range].pages { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), #dfe5f0 var(--p, 0%)); outline: none; }
input[type=range].pages::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(59,91,253,.35); cursor: grab; }
input[type=range].pages::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(59,91,253,.35); cursor: grab; }
.ticks { display: flex; justify-content: space-between; margin-top: 10px; font: 500 12px var(--mono); color: var(--muted); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan.pick { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.14), var(--shadow-lg); transform: translateY(-4px); }
.plan .badge { position: absolute; top: -12px; left: 24px; font: 600 11.5px var(--mono); letter-spacing: .04em; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 99px; opacity: 0; transition: opacity .2s; }
.plan.pick .badge { opacity: 1; }
.plan h3 { font-size: 18px; }
.plan .for { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 44px; letter-spacing: -.045em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 14.5px; }
.plan .per { font: 500 12.5px var(--mono); color: var(--muted); min-height: 20px; }
.plan .vol { margin: 16px 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14px; font-weight: 600; }
.plan .vol small { font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--green); }
.plan li.no { color: #9aa6b8; }
.plan li.no svg { color: #c2cad6; }
.plan .btn { margin-top: auto; width: 100%; }
.price-foot { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--muted); }
.price-foot span { display: inline-flex; gap: 6px; align-items: center; }
.price-foot svg { width: 15px; height: 15px; color: var(--green); }
.tier-table-wrap { margin-top: 56px; }
.tier-table-wrap summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); margin: 0 auto; }
.tier-table-wrap summary::-webkit-details-marker { display: none; }
.tier-table-wrap summary svg { width: 16px; height: 16px; transition: transform .2s; }
.tier-table-wrap[open] summary svg { transform: rotate(180deg); }
.tier-table-wrap .cmp-table { margin-top: 22px; }
.tier-table-wrap .cmp-table td:not(:first-child), .tier-table-wrap .cmp-table th:not(:first-child) { text-align: center; }

/* Reviews */
.reviews-grid { columns: 3; column-gap: 18px; }
.review { break-inside: avoid; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.review .stars { color: var(--amber); letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 12px 0 18px; font-size: 16px; color: var(--ink); line-height: 1.55; }
.review .who { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.review .who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; }
.review .who small { display: block; color: var(--muted); font-size: 13px; }
.review .ex { margin-left: auto; font: 500 10.5px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.big-quote { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center; margin-bottom: 26px; position: relative; overflow: hidden; }
.big-quote::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 50% 0%, rgba(59,91,253,.35), transparent 70%); }
.big-quote blockquote { position: relative; margin: 0 auto 22px; max-width: 760px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.big-quote .who { position: relative; color: #aebbd0; font-size: 14.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: #d3dbe8; box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-weight: 500; font-size: 18px; color: var(--ink-2); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq-list .a { padding: 0 22px 20px; color: var(--ink-2); font-size: 15.5px; }

/* Final CTA */
.final { padding: 40px 0 112px; }
.final-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff; padding: 72px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.final-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 90% 20%, rgba(59,91,253,.45), transparent 70%), radial-gradient(380px 240px at 5% 100%, rgba(255,200,61,.18), transparent 70%); }
.final-card > * { position: relative; }
.final-card h2 { color: #fff; }
.final-card p { color: #aebbd0; margin-top: 14px; font-size: 18px; }
.signup { display: grid; gap: 12px; }
.signup .row { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 14px; }
.signup input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 0 12px; color: var(--ink); background: transparent; }
.signup small { color: #8e9bb2; font-size: 13.5px; }
.signup .ok-msg { display: none; color: #7ee2a4; font-weight: 600; }
.signup.sent .ok-msg { display: block; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-grid h5 { margin: 0 0 14px; font-size: 13px; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* Reveal + motion */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s cubic-bezier(.2,.7,.2,1), translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; translate: 0 0; }
  .intro { animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms); }
  .marquee-track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .float-a { animation: floaty 6s ease-in-out infinite; }
  .float-b { animation: floaty 7s ease-in-out -2s infinite; }
  .scanline.run { animation: scan 2.4s cubic-bezier(.5,0,.5,1) 1; }
  .hero-bg { animation: drift 18s ease-in-out infinite alternate; }
  .d-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1); transition-delay: var(--d, 0ms); }
  .in .d-draw, .d-draw.in { stroke-dashoffset: 0; }
  .d-fade { opacity: 0; transition: opacity .5s ease; transition-delay: var(--d, 0ms); }
  .in .d-fade { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-pulse { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 50% { transform: translateY(-10px); } }
@keyframes scan { 0% { opacity: 0; top: 16px; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 18px); } }
@keyframes drift { to { transform: translate3d(-40px, 30px, 0) scale(1.05); } }
@keyframes dash { to { stroke-dashoffset: -12; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links a { padding: 8px 9px; font-size: 14.5px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-demo-wrap { max-width: 640px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { columns: 2; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; margin-left: 0; }
  .nav-cta { margin-left: auto; }
  .mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; flex-direction: column; gap: 4px; box-shadow: 0 20px 30px -20px rgba(11,27,46,.3); z-index: 49; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 8px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
  .problem-grid, .faq-grid, .final-card { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-out { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-3, .span-2, .span-4 { grid-column: span 2; }
  .uc-panel { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .sec-band { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .how-diagram .d-desktop, .vs-diagram .d-desktop { display: none; }
  .how-diagram .d-mobile, .vs-diagram .d-mobile { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .hero { padding-top: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-demo-wrap { height: auto; display: grid; gap: 14px; }
  .hero-demo-wrap .doc-card, .out-card { position: relative; width: 100%; left: auto; right: auto; top: auto; }
  .flow-arrow { display: none; }
  .float-badge { display: none; }
  .plans { grid-template-columns: 1fr; }
  .reviews-grid { columns: 1; }
  .sec-band { grid-template-columns: 1fr; }
  .big-quote { padding: 36px 22px; }
  .final-card { padding: 44px 22px; border-radius: 22px; }
  .signup .row { flex-direction: column; background: transparent; padding: 0; }
  .signup input { background: #fff; height: 52px; border-radius: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .dfield { grid-template-columns: 104px 1fr; padding: 10px 16px; }
  .dfield .c { display: none; }
  .demo-stage { padding: 18px; min-height: 0; }
  .cmp-table th, .cmp-table td { padding: 12px 12px; font-size: 14px; }
  .table-scroll .cmp-table { min-width: 640px; }
  .stat { padding: 22px 18px; }
  .stat .n { font-size: 32px; }
  .nav-cta .btn-primary { height: 38px; padding: 0 12px; font-size: 14px; }
}

/* ---------- Multi-page additions ---------- */
.page-top { padding-top: 72px; }
.page-h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.04em; margin: 14px 0 16px; }

/* Home: use-case cards */
.uc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uc-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.uc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d6ddea; }
.uc-card .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.uc-card .ico svg { width: 20px; height: 20px; }
.uc-card h3 { margin: 14px 0 6px; font-size: 18px; }
.uc-card p { color: var(--ink-2); font-size: 15px; }
.uc-card .more { display: block; margin-top: 14px; font: 500 12.5px var(--mono); color: var(--accent); }

/* Home: pricing teaser */
.price-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border: 1px solid var(--line); border-radius: 28px; padding: 48px; background: linear-gradient(135deg, #fff 40%, var(--soft)); }
.pt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; display: grid; gap: 2px; }
.pt b { font-size: 15px; }
.pt .p { font-size: 32px; font-weight: 700; letter-spacing: -.04em; }
.pt small { color: var(--muted); font-size: 13.5px; }
.pt.hot { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.pt-note { grid-column: 1 / -1; font: 500 12px var(--mono); color: var(--muted); text-align: right; }

/* Pricing page */
.cmp-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.price-cmp td:not(:first-child), .price-cmp th:not(:first-child) { text-align: center; }
.price-cmp sup { color: var(--muted); }
.plans-table .cmp-table td:not(:first-child), .plans-table .cmp-table th:not(:first-child) { text-align: center; }

/* Use-cases page */
.uc-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.uc-jump a { border: 1px solid var(--line); background: #fff; height: 40px; padding: 0 16px; border-radius: 99px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; transition: all .15s; }
.uc-jump a:hover { border-color: var(--ink); color: var(--ink); }
.uc-row { padding: 88px 0; border-top: 1px solid var(--line-2); scroll-margin-top: var(--nav-h); }
.uc-row.alt { background: var(--soft); }
.uc-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.uc-row.alt .uc-grid > :first-child { order: 2; }
.uc-row h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 12px 0 12px; }
.uc-row p { color: var(--ink-2); margin-bottom: 18px; }
.uc-row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.uc-row li { display: flex; gap: 10px; align-items: center; font-size: 15.5px; }
.uc-row li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 6px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.uc-visual { display: grid; gap: 18px; justify-items: center; }
.uc-photo { width: min(340px, 100%); height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.uc-doc { width: min(420px, 100%); }
.uc-visual .uc-fields { justify-content: center; }

/* Security page */
.flow-diagram { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--soft); padding: 24px 12px; }
.flow-diagram .d-mobile { display: none; }

@media (max-width: 900px) {
  .uc-cards { grid-template-columns: 1fr 1fr; }
  .price-teaser { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .uc-grid { grid-template-columns: 1fr; gap: 36px; }
  .uc-row.alt .uc-grid > :first-child { order: 0; }
  .flow-diagram .d-desktop { display: none; }
  .flow-diagram .d-mobile { display: block; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .uc-cards { grid-template-columns: 1fr; }
  .uc-row { padding: 64px 0; }
  .page-top { padding-top: 44px; }
}
@media (max-width: 640px) {
  .btn-lg { white-space: normal; text-align: center; height: auto; min-height: 54px; padding: 12px 20px; }
}

/* ---------- Hero v2: centered copy + live app-window demo ---------- */
.hero-v2 { padding: 64px 0 32px; text-align: center; }
.hero-v2 .wrap { display: block; }
.hero-copy { max-width: 920px; margin: 0 auto; }
.hero-v2 h1 { font-size: clamp(42px, 6.6vw, 84px); line-height: 1; letter-spacing: -.045em; margin: 24px auto 22px; text-wrap: balance; }
.hero-v2 .lead { max-width: 640px; margin: 0 auto; text-wrap: pretty; }
.hero-v2 .hero-ctas { justify-content: center; margin: 32px 0 22px; }
.hero-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; }
.hero-checks svg { width: 16px; height: 16px; color: var(--green); }

.showcase { position: relative; max-width: 1120px; margin: 56px auto 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(20, 40, 90, .35), 0 2px 6px rgba(11, 27, 46, .05); scroll-margin-top: calc(var(--nav-h) + 16px); }
.sc-chrome { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.sc-dots { display: flex; gap: 7px; }
.sc-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e3e7ee; }
.sc-url { margin: 0 auto; font: 500 12.5px var(--mono); color: var(--muted); background: var(--soft); border: 1px solid var(--line-2); padding: 4px 14px; border-radius: 7px; }
.sc-live { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--mono); color: #11703a; }
.sc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.sc-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center; }

.showcase .demo-shell { grid-template-columns: 1.12fr .88fr; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.showcase .demo-tabs { background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.showcase .demo-tabs::-webkit-scrollbar { display: none; }
.showcase .demo-tab { border-color: var(--line); color: var(--ink-2); background: #fff; }
.showcase .demo-tab:hover { border-color: #cdd5e3; }
.showcase .demo-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.showcase .demo-stage { min-height: 560px; background: radial-gradient(420px 300px at 50% 45%, rgba(59,91,253,.10), transparent 70%), var(--soft); }
.showcase .receipt-wrap { width: min(372px, 100%); box-shadow: 0 30px 60px -24px rgba(11, 27, 46, .45); }
.showcase .demo-out { border-left: 1px solid var(--line); background: #fff; }
.showcase .demo-out-head { border-bottom: 1px solid var(--line); }
.showcase .demo-out-head b { color: var(--ink); }
.showcase .seg { background: var(--soft); border: 1px solid var(--line-2); }
.showcase .seg button { color: var(--muted); }
.showcase .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.showcase .dfield { border-bottom: 1px solid var(--line-2); }
.showcase .dfield .k { color: var(--muted); }
.showcase .dfield .v { color: var(--ink); }
.showcase .dfield .c { color: #16a34a; }
.showcase .dfield.low { background: #fffaeb; }
.showcase .dfield.low .v { color: #8a5a00; }
.showcase .dfield.low .c { color: #b7791f; }
.showcase .demo-json { margin: 14px; border-radius: 12px; background: var(--navy); color: #cfe0ff; }
.showcase .demo-out-foot { border-top: 1px solid var(--line); }
.showcase .demo-out-foot .chip { background: #fff; border-color: var(--line); color: var(--ink-2); }
.showcase .demo-out-foot .chip.ok { background: var(--green-soft); border-color: #c6ecd2; color: #11703a; }
.showcase .progress { position: absolute; left: 0; top: 43px; height: 2px; background: var(--accent); width: 0; z-index: 2; }

@media (max-width: 900px) {
  .showcase .demo-shell { grid-template-columns: 1fr; }
  .showcase .demo-out { border-left: 0; border-top: 1px solid var(--line); }
  .showcase .demo-stage { min-height: 0; }
}
@media (max-width: 640px) {
  .hero-v2 { padding-top: 40px; }
  .hero-v2 h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero-checks { gap: 6px 16px; font-size: 13.5px; }
  .showcase { margin-top: 36px; border-radius: 16px; }
  .sc-url { display: none; }
  .sc-live { margin-left: auto; }
  .showcase .receipt-wrap { width: min(300px, 100%); }
}
@media (max-width: 640px) { .hero-v2 .pill { font-size: 13px; } }

/* ---------- Hero drop zone ---------- */
.dropbar { display: flex; align-items: center; gap: 14px; margin: 12px 12px 0; padding: 12px 14px; border: 1.5px dashed #c9d3ea; border-radius: 12px; background: linear-gradient(135deg, #f7f9ff, #fff); transition: border-color .2s, background .2s; }
.dropbar:hover { border-color: var(--accent); }
.db-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.db-ico svg { width: 20px; height: 20px; }
.db-text { display: grid; line-height: 1.35; min-width: 0; }
.db-text b { font-size: 15px; }
.db-text span { font-size: 13px; color: var(--muted); }
.db-btn { margin-left: auto; cursor: pointer; }
.drop-overlay { position: absolute; inset: 44px 0 0; z-index: 5; display: grid; place-items: center; background: rgba(59, 91, 253, .08); border: 2px dashed var(--accent); border-radius: 0 0 20px 20px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.drop-overlay span { font: 700 22px var(--sans); color: var(--accent); background: #fff; padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.showcase.dragging .drop-overlay { opacity: 1; }
.showcase.dragging .dropbar { border-color: var(--accent); background: var(--accent-soft); }
.mine-tab { border-style: dashed !important; }
.mine-wrap { position: relative; width: min(372px, 100%); margin: 0 auto; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px rgba(11, 27, 46, .45); min-height: 200px; display: grid; place-items: center; }
.mine-wrap img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.mine-pdf { display: grid; justify-items: center; gap: 10px; padding: 60px 24px; color: var(--muted); text-align: center; }
.mine-pdf svg { width: 64px; height: 64px; color: var(--accent); }
.mine-pdf b { font: 600 14px var(--mono); color: var(--ink); word-break: break-all; }
.mine-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 22px 6px rgba(59, 91, 253, .35); opacity: 0; }
.mine-wrap.scanning .mine-scan { opacity: 1; animation: sweep 1.6s ease-in-out infinite alternate; }
.mine-wrap.scanning::after { content: ""; position: absolute; inset: 0; background: rgba(59, 91, 253, .05); }
@keyframes sweep { from { top: 0; } to { top: calc(100% - 3px); } }
.dfield.skel .k, .dfield.skel .v { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 50%, #eef1f6 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.dfield.skel .k { width: 70%; }
.dfield.skel .v { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.demo-msg { display: grid; justify-items: start; gap: 6px; margin: 20px; padding: 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.demo-msg b { font-size: 16px; color: var(--ink); }
.demo-msg span { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
@media (prefers-reduced-motion: reduce) { .mine-wrap.scanning .mine-scan, .dfield.skel .k, .dfield.skel .v { animation: none; } }
@media (max-width: 640px) {
  .dropbar { flex-wrap: wrap; }
  .db-btn { margin-left: 0; width: 100%; }
}
