/* ============================================================
   MedPassport Lab — Marketing site
   Calm, trustworthy, alive. Brand teal on warm neutral.
   ============================================================ */

:root {
  --bg: #fbfbfa;
  --bg-tint: #f4f8f7;
  --surface: #ffffff;
  --border: #ececec;
  --border-strong: #e3e3e1;
  --text: #15201e;
  --text-muted: #5c6b68;
  --text-faint: #606d6a;
  --accent: #2f7d75;
  --accent-2: #3a8f86;
  --accent-deep: #1f5a54;
  --accent-ink: #143f3a;
  --accent-soft: #e8f3f1;
  --accent-glow: rgba(47, 125, 117, 0.35);
  --warn: #b5842c;
  --warn-soft: #fbf3e3;
  --good: #2d734d;
  --good-soft: #ecf6f0;
  --low: #c2603f;
  --low-soft: #fbeee8;
  --band: #eef4f3;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 10px 30px -12px rgba(20, 63, 58, .18), 0 4px 12px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 30px 60px -24px rgba(20, 63, 58, .28), 0 12px 24px -12px rgba(16, 24, 40, .12);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 11px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Ambient cursor glow ---------- */
.cursor-glow {
  position: fixed;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 125, 117, .10), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  transition: opacity .4s ease;
  opacity: 0;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251, 251, 250, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-text { display: inline-grid; line-height: 1.04; }
.brand-text b { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; }
.brand-text span { font-size: 11px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text-muted); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: #f1f1ef; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; letter-spacing: -.01em;
  padding: 11px 20px; border-radius: 11px;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(165deg, var(--accent-2), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--accent); color: var(--accent-deep); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 13px; }

/* Wrapper around nav links + CTAs. On desktop it's transparent to layout
   (display:contents), so the children behave exactly as before. On mobile it
   becomes a dropdown panel toggled by the hamburger. */
.nav-menu { display: contents; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 11px;
  align-items: center; justify-content: center;
  color: var(--text); border: 1px solid var(--border-strong); background: var(--surface);
  flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav.open .nav-toggle .ic-open { display: none; }
.nav.open .nav-toggle .ic-close { display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(47, 125, 117, .10), transparent 70%),
    radial-gradient(50% 40% at 10% 10%, rgba(58, 143, 134, .08), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(20, 63, 58, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 63, 58, .04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px 7px 9px; border-radius: 100px;
  font-size: 12.5px; font-weight: 550; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(58, 138, 95, .5); } 70% { box-shadow: 0 0 0 8px rgba(58, 138, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 138, 95, 0); } }

h1.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 3.85rem);
  line-height: 1.04; letter-spacing: -.035em; font-weight: 720;
  margin: 22px 0 0; color: var(--text);
}
.hero-title .grad {
  background: linear-gradient(105deg, var(--accent-2) 10%, var(--accent-deep) 55%, var(--accent-ink) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-muted); margin-top: 22px; max-width: 30em; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.hero-trust svg { width: 15px; height: 15px; color: var(--accent); }

/* word reveal animation */
.reveal-word { display: inline-block; opacity: 0; transform: translateY(18px); animation: wordUp .7s var(--ease) forwards; }
@keyframes wordUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Hero product card (animated chart) ---------- */
.hero-visual { position: relative; }
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transition: transform .6s var(--ease);
}
.hero-visual:hover .glass-card { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.card-top { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fff, #fcfdfd); }
.card-top .tdot { width: 10px; height: 10px; border-radius: 50%; }
.card-top .tdot:nth-child(1) { background: #f0a8a8; } .card-top .tdot:nth-child(2) { background: #f3d59a; } .card-top .tdot:nth-child(3) { background: #a7d8b6; }
.card-top .ttitle { margin-left: 10px; font-size: 12px; color: var(--text-faint); font-weight: 550; }
.card-body { padding: 22px; }
.cb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cb-head .cb-name { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.tag { font-size: 11px; font-weight: 650; padding: 4px 10px; border-radius: 100px; }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.low { background: var(--low-soft); color: var(--low); }
.cb-sub { font-size: 12px; color: var(--text-faint); margin-bottom: 16px; }
.chart { position: relative; width: 100%; height: 170px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .band { fill: var(--band); }
.chart .gridline { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .line { fill: none; stroke: url(#lineGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.chart .area { fill: url(#areaGrad); opacity: 0; }
.chart .pt { fill: #fff; stroke: var(--accent); stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart .pt.flag { stroke: var(--warn); }
.animate-chart .line { animation: draw 1.8s var(--ease) forwards; }
.animate-chart .area { animation: fadeArea .9s ease forwards .9s; }
.animate-chart .pt { animation: popPt .4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
@keyframes popPt { 0% { opacity: 0; transform: scale(0); } 60% { transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
.cb-stats { display: flex; gap: 10px; margin-top: 18px; }
.cb-stat { flex: 1; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.cb-stat b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; display: block; }
.cb-stat span { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

/* floating mini cards */
.float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 11px 14px; display: flex; align-items: center; gap: 11px; z-index: 3; }
.float .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.float small { font-size: 10.5px; color: var(--text-faint); display: block; font-weight: 600; }
.float b { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.float-a { top: -22px; left: -34px; animation: floaty 5s ease-in-out infinite; }
.float-b { bottom: 18px; right: -40px; animation: floaty 5.6s ease-in-out infinite .6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* logo marquee */
.marquee-wrap { margin-top: 78px; }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 650; margin-bottom: 22px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll-x 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 17px; font-weight: 650; color: #b7beba; letter-spacing: -.01em; white-space: nowrap; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; z-index: 1; }
.section { padding: 96px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg), var(--bg-tint) 40%, var(--bg)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 700; margin: 16px 0 0; }
.section-head p { font-size: 1.06rem; color: var(--text-muted); margin-top: 16px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* ============================================================
   Problem — scattered labs
   ============================================================ */
.scatter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.scatter-cloud { position: relative; height: 380px; }
.chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 8px; color: var(--text-muted);
  animation: bob 6s ease-in-out infinite;
}
.chip svg { width: 15px; height: 15px; color: var(--text-faint); }
.chip:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.chip:nth-child(2) { top: 2%; left: 52%; animation-delay: .8s; }
.chip:nth-child(3) { top: 34%; left: 30%; animation-delay: 1.6s; transform: rotate(-3deg); }
.chip:nth-child(4) { top: 30%; left: 66%; animation-delay: .4s; transform: rotate(2deg); }
.chip:nth-child(5) { top: 62%; left: 10%; animation-delay: 1.2s; transform: rotate(2deg); }
.chip:nth-child(6) { top: 58%; left: 46%; animation-delay: 2s; }
.chip:nth-child(7) { top: 80%; left: 30%; animation-delay: .6s; transform: rotate(-2deg); }
.chip:nth-child(8) { top: 78%; left: 66%; animation-delay: 1.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-9px) rotate(var(--r, 0deg)); } }
.scatter-copy ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.scatter-copy li { display: flex; gap: 12px; font-size: 15px; color: var(--text-muted); }
.scatter-copy li svg { width: 20px; height: 20px; color: var(--low); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   How it works
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px 26px; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.step::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent-2), transparent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step-num { counter-increment: step; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.step-num::before { content: "0" counter(step); }
.step-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); display: grid; place-items: center; margin: 16px 0 18px; color: var(--accent-deep); }
.step-ic svg { width: 23px; height: 23px; }
.step h3 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.step p { font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* ============================================================
   Feature showcase — UI mockups
   ============================================================ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 110px; }
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); letter-spacing: -.025em; line-height: 1.12; font-weight: 700; margin: 14px 0 0; }
.feature-copy > p { font-size: 1.04rem; color: var(--text-muted); margin-top: 16px; }
.feature-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.feature-list li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); }
.feature-list li svg { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.mock {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mock:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #fcfdfd; }
.mock-bar .d { width: 9px; height: 9px; border-radius: 50%; }
.mock-bar .d:nth-child(1) { background: #f0a8a8; }
.mock-bar .d:nth-child(2) { background: #f3d59a; }
.mock-bar .d:nth-child(3) { background: #a7d8b6; }
.mock-pad { padding: 20px; }

/* dashboard stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-tile { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: background .25s, transform .25s; }
.stat-tile:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-sm); }
.stat-tile .si { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 12px; }
.si.green { background: var(--good-soft); color: var(--good); } .si.amber { background: var(--warn-soft); color: var(--warn); } .si.teal { background: var(--accent-soft); color: var(--accent-deep); }
.stat-tile .big { font-size: 26px; font-weight: 750; letter-spacing: -.03em; line-height: 1; }
.stat-tile .lbl { font-size: 12px; color: var(--text-muted); margin-top: 5px; font-weight: 550; }
.stat-tile .sub { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }

/* biomarker rows */
.bm-list { display: flex; flex-direction: column; }
.bm-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--border); transition: background .2s; }
.bm-row:last-child { border-bottom: none; }
.bm-row:hover { background: var(--bg-tint); }
.bm-row .nm { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.bm-row .ds { font-size: 11.5px; color: var(--text-faint); margin-top: 1px; }
.spark { width: 92px; height: 30px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; stroke-dashoffset: 240; }
.spark.draw path { animation: draw 1.4s var(--ease) forwards; }
.bm-val { text-align: right; }
.bm-val b { font-size: 14px; font-weight: 700; }
.bm-val span { font-size: 10px; color: var(--text-faint); }
.bm-tag { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }

/* review table mock */
.rev-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.rev-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.rev-table td { padding: 11px 10px; border-bottom: 1px solid var(--border); }
.rev-table tr:last-child td { border-bottom: none; }
.rev-table td b { font-weight: 600; }
.conf { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 7px; }
.conf.hi { background: var(--good-soft); color: var(--good); }
.conf.mid { background: var(--warn-soft); color: var(--warn); }
.rev-table tr.flagged { background: var(--warn-soft); }

/* export mock */
.export-doc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.export-doc .ed-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--accent-deep); padding-bottom: 12px; margin-bottom: 14px; }
.export-doc .ed-head h4 { font-size: 16px; letter-spacing: -.02em; }
.export-doc .ed-head span { font-size: 10.5px; color: var(--text-faint); }
.ed-line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.ed-line span:last-child { font-weight: 650; }
.ed-disc { font-size: 10px; color: var(--text-faint); margin-top: 14px; font-style: italic; line-height: 1.5; }

/* ============================================================
   AI assistant showcase
   ============================================================ */
.ai-section { background: var(--bg); }
.ai-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 64px; align-items: center; }
.ai-copy h2 { max-width: 16ch; margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; }
.ai-lead { max-width: 61ch; margin-top: 18px; color: var(--text-muted); font-size: 1.04rem; }
.ai-access-note { display: flex; align-items: center; gap: 13px; margin-top: 24px; padding: 14px 16px; border: 1px solid rgba(47, 125, 117, .2); border-radius: 14px; background: rgba(232, 243, 241, .72); color: var(--accent-ink); }
.ai-access-icon, .ai-avatar { display: grid; place-items: center; flex: 0 0 auto; background: var(--surface); color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: .02em; box-shadow: var(--shadow-sm); }
.ai-access-icon { width: 38px; height: 38px; border-radius: 11px; }
.ai-access-note > span:last-child { display: grid; gap: 1px; font-size: 12.5px; color: var(--text-muted); }
.ai-access-note strong { color: var(--accent-ink); font-size: 13.5px; }
.ai-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.ai-benefit { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .78); }
.ai-benefit h3 { font-size: 14px; letter-spacing: -.01em; }
.ai-benefit p { margin-top: 5px; color: var(--text-muted); font-size: 12.5px; line-height: 1.55; }
.ai-demo { overflow: hidden; border: 1px solid rgba(47, 125, 117, .2); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.ai-demo-head { display: flex; align-items: center; gap: 11px; padding: 16px 18px; color: #fff; background: linear-gradient(145deg, var(--accent-deep), var(--accent-2)); }
.ai-avatar { width: 38px; height: 38px; border-radius: 12px; }
.ai-demo-head > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.ai-demo-head strong { font-size: 14px; }
.ai-demo-head small { color: #cce4df; font-size: 10.5px; }
.ai-beta { padding: 3px 7px; border-radius: 100px; background: rgba(255, 255, 255, .16); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.ai-consent { display: flex; gap: 7px; align-items: center; padding: 8px 14px; color: var(--accent-deep); background: var(--accent-soft); border-bottom: 1px solid rgba(47, 125, 117, .14); font-size: 10.5px; font-weight: 700; }
.ai-consent span { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 3px; color: #fff; background: var(--accent); }
.ai-demo-body { display: flex; flex-direction: column; min-height: 390px; padding: 20px 18px 16px; background: #fbfdfc; }
.ai-example-label { margin-bottom: 8px; color: var(--text-faint); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ai-message { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; line-height: 1.55; }
.ai-message.user { align-self: flex-end; margin-bottom: 14px; border-bottom-right-radius: 5px; color: #fff; background: var(--accent); }
.ai-message.assistant { align-self: flex-start; border: 1px solid var(--border); border-bottom-left-radius: 5px; background: #fff; }
.ai-message.assistant p + p, .ai-message.assistant ul + p { margin-top: 9px; }
.ai-message.assistant ul { margin: 7px 0 0 18px; color: var(--text-muted); }
.ai-message.assistant li + li { margin-top: 4px; }
.ai-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.ai-prompts span { padding: 6px 9px; border: 1px solid rgba(47, 125, 117, .18); border-radius: 100px; color: var(--accent-deep); background: var(--accent-soft); font-size: 9.5px; font-weight: 650; }
.ai-demo-foot { padding: 9px 14px; border-top: 1px solid var(--border); color: var(--text-faint); background: #fff; text-align: center; font-size: 9.5px; }

/* ============================================================
   Privacy
   ============================================================ */
.privacy { background: linear-gradient(165deg, #143f3a, #1f5a54 60%, #25655e); color: #eaf4f2; border-radius: 28px; padding: 64px 56px; position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 85% 10%, rgba(120, 200, 188, .18), transparent 60%); pointer-events: none; }
.privacy::after { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent); mask-image: radial-gradient(60% 80% at 80% 20%, #000, transparent); }
.privacy-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.privacy .eyebrow { color: #8fd6c9; }
.privacy .eyebrow::before { background: #8fd6c9; }
.privacy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 16px; font-weight: 700; }
.privacy p.lead { color: #c2ddd8; font-size: 1.05rem; max-width: 32em; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcard { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 20px; backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .3s; }
.pcard:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); }
.pcard .pic { width: 38px; height: 38px; border-radius: 11px; background: rgba(143, 214, 201, .16); color: #b7e6dc; display: grid; place-items: center; margin-bottom: 14px; }
.pcard .pic svg { width: 20px; height: 20px; }
.pcard h3 { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.pcard p { font-size: 12.5px; color: #aacfc9; margin-top: 6px; }

/* ============================================================
   Stats band
   ============================================================ */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 760; letter-spacing: -.04em; line-height: 1; background: linear-gradient(150deg, var(--accent-2), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.statband .cap { font-size: 13px; color: var(--text-muted); margin-top: 10px; font-weight: 550; }
.statband .sep { display: none; }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border: 1.5px solid var(--accent); box-shadow: 0 24px 60px -24px rgba(31, 90, 84, .48); background: radial-gradient(circle at 100% 0, rgba(143, 214, 201, .2), transparent 34%), linear-gradient(180deg, #fff, #f7fcfa); }
.price-card.featured::after { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 100px 100px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); }
.popular-badge { position: absolute; z-index: 2; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 15px; color: #fff; background: linear-gradient(165deg, var(--accent-2), var(--accent-deep)); border-radius: 100px; box-shadow: 0 8px 18px -7px var(--accent-glow); font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; white-space: nowrap; }
.price-card-free { background: rgba(255, 255, 255, .78); box-shadow: 0 12px 34px -28px rgba(16, 32, 42, .45); }
.price-name { font-size: 14px; font-weight: 650; color: var(--accent-deep); letter-spacing: -.01em; }
.plan-tag { display: inline-flex; margin-left: 7px; padding: 4px 9px; border-radius: 100px; color: var(--accent-deep); background: var(--accent-soft); font-size: 10.5px; font-weight: 750; vertical-align: 1px; }
.price-amt { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-amt .amt { font-size: 42px; font-weight: 760; letter-spacing: -.04em; }
.price-amt .per { font-size: 14px; color: var(--text-faint); font-weight: 550; }
.price-desc { font-size: 13px; color: var(--text-muted); min-height: 38px; }
.price-card .btn { width: 100%; margin: 20px 0 22px; }
.price-card.featured .price-amt .amt { color: var(--accent-deep); font-size: 46px; }
.price-card.featured .btn { min-height: 48px; box-shadow: 0 12px 26px -12px var(--accent-glow); }
.price-card.featured .btn:hover { box-shadow: 0 16px 30px -12px var(--accent-glow); }
.feature-intro { margin: -3px 0 13px; color: var(--text); font-size: 12px; font-weight: 700; }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-feats li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-muted); }
.price-feats li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.price-card.featured .price-feats { gap: 14px; }
.price-card.featured .price-feats li { color: var(--text); }
.price-card.featured .price-feats li svg { width: 19px; height: 19px; padding: 3px; color: #fff; background: var(--accent); border-radius: 50%; }
.price-card.featured .price-feats b { color: var(--accent-deep); font-weight: 720; }
.price-feats li.muted { color: var(--text-faint); }
.price-feats li.muted svg { color: var(--text-faint); }
.price-note { text-align: center; font-size: 13px; color: var(--text-faint); margin-top: 26px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.faq-q .pm { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; transition: transform .35s var(--ease), background .25s, color .25s; color: var(--text-muted); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 4px 22px; font-size: 14.5px; color: var(--text-muted); max-width: 64ch; }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta { text-align: center; position: relative; overflow: hidden; padding: 110px 0; }
.cta-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(47, 125, 117, .12), transparent 70%); }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.035em; line-height: 1.06; font-weight: 740; max-width: 16ch; margin: 0 auto; }
.cta p { font-size: 1.1rem; color: var(--text-muted); margin: 20px auto 34px; max-width: 40ch; }
.cta .hero-actions { justify-content: center; }

.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); margin-top: 14px; max-width: 30ch; }
.footer-col h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 700; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { font-size: 12.5px; color: var(--text-faint); }
.footer-disc { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 12px; color: var(--text-muted); margin-top: 30px; line-height: 1.6; }
.footer-disc b { color: var(--text); }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 721px) and (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav.open { background: rgba(251, 251, 250, .98); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 24px 20px; background: rgba(251, 251, 250, .98); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open .nav-menu { display: flex; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 10px 12px; font-size: 14px; border-radius: 10px; }
  .nav-cta { align-items: stretch; margin-top: 4px; }
  .nav-cta .btn { flex: 1; }
}
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .float-a { left: 0; } .float-b { right: 0; }
  .scatter, .feature-row, .feature-row.flip, .privacy-inner, .ai-shell { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .feature-copy { order: 0; }
  .ai-demo { width: 100%; max-width: 560px; margin: 0 auto; }
  .steps, .price-grid { grid-template-columns: 1fr; }
  .privacy { padding: 44px 32px; }
  .statband { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  /* ---- Mobile nav: hamburger dropdown ---- */
  .nav-toggle { display: inline-flex; }
  .nav.open { background: rgba(251, 251, 250, .98); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
  .nav-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 10px;
    padding: 14px 20px 20px;
    background: rgba(251, 251, 250, .98);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-menu { display: flex; }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 11px 12px; font-size: 15px; border-radius: 10px; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 4px; }
  .nav-cta .btn { width: 100%; padding: 13px 20px; font-size: 15px; }

  .hero { padding: 120px 0 70px; }
  .hero-visual { max-width: 100%; }
  .glass-card { transform: none; }
  .float { display: none; }
  .section { padding: 72px 0; }

  /* ---- Problem: scattered chips become a tidy wrapped row ---- */
  .scatter-cloud { height: auto; display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { position: static; top: auto; left: auto; transform: none !important; animation: none; }

  .privacy { padding: 36px 22px; border-radius: 22px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .ai-benefits { grid-template-columns: 1fr; }
  .ai-demo-body { min-height: 340px; }

  /* ---- Pricing: the inline grid-template forces 2 cols; collapse to 1 ---- */
  .price-grid { grid-template-columns: 1fr !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   Texture & depth
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* richer shadows + a hairline top highlight on cards */
.glass-card, .mock, .price-card, .step, .demo-window {
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.privacy { box-shadow: 0 40px 80px -30px rgba(20, 63, 58, .5); }

/* ============================================================
   Interactive hero chart — marker switch + tooltip
   ============================================================ */
.marker-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.marker-switch button {
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); transition: all .2s var(--ease); letter-spacing: -.01em;
}
.marker-switch button:hover { border-color: var(--accent); color: var(--accent-deep); }
.marker-switch button.active { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chart { cursor: crosshair; }
.chart .hover-pt { fill: var(--accent-deep); opacity: 0; pointer-events: none; transition: opacity .12s; }
.chart .hover-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; transition: opacity .12s; }
.chart-tooltip {
  position: absolute; transform: translate(-50%, -130%); pointer-events: none;
  background: var(--accent-ink); color: #eaf6f4; font-size: 11.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 9px; white-space: nowrap; opacity: 0; transition: opacity .14s;
  box-shadow: 0 8px 18px -8px rgba(20, 63, 58, .5); z-index: 5; letter-spacing: -.01em;
}
.chart-tooltip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--accent-ink); }
.chart-tooltip b { color: #fff; }
.chart-tooltip span { color: #9fcfc8; font-weight: 500; }
.cb-trendline { transition: opacity .3s; }

/* ============================================================
   "See it in action" — tabbed interactive demo
   ============================================================ */
.demo-wrap { max-width: 1000px; margin: 0 auto; }
.demo-tabs {
  display: inline-flex; gap: 4px; padding: 5px; margin: 0 auto 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  box-shadow: var(--shadow-sm); position: relative; left: 50%; transform: translateX(-50%);
}
.demo-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  padding: 9px 16px; border-radius: 100px; transition: color .2s, background .2s, box-shadow .2s; position: relative; z-index: 1; white-space: nowrap;
  cursor: pointer;
}
.demo-tab svg { width: 15px; height: 15px; }
.demo-tab:hover {
  color: var(--text);
  background: #f1f1ef;
  box-shadow: inset 0 0 0 1px rgba(227, 227, 225, .8);
}
.demo-tab.active { color: #fff; }
.demo-tab.active:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
}
.demo-pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  background: linear-gradient(165deg, var(--accent-2), var(--accent-deep));
  border-radius: 100px; transition: transform .42s var(--ease), width .42s var(--ease);
  box-shadow: 0 6px 14px -6px var(--accent-glow);
}
.demo-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.demo-chrome { display: flex; align-items: center; gap: 7px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #fff, #fcfdfd); }
.demo-chrome .d { width: 10px; height: 10px; border-radius: 50%; }
.demo-chrome .d:nth-child(1) { background: #f0a8a8; } .demo-chrome .d:nth-child(2) { background: #f3d59a; } .demo-chrome .d:nth-child(3) { background: #a7d8b6; }
.demo-chrome .url { margin-left: 12px; font-size: 11.5px; color: var(--text-faint); background: var(--bg-tint); padding: 4px 12px; border-radius: 7px; flex: 1; max-width: 320px; }
.demo-chrome .badge { margin-left: auto; font-size: 10.5px; font-weight: 650; color: var(--accent-deep); background: var(--accent-soft); padding: 4px 10px; border-radius: 100px; }
.demo-stage { position: relative; min-height: 420px; padding: 26px; background: var(--bg); }
.demo-pane { display: none; animation: paneIn .5s var(--ease); }
.demo-pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-pane h3.pane-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 3px; }
.demo-pane p.pane-sub { font-size: 12.5px; color: var(--text-faint); margin-bottom: 18px; }

/* upload sequence animation */
.upseq { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; min-height: 320px; }
.upseq-drop {
  position: relative; border: 2px dashed var(--border-strong); border-radius: 16px;
  min-height: 260px; display: grid; place-items: center; text-align: center;
  background: var(--surface); transition: border-color .4s, background .4s; overflow: hidden;
}
.upseq.phase-drop .upseq-drop { border-color: var(--accent); background: var(--accent-soft); }
.upseq-file {
  width: 116px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 14px; box-shadow: var(--shadow); transform: translateY(-60px) scale(.9); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s;
}
.upseq.phase-drop .upseq-file, .upseq.phase-parse .upseq-file, .upseq.phase-done .upseq-file { transform: translateY(0) scale(1); opacity: 1; }
.upseq-file .fic { width: 38px; height: 46px; margin: 0 auto 10px; border-radius: 5px; background: linear-gradient(160deg, #e4f0ee, #cfe6e2); display: grid; place-items: center; color: var(--accent-deep); position: relative; }
.upseq-file .fic::after { content: "PDF"; position: absolute; bottom: -6px; font-size: 8px; font-weight: 800; color: #fff; background: var(--accent-deep); padding: 1px 5px; border-radius: 3px; letter-spacing: .03em; }
.upseq-file .fname { font-size: 11px; font-weight: 600; color: var(--text); }
.upseq-file .fmeta { font-size: 9.5px; color: var(--text-faint); margin-top: 2px; }
.upseq-scan {
  position: absolute; left: 0; right: 0; height: 60px; top: -60px;
  background: linear-gradient(180deg, transparent, rgba(47, 125, 117, .14), transparent);
  opacity: 0;
}
.upseq.phase-parse .upseq-scan { opacity: 1; animation: scanMove 1.4s ease-in-out infinite; }
@keyframes scanMove { 0% { top: -10%; } 100% { top: 100%; } }
.upseq-rows { display: flex; flex-direction: column; gap: 9px; }
.upseq-rows .urow {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px;
  opacity: 0; transform: translateX(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.upseq.phase-parse .urow, .upseq.phase-done .urow { opacity: 1; transform: none; }
.upseq.phase-parse .urow:nth-child(1) { transition-delay: .15s; } .upseq.phase-parse .urow:nth-child(2) { transition-delay: .35s; }
.upseq.phase-parse .urow:nth-child(3) { transition-delay: .55s; } .upseq.phase-parse .urow:nth-child(4) { transition-delay: .75s; }
.urow .uname { font-size: 12px; font-weight: 600; flex: 1; }
.urow .uval { font-size: 12px; font-weight: 700; color: var(--text); }
.urow .ucheck { width: 18px; height: 18px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); }
.upseq.phase-done .urow .ucheck { transform: scale(1); }
.upseq.phase-done .urow { border-color: var(--good-soft); }
.upseq-phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.upseq-phases span {
  height: 38px;
  min-width: 0;
  justify-content: center;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color .3s, border-color .3s, background .3s;
}
.upseq-phases span .pn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 18px;
}
.upseq-phases span.on { color: var(--accent-ink); border-color: #cfe5e1; background: var(--accent-soft); }
.upseq-phases span.on .pn { background: var(--accent); }

/* demo dashboard / biomarker / export reuse mock styles inside stage */
.demo-pane .stat-grid { grid-template-columns: repeat(4, 1fr); }
.demo-pane .bm-list { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; }

@media (max-width: 720px) {
  .upseq { grid-template-columns: 1fr; }
  .demo-pane .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-tabs { position: static; left: auto; transform: none; width: 100%; flex-wrap: wrap; justify-content: center; border-radius: 18px; }
  .demo-pill { display: none; }
  /* No sliding pill on mobile, so the active tab carries its own highlight.
     Cover :hover too — touch makes hover "stick", and the base
     .demo-tab.active:hover rule would otherwise blank the label to white. */
  .demo-tab.active,
  .demo-tab.active:hover { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
  .demo-stage { padding: 18px; }
}

/* ============================================================
   Pricing — Monthly / Yearly toggle
   ============================================================ */
.price-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 40px; }
.price-toggle .lab { font-size: 14px; font-weight: 600; color: var(--text-faint); transition: color .2s; cursor: pointer; }
.price-toggle .lab.active { color: var(--text); }
.price-toggle .save { font-size: 11px; font-weight: 700; color: var(--good); background: var(--good-soft); padding: 3px 9px; border-radius: 100px; }
.switch { width: 52px; height: 30px; border-radius: 100px; background: var(--accent); position: relative; transition: background .25s; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.switch.yearly::after { transform: translateX(22px); }
.price-amt .amt, .price-amt .per { transition: opacity .25s; }
.price-amt.flip .amt, .price-amt.flip .per { opacity: 0; }

@media (max-width: 720px) {
  .price-toggle { flex-wrap: wrap; gap: 10px 12px; margin-bottom: 32px; }
  .price-toggle .save { flex-basis: 100%; width: max-content; margin: 2px auto 0; text-align: center; }
  .price-card { padding: 30px 22px; }
  .price-card.featured .price-amt .amt { font-size: 43px; }
}

/* ============================================================
   Entrance gate (Cloudflare Turnstile) — the standalone gate.html
   page shown by the edge before the real site is served.
   ============================================================ */
.gate-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(45, 122, 138, 0.35), transparent 60%),
    #0b1f2a;
}
.gate-card {
  width: min(380px, 100%);
  padding: 34px 30px 26px;
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.gate-logo { display: block; margin: 0 auto 14px; border-radius: 12px; }
.gate-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b1f2a;
}
.gate-copy {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a5a63;
}
.gate-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.gate-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #4a5a63;
}
.gate-status.is-error { color: #c0392b; }
.gate-foot {
  margin: 18px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: #8a98a0;
}
