/* ──────────────────────────────────────────────────────────────────────────
   SOAP AI — Landing Page
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --color-primary:        #0d6e6e;
  --color-primary-light:  #1a8a8a;
  --color-primary-dark:   #084f4f;
  --color-accent:         #00acc1;

  --color-surface:        #ffffff;
  --color-surface-alt:    #eaf2f2;
  --color-surface-tint:   #d9ebeb;

  --color-text-primary:   #1a2e2e;
  --color-text-secondary: #5a7070;
  --color-text-muted:     #9ab2b2;

  --color-divider:        #e0ecec;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 20px 50px rgba(13,46,46,.12), 0 8px 20px rgba(13,46,46,.06);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --max-width:        1140px;
  --max-width-narrow: 720px;

  --transition: 200ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

/* ──────────────────────────────────────────────────────────────────────────
   Layout primitives
   ────────────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--max-width-narrow); }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.eyebrow.light { color: rgba(255,255,255,.7); }

.section-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}
.section-headline.center { text-align: center; }
.section-headline.light  { color: white; }

.section-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.section-body.center { text-align: center; }
.section-body.light  { color: rgba(255,255,255,.85); }

/* ──────────────────────────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(13,110,110,.25);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,110,110,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-block { width: 100%; }

.btn-link {
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.btn-link:hover { color: var(--color-primary); }

/* ──────────────────────────────────────────────────────────────────────────
   Header / Nav
   ────────────────────────────────────────────────────────────────────────── */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 20px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  color: white;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .3px;
  color: white;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.nav-link:hover { color: white; }

@media (max-width: 480px) {
  .nav-link { font-size: 13px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: linear-gradient(135deg, #0d6e6e 0%, #084f4f 100%);
  color: white;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  top: -160px; right: -160px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
}
.hero::after {
  bottom: -100px; left: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,172,193,.10) 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero-content { max-width: 580px; }

.hero-headline {
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  color: white;
}

.hero-subhead {
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
}

.hero-anchor {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-cta .btn-link { color: rgba(255,255,255,.75); }
.hero-cta .btn-link:hover { color: white; }

.hero-waveform {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.hero-waveform svg { width: 100%; height: 100%; }

/* ── Hero right column: carousel with desktop + mobile mocks ──────── */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Carousel container — slides stack in same grid cell */
.hero-mock-carousel {
  display: grid;
  grid-template-areas: "stack";
}

.hero-mock-slide {
  grid-area: stack;
  /* All slides share one cell (height = tallest slide). Center each one so the
     shorter slides sit balanced in the constant box instead of top-aligned. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1);
  opacity: 0;
  pointer-events: none;
}

.hero-mock-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Center the phone frame slide horizontally */
.hero-mock-slide:has(.phone-frame) {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dots */
.hero-mock-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hero-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 220ms cubic-bezier(.2,.7,.2,1);
}

.hero-mock-dot:hover { background: rgba(255,255,255,.5); }

.hero-mock-dot.is-active {
  background: white;
  width: 26px;
  border-radius: 100px;
}

/* ── Phone frame mock ─────────────────────────────────────────────── */

.phone-frame {
  width: 230px;
  background: #0a0a0a;
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0,0,0,.40),
    0 12px 32px rgba(0,0,0,.22),
    inset 0 0 0 1.5px rgba(255,255,255,.08);
}

.phone-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(0,172,193,.30), rgba(13,110,110,0) 50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
  opacity: .8;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #000;
  border-radius: 100px;
  z-index: 2;
}

.phone-screen {
  background: white;
  border-radius: 28px;
  padding: 34px 16px 22px;
  position: relative;
  overflow: hidden;
  color: var(--color-text-primary);
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-primary);
}

.phone-app-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider);
}

/* Phone "New Recording" setup screen */
.phone-setup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-step-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-disabled);
  margin: 0 0 2px;
}

.phone-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--color-surface-alt);
  border-radius: 10px;
  color: var(--color-text-secondary);
}
.phone-field > svg:first-child { flex-shrink: 0; color: var(--color-text-secondary); }

.pf-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf-label { font-size: 8.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--color-text-disabled); }
.pf-value { font-size: 11.5px; font-weight: 600; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-check { flex-shrink: 0; color: #2e7d32; }

.phone-snapshot {
  background: #ede7f6;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ps-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #5e35b1;
}
.ps-item {
  font-size: 10.5px;
  color: var(--color-text-primary);
  padding-left: 12px;
  position: relative;
}
.ps-item::before { content: '⚑'; position: absolute; left: 0; color: #e65100; }
.ps-item.alert::before { content: '⚠'; color: #c62828; }

.phone-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px;
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  box-shadow: 0 6px 18px rgba(13,110,110,.30);
}

.hero-mock {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,.30),
    0 12px 32px rgba(0,0,0,.18),
    0 2px 8px rgba(0,0,0,.10);
  position: relative;
  color: var(--color-text-primary);
}

.hero-mock::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, rgba(0,172,193,.35), rgba(13,110,110,0) 50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(24px);
  opacity: .8;
}

.hero-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-divider);
}

.hero-mock-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.hero-mock-body { padding: 18px 18px 20px; }

/* Toolbar row (back arrow + status + patient name + approver) */
.hero-mock-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-mock-toolbar-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.hero-mock-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-mock-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.hero-mock-date {
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.hero-mock-patient {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -.01em;
  margin: 0;
}

.hero-mock-approver {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Original Transcript collapsible bar */
.hero-mock-transcript {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.hero-mock-transcript-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
}

.hero-mock-chev {
  color: var(--color-text-muted);
  display: inline-flex;
}

/* SOAP grid */
.hero-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-mock-section {
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-mock-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-mock-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-mock-section p {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Soft tinted letter badges (replaces solid colors) */
.mock-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mock-letter.subj { background: #d4f0ed; color: #0d6e6e; }
.mock-letter.obj  { background: #d6efd8; color: #2e7d32; }
.mock-letter.ass  { background: #fde4cf; color: #d84315; }
.mock-letter.plan { background: #e9d6f0; color: #7b1fa2; }

@media (max-width: 600px) {
  /* Keep SOAP in 2 columns on mobile so the note mock stays compact and close in
     height to the phone and front-desk slides — otherwise it stacks tall and the
     carousel box looks uneven between slides. */
  .hero-mock-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-mock-section { padding: 10px; }
  .hero-mock-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-mock-approver { font-size: 10px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Problem
   ────────────────────────────────────────────────────────────────────────── */

.problem {
  padding: 100px 0;
  text-align: center;
  background: var(--color-surface);
  position: relative;
}

.problem::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: .6;
}

.problem .section-headline {
  margin-bottom: 24px;
}

.problem .section-body {
  max-width: 580px;
  margin: 0 auto;
}

/* ──────────────────────────────────────────────────────────────────────────
   How it works
   ────────────────────────────────────────────────────────────────────────── */

.how-it-works {
  padding: 100px 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-divider);
}

.how-it-works .eyebrow { text-align: center; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.step {
  background: white;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 40px; height: 40px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.step-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ──────────────────────────────────────────────────────────────────────────
   Shared mock-note primitives (used in hero)
   ────────────────────────────────────────────────────────────────────────── */

.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-text-muted);
  opacity: .4;
}
.mock-dot:first-child  { background: #ff5f57; opacity: .7; }
.mock-dot:nth-child(2) { background: #febc2e; opacity: .7; }
.mock-dot:nth-child(3) { background: #28c840; opacity: .7; }

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.mock-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.mock-badge.subj { background: #1976d2; }
.mock-badge.obj  { background: #7b1fa2; }
.mock-badge.ass  { background: #d84315; }
.mock-badge.plan { background: #2e7d32; }

/* ──────────────────────────────────────────────────────────────────────────
   Features
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   Pillars
   ────────────────────────────────────────────────────────────────────────── */

.pillars {
  padding: 100px 0;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.eyebrow.center { text-align: center; }

.pillar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}

.pillar:first-of-type { margin-top: 48px; }

@media (min-width: 820px) {
  .pillar { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .pillar.reverse .pillar-text { order: 2; }
  .pillar.reverse .pillar-visual { order: 1; }
}

.pillar-icon {
  width: 46px; height: 46px;
  background: var(--color-surface-tint);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-icon.accent { background: rgba(0,172,193,.12); color: var(--color-accent, #00acc1); }

.pillar-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.pillar-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

.pillar-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--color-text-primary);
}
.pillar-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.pillar-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  color: var(--color-primary);
}
.pillar-visual .mock-letter { width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
.pillar-visual.memory-accent { color: #5e35b1; }
.pillar-visual.fd-accent { color: var(--color-accent, #00acc1); }

/* Mini app snapshots inside the memory + front-desk pillar visuals */
.pv-snapshot, .pv-tasks {
  width: 100%;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 4px 8px;
}

.pv-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: currentColor;
  margin-bottom: 2px;
}
.pv-title.between { justify-content: space-between; }
.pv-count { color: var(--color-text-disabled); font-weight: 700; }

.pv-snap-alert {
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
  background: #ffebee;
  border-radius: 8px;
  padding: 9px 11px;
}
.pv-snap-line {
  font-size: 13px;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  border-radius: 8px;
  padding: 9px 11px;
}

.pv-task {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-primary);
  background: var(--color-surface-alt);
  border-radius: 8px;
  padding: 9px 11px;
}
.pv-check { color: var(--color-text-disabled); flex-shrink: 0; }
.pv-task.done { color: var(--color-text-disabled); text-decoration: line-through; }
.pv-task.done .pv-check { color: #2e7d32; }

/* Hero front-desk handoff mock (carousel slide 3) */
.fd-mock-head { margin-bottom: 12px; }
.fd-mock-title {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--color-accent, #00acc1);
}
.fd-mock-card {
  border: 1px solid var(--color-divider);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fd-mock-row { display: flex; justify-content: space-between; align-items: center; }
.fd-mock-time { font-size: 12px; color: var(--color-text-disabled); }
.fd-mock-priority {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  background: #ffebee; color: #c62828; padding: 2px 8px; border-radius: 100px;
}
.fd-mock-name { font-size: 15px; color: var(--color-text-primary); }
.fd-mock-meta { font-size: 11.5px; color: var(--color-text-secondary); margin-bottom: 6px; }

.fd-mock-tasklabel {
  font-size: 10px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--color-text-secondary); font-weight: 700;
  display: flex; justify-content: space-between;
}
.fd-mock-count { color: var(--color-text-disabled); }
.fd-mock-task {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--color-text-primary);
  background: var(--color-surface-alt); border-radius: 7px; padding: 6px 8px;
}
.fd-mock-check { color: var(--color-text-disabled); }
.fd-mock-task.done { color: var(--color-text-disabled); text-decoration: line-through; }
.fd-mock-task.done .fd-mock-check { color: #2e7d32; }
.fd-mock-complete {
  margin-top: 6px; align-self: flex-start;
  background: var(--color-primary); color: white;
  font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 8px;
}

/* ──────────────────────────────────────────────────────────────────────────
   Languages (accent strip)
   ────────────────────────────────────────────────────────────────────────── */

.languages {
  background: linear-gradient(135deg, #0d6e6e 0%, #00acc1 100%);
  padding: 80px 0;
  color: white;
  text-align: center;
}

.languages .eyebrow { text-align: center; }

/* ──────────────────────────────────────────────────────────────────────────
   Trust
   ────────────────────────────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────────────────────────────
   Inline mid-page CTA
   ────────────────────────────────────────────────────────────────────────── */

.inline-cta {
  background: var(--color-surface);
  padding: 56px 0 64px;
  text-align: center;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.inline-cta-title {
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 22px;
  letter-spacing: -.01em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Security
   ────────────────────────────────────────────────────────────────────────── */

.security {
  padding: 100px 0;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-divider);
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 800px) {
  .security-inner { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.check {
  width: 26px; height: 26px;
  background: var(--color-surface-tint);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────────────
   Early Access CTA
   ────────────────────────────────────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, #0d6e6e 0%, #084f4f 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.cta-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: white;
  margin-bottom: 16px;
}

.cta-body {
  font-size: 17px;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.access-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 520px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.access-form input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  color: white;
  transition: all var(--transition);
}
.access-form input::placeholder { color: rgba(255,255,255,.55); }
.access-form input:focus {
  outline: none;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}

.access-form .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.access-form .btn-primary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

.form-note {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  margin-top: 14px;
}

/* Submit button — loading state */
#early-access-submit { position: relative; }
#early-access-submit .btn-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13,110,110,.25);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: btn-spin 700ms linear infinite;
}
#early-access-submit.is-loading .btn-label   { opacity: 0; }
#early-access-submit.is-loading .btn-spinner { opacity: 1; }

@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Success state */
.form-success {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 28px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
}

.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.form-success-body {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* Error state */
.form-error {
  max-width: 480px;
  margin: 14px auto 0;
  padding: 12px 16px;
  background: rgba(244,67,54,.15);
  border: 1px solid rgba(244,67,54,.4);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: rgba(255,255,255,.92);
  text-align: center;
}
.form-error a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────────────────────
   FAQ
   ────────────────────────────────────────────────────────────────────────── */

.faq {
  padding: 100px 0;
  background: var(--color-surface);
}

.faq .eyebrow { text-align: center; }

.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

details {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 0 24px;
  transition: all var(--transition);
}
details[open] {
  background: white;
  box-shadow: var(--shadow-sm);
}

summary {
  list-style: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  position: relative;
  padding-right: 32px;
  user-select: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
}
details[open] summary::after { content: '−'; }

details p {
  padding: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ──────────────────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────────────────── */

.site-footer {
  background: #0a3a3a;
  color: rgba(255,255,255,.75);
  padding: 56px 0 32px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand .brand-name {
  font-size: 18px;
  display: block;
  margin-bottom: 6px;
}

.footer-tag {
  font-size: 14px;
  color: rgba(255,255,255,.55);
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: color var(--transition);
}
.footer-nav a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }

/* ──────────────────────────────────────────────────────────────────────────
   Responsive tweaks
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .hero { padding: 90px 0 70px; }
  .problem, .how-it-works, .pillars, .trust, .security, .faq, .cta-section { padding: 70px 0; }
  .footer-row { flex-direction: column; gap: 24px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Legal pages (Privacy / Terms)
   ────────────────────────────────────────────────────────────────────────── */

.legal-header {
  position: relative;
  background: linear-gradient(135deg, #0d6e6e 0%, #084f4f 100%);
}

.legal-hero {
  background: linear-gradient(135deg, #0d6e6e 0%, #084f4f 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

.legal-title {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: white;
  margin-bottom: 18px;
}

.legal-dates {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,.7);
}

.legal-content {
  background: var(--color-surface);
  padding: 64px 0 100px;
}

.legal-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 48px 0 16px;
  letter-spacing: -.01em;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}
.legal-content h2:first-of-type { padding-top: 0; border-top: none; margin-top: 36px; }

.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 28px 0 10px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--color-primary-light); }

.legal-callout {
  background: var(--color-surface-tint);
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.legal-uppercase {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-surface-alt);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.legal-contact {
  background: var(--color-surface-alt);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-primary);
}

/* ──────────────────────────────────────────────────────────────────────────
   Scroll to top
   ────────────────────────────────────────────────────────────────────────── */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(13,110,110,.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index: 50;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(13,110,110,.45);
}

@media (max-width: 600px) {
  .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Reveal on scroll — subtle, never blocks comprehension
   ────────────────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children for the workflow steps */
.how-it-works.reveal .step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms cubic-bezier(.2,.7,.2,1), transform 500ms cubic-bezier(.2,.7,.2,1);
}
.how-it-works.revealed .step { opacity: 1; transform: translateY(0); }
.how-it-works.revealed .step:nth-child(1) { transition-delay: 120ms; }
.how-it-works.revealed .step:nth-child(2) { transition-delay: 240ms; }
.how-it-works.revealed .step:nth-child(3) { transition-delay: 360ms; }

/* Staggered feature cards */
.features.reveal .feature {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms cubic-bezier(.2,.7,.2,1), transform 450ms cubic-bezier(.2,.7,.2,1);
}
.features.revealed .feature { opacity: 1; transform: translateY(0); }
.features.revealed .feature:nth-child(1) { transition-delay:  80ms; }
.features.revealed .feature:nth-child(2) { transition-delay: 160ms; }
.features.revealed .feature:nth-child(3) { transition-delay: 240ms; }
.features.revealed .feature:nth-child(4) { transition-delay: 320ms; }
.features.revealed .feature:nth-child(5) { transition-delay: 400ms; }
.features.revealed .feature:nth-child(6) { transition-delay: 480ms; }

/* ──────────────────────────────────────────────────────────────────────────
   Hero waveform — slow gentle drift
   ────────────────────────────────────────────────────────────────────────── */

.hero-waveform svg path {
  animation: waveDrift 14s ease-in-out infinite;
  transform-origin: center;
}
.hero-waveform svg path:nth-child(2) {
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes waveDrift {
  0%, 100% { transform: translateX(0) scaleY(1); opacity: .6; }
  50%      { transform: translateX(-30px) scaleY(1.15); opacity: 1; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Hero mock — subtle hover lift
   ────────────────────────────────────────────────────────────────────────── */

.hero-mock {
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms cubic-bezier(.2,.7,.2,1);
}
.hero-mock:hover {
  transform: translateY(-3px);
  box-shadow:
    0 36px 90px rgba(0,0,0,.34),
    0 14px 36px rgba(0,0,0,.20),
    0 2px 8px rgba(0,0,0,.10);
}

/* ──────────────────────────────────────────────────────────────────────────
   Button arrow micro-interaction
   ────────────────────────────────────────────────────────────────────────── */

.btn-arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ──────────────────────────────────────────────────────────────────────────
   Respect reduced motion
   ────────────────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
