/* =========================================================
   Timely B2B preview — styles.css
   Brand: #44C3C4 primary, #54595F secondary, #7A7A7A text
   Typography: Roboto (UI), Roboto Slab (display accents)
   ========================================================= */

:root {
  --teal: #44C3C4;
  --teal-dark: #2FA8A9;
  --teal-darker: #1F8A8B;
  --teal-tint: #E6F7F7;
  --teal-soft: #F4FBFB;
  --coral: #FF8585;
  --ink: #1F2937;
  --charcoal: #54595F;
  --slate: #7A7A7A;
  --line: #E5E9EE;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFB;
  --shadow-sm: 0 1px 2px rgba(20,40,60,.06), 0 1px 3px rgba(20,40,60,.04);
  --shadow-md: 0 4px 12px rgba(20,40,60,.06), 0 2px 6px rgba(20,40,60,.04);
  --shadow-lg: 0 24px 60px rgba(20,40,60,.12), 0 8px 24px rgba(20,40,60,.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1140px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}
@media (max-width: 1024px) {
  html { scroll-padding-top: 68px; }
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal-darker); }

h1, h2, h3, h4 {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .4em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--charcoal); }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal-dark);
  margin: 0 0 .8rem;
}

.accent { color: var(--teal); }
.accent-text { color: var(--teal-dark); }

.section { padding: clamp(60px, 8vw, 110px) 0; }

@media (max-width: 1024px) {
  .section { padding: 44px 0; }
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
@media (max-width: 1024px) {
  .section-head { margin-bottom: 36px; }
}
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { font-size: 1.1rem; color: var(--slate); }
.section-head.light .eyebrow { color: var(--teal); }
.section-head.light h2 { color: #fff; }
.section-head.light .lead { color: rgba(255,255,255,.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 6px 16px rgba(68,195,196,.32);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(68,195,196,.4);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand img { height: 72px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: .96rem;
  transition: color .15s ease;
  position: relative;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--teal-dark);
}
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-cta { padding: 10px 20px; font-size: .92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 12px 10px;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--teal-soft) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -160px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(68,195,196,.22), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -160px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,133,133,.18), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: .1em;
  margin-bottom: .35em;
}
.hero-copy h1 .accent { color: var(--teal-dark); }
.hero-copy .lead {
  font-size: 1.18rem;
  color: var(--charcoal);
  max-width: 560px;
  margin-bottom: 1.6em;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-bullets {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px 28px;
  font-size: .95rem;
  color: var(--charcoal);
}
.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  inset: -10% -10%;
  background: radial-gradient(circle at 60% 50%, rgba(68,195,196,.25), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-glow-soft {
  background: radial-gradient(circle at 50% 50%, rgba(68,195,196,.18), transparent 65%);
}
.hero-app {
  position: relative;
  max-width: 520px;
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(20,40,60,.18));
}
.hero-app-wide { max-width: 720px; }

/* ---------- Problem section (dark) ---------- */
.problem {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(68,195,196,.14), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(255,133,133,.08), transparent 55%),
    linear-gradient(180deg, #0F1A1F 0%, #13202A 100%);
  color: rgba(255,255,255,.85);
}
.problem .section-head h2 { color: #fff; }
.problem .section-head .lead { color: rgba(255,255,255,.78); }
.problem .section-head .eyebrow { color: var(--teal); }
.problem .accent-text { color: var(--teal); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.problem-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  backdrop-filter: blur(4px);
}
.problem-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.07);
  border-color: rgba(68,195,196,.55);
}
.problem-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(68,195,196,.16);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.problem-icon svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: 1.05rem; margin-bottom: .4em; color: #fff; }
.problem-card p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

/* ---------- Solution / Feature rows ---------- */
.solution { background: var(--bg-soft); }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-copy h3 { font-size: 1.7rem; margin-bottom: .4em; }
.feature-copy p { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 1em; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: .98rem;
  color: var(--charcoal);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 10px;
  border-left: 2.5px solid var(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.feature-visual img {
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(20,40,60,.14));
}
.feature-glow {
  position: absolute;
  inset: 5% 8%;
  background: radial-gradient(circle at 50% 50%, rgba(68,195,196,.18), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
}

/* AI mock dashboard (Feature 02 visual) */
.ai-mock {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: .92rem;
}
.ai-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFB 0%, #EFF5F6 100%);
  border-bottom: 1px solid var(--line);
}
.ai-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #E5E9EE;
}
.ai-dot:nth-child(1) { background: #FF6B6B; }
.ai-dot:nth-child(2) { background: #FFC542; }
.ai-dot:nth-child(3) { background: #50DD9D; }
.ai-mock-title {
  margin-left: 10px;
  font-weight: 600;
  color: var(--charcoal);
  font-size: .82rem;
  letter-spacing: .02em;
}
.ai-mock-body { padding: 18px 18px 22px; }
.ai-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ai-row:last-of-type { border-bottom: none; }
.ai-pill {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ai-pill-warn { background: #FEF1ED; color: #D9482A; }
.ai-pill-good { background: #E7F8EE; color: #19914B; }
.ai-pill-info { background: var(--teal-tint); color: var(--teal-darker); }
.ai-row-text {
  color: var(--charcoal);
  font-size: .9rem;
  line-height: 1.45;
}
.ai-row-text strong { color: var(--ink); font-weight: 600; }
.ai-mock-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  font-size: .8rem;
  color: var(--slate);
}
.ai-bar {
  height: 8px;
  background: #EEF3F4;
  border-radius: 4px;
  overflow: hidden;
}
.ai-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #50DD9D 0%, var(--teal) 100%);
}
.ai-bar-val {
  font-weight: 700;
  color: #19914B;
}

/* Inline placeholder mocks: appointment cards (Feature 01), AI dashboard (Feature 02), provider dashboard (Feature 03) */
.appt-mocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 480px;
}
.appt-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.appt-mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.appt-mock-status-ok { background: #E7F8EE; color: #19914B; }
.appt-mock-status-warn { background: #FEF1ED; color: #D9482A; }
.appt-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.appt-mock-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 6px;
}
.appt-mock-time {
  font-size: .82rem;
  color: var(--slate);
}
.appt-mock-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0 4px;
}
.appt-mock-line {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  padding: 3px 0;
}
.appt-mock-label { color: var(--slate); }
.appt-mock-val { color: var(--ink); font-weight: 500; }
.appt-mock-cta {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--teal-soft);
  color: var(--teal-darker);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}
.appt-mock-cta-warn {
  background: #FEF6F1;
  color: #B33C20;
}

.dash-mock {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dash-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFB 0%, #EFF5F6 100%);
  border-bottom: 1px solid var(--line);
}
.dash-mock-title {
  margin-left: 10px;
  font-weight: 600;
  font-size: .82rem;
  color: var(--charcoal);
  letter-spacing: .02em;
}
.dash-mock-body { padding: 18px; }
.dash-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dash-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-card-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--charcoal);
}
.dash-card-chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  align-items: end;
  height: 70px;
}
.dash-bar {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 3px 3px 0 0;
  height: var(--h, 50%);
  min-height: 4px;
}
.dash-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .72rem;
  color: var(--slate);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.dash-card-foot strong {
  display: block;
  color: #19914B;
  font-size: .95rem;
  font-weight: 700;
  margin-top: 2px;
}

.prov-mock {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.prov-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #F8FAFB 0%, #EFF5F6 100%);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: .02em;
}
.prov-mock-body { padding: 16px; }
.prov-mock-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.prov-kpi {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.prov-kpi-label {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--charcoal);
}
.prov-kpi-val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0;
  line-height: 1.1;
}
.prov-kpi-trend {
  font-size: .74rem;
  font-weight: 600;
  color: #19914B;
}
.prov-trend {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.prov-trend-label {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.prov-trend-svg {
  width: 100%;
  height: 40px;
  display: block;
}

@media (max-width: 720px) {
  .appt-mocks,
  .dash-mock-grid,
  .prov-mock-kpis {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why It Matters (dark section) ---------- */
.why {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #0d1418;
  overflow: hidden;
}
.why-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,20,24,.92) 0%, rgba(31,138,139,.78) 100%);
}
.why-inner { position: relative; z-index: 1; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 24px;
}
.stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.stat:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.12);
}
.stat-num {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
}
.why-disclaimer {
  text-align: center;
  margin-top: 28px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--teal);
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 36px;
  align-items: center;
}
.cta-copy h2 { color: #fff; margin-bottom: .25em; }
.cta-copy p { color: rgba(255,255,255,.92); margin: 0; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cta-strip .btn-primary {
  background: #fff;
  color: var(--teal-darker);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.cta-strip .btn-primary:hover {
  background: #fff;
  color: var(--teal-darker);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.cta-strip .btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.cta-strip .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* ---------- Demo / Enroll forms ---------- */
.demo-form, .enroll { background: var(--bg-soft); }
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.form-copy h2 { margin-bottom: .35em; }
.form-copy p { color: var(--charcoal); }

.demo-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.demo-form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--charcoal);
}
.demo-form-card input,
.demo-form-card textarea,
.demo-form-card select {
  font: inherit;
  font-weight: 400;
  font-size: .98rem;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.demo-form-card input:focus,
.demo-form-card textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(68,195,196,.18);
}
.form-fineprint {
  font-size: .78rem;
  color: var(--slate);
  margin: 0;
  text-align: center;
}
/* Honeypot: off-screen, never shown to humans. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  font-size: .85rem;
  color: #b42318;
  margin: 0;
  text-align: center;
  display: none;
}
.form-error.show {
  display: block;
}

/* ---------- Patient page extras ---------- */
.hero-patients {
  background: linear-gradient(180deg, #FFFFFF 0%, #F0F9F9 100%);
}
.store-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.store-badges img {
  height: 48px;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.store-badges a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(20,40,60,.16);
}
.muted { color: var(--slate); font-size: .92rem; }

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pf-card {
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pf-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.pf-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-tint) 0%, #DCEFEF 100%);
  color: var(--teal-darker);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pf-icon svg { width: 26px; height: 26px; }
.pf-card h3 { margin-bottom: .35em; font-size: 1.1rem; }
.pf-card p { margin: 0; color: var(--slate); font-size: .95rem; }

.screens-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  justify-items: center;
}
.screens-row img {
  max-width: 440px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(20,40,60,.14));
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0F1A1F;
  color: rgba(255,255,255,.75);
  padding: 60px 0 28px;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h4 {
  color: #fff;
  font-size: .85rem;
  margin-bottom: 16px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: rgba(255,255,255,.7);
  transition: color .15s ease;
}
.footer-grid a:hover { color: var(--teal); }
.footer-brand p { margin: 12px 0 0; color: rgba(255,255,255,.65); max-width: 280px; }
.footer-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}
.footer-bottom {
  padding-top: 22px;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  display: flex;
  justify-content: space-between;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 60px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
  z-index: 100;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .nav-row { padding: 10px 0; }
  .brand img { height: 48px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 16px 40px rgba(20,40,60,.12);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
  }
  .site-nav a:hover, .site-nav a.active { color: var(--teal-dark); }
  .site-nav a.active { font-weight: 700; }
  .site-nav a::after { display: none !important; }
  .nav-cta { display: none !important; }

  .hero-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-bullets { grid-template-columns: 1fr; justify-items: center; }
  .hero-bullets li { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .store-badges { justify-content: center; }

  .feature-row { grid-template-columns: 1fr; gap: 30px; margin-bottom: 70px; text-align: center; }
  .feature-row .feature-copy { order: 1; }
  .feature-row .feature-visual { order: 2; }
  .feature-list li { text-align: left; }
  .feature-list { max-width: 380px; margin: 0 auto; }

  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .form-row { grid-template-columns: 1fr; }

  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .cta-actions { justify-content: center; }

  .screens-row { grid-template-columns: 1fr; gap: 28px; }
  .pf-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .problem-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo-form-card { padding: 22px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* Phone frame wrapper for app screenshots */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 270px;
  aspect-ratio: 9 / 19.5;
  background: #1c1c1e;
  border-radius: 42px;
  padding: 9px;
  overflow: hidden;
  box-shadow:
    0 30px 50px rgba(20,40,60,.22),
    0 8px 20px rgba(20,40,60,.10),
    inset 0 0 0 1.5px #2c2c2e;
}
/* Notch only on the hero (app-splash is a designed graphic with space for it).
   Real app screenshots already carry their own iOS status bar, so no overlay pill. */
.phone-frame-hero::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 14px;
  z-index: 2;
}
.phone-frame > img {
  position: absolute;
  top: 9px;
  left: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
  display: block;
  filter: none;
  max-width: none;
}
.phone-frame-hero { max-width: 290px; }
.phone-frame-md { max-width: 220px; }
.phone-frame-sm { max-width: 175px; }

.screens-row.screens-single {
  display: flex;
  justify-content: center;
}

.phone-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
}

.phone-frame > .phone-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #F4F7F9 0%, #E5EBEF 100%);
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 14px;
  text-align: center;
  gap: 8px;
  box-sizing: border-box;
}
.phone-placeholder-icon {
  width: 32px;
  height: 32px;
  color: var(--slate);
  opacity: 0.42;
  margin-bottom: 2px;
}
.phone-placeholder-label {
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
}
.phone-placeholder-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.phone-placeholder-sub {
  font-size: .7rem;
  color: var(--slate);
  line-height: 1.35;
  padding: 0 2px;
}
