/* LabFlow product site. Tokens mirror web/src/app/globals.css so the site and the app read as one product. */
:root {
  --canvas: #faf9f7;
  --surface: #ffffff;
  --sunken: #f3f2ef;
  --ink: #1b2331;
  --ink-muted: #676b71;
  --on-ink: #faf9f7;
  --line: #e7e5e1;
  --brand: #17734a;
  --brand-hover: #125f3d;
  --brand-soft: #e7f3ec;
  --brand-glow: #4fbf8b;
  --unsaved: #fef8e9;
  --unsaved-border: #b56614;
  --warning-ink: #8e4d07;

  --radius-card: 14px;
  --radius-control: 10px;
  --shadow-card: 0 1px 2px rgb(27 35 49 / 0.04), 0 4px 12px rgb(27 35 49 / 0.05);
  --shadow-float: 0 1px 2px rgb(27 35 49 / 0.06), 0 24px 60px -12px rgb(27 35 49 / 0.18);

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "tnum";
}
.muted {
  color: var(--ink-muted);
}
.small {
  font-size: 13px;
}

/* Buttons: ink and brand fills, hairline outline secondary. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-control);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}
.btn:hover svg {
  transform: translateX(2px);
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  height: 34px;
  padding: 0 13px;
  font-size: 14px;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgb(23 115 74 / 0.3);
}
.btn-brand:hover {
  background: var(--brand-hover);
}
.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-ink:hover {
  background: #2a3446;
}
.btn-line {
  border: 1px solid var(--line);
  background: var(--surface);
}
.btn-line:hover {
  border-color: #cfccc6;
}
.btn-paper {
  background: var(--on-ink);
  color: var(--ink);
}
.btn-paper:hover {
  background: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 247 / 0.8);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav nav {
  display: flex;
  gap: 24px;
  margin-right: auto;
  font-size: 14px;
  color: var(--ink-muted);
}
.nav nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgb(79 191 139 / 0.12), transparent 70%),
    var(--canvas);
}
.hero-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.lede {
  margin-top: 20px;
  max-width: 600px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-muted);
  line-height: 1.5;
}
.cta-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Demo window */
.demo {
  position: relative;
  margin-top: 64px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.lights {
  display: flex;
  gap: 6px;
}
.lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.demo-title {
  font-weight: 500;
}
.demo-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 380px;
}
.demo-voice {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: var(--canvas);
}
.mic {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.mic-btn,
.mic-xl {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.mic-btn {
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 6px rgb(23 115 74 / 0.12);
}
.mic-btn svg,
.mic-xl svg {
  width: 45%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.levels {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.levels i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleY(0.2);
  transform-origin: center;
}
.said-label {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.transcript {
  min-height: 78px;
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 20px;
}
.transcript .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--brand);
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chips li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 14px;
}
.chips .from {
  color: var(--ink-muted);
}
.chips .to {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--brand);
}
.demo-data {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Borderless sheet table, like the app */
.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.sheet th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.sheet td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--sunken);
  font-family: var(--mono);
  font-size: 13.5px;
}
.sheet td:first-child {
  color: var(--ink-muted);
}
.new-row td {
  background: var(--brand-soft);
}
.chart {
  margin: 0;
}
.chart figcaption {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.chart svg {
  width: 100%;
  max-height: 210px;
  overflow: visible;
}
.grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.ticks text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-muted);
}
.line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}
.pt {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2;
}
.pt-new {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: center;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  box-shadow: var(--shadow-float);
}
.toast svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--brand-glow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast .undo {
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
}
.demo-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Sections */
.section {
  padding: 120px 0;
}
.section-sunken {
  background: var(--sunken);
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 12px;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.body {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-muted);
}

/* Problem cards: each one shows today's problem and turns into LabFlow's fix. */
.problem-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
}
.problem-head > div:first-child {
  max-width: 620px;
}
.toggle {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  padding: 4px;
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(27 35 49 / 0.08), 0 2px 8px rgb(27 35 49 / 0.06);
  transition:
    transform 0.5s var(--ease),
    width 0.5s var(--ease);
}
.toggle-opt {
  position: relative;
  z-index: 1;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.toggle-opt[aria-pressed="true"] {
  color: var(--ink);
}
.toggle-opt[data-mode="after"][aria-pressed="true"] {
  color: var(--brand);
}
.pcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition:
    translate 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.5s var(--ease);
}
.pcard:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-float);
}
.pcard[data-state="after"] {
  border-color: rgb(23 115 74 / 0.3);
}
.pcard-visual {
  position: relative;
  height: 184px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.6s var(--ease);
}
.pcard[data-state="after"] .pcard-visual {
  background: var(--brand-soft);
}
.pv {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    filter 0.55s var(--ease);
}
.pv-row {
  flex-direction: row;
}
.pv-after {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
}
.pcard[data-state="after"] .pv-before {
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(4px);
}
.pcard[data-state="after"] .pv-after {
  opacity: 1;
  transform: none;
  filter: none;
}
.scrap,
.cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
}
.scrap {
  background: #fffdf6;
  border: 1px solid #ece6d6;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-card);
}
.scrap-label,
.cell-label {
  font-size: 11px;
  color: var(--ink-muted);
}
.hand {
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  line-height: 32px;
}
.pv-arrow {
  width: 36px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  animation: cell-flag 3.4s infinite;
}
.swap {
  position: relative;
  display: block;
  width: 44px;
  height: 32px;
  font-family: var(--mono);
  font-size: 26px;
  line-height: 32px;
}
.swap span {
  position: absolute;
  inset: 0;
}
.swap .ok {
  animation: swap-out 3.4s infinite;
}
.swap .bad {
  color: #b61f1a;
  opacity: 0;
  animation: swap-in 3.4s infinite;
}
@keyframes swap-out {
  0%, 35%, 100% { opacity: 1; transform: none; }
  50%, 88% { opacity: 0; transform: translateY(-8px); }
}
@keyframes swap-in {
  0%, 35%, 100% { opacity: 0; transform: translateY(8px); }
  50%, 88% { opacity: 1; transform: none; }
}
@keyframes cell-flag {
  0%, 35%, 100% { border-color: var(--line); background: var(--surface); }
  50%, 88% { border-color: #e9b4b0; background: #fdf3f2; }
}
.said-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}
.said-chip .mono {
  font-size: 20px;
  font-weight: 500;
  color: var(--brand);
}
.match {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
}
.match svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.minirow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}
.missing {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 26px;
  border: 1.5px dashed var(--unsaved-border);
  border-radius: 6px;
  color: var(--warning-ink);
  font-weight: 600;
  animation: missing 1.8s ease-in-out infinite;
}
@keyframes missing {
  50% { background: var(--unsaved); }
}
.unit {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}
.pv-note {
  max-width: 230px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}
.sheets {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-sheet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 86px;
  padding: 8px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}
.mini-sheet i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
}
.mini-sheet-copy i {
  transform-origin: left;
  animation: rewrite 2.8s infinite;
}
.mini-sheet-copy i:nth-of-type(2) {
  animation-delay: 0.25s;
}
.mini-sheet-copy i:nth-of-type(3) {
  animation-delay: 0.5s;
}
@keyframes rewrite {
  0% { transform: scaleX(0); }
  35%, 85% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.mini-sheet-one i {
  background: rgb(23 115 74 / 0.3);
}
.mini-chart {
  width: 72px;
  height: 48px;
  overflow: visible;
}
.mini-chart polyline {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-chart circle {
  fill: var(--brand);
}
.times {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--sunken);
  font-size: 13px;
  color: var(--ink-muted);
}
.times-ok {
  background: var(--surface);
  color: var(--brand);
}
.pcard-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
}
.tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
.tag-before {
  background: var(--sunken);
  color: var(--ink-muted);
}
.tag-after {
  display: none;
  background: var(--brand-soft);
  color: var(--brand);
}
.pcard[data-state="after"] .tag-before {
  display: none;
}
.pcard[data-state="after"] .tag-after {
  display: inline-block;
}
.pt-swap {
  display: grid;
}
.pt-before,
.pt-after {
  grid-area: 1 / 1;
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
}
.pt-after {
  opacity: 0;
  transform: translateY(8px);
}
.pcard[data-state="after"] .pt-before {
  opacity: 0;
  transform: translateY(-8px);
}
.pcard[data-state="after"] .pt-after {
  opacity: 1;
  transform: none;
}
.pt-swap p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-muted);
}
.pcards-hint {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}

/* Steps: sticky stage on desktop, inline visuals on phone */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
}
.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56vh;
  max-width: 440px;
}
.steps-list {
  position: relative;
  padding-left: 36px;
}
.rail {
  position: absolute;
  left: 0;
  top: 28vh;
  bottom: 28vh;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.rail-fill {
  display: block;
  height: 100%;
  background: var(--brand);
  transform: scaleY(0);
  transform-origin: top;
}
.step-n {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}
.step.active .step-n {
  color: var(--brand);
}
.step h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
.step p {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-muted);
}
.step .step-visual {
  display: none;
}
.steps-stage {
  position: relative;
}
.stage {
  position: sticky;
  top: calc(50vh - 170px);
  height: 340px;
}
.stage .step-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: opacity, transform;
}
.panel {
  width: min(420px, 100%);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.panel-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 24px;
  text-align: center;
}
.mic-xl {
  width: 88px;
  height: 88px;
  box-shadow:
    0 0 0 10px rgb(23 115 74 / 0.1),
    0 0 0 22px rgb(23 115 74 / 0.05);
}
.quote {
  font-size: 17px;
}
.panel-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.vars {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vars li {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--sunken);
}
.vars .add {
  color: var(--ink-muted);
  border-bottom: 0;
}
.flag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--unsaved);
  color: var(--warning-ink);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}
.said,
.read {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
}
.said .muted,
.read .muted {
  width: 60px;
  font-size: 13px;
}
.read strong {
  font-size: 22px;
  font-weight: 500;
}
.why {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--unsaved-border);
  background: var(--unsaved);
  font-size: 14px;
  color: var(--warning-ink);
  border-radius: 0 8px 8px 0;
}
.panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sunken);
  max-width: 85%;
  margin-bottom: 10px;
  font-size: 15px;
}
.bubble-me {
  margin-left: auto;
  background: var(--ink);
  color: var(--on-ink);
  width: fit-content;
}

/* Trust */
.provenance {
  position: relative;
  max-width: 560px;
  margin-bottom: 120px;
  padding: 20px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.sheet-lg td {
  font-size: 15px;
  padding: 12px 10px;
}
.cell-focus {
  padding: 3px 8px;
  margin-left: -8px;
  border-radius: 6px;
  outline: 2px solid var(--brand);
  background: var(--brand-soft);
}
.popover {
  position: absolute;
  right: -48px;
  bottom: -72px;
  width: 300px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 12px;
  font-size: 14px;
  box-shadow: var(--shadow-float);
}
.popover strong {
  font-weight: 500;
}
.popover .muted {
  margin-top: 4px;
  color: #a3a7ae;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.col {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.col p {
  margin-top: 8px;
  color: var(--ink-muted);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-weight: 500;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--ink-muted);
  border-bottom: 1.6px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}
.faq details p {
  padding: 0 40px 22px 0;
  color: var(--ink-muted);
}

/* Closing */
.closing {
  padding: 24px 20px;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 96px 24px;
  border-radius: 24px;
  background:
    radial-gradient(50% 60% at 50% 100%, rgb(79 191 139 / 0.18), transparent 70%),
    var(--ink);
  color: var(--on-ink);
}
.closing-inner img {
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.closing-inner p {
  color: #a3a7ae;
  font-size: 17px;
  margin-bottom: 8px;
}

.footer {
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.footer-inner p {
  margin-right: auto;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer nav a:hover {
  color: var(--brand);
}

/* Reveal: hidden only once main.js has loaded Motion, so the page never stays blank. */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(10px);
}

@media (max-width: 960px) {
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .problem-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
  }
  .pcards {
    display: flex;
    gap: 14px;
    margin-inline: -20px;
    padding: 4px 20px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pcards::-webkit-scrollbar {
    display: none;
  }
  .pcard {
    flex: 0 0 min(84%, 360px);
    scroll-snap-align: center;
  }
  .pcard:hover {
    translate: none;
    box-shadow: none;
  }
  .steps-stage {
    display: none;
  }
  .step {
    min-height: 0;
    max-width: none;
    padding: 32px 0;
  }
  .steps-list {
    padding-left: 0;
  }
  .rail {
    display: none;
  }
  .step .step-visual {
    display: block;
    margin-top: 24px;
  }
  .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .popover {
    position: static;
    width: auto;
    margin-top: 16px;
  }
}

@media (max-width: 760px) {
  .nav nav {
    display: none;
  }
  .nav-inner {
    justify-content: space-between;
  }
  .hero {
    padding: 48px 0 72px;
  }
  .demo {
    margin-top: 48px;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
  .demo-voice {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px;
  }
  .demo-data {
    padding: 16px 16px 72px;
  }
  .demo-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .section {
    padding: 80px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
