/* ========= Tokens ========= */
:root {
  --brand: #2563EB;
  --brand-hover: #1D4FD8;
  --brand-soft: #EEF3FF;
  --white: #FFFFFF;
  --light-gray: #F6F6F6;
  --gray: #727375;
  --dark-gray: #262626;
  --black: #000000;
  --bg: #FAFAFB;
  --border: rgba(0,0,0,0.06);
  --nav-bg: rgba(255,255,255,0.85);
  --card-bg: #F6F6F6;

  --radius-card: 16px;
  --radius-pill: 999px;
  --radius-nav: 38px;

  --h-control: 52px;

  --page-margin: 64px;
  /* Drives .section + .members vertical rhythm (tightened from original) */
  --section-gap: 54px;
  /* Hero “From this. To this.” card + LMS marquee pill share this max width */
  --hero-translation-card-max: 980px;
  /* Sticky nav (nav-wrap top + bar) + a little air so eyebrows/titles aren’t clipped */
  --nav-anchor-clearance: 88px;

  --ff-head: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Satoshi", ui-sans-serif, system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(16,24,40,0.04), 0 8px 24px rgba(16,24,40,0.05);
  --shadow-button: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px rgba(37,99,235,0.28);
  --shadow-nav: 0 1px 2px rgba(16,24,40,0.04), 0 8px 30px rgba(16,24,40,0.06);
}

/* ========= Base ========= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* In-page targets (#problem, #what-to-measure, #how-it-works, #members, #faq, #top) share this offset */
html {
  scroll-padding-top: calc(var(--nav-anchor-clearance) + env(safe-area-inset-top, 0px));
}
body {
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--dark-gray);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 500; margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-weight: 500; }

/* ========= Background decoration (floating spheres) ========= */
.bg-spheres {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-spheres .sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #EFEFF2 60%, #E6E6EB 100%);
  box-shadow: 0 10px 60px rgba(16,24,40,0.05);
  opacity: 0.85;
}
.bg-spheres .s1 { width: 520px; height: 520px; top: -180px; left: -300px; opacity: 0.6; }
.bg-spheres .s2 { width: 420px; height: 420px; top: 40px; right: -280px; opacity: 0.6; }
.bg-spheres .s3 { width: 640px; height: 640px; top: 520px; right: -280px; }
.bg-spheres .s4 { width: 360px; height: 360px; top: 1100px; left: -140px; }

/* ========= Layout ========= */
.app { position: relative; z-index: 1; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

/* ========= Nav ========= */
.nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 50;
  padding: 0 var(--page-margin);
}
.nav {
  max-width: 1120px;
  margin: 0 auto;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-nav);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  box-shadow: var(--shadow-nav);
}
.nav-logo { display: flex; align-items: center; gap: 8px; justify-self: start; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; justify-self: center; }
.nav-links a {
  font-size: 15px;
  color: var(--dark-gray);
  font-weight: 500;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button);
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  justify-self: end;
}
.nav-cta:hover { background: var(--brand-hover); transform: translateY(-1px); }
.nav-hamburger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; justify-self: end; }
.nav-hamburger svg { width: 22px; height: 22px; }

.mobile-menu {
  max-width: 1120px;
  margin: 8px auto 0;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-nav);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--dark-gray);
}
.mobile-menu a:hover, .mobile-menu a:active { background: rgba(0,0,0,0.04); }
.mobile-menu .nav-cta { margin-top: 8px; text-align: center; padding: 14px; }

/* ========= Hero ========= */
.hero { padding: 41px var(--page-margin) 22px; text-align: center; }
.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(37,99,235,0.18);
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 64px);
  margin: 20px auto 16px;
  max-width: 18ch;
  color: var(--black);
}
/* One entrance for headline + sub + translation card (avoids split-span line-break bugs) */
.hero-intro-reveal {
  opacity: 0;
  animation: heroIntroReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes heroIntroReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Scroll-triggered block intros (Problem / How it works / Members / FAQ / Final CTA) + FAQ list stagger — same motion as hero / Members logos */
.section-intro-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}
.section-intro-reveal.is-revealed {
  animation: heroIntroReveal 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-cta-row {
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
}
.hero .sub {
  color: var(--gray);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ========= Chat demo ========= */
.chat-demo {
  max-width: 620px;
  margin: 0 auto 36px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  height: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.chat-head .dot-row { display: flex; gap: 6px; }
.chat-head .dot-row span { width: 10px; height: 10px; border-radius: 50%; background: #E6E6EB; }
.chat-head .dot-row span:nth-child(1) { background: #FF5F57; }
.chat-head .dot-row span:nth-child(2) { background: #FEBC2E; }
.chat-head .dot-row span:nth-child(3) { background: #28C840; }
.chat-head .source {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-head .source .live {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28C840;
  box-shadow: 0 0 0 3px rgba(40,200,64,0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(40,200,64,0.18); }
  50% { box-shadow: 0 0 0 5px rgba(40,200,64,0.08); }
}

.msg { display: flex; gap: 10px; max-width: 88%; animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.msg.user .avatar { background: var(--brand); color: white; }
.msg.bot .avatar { background: var(--light-gray); color: var(--brand); }
.msg .bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--dark-gray);
}
.msg.user .bubble {
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 6px;
}
.msg.bot .bubble {
  background: var(--light-gray);
  border-bottom-left-radius: 6px;
}
.typing-dots { display: inline-flex; gap: 4px; align-items: center; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray);
  animation: bounce 1.2s infinite ease-in-out both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

.answer-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answer-card .metric-label {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.answer-card .metric-value {
  font-family: var(--ff-head);
  font-size: 26px;
  font-weight: 500;
  color: var(--black);
  margin-top: 4px;
  letter-spacing: -0.02em;
}
.answer-card .metric-change {
  font-size: 12px;
  color: #16A34A;
  font-weight: 700;
  margin-top: 2px;
}
.answer-card .bar-viz {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-top: 6px;
}
.answer-card .bar-viz i {
  flex: 1;
  background: linear-gradient(180deg, rgba(37,99,235,0.85), rgba(37,99,235,0.55));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: barGrow .6s ease both;
}
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ========= Hero translation layer (replaces chat mockup slot) ========= */
.hero-translation {
  max-width: var(--hero-translation-card-max);
  margin: 0 auto 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px 22px 22px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.hero-translation-ribbon {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 18px;
}
.hero-translation-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(100px, 0.5fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: stretch;
}
.ht-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ht-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.ht-chaos-card {
  flex: 1;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 8px 8px 10px;
  background: #e4e4ea;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
  filter: saturate(0.7) contrast(1.05);
}
.ht-csv {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 8px;
  line-height: 1.25;
  color: var(--dark-gray);
}
.ht-csv th,
.ht-csv td {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 3px 4px;
  text-align: left;
  vertical-align: top;
  word-break: break-all;
}
.ht-csv th {
  font-weight: 700;
  background: rgba(0,0,0,0.04);
  color: var(--gray);
}
.ht-chaos-report {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.ht-chaos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.ht-fake-select {
  font-size: 7px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  color: var(--gray);
  line-height: 1.2;
  white-space: nowrap;
}
.ht-chaos-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 34px;
}
.ht-chaos-chart i {
  flex: 1;
  min-width: 0;
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, rgba(90,90,100,0.55), rgba(130,130,140,0.2));
}
.ht-omiro-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 172px;
  padding: 8px 0 4px;
}
/* Desktop: one row for arrows + pill; caption is a second full-width row beneath (not between pill and out-arrow). */
.ht-omiro-row {
  display: grid;
  width: 100%;
  justify-content: center;
  justify-items: center;
  align-items: center;
  column-gap: 2px;
  row-gap: 6px;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
}
.ht-arrow--in {
  grid-column: 1;
  grid-row: 1;
}
.ht-arrow--out {
  grid-column: 3;
  grid-row: 1;
}
.ht-omiro-row > .ht-omiro-caption {
  grid-column: 1 / -1;
  grid-row: 2;
}
.ht-arrow {
  flex: 0 0 auto;
  color: var(--brand);
  opacity: 0.42;
  display: flex;
  align-items: center;
}
.ht-arrow svg {
  width: clamp(28px, 4vw, 40px);
  height: auto;
  display: block;
}
.ht-arrow path {
  stroke-width: 2;
}
.ht-omiro-glow {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(37,99,235,0.22) 0%, var(--brand-soft) 42%, rgba(238,243,255,0.35) 62%, transparent 72%);
  box-shadow: 0 0 22px rgba(37,99,235,0.11);
}
.ht-omiro-logo {
  width: 65px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.ht-omiro-caption {
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  text-align: center;
  margin: 0;
  letter-spacing: 0.04em;
}
.ht-answer-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ht-answer-card--carousel {
  position: relative;
  width: 100%;
  padding: 14px 14px 12px 16px;
  overflow: hidden;
  gap: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.ht-answer-measure-sizer {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
  overflow: visible;
}
.ht-answer-head-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.ht-answer-head-row .ht-answer-badge {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ht-answer-pin {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ht-answer-pin:hover {
  background: var(--brand-soft);
  border-color: rgba(37, 99, 235, 0.28);
  color: var(--brand-hover);
}
.ht-answer-states {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.ht-answer-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.ht-answer-slide.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.ht-answer-slide.is-stable {
  opacity: 1;
  transform: translateY(0);
  z-index: 2;
  pointer-events: auto;
  visibility: visible;
  animation: none;
}
.ht-answer-slide.is-exiting {
  visibility: visible;
  pointer-events: none;
  z-index: 4;
  animation: htAnswerExit 0.62s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.ht-answer-slide.is-entering {
  visibility: visible;
  pointer-events: none;
  z-index: 3;
  animation: htAnswerEnter 0.62s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes htAnswerExit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(18px); }
}
@keyframes htAnswerEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.ht-answer-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.ht-answer-slide-inner--metric {
  gap: 5px;
  padding-right: 2px;
}
.ht-answer-slide-inner--metric .ht-answer-foot {
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0;
}
/* Card height is locked to the metric slide; conv content can be taller — only the
   message stack scrolls (outer dimensions unchanged). */
.ht-answer-slide-inner--conv {
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}
.ht-conv-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ht-conv-msgs .msg {
  max-width: 100%;
  margin: 0;
  animation: none;
}
.ht-conv-msgs .msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ht-conv-msgs .msg.user .bubble {
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 16px;
  border-bottom-right-radius: 6px;
}
.ht-conv-msgs .msg.bot {
  flex: 0 0 auto;
  align-items: flex-start;
}
.ht-conv-msgs .msg.bot .avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.ht-conv-msgs .msg.bot .bubble {
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 16px;
  border-bottom-left-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark-gray);
  max-height: none;
  overflow-y: visible;
}
@media (prefers-reduced-motion: reduce) {
  .ht-answer-slide.is-exiting,
  .ht-answer-slide.is-entering {
    animation: none;
  }
  .ht-answer-slide.is-stable {
    transform: none;
  }
}
.ht-answer-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
}
.ht-answer-value {
  font-family: var(--ff-head);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 2px;
}
.ht-answer-trend {
  font-size: 13px;
  font-weight: 700;
  color: #16A34A;
}
.ht-answer-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  margin-top: 6px;
}
.ht-answer-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-width: 0;
  background: linear-gradient(180deg, rgba(37,99,235,0.88), rgba(37,99,235,0.55));
  transform-origin: bottom;
}
.ht-answer-line {
  margin-top: 6px;
  height: 44px;
  width: 100%;
}
.ht-answer-line svg {
  width: 100%;
  height: 44px;
  max-height: 44px;
  display: block;
  overflow: visible;
}
.ht-answer-line-stroke {
  stroke: var(--brand);
}
.ht-answer-line-dot {
  fill: #fff;
  stroke: var(--brand);
}
.ht-answer-foot {
  font-size: 11px;
  color: var(--gray);
  margin: 8px 0 0;
  line-height: 1.35;
}

/* ========= Form (inline hero) ========= */
.form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b91c1c;
}
.input, .select, .btn-primary {
  height: var(--h-control);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0 22px;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: all .15s ease;
}
.input, .select {
  background: var(--light-gray);
  color: var(--dark-gray);
}
.input::placeholder { color: var(--gray); }
.select { color: var(--gray); }
.select:required:valid { color: var(--dark-gray); }
.input:focus, .select:focus {
  background: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23727375' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 22px center;
  padding-right: 44px;
}
.btn-primary {
  background: var(--brand);
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-button);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}
.btn-primary:disabled:hover {
  background: var(--brand);
  transform: none;
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  height: var(--h-control);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--gray);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--light-gray); color: var(--dark-gray); }

.waitlist-proof {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray);
}
.avatar-stack { display: flex; }
.avatar-stack img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  margin-left: -8px;
}
.avatar-stack img:first-child { margin-left: 0; }

/* ========= Sections ========= */
.section { padding: var(--section-gap) var(--page-margin); position: relative; }
/* +3px between section seams only; #lms-marquee excluded so hero/marquee/problem rhythm stays the same */
.section:not(#lms-marquee) {
  padding-bottom: calc(var(--section-gap) + 3px);
}
.section-title {
  text-align: center;
  font-size: clamp(32px, 4.6vw, 48px);
  color: var(--black);
  margin-bottom: 34px;
}
#problem .section-title {
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  text-wrap: balance;
}
#problem .problem-sublead {
  text-align: center;
  max-width: 34ch;
  margin: 0 auto 15px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--gray);
  text-wrap: balance;
}
/* Same vertical seam as Problem → How it works: one --section-gap below marquee, one above Problem */
#problem.section {
  padding-top: var(--section-gap);
}
.eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

/* ========= Problem — stacked rows (match .step-circle surface + ring) ========= */
.problem-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 0;
}
/* Scroll-triggered stagger: cards start stacked/decked, then deal in (see Problem() + IO). */
.problem-stack:not(.is-revealed) .problem-row {
  opacity: 0;
  transform: translateY(44px) scale(0.96);
  pointer-events: none;
}
.problem-stack:not(.is-revealed) .problem-row:nth-child(odd) {
  transform: translateY(48px) scale(0.96) rotate(-1.1deg);
}
.problem-stack:not(.is-revealed) .problem-row:nth-child(even) {
  transform: translateY(48px) scale(0.96) rotate(0.95deg);
}
.problem-stack.is-revealed .problem-row:nth-child(odd) {
  animation: problemRowRevealOdd 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--pr-delay, 0s) both;
}
.problem-stack.is-revealed .problem-row:nth-child(even) {
  animation: problemRowRevealEven 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--pr-delay, 0s) both;
}
@keyframes problemRowRevealOdd {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96) rotate(-1.1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
@keyframes problemRowRevealEven {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96) rotate(0.95deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
.problem-row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--brand-soft);
  border: 2px solid rgba(37,99,235,0.18);
  border-radius: 40px;
  /* Extra right padding so copy clears the 1–3 watermark (desktop + mobile overrides below) */
  padding: 28px 112px 28px 32px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.problem-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.12);
}
.problem-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 2px solid rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.problem-icon svg { width: 26px; height: 26px; }
.problem-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.problem-watermark {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-head);
  font-size: 80px;
  font-weight: 700;
  color: var(--black);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.problem-title {
  font-family: var(--ff-head);
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.problem-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.55;
}

/* ========= What to measure (Problem → How it works) ========= */
#what-to-measure .section-title {
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  text-wrap: balance;
}
.measure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  /* Title → grid: same 22px tail as subleads before content rows (e.g. .how-sublead, #members .members-sublead) */
  margin-top: 22px;
}
.measure-grid:not(.is-revealed) .measure-card {
  opacity: 0;
  transform: translateY(48px) scale(0.96) rotate(var(--m-r, 0deg));
  pointer-events: none;
}
.measure-grid.is-revealed .measure-card {
  animation: howStepReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--m-delay, 0s) both;
}
.measure-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--brand-soft);
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-radius: 40px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.measure-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.12);
}
.measure-half {
  padding-left: 22px;
  padding-right: 22px;
}
.measure-half--old {
  padding-top: 22px;
  padding-bottom: 16px;
  opacity: 0.5;
  border-bottom: 1px solid var(--border);
}
.measure-half--new {
  padding-top: 16px;
  padding-bottom: 22px;
}
.measure-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.measure-kicker--old {
  color: var(--gray);
}
.measure-kicker--omiro {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
}
.measure-check-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.measure-old-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--gray);
}
.measure-new-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--dark-gray);
  letter-spacing: -0.01em;
}
@media (max-width: 768px) {
  .measure-grid {
    grid-template-columns: 1fr;
  }
}

/* ========= How It Works — step flow ========= */
#how-it-works .section-title {
  margin-bottom: 10px;
}
#how-it-works .how-sublead {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 48ch;
  margin: 0 auto 22px;
  text-wrap: pretty;
}
#how-it-works .how-sublead-l2 {
  display: inline;
}
@media (max-width: 768px) {
  #how-it-works .how-sublead-l2 {
    display: block;
    margin-top: 0.35em;
  }
}
.steps-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
}
/* Scroll-triggered stagger (HowItWorks + IO on .how-sublead) */
.steps-flow:not(.is-revealed) .step-item {
  opacity: 0;
  transform: translateY(48px) scale(0.96) rotate(var(--hiw-r, 0deg));
  pointer-events: none;
}
.steps-flow.is-revealed .step-item {
  animation: howStepReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--hiw-delay, 0s) both;
}
@keyframes howStepReveal {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.96) rotate(var(--hiw-r, 0deg));
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
.steps-flow:not(.is-revealed) .step-arrow {
  opacity: 0;
}
.steps-flow.is-revealed .step-arrow {
  opacity: 0.45;
  transition: opacity 0.45s ease;
}
.steps-flow.is-revealed .step-arrow:nth-child(2) {
  transition-delay: 0.55s;
}
.steps-flow.is-revealed .step-arrow:nth-child(4) {
  transition-delay: 0.95s;
}
.step-item {
  flex: 1;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 2px solid rgba(37,99,235,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.step-circle:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.16);
}
.step-circle .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.step-circle .step-icon svg { width: 28px; height: 28px; }
.step-circle .step-n {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.step-title {
  font-family: var(--ff-head);
  font-size: 21px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.01em;
}
.step-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.55;
  max-width: 240px;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding-top: 24px;
  flex-shrink: 0;
  color: var(--brand);
  opacity: 0.45;
}
.step-arrow svg { width: 48px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  .problem-row,
  .step-circle {
    transition: none;
  }
  .problem-row:hover {
    transform: none;
    box-shadow: none;
  }
  .step-circle:hover {
    transform: none;
    box-shadow: none;
  }
  .problem-stack .problem-row {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  .measure-card:hover {
    transform: none;
    box-shadow: none;
  }
  .measure-grid .measure-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  .steps-flow .step-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  .steps-flow .step-arrow {
    opacity: 0.45 !important;
    transition: none !important;
  }
  .logo-row .logo-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  .faq-list .faq-item {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
  }
  .hero-intro-reveal,
  .section-intro-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .lms-marquee-track {
    animation: none !important;
  }
  .faq-panel,
  .faq-icon {
    transition: none !important;
  }
}

/* ========= Logo bar / Members ========= */
/* Match .section vertical padding so in-page anchors (#members, #what-to-measure, etc.) clear the sticky nav — see html scroll-padding-top */
.members {
  padding: var(--section-gap) var(--page-margin) calc(var(--section-gap) + 3px);
}
.members .eyebrow { margin-bottom: 13px; }
/* Match #how-it-works hierarchy: H2 + muted sublead + content row */
#members .section-title {
  margin-bottom: 10px;
}
#members .members-sublead {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 48ch;
  margin: 0 auto 22px;
  text-wrap: pretty;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 56px;
  align-items: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
/* Same rhythm as .steps-flow under .how-sublead (placed after .logo-row so margin-top wins) */
#members .logo-row {
  margin-top: 9px;
}
/* Scroll-triggered stagger (Members + IO on .members-sublead); same motion as .steps-flow .step-item */
.logo-row:not(.is-revealed) .logo-item {
  opacity: 0;
  transform: translateY(48px) scale(0.96) rotate(var(--hiw-r, 0deg));
  pointer-events: none;
}
.logo-row.is-revealed .logo-item {
  animation: howStepReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--hiw-delay, 0s) both;
}
.logo-item {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-item img {
  max-height: 100%;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) saturate(0.7) brightness(0.94);
  opacity: 0.85;
  transition: filter 0.28s ease, opacity 0.28s ease;
}
.logo-item:hover img {
  filter: grayscale(0%) saturate(1) brightness(1);
  opacity: 1;
}
/* Chevron runs taller / needs to read bigger */
.logo-item[title="Chevron"] img {
  max-height: 68px;
  max-width: none;
}
/* athenahealth logo — breathing room on height; keep proportional */
.logo-item[title="athenahealth"] img {
  max-height: 56px;
}
.logo-item[title="Ria Money Transfer"] img {
  max-height: 44px;
}
/* Black-on-transparent asset: opacity for muted idle vs solid hover */
.logo-item[title="Mailchimp"] img {
  max-height: 45px;
  filter: none;
  opacity: 0.38;
}
.logo-item[title="Mailchimp"]:hover img {
  filter: none;
  opacity: 1;
}
@media (max-width: 560px) {
  .logo-row { gap: 24px 32px; }
  .logo-item { height: 40px; }
  .logo-item img { max-width: 140px; }
  .logo-item[title="Mailchimp"] img {
    max-height: 37px;
  }
  .logo-item[title="Ria Money Transfer"] img {
    max-height: 36px;
  }
}

/* ========= LMS marquee (after Hero, before Problem in App) ========= */
#lms-marquee.section {
  position: relative;
  /* Tighter than default .section vertical rhythm — marquee is a slim band */
  padding-top: 16px;
  padding-bottom: var(--section-gap);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.lms-marquee-pill {
  max-width: var(--hero-translation-card-max);
  margin: 0 auto;
  padding: 22px 48px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-nav);
  box-shadow: var(--shadow-nav);
  box-sizing: border-box;
}
.lms-marquee-viewport {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lms-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: lms-marquee-scroll 30s linear infinite;
}
.lms-marquee-pill:hover .lms-marquee-track,
.lms-marquee-pill:focus-within .lms-marquee-track {
  animation-play-state: paused;
}
@keyframes lms-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.lms-marquee-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lms-marquee-item img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%) saturate(0.7) brightness(0.94);
  opacity: 0.85;
  transition: filter 0.28s ease, opacity 0.28s ease;
}
.lms-marquee-item:hover img {
  filter: grayscale(0%) saturate(1) brightness(1);
  opacity: 1;
}

/* ========= FAQ (above Final CTA) ========= */
#faq .section-title {
  margin-bottom: 10px;
  text-wrap: balance;
}
#faq .faq-sublead {
  text-align: center;
  color: var(--gray);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  max-width: 48ch;
  margin: 0 auto 18px;
  text-wrap: pretty;
}
.faq-list {
  max-width: 760px;
  margin: 9px auto 0;
  width: 100%;
}
/* Scroll-triggered stagger (FAQ + IO on .faq-sublead); same motion as .logo-row / .steps-flow */
.faq-list:not(.is-revealed) .faq-item {
  opacity: 0;
  transform: translateY(48px) scale(0.96) rotate(var(--hiw-r, 0deg));
  pointer-events: none;
}
.faq-list.is-revealed .faq-item {
  animation: howStepReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) var(--hiw-delay, 0s) both;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  margin: 0;
  text-align: left;
  font-family: var(--ff-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.faq-trigger:hover {
  color: var(--brand);
}
.faq-q-text {
  flex: 1;
  min-width: 0;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: var(--gray);
  transition: transform 0.3s ease, color 0.2s ease;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--dark-gray);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer {
  margin: 0;
  padding: 0 36px 20px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--gray);
  max-width: none;
}
@media (max-width: 640px) {
  .faq-trigger {
    font-size: 15px;
    padding: 16px 0;
  }
  .faq-answer {
    padding-right: 0;
    padding-bottom: 18px;
  }
}

/* ========= Final CTA ========= */
.final-cta {
  padding-top: 56px;
  padding-bottom: 42px;
  /* Match section gutters + notches (same --page-margin as .section / .members) */
  padding-left: max(var(--page-margin), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-margin), env(safe-area-inset-right, 0px));
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.final-cta .section-intro-reveal {
  max-width: 100%;
  min-width: 0;
}
.final-cta .section-title {
  max-width: 100%;
  min-width: 0;
  margin-bottom: 10px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
/* Two-line headline: same break on all breakpoints (no <br> that disappears on mobile). */
.final-cta .final-cta-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  line-height: 1.12;
}
.final-cta .final-cta-title-line {
  display: block;
  max-width: 100%;
  min-width: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.final-cta p {
  color: var(--gray);
  font-size: 18px;
  max-width: min(52ch, 100%);
  margin: 0 auto 18px;
  min-width: 0;
  overflow-wrap: break-word;
}
/* Desktop: break after “about,”; mobile: hide <br> and keep “about, … pull.” on one line */
.final-cta-sub-nobr-mobile {
  white-space: normal;
}
@media (max-width: 640px) {
  .final-cta-sub-br {
    display: none;
  }
  .final-cta-sub-nobr-mobile {
    white-space: nowrap;
  }
}
.final-cta .btn-primary {
  width: auto;
  max-width: 100%;
  padding: 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* ========= Mockup image (Framer exact spec) ========= */
.mockup-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  --mockup-scale: 1;
  height: calc(520px * var(--mockup-scale));
  perspective: 1509px;
}
.mockup-wrap .stage {
  position: relative;
  width: 1100px;
  max-width: 90vw;
  height: 520px;
  flex-shrink: 0;
  transform-origin: top center;
  transform: scale(var(--mockup-scale));
  transform-style: preserve-3d;
}
.mockup-wrap .bg-glow { display: none; }
.mockup-wrap .frame { display: none; }
.mockup-wrap .notch { display: none; }
.mockup-wrap .screen {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 640px;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  transform: translateX(-50%) rotateX(-48deg);
  transform-origin: bottom center;
  border-radius: 12px 12px 0 0;
  background-image: url("https://framerusercontent.com/images/AeHXEygfVQOoS0XVFJYiGwC50C0.jpg");
  background-size: cover;
  background-position: top left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.mockup-wrap .screen::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent 70%);
  transform: scaleY(-1);
  opacity: 0.5;
  pointer-events: none;
  filter: blur(8px);
}
.mockup-wrap .laptop-base { display: none; }

/* Isolated MacBook test section */
.laptop-test {
  width: 100%;
  padding: 80px 20px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.laptop-test-inner {
  position: relative;
  width: 900px;
  max-width: 100%;
  aspect-ratio: 1200 / 630;
  background-image: url("../assets/macbook.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  perspective: 1509px;
}
.laptop-test-screen {
  position: absolute;
  top: -10%;
  left: 50%;
  width: 72%;
  height: 70%;
  transform: translateX(-50%) rotateX(-48deg);
  transform-origin: bottom center;
  border-radius: 12px 12px 0 0;
  background-image: url("https://framerusercontent.com/images/AeHXEygfVQOoS0XVFJYiGwC50C0.jpg");
  background-size: cover;
  background-position: top left;
  overflow: hidden;
  z-index: 1;
}
.laptop-test-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #ffffff 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0.6) 45%, rgba(255,255,255,0) 75%);
  pointer-events: none;
  -webkit-mask-image: url("../assets/macbook.png");
  mask-image: url("../assets/macbook.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center top;
  mask-position: center top;
  z-index: 2;
}
.mockup-wrap .notch {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: 107px;
  height: 11px;
  background-color: rgb(1, 1, 1);
  border-radius: 0 0 6px 6px;
  z-index: 3;
}

/* ========= Footer ========= */
.footer {
  padding: 22px var(--page-margin) 27px;
  border-top: 1px solid var(--border);
  margin-top: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--gray);
  font-size: 14px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.footer .foot-logo { display: flex; align-items: center; gap: 8px; }
.footer .foot-logo img { height: 22px; width: auto; }
.footer .foot-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.footer .foot-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: color 0.15s ease;
}
.footer .foot-linkedin:hover {
  color: var(--brand);
}
.footer .foot-linkedin svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ========= Modal ========= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,24,40,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: overlayIn .2s ease both;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* Wrapper so keyboard shift doesn’t fight .modal’s open animation transform */
.modal-shift-wrap {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: white;
  border-radius: 24px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 20px 60px rgba(16,24,40,0.2);
  animation: modalIn .25s cubic-bezier(.2,.9,.3,1.1) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  transition: background .15s;
}
.modal .close:hover { background: #EBEBEE; color: var(--dark-gray); }
.modal .close svg { width: 16px; height: 16px; }
.modal h3 {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal .sub {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
}
.modal .steps {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.modal .steps i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--light-gray);
}
.modal .steps i.active { background: var(--brand); }
.modal .form { max-width: none; }
.modal .actions { display: flex; gap: 10px; margin-top: 4px; }
.modal .actions .btn-primary { flex: 1; }
.modal .success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal .success-icon svg { width: 28px; height: 28px; }
.modal.center { text-align: center; }

/* ========= Responsive ========= */
@media (max-width: 980px) {
  :root {
    --page-margin: 24px;
    --section-gap: 41px;
    /* Hamburger bar + sticky offset; a bit more than desktop so anchors clear comfortably */
    --nav-anchor-clearance: 120px;
  }
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .problem-row { padding: 22px 92px 22px 20px; gap: 16px; border-radius: 32px; }
  .measure-card { border-radius: 32px; }
  .steps-flow { flex-direction: column; align-items: center; gap: 32px; }
  .step-item { max-width: 360px; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }
  .step-arrow svg { width: 40px; height: 24px; }
  .hero { padding: 27px var(--page-margin) 18px; }
  .hero h1 { max-width: 100%; }
  .chat-demo { padding: 18px 16px 14px; margin: 0 4px; }
  .hero-translation {
    margin-left: 4px;
    margin-right: 4px;
    padding: 16px 14px 18px;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  /* Ribbon reads after stacked panels (below Your answer) */
  .hero-translation-panels {
    grid-row: 1;
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero-translation-ribbon {
    grid-row: 2;
    grid-column: 1;
    margin: 0;
  }
  /* Mobile only: column flow + caption sits under pill, above second arrow (desktop keeps caption under full arrow row). */
  .ht-omiro-row {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto);
    column-gap: 0;
    row-gap: 4px;
  }
  .ht-arrow--in {
    grid-column: 1;
    grid-row: 1;
  }
  .ht-omiro-row > .ht-omiro-caption {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    margin-bottom: 2px;
  }
  .ht-arrow--out {
    grid-column: 1;
    grid-row: 4;
  }
  .ht-arrow {
    justify-content: center;
    align-items: center;
    min-height: 22px;
    overflow: visible;
  }
  .ht-arrow svg {
    transform: rotate(90deg);
    width: clamp(20px, 5.5vw, 28px);
    height: auto;
  }
  /* Slightly bolder stroke on mobile (SVG is drawn smaller in px) */
  .ht-arrow path {
    stroke-width: 3;
  }
  /* Pill hugs logo + small gutter (width/height follow mark, not the card) */
  .ht-omiro-glow {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 4px;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 7px 13px;
    box-sizing: border-box;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    background: radial-gradient(
      ellipse 95% 88% at 50% 42%,
      rgba(37, 99, 235, 0.2) 0%,
      var(--brand-soft) 40%,
      rgba(238, 243, 255, 0.32) 58%,
      transparent 72%
    );
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
  }
  .ht-omiro-logo {
    width: 90px;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
  }
  .ht-omiro-inner {
    align-items: center;
    min-height: 112px;
  }
  .msg { max-width: 96%; }
  .logo-row { gap: 24px 36px; }
  /* Final CTA: extra side inset on tablet/phone (hero translation uses +4px margin each side) */
  .final-cta {
    padding-left: max(calc(var(--page-margin) + 8px), env(safe-area-inset-left, 0px));
    padding-right: max(calc(var(--page-margin) + 8px), env(safe-area-inset-right, 0px));
  }
  #lms-marquee.section {
    padding-top: 13px;
  }
  .lms-marquee-pill {
    padding: 20px 32px;
    max-width: min(var(--hero-translation-card-max), 100%);
  }
  .lms-marquee-track {
    gap: 44px;
  }
  .bg-spheres .s2, .bg-spheres .s3 { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .footer .foot-right { justify-content: center; }
  .problem-icon { width: 48px; height: 48px; }
  .problem-icon svg { width: 22px; height: 22px; }
  .problem-watermark { font-size: 56px; right: 16px; }
}

@media (max-width: 640px) {
  :root {
    --page-margin: 20px;
    /* .nav vertical margin adds ~24px to the sticky stack */
    --nav-anchor-clearance: 132px;
  }
  .problem-row { padding-right: 92px; }
  .hero { padding: 22px var(--page-margin) 15px; }
  .hero-cta-row { padding: 0 4px; }
  .chat-demo { border-radius: 20px; }
  .hero-translation { border-radius: 20px; }
  .final-cta {
    padding-top: 41px;
    padding-bottom: 35px;
  }
  .final-cta .final-cta-title {
    padding-inline: 4px;
  }
  .final-cta p {
    font-size: 17px;
  }
  #lms-marquee.section {
    padding-top: 11px;
  }
  .lms-marquee-pill {
    padding: 18px 22px;
  }
  .lms-marquee-track {
    gap: 36px;
  }
  .nav { margin: 12px auto; }
}

@media (max-width: 480px) {
  :root {
    --page-margin: 18px;
  }
  .problem-row { padding-right: 96px; }
  .hero h1 { font-size: 36px; }
  .section-title { font-size: 28px; }
  #lms-marquee.section {
    padding-top: 10px;
  }
  .lms-marquee-pill {
    padding: 16px 18px;
  }
  .lms-marquee-track {
    gap: 28px;
  }
  /* Final CTA title: small inner inset so two long lines don’t hug the viewport edge. */
  .final-cta .final-cta-title {
    padding-inline: 6px;
    line-height: 1.18;
    gap: 0.14em;
  }
  .modal { padding: 32px 24px 24px; }
  .modal h3 { font-size: 22px; }
  .chat-demo { padding: 14px 12px 12px; }
  .hero-translation { padding: 14px 12px 16px; }
}
