/* ── Design tokens (matches OrthoCompanionDashboard) ── */
:root {
  --navy:       #043b72;
  --navy-2:     #07518f;
  --navy-dark:  #032d58;
  --sage:       #178880;
  --sage-2:     #0f6b65;
  --sage-soft:  #e2f4f3;
  --ink:        #111827;
  --body:       #475569;
  --muted:      #8a8fae;
  --line:       #dde2f0;
  --line-soft:  #e8eaf0;
  --bg:         #f3faf8;
  --card:       #ffffff;
  --cream:      #fbf1d5;
  --cream-ink:  #9a6b1f;
  --shadow:     0 1px 0 rgba(4,59,114,.04), 0 6px 18px rgba(4,59,114,.06);
  --shadow-lg:  0 4px 32px rgba(4,59,114,.12);
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--card);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Utilities ── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}
.eyebrow-muted {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
h1,h2,h3 { line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
}
.text-navy { color: var(--navy); }
.text-sage  { color: var(--sage); }
.text-muted { color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-primary-sage {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn-primary-sage:hover { background: var(--sage-2); border-color: var(--sage-2); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(4,59,114,.04), 0 4px 16px rgba(4,59,114,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 32px; width: 32px; }
.nav-wordmark {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 999px;
  transition: all .12s;
  letter-spacing: .04em;
}
.lang-btn.active {
  background: var(--navy);
  color: #fff;
}
.lang-btn:hover:not(.active) { color: var(--navy); }

/* ── Hero ── */
.hero {
  background: var(--navy);
  padding: 112px 0 72px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(23,136,128,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(23,136,128,.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-copy { position: relative; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(23,136,128,.18);
  border: 1px solid rgba(23,136,128,.3);
  color: #7dd4ce;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Screenshots hero ── */
.screenshots-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 480px;
}
.screenshot-glow {
  position: absolute;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(23,136,128,.28) 0%, transparent 68%);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.screenshot-back {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg) translateX(-24px);
  width: 195px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0,0,0,.38), 0 0 0 1px rgba(255,255,255,.06);
  z-index: 0;
}
.screenshot-front {
  position: relative;
  z-index: 1;
  width: 235px;
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.1);
  transform: rotate(2deg);
}
.screenshot-back img,
.screenshot-front img {
  display: block;
  width: 100%;
  /* crop 3px from each edge to remove export artifacts */
  margin: -3px;
  width: calc(100% + 6px);
}

/* ── App preview section ── */
.app-preview { background: var(--navy); padding: 80px 0 96px; }
.app-preview-header { text-align: center; margin-bottom: 56px; }
.app-preview-header h2 { color: #fff; margin-bottom: 10px; }
.app-preview-header p { color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto; }
.app-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: end;
  max-width: 1040px;
  margin: 0 auto;
}
.app-preview-item { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.app-preview-item:nth-child(2) { transform: translateY(-24px); }
.app-preview-item:nth-child(4) { transform: translateY(-24px); }
.screenshot-frame {
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.07);
}
.screenshot-frame img {
  display: block;
  width: calc(100% + 6px);
  margin: -3px;
}
.patient-screenshot {
  max-width: 300px;
  border-radius: 34px;
}
.patient-screenshot img {
  width: 100%;
  margin: 0;
}
.app-preview-caption { text-align: center; }
.app-preview-caption strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
/* legacy mock divider (used in value cards) */
.mock-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 14px 0;
}

/* ── Problem ── */
.problem { background: var(--card); }
.problem-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.problem-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.problem-icon svg { width: 28px; height: 28px; stroke: var(--cream-ink); }
.problem h2 { color: var(--navy); margin-bottom: 20px; }
.problem .lead { max-width: 600px; margin: 0 auto; }

/* ── Value sections ── */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.value-grid.reverse { direction: rtl; }
.value-grid.reverse > * { direction: ltr; }
.value-copy h2 { color: var(--navy); margin-bottom: 20px; }
.value-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.value-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.value-icon svg { width: 18px; height: 18px; stroke: var(--sage); }
.value-icon-navy { background: rgba(4,59,114,.08); }
.value-icon-navy svg { stroke: var(--navy); }
.value-item-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.value-item-text p {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.55;
}
.value-visual {
  display: flex;
  justify-content: center;
}
.visual-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  width: 100%;
  max-width: 360px;
}
.visual-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.visual-card-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-sage { background: var(--sage-soft); color: var(--sage); }
.badge-navy { background: rgba(4,59,114,.08); color: var(--navy); }
.stat-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.stat-label { font-size: 12.5px; color: var(--body); }
.stat-val { font-size: 13px; font-weight: 600; color: var(--navy); }
.stat-val.sage { color: var(--sage); }
.bar-wrap {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
  margin-top: 18px;
}
.bar-item {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--sage-soft);
}
.bar-item.filled { background: var(--sage); }
.bar-item.dim { background: var(--line); }
.bar-row-label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.bar-row-label span { font-size: 10px; color: var(--muted); }

/* ── How it works ── */
.hiw { background: var(--bg); }
.hiw-header { text-align: center; margin-bottom: 56px; }
.hiw-header h2 { color: var(--navy); margin-bottom: 12px; }
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hiw-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.hiw-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -.04em;
}
.hiw-card h3 { color: var(--navy); margin-bottom: 10px; }
.hiw-card p { font-size: 14px; color: var(--body); line-height: 1.6; }
.hiw-connector {
  display: none;
}

/* ── Pilot ── */
.pilot { background: var(--navy); position: relative; overflow: hidden; }
.pilot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 85% 50%, rgba(23,136,128,.2) 0%, transparent 60%);
  pointer-events: none;
}
.pilot-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.pilot-copy h2 { color: #fff; margin-bottom: 16px; }
.pilot-copy .lead { color: rgba(255,255,255,.7); margin-bottom: 32px; }
.pilot-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pilot-features { display: flex; flex-direction: column; gap: 16px; }
.pilot-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.pilot-feature-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pilot-feature-icon svg { width: 18px; height: 18px; stroke: #7dd4ce; }
.pilot-feature-text h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.pilot-feature-text p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.5; }
.pilot-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.06);
}

/* ── FAQ ── */
.faq { background: var(--bg); }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-header h2 { color: var(--navy); margin-bottom: 10px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  gap: 16px;
}
.faq-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.faq-chevron svg { width: 12px; height: 12px; stroke: var(--muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--sage-soft); }
.faq-item.open .faq-chevron svg { stroke: var(--sage); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a-inner {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

/* ── Contact ── */
.contact { background: var(--card); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.contact-card {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 42px;
}
.contact-info h2 { color: var(--navy); margin-bottom: 14px; font-size: 28px; }
.contact-info .lead { font-size: 15px; margin-bottom: 28px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--body);
  margin-bottom: 10px;
}
.contact-detail svg { width: 16px; height: 16px; stroke: var(--sage); flex-shrink: 0; }
.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.contact-action p {
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Footer ── */
footer {
  background: var(--navy-dark);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.footer-wordmark { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  max-width: 420px;
  line-height: 1.6;
}
.footer-right { text-align: right; }
.footer-email {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  margin-bottom: 8px;
}
.footer-email a { color: #7dd4ce; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── Trust strip ── */
.trust-strip {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.trust-strip-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-right: 1px solid var(--line-soft);
  flex: 1;
  min-width: 180px;
  justify-content: center;
}
.trust-item:last-child { border-right: none; }
.trust-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--sage-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item-icon svg { width: 16px; height: 16px; stroke: var(--sage); }
.trust-item-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.trust-item-sub {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ── 1-minute badge in hero ── */
.hero-minute-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(23,136,128,.15);
  border: 1px solid rgba(23,136,128,.25);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  margin-top: 20px;
}
.hero-minute-badge svg { width: 14px; height: 14px; stroke: #7dd4ce; }
.hero-minute-badge strong { color: #7dd4ce; font-weight: 700; }

/* ── Browser-frame dashboard screenshots ── */
.browser-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(4,59,114,.18), 0 0 0 1px var(--line);
  background: var(--card);
}
.browser-chrome {
  background: #edf0f5;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 5px; flex-shrink: 0; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot-r { background: #ff6058; }
.b-dot-y { background: #ffbd2e; }
.b-dot-g { background: #28c941; }
.browser-url {
  flex: 1;
  height: 20px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.browser-frame img { display: block; width: 100%; }

/* pilot screenshot */
.pilot-screenshot .browser-frame {
  box-shadow: 0 16px 48px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.08);
}
.pilot-screenshot .browser-chrome { background: #1a3054; border-color: rgba(255,255,255,.1); }
.pilot-screenshot .browser-url { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.pilot-screenshot .b-dot-r { background: #ff6058; }
.pilot-screenshot .b-dot-y { background: #ffbd2e; }
.pilot-screenshot .b-dot-g { background: #28c941; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 104px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .screenshots-wrap { display: none; }
  .value-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid.reverse { direction: ltr; }
  .hiw-grid { grid-template-columns: 1fr; gap: 16px; }
  .pilot-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-right { text-align: left; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .btn-lg { padding: 12px 22px; font-size: 14px; }
  .app-preview-grid { grid-template-columns: 1fr; gap: 40px; max-width: 320px; }
  .app-preview-item:nth-child(2) { transform: none; }
  .app-preview-item:nth-child(4) { transform: none; }
  .app-preview { padding: 64px 0; }
  .trust-strip-inner { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--line-soft); justify-content: flex-start; padding: 14px 20px; }
  .trust-item:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .nav-wordmark { display: none; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .pilot-ctas { flex-direction: column; }
}
