:root {
  --bg: #f9f6f1;
  --bg-2: #f4eee4;
  --surface: #fffdf9;
  --surface-2: rgba(255, 252, 246, 0.9);
  --surface-3: rgba(247, 240, 230, 0.96);
  --text: #231c15;
  --muted: #76695b;
  --line: rgba(73, 53, 32, 0.12);
  --line-strong: rgba(73, 53, 32, 0.22);
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.16);
  --timer: #d49338;
  --timer-soft: rgba(212, 147, 56, 0.14);
  --shadow: 0 20px 50px rgba(72, 49, 24, 0.08);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #fbf8f3, #f4eee4 72%);
  color: var(--text);
  font-family: var(--sans);
}

a,
button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-shell {
  width: 100%;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 64px) 44px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 24px rgba(72, 49, 24, 0.04);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5b9cf6, #3b82f6);
  box-shadow: 0 0 0 7px rgba(59, 130, 246, 0.12);
}

.wordmark,
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.wordmark {
  font-size: 1.7rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 2px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.primary-action,
.secondary-action,
.preview-run-foot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
}

.nav-cta,
.primary-action,
.preview-run-foot button {
  background: linear-gradient(180deg, #5b9cf6, #3b82f6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.86);
}

.hero-section,
.proof-section,
.workflow-section,
.records-section,
.cta-section {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 240, 230, 0.94));
  box-shadow: var(--shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 30px;
  align-items: center;
}

.eyebrow,
.preview-subtle,
.preview-run-meta,
.signal-label,
.workflow-step-label,
.workflow-progress,
.records-grid span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1;
  max-width: 14ch;
}

.hero-text,
.feature-card p,
.workflow-step p,
.records-copy p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.signal-pill,
.feature-card,
.workflow-panel,
.workflow-step-card,
.records-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
}

.signal-pill {
  padding: 16px 14px;
}

.signal-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.hero-stage {
  display: flex;
  justify-content: center;
}

.phone-preview {
  width: min(100%, 420px);
  padding: 18px;
  border: 1px solid rgba(109, 84, 52, 0.12);
  border-radius: 34px;
  background: linear-gradient(180deg, #fcfaf6, #f7f1e8 82%);
  box-shadow: 0 20px 44px rgba(72, 49, 24, 0.08);
}

.preview-topbar,
.preview-run-head,
.preview-run-foot,
.workflow-panel-head,
.records-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.preview-brand {
  font-family: var(--serif);
  font-size: 1.8rem;
}

.preview-date {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 252, 246, 0.88);
  color: var(--muted);
}

.preview-live-runs {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.preview-run-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.92);
}

.preview-run-card.is-active {
  border-color: rgba(59, 130, 246, 0.26);
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.96), rgba(255, 252, 246, 0.95));
}

.preview-run-card h3,
.feature-card h3,
.workflow-step h3,
.workflow-panel h3,
.records-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.preview-run-step {
  margin: 12px 0 6px;
  font-weight: 700;
}

.preview-run-next,
.preview-run-foot span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preview-run-foot {
  align-items: center;
  margin-top: 14px;
}

.preview-run-foot button {
  min-height: 42px;
  padding: 0 14px;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--timer-soft);
  border: 1px solid rgba(212, 147, 56, 0.2);
  color: var(--timer);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.timer-badge.is-done {
  font-family: var(--sans);
  font-weight: 700;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card > p,
.feature-card > h3 {
  padding-left: 20px;
  padding-right: 20px;
  margin-top: 0;
}

.feature-card > p.feature-kicker {
  padding-top: 4px;
}

.feature-card > p:last-child {
  padding-bottom: 20px;
  margin-bottom: 0;
}

/* Feature thumbnails */
.feature-thumb {
  height: 140px;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 16px;
  background: #f0ebe2;
  position: relative;
  flex-shrink: 0;
}

.ft-img {
  position: absolute;
  width: 250%;
  left: -75%;
  top: 0;
}

/* Parallel experiments — show Live runs header + all 3 run cards */
.ft-img--parallel { top: -367px; }

/* Timers — show progress bar + step badge close-up */
.ft-img--timers { top: -440px; }

/* Run states — zoomed on step badge area */
.ft-img--states { top: -460px; }

/* HTML-based thumbnails */
.ft-html {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
  gap: 6px;
}

.fth-note {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--accent);
}

.fth-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.fth-text {
  font-size: 0.75rem;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.4;
}

.fth-time {
  font-size: 0.62rem;
  color: var(--muted);
}

.ft-html--protocols {
  gap: 0;
  padding: 8px 12px;
}

.fth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 0.72rem;
  color: var(--text);
}

.fth-row--active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.fth-meta-right {
  font-size: 0.65rem;
  color: var(--muted);
}

.fth-row--active .fth-meta-right {
  color: var(--accent);
  opacity: 0.8;
}

.ft-html--records {
  gap: 6px;
  justify-content: center;
}

.fth-record {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}

.fth-record--2 {
  opacity: 0.7;
}

.fth-record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.fth-record-meta {
  font-size: 0.62rem;
  color: var(--muted);
}

.fth-chip {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  letter-spacing: 0.04em;
}

/* Run list mockup */
.ft-html--runs {
  padding: 12px 14px;
  gap: 0;
  justify-content: center;
}

.fth-run-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.fth-run-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
}

.fth-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.fth-prog {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 2px;
}

.fth-prog span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* Timer mockup */
.ft-html--timer {
  padding: 10px 14px;
  gap: 6px;
  justify-content: center;
}

.fth-timer-card {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

.fth-timer-card--dim {
  opacity: 0.55;
}

.fth-timer-meta {
  font-size: 0.6rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.fth-timer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.fth-timer-step {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
}

.fth-timer-val {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--timer);
  flex-shrink: 0;
}

.fth-timer-val--dim {
  color: var(--muted);
}

/* Run states mockup */
.ft-html--states {
  padding: 12px 14px;
  gap: 6px;
  justify-content: center;
}

.fth-state-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #fff;
  border-radius: 8px;
}

.fth-state-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 500;
}

.fth-state-chip {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.fth-state--clean { background: rgba(34,197,94,0.12); color: #16a34a; }
.fth-state--dev   { background: rgba(234,179,8,0.14);  color: #a16207; }
.fth-state--hand  { background: rgba(239,68,68,0.12);  color: #dc2626; }

/* Upload mockup */
.ft-html--upload {
  padding: 10px 14px;
  gap: 8px;
  justify-content: center;
}

.fth-upload-zone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.fth-upload-hint {
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.7;
}

.fth-upload-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.fth-upload-file {
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 500;
}

/* ELN export mockup */
.ft-html--eln {
  padding: 14px 18px;
  gap: 0;
  justify-content: center;
}

.fth-eln-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.fth-eln-row--send {
  padding-top: 8px;
}

.fth-eln-divider {
  height: 1px;
  background: var(--line);
}

.fth-eln-label {
  font-size: 0.72rem;
  color: var(--muted);
}

.fth-eln-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.fth-eln-chip--rspace {
  background: rgba(99, 60, 180, 0.1);
  color: #633cb4;
}

.fth-eln-note {
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 6px;
  opacity: 0.7;
}

/* On-device storage mockup */
.ft-html--local {
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
}

.fth-local-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fth-local-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.fth-local-sub {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.fth-chip--partial {
  background: rgba(234, 179, 8, 0.12);
  color: #a16207;
}

.feature-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.workflow-columns,
.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.workflow-rail {
  display: grid;
  gap: 14px;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.workflow-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.workflow-index {
  min-width: 48px;
  min-height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.workflow-panel {
  padding: 20px;
}

.workflow-progress-bar {
  height: 8px;
  margin: 18px 0 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  overflow: hidden;
}

.workflow-progress-bar span {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5b9cf6, #3b82f6);
}

.workflow-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.workflow-dots span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 246, 0.9);
}

.workflow-dots .is-current {
  background: linear-gradient(180deg, #5b9cf6, #3b82f6);
  border-color: transparent;
}

.workflow-step-card {
  padding: 20px;
}

.workflow-step-card h4 {
  margin: 8px 0 12px;
  font-size: 2rem;
}

.workflow-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.workflow-timer-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.workflow-timer {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 2.5rem;
  color: var(--timer);
}

.records-card {
  padding: 20px;
}

.record-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

.records-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.records-grid div {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-3);
}

.records-grid span {
  display: block;
  margin-bottom: 4px;
}

.records-grid strong {
  font-weight: 500;
}

.records-copy {
  padding: 10px 4px;
}

.real-phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(72, 49, 24, 0.16);
  flex-shrink: 0;
  align-self: center;
}

.real-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Home screen mockup — matches real app screenshot */
.hs-phone {
  width: min(100%, 300px);
  background: #f0ebe2;
  border-radius: 36px;
  padding: 18px 16px 0;
  box-shadow: 0 28px 64px rgba(72, 49, 24, 0.16);
  overflow: hidden;
  flex-shrink: 0;
}

.hs-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hs-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2a2218;
}

.hs-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.7rem;
  font-weight: 700;
  color: #3b82f6;
  letter-spacing: 0.05em;
}

.hs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3b82f6;
}

.hs-brand-name {
  font-family: var(--serif);
  font-size: 2rem;
  color: #1a1410;
  margin-bottom: 8px;
}

.hs-greeting {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #9e8e7c;
  margin-bottom: 16px;
}

.hs-week-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9e8e7c;
  margin-bottom: 8px;
}

.hs-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.hs-stat-tile {
  background: #e8e0d4;
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hs-stat-icon {
  font-size: 0.85rem;
  color: #9e8e7c;
}

.hs-stat-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #1a1410;
  line-height: 1;
}

.hs-stat-lbl {
  font-size: 0.68rem;
  color: #9e8e7c;
}

.hs-runs-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: #1a1410;
  margin-bottom: 10px;
}

.hs-run-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #3b82f6;
  flex-shrink: 0;
}

.hs-run-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 8px;
}

.hs-run-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hs-run-title {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #1a1410;
}

.hs-chevron {
  color: #9e8e7c;
  font-size: 1rem;
}

.hs-progress-bar {
  height: 4px;
  background: #e8e0d4;
  border-radius: 999px;
  margin-bottom: 8px;
  overflow: hidden;
}

.hs-progress-bar span {
  display: block;
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
}

.hs-step-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.hs-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e8e0d4;
  flex-shrink: 0;
}

.hs-dot.filled {
  background: #3b82f6;
}

.hs-dot.half {
  background: linear-gradient(90deg, #3b82f6 50%, #e8e0d4 50%);
}

.hs-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  color: #3b82f6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hs-tabrow {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.hs-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  color: #9e8e7c;
  position: relative;
}

.hs-tab-item.active {
  color: #3b82f6;
}

.hs-tab-item span:first-child {
  font-size: 1rem;
}

.hs-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #3b82f6;
  margin-top: 2px;
}

.hs-tab-item.notes {
  background: rgba(59,130,246,0.08);
  border-radius: 14px;
  padding: 4px 10px;
  color: #5b8ef0;
}

/* hs2 — accurate home screen mockup */
.hs2-phone {
  width: min(100%, 340px);
  background: #f0ebe2;
  border-radius: 36px;
  padding: 20px 18px 0;
  box-shadow: 0 28px 64px rgba(72, 49, 24, 0.16);
  overflow: hidden;
  flex-shrink: 0;
}

.hs2-toprow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.hs2-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.hs2-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.hs2-icons {
  display: flex;
  gap: 10px;
  color: #6b5e50;
}

.hs2-brand {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: #1a1410;
  line-height: 1;
  margin-bottom: 8px;
}

.hs2-greeting {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #b0a090;
  margin-bottom: 18px;
}

.hs2-week-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a09080;
  margin-bottom: 8px;
}

.hs2-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 20px;
}

.hs2-stat {
  background: #e6dfd4;
  border-radius: 14px;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hs2-stat-icon {
  width: 16px;
  height: 16px;
  color: #a09080;
  flex-shrink: 0;
}

.hs2-stat-n {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #1a1410;
  line-height: 1;
}

.hs2-stat-l {
  font-size: 0.65rem;
  color: #a09080;
  line-height: 1.2;
}

.hs2-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hs2-section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #1a1410;
}

.hs2-run-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 8px;
}

.hs2-run-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #6b5e50;
}

.hs2-run-name {
  font-family: var(--serif);
  font-size: 1rem;
  color: #1a1410;
}

.hs2-prog {
  height: 4px;
  background: #e6dfd4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.hs2-prog span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.hs2-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.hs2-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #e6dfd4;
  flex-shrink: 0;
}

.hs2-dot.on {
  background: var(--accent);
}

.hs2-dot.half {
  background: linear-gradient(90deg, var(--accent) 50%, #e6dfd4 50%);
}

.hs2-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hs2-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 4px 18px;
  border-top: 1px solid rgba(0,0,0,0.07);
  background: rgba(255,255,255,0.6);
}

.hs2-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  color: #a09080;
  min-width: 40px;
}

.hs2-tab.active {
  color: var(--accent);
}

.hs2-tab.notes {
  background: rgba(59,130,246,0.1);
  border-radius: 14px;
  padding: 6px 10px;
  color: var(--accent);
}

.hs2-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}

/* end hs2 */

.home-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.home-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
}

.home-week-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 14px 0 8px;
}

.home-stats-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.home-stat-box {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-stat-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
}

.home-runs-head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.home-run-card-slim {
  padding: 12px 14px;
}

.home-run-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.home-prog-bar {
  height: 4px;
  background: rgba(59,130,246,0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.home-prog-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.home-dots {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.home-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.home-dot.on {
  background: var(--accent);
  border-color: transparent;
}

.home-dot.half {
  background: linear-gradient(90deg, var(--accent) 50%, var(--bg-2) 50%);
  border-color: var(--line);
}

.home-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--line);
}

.home-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  color: var(--muted);
  gap: 2px;
  line-height: 1.4;
}

.home-tab.active {
  color: var(--accent);
}

.home-tab.notes-tab {
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  padding: 4px 8px;
  color: var(--accent);
}

/* Home screen mockup — old classes kept for CSS compatibility */
.home-screen-preview {
  padding: 16px 14px 0;
  max-height: 600px;
  overflow: hidden;
}

.hs-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hs-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 8px;
}

.hs-section-title {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.hs-section-action {
  font-size: 0.78rem;
  color: var(--accent);
}

/* Runs track — horizontal scroll like the real app */
.hs-runs-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hs-run-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.92);
}

.hs-run-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.hs-run-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.hs-run-name {
  font-family: var(--serif);
  font-size: 1rem;
  margin-top: 2px;
}

.hs-run-step {
  margin: 8px 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hs-run-next {
  font-size: 0.75rem;
  color: var(--muted);
}

.hs-run-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 6px;
}

.hs-run-footmeta {
  font-size: 0.72rem;
  color: var(--muted);
}

.hs-run-btn {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, #5b9cf6, #3b82f6);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Stats grid */
.hs-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.hs-stat {
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
}

.hs-stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.hs-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Protocol rows */
.hs-protocol-list,
.hs-recent-list {
  display: grid;
  gap: 5px;
}

.hs-protocol-row,
.hs-recent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.88);
}

.hs-protocol-name {
  font-size: 0.85rem;
  font-weight: 500;
}

.hs-protocol-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

.hs-protocol-cta {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

/* Recent tags */
.hs-recent-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.hs-recent-tag.partial {
  background: var(--timer-soft);
  color: var(--timer);
}

/* Tab bar */
.hs-tabbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 14px;
  padding: 10px 0 14px;
  border-top: 1px solid var(--line);
}

.hs-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--muted);
}

.hs-tab.is-active {
  color: var(--accent);
}

.hs-tab-icon {
  font-size: 1rem;
}

.intro-block {
  margin-top: 8px;
}

.intro-lead {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.intro-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro-pill {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-2);
}

.intro-pill strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.intro-pill span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .intro-pills {
    grid-template-columns: 1fr;
  }
}

.record-chip.partial {
  background: var(--timer-soft);
  color: var(--timer);
}

.planner-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.planner-queue-item:last-child {
  border-bottom: 0;
}

.queue-chip-inline {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.queue-chip-inline.muted {
  background: var(--surface-3);
  color: var(--muted);
}

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin: 8px auto 14px;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.cta-section p:not(.eyebrow) {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.cta-section .hero-actions {
  justify-content: center;
}

.screenshot-section {
  text-align: center;
  padding: 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  margin-bottom: 16px;
}

.screenshot-stage {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.phone-frame {
  width: 280px;
  background: #1a1410;
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 32px 80px rgba(72,49,24,0.28),
    inset 0 0 0 1.5px rgba(255,255,255,0.06);
  position: relative;
}

.phone-notch {
  width: 90px;
  height: 24px;
  background: #1a1410;
  border-radius: 0 0 18px 18px;
  margin: 0 auto 8px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 20;
  background-image: url('./homescreen.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.builtfor-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 24px;
  margin-bottom: 16px;
}

.builtfor-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0;
}

.origin-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 52px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.origin-quote {
  max-width: 720px;
}

.origin-mark {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent);
  line-height: 0.6;
  margin: 0 0 16px;
}

.origin-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 14px;
}

.origin-attr {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

.origin-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.origin-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.platform-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 4px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.waitlist-form-full {
  width: min(100%, 520px);
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-question {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.waitlist-qlabel {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.waitlist-qlabel span {
  font-weight: 400;
  opacity: 0.7;
}

.waitlist-textarea {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--sans);
  resize: vertical;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.15s;
}

.waitlist-textarea:focus {
  border-color: var(--accent);
}

.waitlist-textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.waitlist-input {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--sans);
  width: min(100%, 300px);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-input:focus {
  border-color: var(--accent);
}

.waitlist-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.waitlist-success {
  display: none;
  margin-top: 24px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--accent);
}

.waitlist-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 14px;
  opacity: 0.7;
}

.waitlist-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 6px 0 0;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.waitlist-privacy {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 8px 0 0;
  opacity: 0.7;
  max-width: 480px;
  line-height: 1.5;
}

.social-proof-section {
  display: flex;
  justify-content: center;
  padding: 8px 24px 0;
}

.proof-quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  text-align: center;
  max-width: 560px;
  margin: 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-style: italic;
}

.proof-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .hero-section,
  .workflow-columns,
  .records-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .hero-signals {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 12px 10px 28px;
  }

  .site-header,
  .hero-section,
  .proof-section,
  .workflow-section,
  .records-section,
  .cta-section {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .section-heading h2,
  .cta-section h2 {
    max-width: none;
  }

  .records-grid {
    grid-template-columns: 1fr;
  }

  .workflow-timer-row,
  .preview-run-foot {
    flex-direction: column;
    align-items: stretch;
  }
}
