/* ============================================================
   Vetriq.LandingRedesign — vetriqmed.com practice site world
   Canon B2B SaaS, played straight. Craft bar: Stripe/Linear/Notion.
   Identity: brand navy ink + orchid accent (the emblem's colors),
   cool near-white ground, one family (Figtree), tabular numerals.
   ============================================================ */

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-var-italic.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* ground */
  --paper: #FCFCFD;
  --paper-2: #F5F6F8;
  --card: #FFFFFF;

  /* ink (navy-derived, never gray) */
  --ink: #0E2148;
  --ink-2: #3B4763;
  --ink-3: #67708C;
  --ink-4: #67708C;

  /* lines */
  --line: rgba(14, 33, 72, 0.10);
  --line-2: rgba(14, 33, 72, 0.17);
  --line-3: rgba(14, 33, 72, 0.30);

  /* navy world (dark bands, footer) */
  --navy: #0E2148;
  --navy-2: #15295A;
  --navy-panel: rgba(255, 255, 255, 0.055);
  --navy-line: rgba(233, 236, 245, 0.14);
  --on-navy: #E9ECF5;
  --on-navy-2: #AFB9D4;
  --on-navy-3: #AFB9D4;

  /* brand */
  --orchid: #BA5BC4;
  --orchid-soft: rgba(186, 91, 196, 0.10);
  --cta: #9C3EA8;
  --cta-hover: #892F95;

  /* semantic */
  --green: #1E7A4A;
  --green-soft: rgba(30, 122, 74, 0.10);
  --amber: #8F6400;
  --amber-soft: rgba(178, 128, 12, 0.12);
  --red: #B3372C;

  /* clinical-calm miniature palette (product recreations only) */
  --cc-porcelain: #F1F2F2;
  --cc-panel: #FBFCFC;
  --cc-field: #E6E8E8;
  --cc-ink: #1E2122;
  --cc-ink-2: #494F51;
  --cc-ink-3: #6D7376;
  --cc-line: rgba(30, 33, 34, 0.12);
  --cc-green: #2F7D57;
  --cc-amber: #D89712;
  --cc-blue: #4A6FB5;
  --cc-violet: #7159B1;
  --cc-red: #C24438;

  /* shape */
  --r-ctl: 10px;
  --r-card: 14px;
  --r-pill: 999px;

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(14, 33, 72, 0.05);
  --shadow-md: 0 2px 6px rgba(14, 33, 72, 0.05), 0 14px 36px rgba(14, 33, 72, 0.09);
  --shadow-lg: 0 4px 12px rgba(14, 33, 72, 0.07), 0 24px 64px rgba(14, 33, 72, 0.13);

  --max: 1200px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: "Figtree", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; border-radius: 4px; }
input, textarea, select, button { font: inherit; caret-color: var(--cta); }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color 140ms ease-out; }
a:hover { text-decoration-color: var(--orchid); }

h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* numerals are data */
.num, .price-fig, td.num { font-variant-numeric: tabular-nums; }

/* ---------- type registers ---------- */
.display {
  font-size: clamp(2.45rem, 5.2vw, 3.85rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; }
.h4 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.lede { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.body-max { max-width: 68ch; }
.small { font-size: 0.9rem; line-height: 1.55; }
.micro { font-size: 0.8125rem; line-height: 1.5; color: var(--ink-3); }
.label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-size: 0.975rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, box-shadow 140ms ease-out;
}
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--line-3); background: var(--paper-2); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #1A3263; }
.btn-on-navy { background: #fff; color: var(--navy); }
.btn-on-navy:hover { background: #E9ECF5; }
.btn-ghost-navy { background: transparent; color: #fff; border-color: var(--navy-line); }
.btn-ghost-navy:hover { border-color: var(--on-navy-3); background: var(--navy-panel); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 0.9rem; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 1.05rem; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn .arrow { transition: transform 140ms ease-out; }
.btn:hover .arrow { transform: translateX(2px); }

/* ---------- top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease-out;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: 6px;
}
.brand-emblem { height: 30px; width: auto; }
.brand-word {
  font-size: 1.32rem;
  font-weight: 760;
  letter-spacing: -0.022em;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.945rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 140ms ease-out, color 140ms ease-out;
}
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link.is-active { color: var(--ink); font-weight: 680; }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-burger {
  display: none;
  margin-left: auto;
  height: 40px; width: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 28px 18px;
}
.nav-mobile a { display: block; padding: 11px 4px; font-size: 1.02rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile .btn { width: 100%; margin-top: 12px; }
.nav.menu-open .nav-mobile { display: block; }

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .h2 { margin-bottom: 14px; }
.section-head .lede { color: var(--ink-2); }

/* navy band */
.band-navy {
  background: var(--navy);
  color: var(--on-navy-2);
}
.band-navy h2, .band-navy h3, .band-navy .h2, .band-navy .h3 { color: #fff; }
.band-navy .lede { color: var(--on-navy-2); }
.band-navy .feature-copy p { color: var(--on-navy-2); }
.band-navy .feature-points li { color: var(--on-navy-2); }
.band-navy .tick { color: #56C08D; }
.band-navy ::selection { background: var(--orchid); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  gap: 56px;
  align-items: center;
}
.hero-copy .display { margin-bottom: 24px; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 1.06; letter-spacing: -0.04em; }
.hero-copy .lede { margin-bottom: 28px; max-width: 48ch; font-size: 1.07rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.875rem; color: var(--ink-3); }

/* fact rule — a single ruled line of true statements */
.factline {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.fact { font-size: 0.94rem; color: var(--ink-3); line-height: 1.5; }
.fact strong { display: block; color: var(--ink); font-weight: 700; font-size: 1rem; margin-bottom: 3px; }

/* ---------- product frame (authored UI recreation chrome) ---------- */
.frame {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.frame-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-4);
}
.band-navy .frame { border-color: var(--navy-line); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); }
.band-navy .frame-caption { color: var(--on-navy-3); }

/* ---------- clinical-calm miniature vocabulary (recreations) ---------- */
.cc-app {
  background: var(--cc-porcelain);
  color: var(--cc-ink);
  font-size: 11px;
  line-height: 1.4;
  display: grid;
  grid-template-rows: 30px 1fr;
  min-height: 100%;
}
.cc-top {
  background: var(--cc-panel);
  border-bottom: 1px solid var(--cc-line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 10.5px;
}
.cc-top .cc-logo { height: 13px; width: auto; }
.cc-sync {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--cc-ink-2);
  font-variant-numeric: tabular-nums;
}
.cc-body { display: grid; grid-template-columns: 44px 1fr; min-height: 0; }
.cc-rail {
  background: var(--cc-porcelain);
  border-right: 1px solid var(--cc-line);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.cc-tile {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--cc-field);
}
.cc-tile.is-on { background: var(--cc-ink); }
.cc-main { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-panelbox {
  background: var(--cc-panel);
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  padding: 8px 9px;
}
.cc-paneltitle { font-weight: 700; font-size: 10.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.cc-count { background: var(--cc-field); border-radius: 999px; padding: 0 6px; font-size: 8.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-top: 1px solid var(--cc-line);
  font-size: 10px;
  color: var(--cc-ink-2);
  white-space: nowrap;
  overflow: hidden;
}
.cc-row:first-of-type { border-top: 0; }
.cc-row .t { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--cc-ink-3); }
.cc-row strong { color: var(--cc-ink); font-weight: 700; }
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-green); flex: none; }
.cc-dot.blue { background: var(--cc-blue); }
.cc-dot.amber { background: var(--cc-amber); }
.cc-dot.violet { background: var(--cc-violet); }
.cc-dot.red { background: var(--cc-red); }
.cc-dot.outline { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(30,33,34,0.42); }
.cc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 8.5px;
  font-weight: 700;
  background: var(--cc-field);
  color: var(--cc-ink-2);
  flex: none;
}
.cc-chip.green { background: color-mix(in oklab, var(--cc-green) 13%, var(--cc-panel)); color: #2C6E4E; }
.cc-chip.amber { background: color-mix(in oklab, var(--cc-amber) 15%, var(--cc-panel)); color: #8A6407; }
.cc-chip.blue { background: color-mix(in oklab, var(--cc-blue) 13%, var(--cc-panel)); color: #3F639C; }
.cc-chip.violet { background: color-mix(in oklab, var(--cc-violet) 13%, var(--cc-panel)); color: #64509F; }
.cc-lane-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; min-width: 0; }
.cc-note { font-size: 10px; color: var(--cc-ink-2); line-height: 1.45; }
.cc-note b { color: var(--cc-ink); }
.cc-soap-letter {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--cc-ink);
  color: var(--cc-panel);
  font-size: 9px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cc-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.cc-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--cc-violet);
  display: block;
  animation: cc-wave 1.1s ease-in-out infinite;
}
.cc-wave i:nth-child(2n) { animation-delay: 0.15s; }
.cc-wave i:nth-child(3n) { animation-delay: 0.3s; }
.cc-wave i:nth-child(5n) { animation-delay: 0.45s; }
@keyframes cc-wave {
  0%, 100% { height: 5px; opacity: 0.7; }
  50% { height: 16px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-wave i { animation: none; height: 9px; }
}

/* ---------- offline demo (signature moment) ---------- */
.demo-conn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 650;
}
.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--green-soft);
  color: var(--green);
  transition: background 200ms ease-out, color 200ms ease-out;
}
.conn-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn-pill.is-off { background: var(--amber-soft); color: var(--amber); }
.demo-queue { margin-left: auto; font-size: 0.8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.demo-toggle {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  height: 30px;
  padding: 0 12px;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 140ms ease-out, border-color 140ms ease-out;
}
.demo-toggle:hover { background: var(--paper-2); border-color: var(--line-3); }

/* ---------- feature rows (alternating) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row.flip .feature-media { order: 1; }
.feature-copy .h3 { margin-bottom: 12px; }
.feature-copy p { margin-bottom: 12px; max-width: 52ch; }
.feature-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.feature-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink-2); }
.feature-points .tick { color: var(--green); flex: none; margin-top: 4px; }
.tick svg, .chev svg { display: block; }

/* ---------- diagram (sync) ---------- */
.diagram-wrap { padding: 8px 0; }
.diagram-wrap svg { width: 100%; height: auto; }

/* ---------- pricing ---------- */
.bill-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--card);
  padding: 3px;
  gap: 2px;
}
.bill-toggle button {
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  height: 34px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 140ms ease-out, color 140ms ease-out;
}
.bill-toggle button.is-on { background: var(--ink); color: #fff; }
.bill-note { font-size: 0.85rem; color: var(--green); font-weight: 650; }

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-md);
}
.price-card.is-base { border-color: var(--ink); border-width: 1.5px; }
.price-fig {
  font-size: 3.4rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-fig .per { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.price-sub { margin-top: 8px; font-size: 0.92rem; color: var(--ink-3); }
.price-list { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 10px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.price-list .tick { color: var(--green); flex: none; margin-top: 4px; }
.addon-stack { display: grid; gap: 24px; }
.addon-card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}
.addon-card .h4 { margin-bottom: 6px; }
.addon-price { font-weight: 750; font-size: 1.35rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.addon-price .per { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq { max-width: 760px; }
.faq-grid .faq { max-width: none; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 2px;
  font-weight: 680;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { margin-left: auto; transition: transform 180ms ease-out; color: var(--ink-3); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 2px 20px; max-width: 64ch; color: var(--ink-2); }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 650; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--ink-3); }
.input, textarea.input, select.input {
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--card);
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.975rem;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
  width: 100%;
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; }
.input::placeholder { color: var(--ink-4); }
.input:hover { border-color: var(--line-3); }
.input:focus { border-color: var(--cta); box-shadow: 0 0 0 3px rgba(156, 62, 168, 0.14); outline: none; }
.input.is-invalid { border-color: var(--red); }
.field .error { font-size: 0.8rem; color: var(--red); font-weight: 600; }
.form-grid { display: grid; gap: 18px; }
.form-grid .cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* auth shell (signup / signin / verify) */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper-2); }
.auth-top { padding: 22px 28px; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 26px 20px 48px; }
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 36px 38px 34px;
}
.auth-card .h3 { margin-bottom: 8px; }
.auth-card > .small { color: var(--ink-3); margin-bottom: 24px; }
.auth-foot { text-align: center; padding: 0 20px 40px; font-size: 0.875rem; color: var(--ink-3); }
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.8rem; font-weight: 650; color: var(--ink-3); }
.step-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 750; background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step-dot.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-dot.is-done { background: var(--green); border-color: var(--green); color: #fff; }
.step-bar { flex: 1; height: 1px; background: var(--line-2); }

/* ---------- account shell ---------- */
.acct { min-height: 100vh; display: grid; grid-template-rows: 64px 1fr; }
.acct-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.acct-practice { font-size: 0.92rem; font-weight: 650; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.acct-practice::before { content: ""; width: 1px; height: 22px; background: var(--line-2); margin-right: 8px; }
.acct-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acct-body { display: grid; grid-template-columns: 230px 1fr; background: var(--paper-2); min-height: 0; }
.acct-nav { padding: 26px 14px; border-right: 1px solid var(--line); background: var(--paper); }
.acct-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 570;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 2px;
  transition: background 140ms ease-out, color 140ms ease-out;
}
.acct-nav a:hover { background: var(--paper-2); color: var(--ink); }
.acct-nav a.is-active { background: var(--orchid-soft); color: var(--ink); font-weight: 680; }
.acct-nav .signout { margin-top: 26px; color: var(--ink-3); }
.acct-main { padding: 36px 40px 72px; max-width: 860px; }
.acct-main > .h2 { margin-bottom: 6px; }
.acct-sub { color: var(--ink-3); margin-bottom: 30px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.panel .h4 { margin-bottom: 4px; }
.panel-desc { font-size: 0.88rem; color: var(--ink-3); margin-bottom: 18px; }
.panel-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.panel-row:first-of-type { border-top: 0; }
.panel-row .k { width: 190px; flex: none; color: var(--ink-3); font-size: 0.88rem; font-weight: 600; }
.panel-row .v { color: var(--ink); font-weight: 550; }
.panel-row .end { margin-left: auto; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.green { background: var(--green-soft); color: var(--green); }
.status-pill.amber { background: var(--amber-soft); color: var(--amber); }
.status-pill.orchid { background: var(--orchid-soft); color: var(--cta); }

/* founding status card */
.founding-card {
  background: var(--navy);
  color: var(--on-navy-2);
  border-radius: var(--r-card);
  padding: 30px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.founding-card h3 { color: #fff; margin-bottom: 6px; }
.founding-card .emblem-bg {
  position: absolute;
  right: -30px;
  top: -40px;
  height: 220px;
  opacity: 0.1;
  pointer-events: none;
}
.founding-num {
  font-variant-numeric: tabular-nums;
  color: var(--orchid);
  font-weight: 760;
}

/* timeline */
.timeline { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  margin-top: 5px;
}
.timeline .tl-dot.pending { background: transparent; box-shadow: inset 0 0 0 2px var(--line-3); }
.timeline li::before {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 19px;
  bottom: 2px;
  width: 1px;
  background: var(--line-2);
}
.timeline li:last-child::before { display: none; }
.timeline .tl-title { font-weight: 680; color: var(--ink); font-size: 0.95rem; }
.timeline .tl-sub { font-size: 0.85rem; color: var(--ink-3); }

/* upload tile */
.logo-tile {
  width: 84px; height: 84px;
  border: 1.5px dashed var(--line-3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-4);
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
  flex: none;
}

/* ---------- footer ---------- */
.footer {
  background: var(--navy);
  color: var(--on-navy-2);
  padding: 64px 0 40px;
  font-size: 0.9rem;
}
.footer a { color: var(--on-navy-2); text-decoration: none; transition: color 140ms ease-out; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--navy-line);
}
.footer-brand .brand-word { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--on-navy-3); line-height: 1.6; }
.footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; }
.footer-base {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  color: var(--on-navy-3);
  font-size: 0.83rem;
  flex-wrap: wrap;
}
.footer-base .legal { margin-left: auto; display: flex; gap: 18px; }
.footer-base a { color: var(--on-navy-3); }
.footer-base a:hover { color: #fff; }

/* ---------- CTA band (home: centered stamp) ---------- */
.cta-band { text-align: center; padding: 96px 0; }
.cta-band .h2 { margin-bottom: 14px; }
.cta-band .lede { margin: 0 auto 32px; }
.cta-band .emblem-mark { height: 52px; margin: 0 auto 26px; }

/* ---------- CTA close (features: left-aligned navy band w/ watermark) ---------- */
.cta-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: center;
  gap: 48px;
}
.cta-close-grid .h2 { margin-bottom: 14px; }
.cta-close-grid .lede { margin-bottom: 30px; }
.cta-close-emblem { height: 200px; width: auto; opacity: 0.16; justify-self: end; }

/* ---------- CTA split (pricing: copy + price card on navy) ---------- */
.cta-split-card {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 30px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  justify-self: end;
  width: 100%;
}

/* ---------- anchor subnav (features) ---------- */
.subnav-pills {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.subnav-pills .wrap { display: flex; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.subnav-pill {
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.87rem;
  font-weight: 620;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background 140ms ease-out, color 140ms ease-out;
}
.subnav-pill:hover { background: var(--paper-2); color: var(--ink); }
.subnav-pill.is-active { background: var(--ink); color: #fff; }

/* ---------- reveal motion (one authored moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1), transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- scrollbars on frames ---------- */
.frame ::-webkit-scrollbar { width: 8px; height: 8px; }
.frame ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
.frame ::-webkit-scrollbar-track { background: transparent; }

/* ---------- cover (index gallery) ---------- */
.cover-head { padding: 72px 0 40px; }
.cover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 96px; }
.cover-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  padding: 22px 24px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.cover-card:hover { border-color: var(--line-3); box-shadow: var(--shadow-md); }
.cover-card .h4 { margin-bottom: 4px; }
.cover-card p { font-size: 0.86rem; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-row { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .feature-row.flip .feature-copy { order: 1; }
  .feature-row.flip .feature-media { order: 2; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-close-grid { grid-template-columns: 1fr; }
  .cta-close-emblem { display: none; }
  .cta-split-card { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .acct-body { grid-template-columns: 1fr; }
  .acct-nav { display: flex; overflow-x: auto; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 4px; }
  .acct-nav a { white-space: nowrap; margin-bottom: 0; }
  .acct-nav .signout { margin-top: 0; margin-left: auto; }
  .acct-main { padding: 26px 22px 60px; }
  .cover-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .diagram-wrap { overflow-x: auto; }
  .diagram-wrap svg { min-width: 680px; }
  .factline { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid .cols-2 { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 22px 26px; }
  .cover-grid { grid-template-columns: 1fr; }
  .panel-row { flex-wrap: wrap; }
  .panel-row .k { width: 100%; }
  .acct-top { padding: 0 16px; }
  .acct-practice { display: none; }
  .cta-band { padding: 72px 0; }
}

/* Refinements: a clearer product story and a more legible interactive demo. */
.hero-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; color: var(--cta); font-size: .8rem; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.hero-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--cta); }
.hero-emphasis { color: var(--cta); }
.hero-note { display: flex; align-items: baseline; gap: 7px; margin-top: 24px; }
.hero-note strong { font-size: 1.15rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-access { display: inline-block; margin-top: 4px; color: var(--ink-2); font-size: .82rem; }
.hero-media { min-width: 0; padding: 22px; border-radius: 20px; background: #F0EEF5; border: 1px solid rgba(14,33,72,.06); }
.demo-intro { margin-bottom: 16px; }
.demo-intro .label { font-size: .68rem; color: var(--cta); }
.demo-intro p { margin-top: 3px; font-size: 1.12rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; }
.hero-media .frame { box-shadow: 0 8px 24px rgba(14,33,72,.08); border-radius: 10px; }
.demo-conn { flex-wrap: wrap; gap: 8px; padding: 12px; }
.demo-toggle { height: 36px; margin-left: auto; }
.demo-queue { flex-basis: 100%; margin-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.demo-explainer { margin-top: 16px; font-size: .85rem; line-height: 1.5; color: var(--ink-2); }
.hero-media .frame-caption { margin-top: 7px; font-size: .7rem; }
.factline { margin-top: 52px; gap: 28px; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 28px; }
.fact-index { display: block; margin-bottom: 12px; color: var(--cta); font-size: .65rem; letter-spacing: .075em; font-weight: 700; }
.fact strong { margin-bottom: 7px; font-size: 1.08rem; }
.fact { color: var(--ink-2); font-size: .88rem; }
.nav-link.is-active { background: var(--paper-2); }
.nav-burger { width: 44px; height: 44px; }
.nav-mobile a:hover { color: var(--cta); }
.nav-mobile a.btn-primary { color: #fff; }
.nav-mobile { max-height: calc(100dvh - 68px); overflow-y: auto; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 100; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
@media (min-width: 1024px) { .nav.menu-open .nav-mobile { display: none; } }
@media (max-width: 1023px) {
  .hero-grid { gap: 36px; }
  .hero-copy { max-width: 660px; }
  .hero-copy .display { font-size: clamp(2.8rem, 7vw, 4rem); }
  .hero-media { width: 100%; }
}
@media (max-width: 719px) {
  .hero { padding-top: 36px; }
  .hero-media { padding: 14px; border-radius: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .fact + .fact { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-media .cc-top { font-size: 9px; }
  .hero-media .cc-sync { display: none; }
  .hero-media .cc-body { grid-template-columns: 30px minmax(0, 1fr); }
  .hero-media .cc-rail { padding: 8px 3px; }
  .hero-media .cc-tile { width: 20px; height: 22px; }
  .hero-media .cc-main { padding: 6px; }
  .hero-media .cc-row { flex-wrap: wrap; white-space: normal; gap: 4px; }
  .hero-media .cc-row .t { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Longer factual copy and explicit early-access preview states. */
.hero-note { display: block; max-width: 48ch; font-size: .88rem; color: var(--ink-2); }
.preview-note { margin-top: 20px; padding: 14px 16px; background: var(--paper-2); border-radius: var(--r-ctl); font-size: .85rem; line-height: 1.55; }
.preview-note + .form-grid { margin-top: 24px; }
.auth-card .form-grid > .btn { width: 100%; min-width: 0; white-space: normal; text-align: center; padding-inline: 16px; }
.hero-media .frame-caption { color: var(--ink-2); }
.form-status { padding-top: 12px; color: var(--ink); }
.addon-card .h4 + .small { margin-top: 12px; }
