/* ================================================================
   FaceMed.ai — Clinical Intelligence Design System
   ================================================================ */

/* — Reset — */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #17252c;
  --ink-light:  #405761;
  --ink-muted:  #71848e;
  --linen:      #f3f7f8;
  --sand:       #e8eef1;
  --sage:       #13767f;
  --sage-deep:  #0d5b63;
  --sage-light: #dceef2;
  --terra:      #2f67cf;
  --terra-deep: #2557ad;
  --terra-light:#e7efff;
  --gold:       #2f96a6;
  --gold-deep:  #247786;
  --gold-light: #e7f5f7;
  --surface:    #fbfdfe;
  --surface-muted: #eff4f6;
  --surface-strong: #16252d;
  --surface-strong-2: #1d3139;
  --surface-strong-3: #253c45;
  --border-subtle: rgba(23, 37, 44, 0.08);
  --border-strong: rgba(23, 37, 44, 0.14);
  --border-dark: rgba(214, 229, 234, 0.16);
  --border-dark-strong: rgba(214, 229, 234, 0.28);
  --shadow-soft: rgba(12, 25, 31, 0.08);
  --shadow-strong: rgba(8, 17, 24, 0.22);
  --terra-glow: rgba(47, 103, 207, 0.24);
  --sage-glow: rgba(19, 118, 127, 0.18);
  --focus-ring: rgba(47, 103, 207, 0.16);
  --nav-surface: rgba(243, 247, 248, 0.9);
  --on-dark:    #f4f8f9;
  --on-dark-muted: rgba(225, 235, 239, 0.72);
  --on-dark-subtle: rgba(225, 235, 239, 0.5);
  --accent-gradient: linear-gradient(135deg, var(--terra) 0%, var(--sage) 100%);

  --ff-display: 'Fraunces', 'Georgia', serif;
  --ff-body:    'Outfit', -apple-system, 'Segoe UI', sans-serif;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;
}

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

body {
  font-family: var(--ff-body);
  background: var(--linen);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ================================================================
   Typography
   ================================================================ */
.t-display {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 5vw + 1rem, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72;
}

.t-headline {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw + 0.5rem, 3.2rem);
  font-weight: 400;
  line-height: 1.12;
}

.split .t-display {
  font-size: clamp(2.2rem, 3.5vw + 0.5rem, 3.4rem);
}

.split .t-headline {
  font-size: clamp(1.75rem, 2.8vw + 0.4rem, 2.5rem);
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 48;
}

.t-subhead {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink-light);
}

.t-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.t-body {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.65;
}

.t-small {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ================================================================
   Layout
   ================================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section--compact {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--sage {
  background: rgba(19, 118, 127, 0.04);
}

[style*="background: var(--sand)"],
.section--sage {
  position: relative;
}

[style*="background: var(--sand)"]::after,
.section--sage::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.section--clinical {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface-strong-2) 100%);
}

.section--clinical::before,
.section--clinical::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.section--clinical::before {
  left: -12%;
  bottom: -30%;
  width: 42%;
  height: 72%;
  background: radial-gradient(circle, rgba(19, 118, 127, 0.22) 0%, transparent 68%);
}

.section--clinical::after {
  right: -10%;
  top: -22%;
  width: 36%;
  height: 60%;
  background: radial-gradient(circle, rgba(47, 103, 207, 0.18) 0%, transparent 64%);
}

.section--clinical > .container {
  position: relative;
  z-index: 1;
}

.section--clinical .t-display,
.section--clinical .t-headline {
  color: var(--on-dark);
}

.section--clinical .t-subhead,
.section--clinical .t-small {
  color: var(--on-dark-muted);
}

.section--clinical .t-eyebrow {
  color: rgba(206, 223, 230, 0.78);
}

.dark-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--border-dark);
  box-shadow: 0 24px 60px var(--shadow-strong);
}

.dark-card h3 {
  color: var(--on-dark);
}

.dark-card p {
  color: var(--on-dark-muted);
}

.dark-card .feature-icon {
  border: 1px solid var(--border-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dark-card .feature-icon--sage {
  background: rgba(19, 118, 127, 0.14);
  color: #a6dde3;
}

.dark-card .feature-icon--terra {
  background: rgba(47, 103, 207, 0.16);
  color: #b9d0ff;
}

.dark-card .feature-icon--gold {
  background: rgba(47, 150, 166, 0.16);
  color: #a8e0ea;
}

.dark-media-frame {
  padding: 0.95rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-dark);
  box-shadow: 0 28px 72px var(--shadow-strong);
}

.dark-media-frame img {
  border-radius: 18px;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto;
}

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

.solution-grid {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.8vw, 2rem);
}

.solution-card {
  padding: clamp(1.6rem, 2.5vw, 2rem);
  border-radius: 20px;
  min-height: 100%;
}

.solution-card .feature-icon {
  margin-bottom: 1rem;
}

.solution-media-wrap {
  margin-top: clamp(3rem, 5vw, 4.25rem);
  max-width: 980px;
  margin-inline: auto;
}

/* ================================================================
   Mockup System
   ================================================================ */
.glass-panel {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-panel--dark {
  background: rgba(18, 35, 43, 0.78);
}

.glass-panel--light {
  background: rgba(251, 253, 254, 0.88);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.app-window {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
}

.app-window--dark {
  background: linear-gradient(180deg, rgba(20, 38, 47, 0.96) 0%, rgba(14, 27, 34, 0.96) 100%);
  border: 1px solid var(--border-dark);
  box-shadow: 0 26px 64px var(--shadow-strong);
}

.app-window--light {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 22px 48px var(--shadow-soft);
}

.app-window__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.app-window__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-window--light .app-window__bar {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(239, 244, 246, 0.9);
}

.app-window__dots {
  display: flex;
  gap: 0.35rem;
}

.app-window__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.app-window__dot--rose { background: #ff6d66; }
.app-window__dot--amber { background: #ffbf45; }
.app-window__dot--mint { background: #36c88c; }

.app-window__title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.app-window--dark .app-window__title {
  color: var(--on-dark-muted);
}

.app-window--light .app-window__title {
  color: var(--ink-muted);
}

.app-window__meta {
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.status-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill--live {
  color: #dff7fb;
  background: rgba(19, 118, 127, 0.18);
  border: 1px solid rgba(143, 215, 224, 0.22);
}

.status-pill--live::before {
  background: #7ee1ef;
}

.status-pill--note {
  color: #dfeafe;
  background: rgba(47, 103, 207, 0.18);
  border: 1px solid rgba(189, 212, 255, 0.22);
}

.status-pill--note::before {
  background: #9cc0ff;
}

.status-pill--muted {
  color: var(--on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill--muted::before {
  background: rgba(255, 255, 255, 0.45);
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 78%;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.chat-bubble--assistant {
  align-self: flex-start;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble--patient {
  align-self: flex-end;
  color: #e6efff;
  background: rgba(47, 103, 207, 0.22);
  border: 1px solid rgba(189, 212, 255, 0.18);
}

.chat-bubble__meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: rgba(225, 235, 239, 0.6);
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.4s linear infinite;
}

.skeleton-line--light {
  background: linear-gradient(90deg, rgba(23, 37, 44, 0.08) 0%, rgba(23, 37, 44, 0.16) 50%, rgba(23, 37, 44, 0.08) 100%);
  background-size: 200% 100%;
}

.skeleton-line--short { width: 42%; }
.skeleton-line--mid { width: 68%; }
.skeleton-line--long { width: 88%; }

.mockup-workspace {
  position: relative;
  padding: 1rem;
}


.mockup-workspace__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.86fr);
  gap: 1rem;
  padding-top: 2.2rem;
}

.mockup-conversation,
.mockup-summary {
  padding: 1rem;
}

.mockup-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-panel-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark);
}

.mockup-panel-title p {
  font-size: 0.78rem;
  color: var(--on-dark-muted);
}

.mockup-patient-card {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.mockup-patient-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-dark);
}

.mockup-patient-card__meta {
  margin-top: 0.45rem;
  font-size: 0.76rem;
  color: var(--on-dark-muted);
}

.mockup-summary-note {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mockup-note-section {
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-note-section__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d9eef2;
}

.mockup-note-section__icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(19, 118, 127, 0.22);
  border: 1px solid rgba(126, 225, 239, 0.15);
}

.mockup-note-checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mockup-note-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mockup-note-check__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(47, 103, 207, 0.24);
  border: 1px solid rgba(189, 212, 255, 0.18);
  flex-shrink: 0;
}

.workflow-canvas {
  padding: 1rem;
}

.workflow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-step {
  position: relative;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(239, 244, 246, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 30px rgba(12, 25, 31, 0.06);
}

.workflow-step::after {
  content: '';
  position: absolute;
  inset: auto auto -1rem 50%;
  width: 2px;
  height: 1rem;
  background: linear-gradient(180deg, rgba(47, 103, 207, 0.25) 0%, transparent 100%);
  transform: translateX(-50%);
}

.workflow-step:nth-child(3)::after,
.workflow-step:nth-child(4)::after {
  display: none;
}

.workflow-step__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.workflow-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(47, 103, 207, 0.12);
  color: var(--terra);
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.workflow-step__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.workflow-step__title {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.workflow-step__preview {
  margin-top: 0.9rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(23, 37, 44, 0.06);
}

.workflow-step__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.workflow-step__row + .workflow-step__row {
  margin-top: 0.55rem;
}

.workflow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.58rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.workflow-chip--teal {
  background: rgba(19, 118, 127, 0.1);
  color: var(--sage-deep);
}

.workflow-chip--blue {
  background: rgba(47, 103, 207, 0.1);
  color: var(--terra-deep);
}

.workflow-chip--muted {
  background: rgba(23, 37, 44, 0.06);
  color: var(--ink-muted);
}

.workflow-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.7rem;
  border-radius: 14px;
  background: rgba(47, 103, 207, 0.08);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.4;
}

.workflow-bubble--muted {
  background: rgba(23, 37, 44, 0.05);
}

.device-shell {
  position: relative;
  width: min(240px, 100%);
  padding: 0.45rem;
  border-radius: 32px;
  background: linear-gradient(180deg, #14242c 0%, #0c171d 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 64px rgba(8, 17, 24, 0.24);
}

.device-shell::before {
  content: '';
  position: absolute;
  top: 0.85rem;
  left: 50%;
  width: 36%;
  height: 0.32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  z-index: 2;
}

.device-screen {
  position: relative;
  min-height: 440px;
  border-radius: 27px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 18%, rgba(54, 152, 168, 0.22) 0%, transparent 38%), linear-gradient(180deg, #0e1a20 0%, #111f27 100%);
  padding: 1.1rem 0.95rem 0.95rem;
}

.device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.device-header__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-dark);
}

.device-header__meta {
  font-size: 0.72rem;
  color: var(--on-dark-subtle);
}

.ai-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto;
  background: radial-gradient(circle at 35% 30%, #8edce7 0%, #3498a7 34%, #0d5b63 68%, #0a2f38 100%);
  box-shadow: 0 0 0 14px rgba(19, 118, 127, 0.08), 0 16px 32px rgba(6, 18, 24, 0.28);
}

/* FaceTime-style call layout */
.ft-call {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #111;
}

.ft-video-feed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: inherit;
  z-index: 0;
}

/* Gradient overlays for readability */
.ft-call::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 28%, transparent 60%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
}

/* AI assistant PIP (small inset, top-right) */
.ft-pip {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 72px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

.ft-pip__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ft-pip__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.15rem 0;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

/* FaceTime top bar overlay */
.ft-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.15rem 0.3rem;
  z-index: 2;
  position: relative;
}

.ft-topbar__name {
  font-size: 0.76rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.ft-topbar__timer {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Live captions overlay */
.ft-captions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 0.4rem;
  margin-top: auto;
  z-index: 2;
  position: relative;
}

.ft-caption {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.38;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 92%;
}

.ft-caption--ai {
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  align-self: flex-start;
}

.ft-caption--patient {
  color: #fff;
  background: rgba(47, 103, 207, 0.45);
  align-self: flex-end;
}

/* FaceTime-style bottom controls */
.ft-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.6rem 0 0.35rem;
  z-index: 2;
  position: relative;
}

.ft-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.15s ease;
}

.ft-btn:hover { transform: scale(1.06); }

.ft-btn--action {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ft-btn--end {
  width: 44px;
  height: 44px;
  background: #e53935;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

@keyframes waveform-rise {
  0%, 100% { transform: scaleY(0.8); opacity: 0.75; }
  50% { transform: scaleY(1.12); opacity: 1; }
}

@supports not ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .glass-panel--dark {
    background: rgba(22, 37, 45, 0.96);
  }

  .glass-panel--light {
    background: rgba(251, 253, 254, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line,
  .waveform span,
  .float-artifact,
  .status-pill--live::before {
    animation: none;
  }

  .parallax-layer,
  .parallax-layer--slow,
  .parallax-layer--fast {
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .glow-surface::after {
    display: none;
  }

  .logo-marquee__track {
    animation: none;
  }
}

/* ================================================================
   Navigation
   ================================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-nav.scrolled {
  background: var(--nav-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border-subtle);
}

/* Nav on dark hero cover */
.site-nav.nav--dark .nav-logo {
  filter: brightness(0) invert(1);
}

.site-nav.nav--dark .nav-links a {
  color: rgba(255, 255, 255, 0.75);
}

.site-nav.nav--dark .nav-links a:hover,
.site-nav.nav--dark .nav-links a.active {
  color: var(--on-dark);
}

.site-nav.nav--dark .nav-links a:not(.nav-cta)::after {
  background: var(--on-dark);
}

.site-nav.nav--dark .nav-toggle span {
  background: var(--on-dark);
}

.site-nav.nav--dark.scrolled .nav-logo {
  filter: none;
}

.site-nav.nav--dark.scrolled .nav-links a {
  color: var(--ink-light);
}

.site-nav.nav--dark.scrolled .nav-links a:hover,
.site-nav.nav--dark.scrolled .nav-links a.active {
  color: var(--ink);
}

.site-nav.nav--dark.scrolled .nav-links a:not(.nav-cta)::after {
  background: var(--sage);
}

.site-nav.nav--dark.scrolled .nav-toggle span {
  background: var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.nav-inner > a:first-child {
  display: block;
  height: 44px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo {
  height: 76px;
  width: auto;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--terra);
  color: var(--on-dark) !important;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: 0 10px 24px var(--terra-glow);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--terra-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px var(--terra-glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 999;
  padding: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu .nav-cta {
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.btn--primary {
  padding: 0.85rem 2rem;
  background: var(--terra);
  color: var(--on-dark);
  font-size: 1rem;
  box-shadow: 0 10px 24px var(--terra-glow);
}

.btn--primary:hover {
  background: var(--terra-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--terra-glow);
}

.btn--secondary {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  border: 1.5px solid var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--terra);
  background: rgba(47, 103, 207, 0.04);
}

.btn--ghost {
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--sage-deep);
  font-size: 0.92rem;
}

.btn--ghost:hover {
  color: var(--sage-deep);
  background: rgba(19, 118, 127, 0.08);
}

.btn:focus-visible,
.nav-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

/* ================================================================
   Legal / Policy Pages
   ================================================================ */
.legal-content {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.legal-content h2 {
  font-family: var(--ff-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 0.8rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.legal-content ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.legal-content ul li strong {
  color: var(--ink);
}

.legal-content a {
  color: var(--sage);
  font-weight: 500;
  border-bottom: 1px solid rgba(19, 118, 127, 0.28);
  transition: border-color 0.2s ease;
}

.legal-content a:hover {
  border-bottom-color: var(--sage);
}

/* Cookie Preferences Page */
.cookie-category {
  margin-top: 2rem;
  padding: clamp(1.2rem, 2vw, 1.5rem);
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}

.cookie-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-header h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.cookie-header p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

.cookie-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.cookie-badge--required {
  background: var(--sage-light);
  color: var(--sage-deep);
}

.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  cursor: pointer;
  margin-top: 0.2rem;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 26px;
  transition: background 0.25s ease;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--sage);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(22px);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.cookie-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border-strong);
}

.cookie-table td {
  padding: 0.5rem 0.8rem;
  color: var(--ink-light);
  border-bottom: 1px solid var(--border-subtle);
}

.cookie-table td:first-child {
  font-family: var(--ff-body);
  font-weight: 500;
  color: var(--ink);
  font-size: 0.82rem;
}

/* ================================================================
   Footer
   ================================================================ */
.site-footer {
  background: var(--surface-strong);
  color: var(--on-dark-muted);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-wrap {
  display: block;
  height: 36px;
  overflow: hidden;
}

.footer-logo {
  height: 62px;
  width: auto;
  margin-top: -3px;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 28ch;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-subtle);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--on-dark);
  padding: 0.3rem 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 248, 249, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--on-dark);
}

/* ================================================================
   Scroll Reveal
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.22s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.50s; }
.reveal-d5 { transition-delay: 0.64s; }

/* Slide-in from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide-in from right */
.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-up reveal */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ================================================================
   Scroll Progress Bar
   ================================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 1001;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ================================================================
   Typewriter
   ================================================================ */
[data-typewriter] .tw-line {
  display: inline;
}

[data-typewriter] .tw-char {
  opacity: 1;
  transition: opacity 0.06s ease;
}

[data-typewriter].tw-ready .tw-char {
  opacity: 0;
}

[data-typewriter].tw-active .tw-char {
  opacity: 1;
}

/* ================================================================
   Stat Glow
   ================================================================ */
@keyframes stat-glow {
  0% { text-shadow: none; }
  40% { text-shadow: 0 0 20px currentColor; }
  100% { text-shadow: none; }
}

.counted {
  animation: stat-glow 1s ease-out;
}

/* Button hover refinements handled in interaction section below */

/* ================================================================
   Keyframe Animations
   ================================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulsing dot on hero badge */
.hero-stat-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Floating effect for feature icons */
.feature-icon {
  transition: transform 0.3s ease;
}
.feature-icon:hover {
  animation: float 2s ease-in-out infinite;
}

/* Card hover lift */
.step-card,
.quote-block {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px var(--shadow-soft);
}


.quote-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-soft);
}

/* CTA banner animated gradient */
.cta-banner {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Button hover animations */
.btn--primary {
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--terra-glow);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px var(--terra-glow);
}

.btn--secondary {
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, background 0.25s ease;
}
.btn--secondary:hover {
  transform: translateY(-2px);
}
.btn--secondary:active {
  transform: translateY(0);
}

/* Nav link underline animation */
.nav-links a:not(.nav-cta)::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--terra);
  transition: width 0.3s ease;
  margin-top: 2px;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after {
  width: 100%;
}

/* Animated stat number counter class */
.stat-animate {
  animation: count-up 0.6s var(--ease-out) both;
}

/* Trust logo strip continuous scroll on mobile */
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   Motion Primitives: Glow, Float, Parallax
   ================================================================ */

/* Pointer-follow glow surface — add to any card container */
.glow-surface {
  position: relative;
  overflow: hidden;
}

.glow-surface::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(
    520px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    var(--glow-color, rgba(19, 118, 127, 0.08)) 0%,
    transparent 70%
  );
  z-index: 1;
}

.glow-surface:hover::after {
  opacity: 1;
}

/* Dark variant for cards on dark backgrounds */
.glow-surface--dark::after {
  --glow-color: rgba(126, 225, 239, 0.07);
}

/* Parallax scroll layer — JS updates --parallax-y */
.parallax-layer {
  will-change: transform;
  transition: transform 0.08s linear;
  transform: translateY(calc(var(--parallax-y, 0) * 1px));
}

.parallax-layer--slow {
  transform: translateY(calc(var(--parallax-y, 0) * 0.5px));
}

.parallax-layer--fast {
  transform: translateY(calc(var(--parallax-y, 0) * 1.6px));
}

/* Floating artifact — gentle idle hover animation */
.float-artifact {
  animation: float-drift 5s ease-in-out infinite;
}

.float-artifact--delay {
  animation-delay: -2.5s;
}

@keyframes float-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Pulsing glow dot for live status pills */
.status-pill--live::before {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(126, 225, 239, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 5px rgba(126, 225, 239, 0); }
}

/* ================================================================
   Inner Page Header
   ================================================================ */
.page-header {
  padding-top: calc(var(--nav-height) + clamp(3rem, 6vw, 5rem));
  background: linear-gradient(to bottom, var(--sand) 0%, var(--linen) 100%);
  position: relative;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  position: relative;
}

/* Full-bleed cover variant */
.hero--cover {
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

@keyframes heroBreathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.98; transform: scale(1.005); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(23, 37, 44, 0.97) 0%,
      rgba(23, 37, 44, 0.94) 35%,
      rgba(23, 37, 44, 0.82) 50%,
      rgba(23, 37, 44, 0.6) 65%,
      rgba(23, 37, 44, 0.3) 80%,
      rgba(23, 37, 44, 0.1) 100%);
  animation: heroBreathe 16s ease-in-out infinite;
}

.hero--cover .hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero--cover .hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero--cover .hero-stat-dot {
  background: var(--sage);
}

.hero--cover .hero-stat span {
  color: var(--on-dark-muted);
}

.hero--cover h1 {
  color: var(--on-dark);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.2);
}

.hero--cover h1 .tw-char {
  color: var(--on-dark);
}

.hero--cover h1 em {
  color: var(--sage);
  text-shadow: none;
}

.hero--cover h1 em .tw-char {
  color: var(--sage);
}

.hero--cover .hero-sub {
  color: var(--on-dark-muted);
}

.hero--cover .hero-actions .btn--secondary {
  color: var(--on-dark);
  border-color: var(--border-dark);
}

.hero--cover .hero-actions .btn--secondary:hover {
  background: rgba(244, 248, 249, 0.06);
  border-color: var(--border-dark-strong);
}

.hero--cover .hero-trust {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.hero--cover .hero-trust-label {
  color: var(--on-dark-subtle);
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background: var(--sage-light);
  border-radius: 100px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-stat span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-deep);
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 4.5vw + 0.5rem, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-sub {
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.8rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

/* Hero trust strip */
.hero-trust {
  margin-top: clamp(1.35rem, 2.5vw, 1.85rem);
  padding-top: clamp(0.9rem, 1.8vw, 1.2rem);
  border-top: 1px solid var(--border-dark);
  width: fit-content;
}

.hero-trust-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
}

.hero-trust-logos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(0.75rem, 1.4vw, 1rem) clamp(1rem, 2vw, 1.45rem);
  justify-content: start;
  align-items: center;
}

/* Logo marquee – continuous right-to-left scroll */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  margin-top: 0.5rem;
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-marquee--light .trust-logo-item img {
  filter: grayscale(100%) opacity(var(--logo-opacity));
}

.logo-marquee--light .trust-logo-item.institution-logo--team img {
  filter: grayscale(100%) opacity(var(--logo-opacity));
  transition: filter 0.4s ease;
}

.logo-marquee--light .trust-logo-item.institution-logo--team:hover img {
  filter: grayscale(0%) opacity(var(--logo-hover-opacity));
}

.trust-logo-item {
  --logo-height: 36px;
  --logo-max-width: 180px;
  --logo-opacity: 0.6;
  --logo-hover-opacity: 0.82;
  --hero-logo-opacity: 0.78;
  --hero-logo-hover-opacity: 0.95;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.trust-logo-item img {
  height: var(--logo-height);
  max-width: var(--logo-max-width);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(var(--logo-opacity));
  transition: filter 0.3s ease;
}

.trust-logo-item span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  line-height: 1.25;
  white-space: nowrap;
}

.trust-logo-item:hover img {
  filter: grayscale(0%) opacity(var(--logo-hover-opacity));
}

.hero--cover .trust-logo-item img {
  filter: brightness(0) invert(1) contrast(1.05) opacity(var(--hero-logo-opacity));
}

.hero--cover .trust-logo-item:hover img {
  filter: brightness(0) invert(1) contrast(1.08) opacity(var(--hero-logo-hover-opacity));
}

.hero--cover .trust-logo-item span {
  color: rgba(255, 255, 255, 0.56);
}

.hero--cover .trust-logo-item:hover span {
  color: rgba(255, 255, 255, 0.76);
}

.trust-logo-item.institution-logo--harvard {
  --logo-height: 38px;
  --logo-max-width: 180px;
  --logo-opacity: 0.75;
  --hero-logo-opacity: 0.9;
}

.trust-logo-item.institution-logo--jhu {
  --logo-height: 34px;
  --logo-max-width: 190px;
  --logo-opacity: 0.78;
  --hero-logo-opacity: 0.95;
}

.trust-logo-item.institution-logo--yale {
  --logo-height: 36px;
  --logo-max-width: 120px;
}

.trust-logo-item.institution-logo--ucsf {
  --logo-height: 34px;
  --logo-max-width: 180px;
}

.trust-logo-item.institution-logo--mgb {
  --logo-height: 34px;
  --logo-max-width: 190px;
}

.trust-logo-item.institution-logo--kcl {
  --logo-height: 42px;
  --logo-max-width: 120px;
}

.trust-logo-item.institution-logo--team {
  --logo-height: 34px;
  --logo-max-width: 180px;
  --logo-opacity: 0.62;
  --logo-hover-opacity: 0.82;
}

.advisor-logo-item {
  --logo-height: 34px;
  --logo-max-width: 136px;
  --logo-opacity: 0.62;
  --logo-hover-opacity: 0.82;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-width: 0;
}

.advisor-logo-item span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

/* ================================================================
   Stat Row
   ================================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sage-deep);
  font-variation-settings: "opsz" 48;
}

.stat-num--accent { color: var(--terra); }

.stat-num-inline {
  font-family: var(--ff-display);
  font-size: 2em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--sage-deep);
  font-variation-settings: "opsz" 48;
  line-height: 1;
}

.stat-num-inline.stat-num--accent { color: var(--terra); }

.stat-headline {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.2;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-top: 0.35rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ================================================================
   Feature / Content Blocks
   ================================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2vw, 1.8rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon--sage {
  background: var(--sage-light);
  color: var(--sage);
}

.feature-icon--terra {
  background: var(--terra-light);
  color: var(--terra);
}

.feature-icon--gold {
  background: var(--gold-light);
  color: var(--gold-deep);
}

.feature-text h3 {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ================================================================
   Step Flow
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.step-card {
  position: relative;
  padding: clamp(1.5rem, 2vw, 2rem);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px var(--shadow-soft);
}

.step-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 1rem;
  font-variation-settings: "opsz" 36;
}

.step-card h3 {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.step-tag {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.3rem 0.7rem;
  background: var(--sage-light);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-deep);
}

.step-tag--accent {
  background: var(--terra-light);
  color: var(--terra);
}

/* ================================================================
   Quote Section
   ================================================================ */
.quote-block {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px var(--shadow-soft);
}

.quote-block::before {
  content: '\201C';
  font-family: var(--ff-display);
  font-size: clamp(5rem, 8vw, 8rem);
  line-height: 1;
  color: rgba(19, 118, 127, 0.08);
  position: absolute;
  top: -0.1em;
  left: 0.2em;
  pointer-events: none;
}

.quote-block blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 24;
  position: relative;
  z-index: 1;
}

.quote-block cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-style: normal;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ================================================================
   Testimonial Cards
   ================================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.testimonial-card {
  background: var(--surface);
  border-radius: 20px;
  padding: clamp(1.8rem, 3vw, 2.5rem);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--shadow-soft);
}

.testimonial-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 24;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

/* ================================================================
   CTA Banner
   ================================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-strong) 0%, var(--surface-strong-2) 100%);
  border-radius: 24px;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 26px 60px var(--shadow-strong);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(19, 118, 127, 0.24) 0%, transparent 55%);
  pointer-events: none;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(47, 103, 207, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--on-dark);
  position: relative;
  z-index: 1;
  font-variation-settings: "opsz" 48;
}

.cta-banner p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--on-dark-muted);
  max-width: 48ch;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-banner .btn {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

/* ================================================================
   Comparison Table
   ================================================================ */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.compare-table thead th {
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2px solid var(--border-strong);
}

.compare-table thead th.highlight {
  color: var(--terra-deep);
  background: rgba(231, 239, 255, 0.72);
  border-bottom-color: var(--terra);
  border-radius: 12px 12px 0 0;
}

.compare-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.compare-table td.highlight {
  background: rgba(231, 239, 255, 0.38);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:last-child td.highlight {
  border-radius: 0 0 12px 12px;
}

.check-icon { color: var(--sage); font-weight: 700; font-size: 1.1rem; }
.cross-icon { color: var(--ink-muted); opacity: 0.25; font-size: 1.1rem; }
.partial-icon { color: var(--gold-deep); font-weight: 600; font-size: 0.88rem; }

/* ================================================================
   Team
   ================================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.team-member {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(19, 118, 127, 0.12);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.team-info .role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.team-info .bio {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Advisor styles */

.advisor-logo-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: flex-start;
  justify-items: center;
  gap: clamp(1.6rem, 3vw, 2.5rem) clamp(1.2rem, 2.4vw, 2rem);
}

.advisor-seal {
  height: var(--logo-height);
  max-width: var(--logo-max-width);
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(var(--logo-opacity));
  transition: filter 0.4s ease;
}

.advisor-seal:hover {
  filter: grayscale(0%) opacity(var(--logo-hover-opacity));
}

.advisor-logo-item.institution-logo--harvard {
  --logo-height: 36px;
  --logo-max-width: 168px;
  --logo-opacity: 0.75;
}

.advisor-logo-item.institution-logo--jhu {
  --logo-height: 34px;
  --logo-max-width: 178px;
  --logo-opacity: 0.72;
}

.advisor-logo-item.institution-logo--yale {
  --logo-height: 32px;
  --logo-max-width: 108px;
}

.advisor-logo-item.institution-logo--ucsf {
  --logo-height: 28px;
  --logo-max-width: 132px;
}

.advisor-logo-item.institution-logo--mgb {
  --logo-height: 28px;
  --logo-max-width: 138px;
}

.advisor-logo-item.institution-logo--kcl {
  --logo-height: 42px;
  --logo-max-width: 120px;
}

/* ================================================================
   Form
   ================================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  gap: 1rem;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--ink-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ================================================================
   Misc Components
   ================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

.badge--sage {
  background: var(--sage-light);
  color: var(--sage-deep);
}

.badge--terra {
  background: var(--terra-light);
  color: var(--terra);
}

.badge--gold {
  background: var(--gold-light);
  color: var(--gold-deep);
}

.divider {
  height: 1px;
  background: var(--border-subtle);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

.trust-logos img {
  height: 32px;
  width: auto;
  filter: grayscale(100%) opacity(0.4);
  transition: filter 0.3s ease;
}

.trust-logos img:hover {
  filter: grayscale(0%) opacity(0.8);
}

/* ================================================================
   Responsive
   ================================================================ */
/* Inline grid responsive helper: any 3-col or 2-col layout using style="" */
@media (max-width: 1024px) {

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .split, .split--reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split--reverse {
    direction: ltr;
  }

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

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .grid-responsive-3 {
    grid-template-columns: 1fr 1fr !important;
  }

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

  .grid-responsive-2 {
    grid-template-columns: 1fr !important;
  }

  .mockup-workspace__grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero-bg img {
    object-position: 65% center;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(to bottom,
        rgba(23, 37, 44, 0.92) 0%,
        rgba(23, 37, 44, 0.78) 50%,
        rgba(23, 37, 44, 0.55) 100%);
  }

  .nav-inner > a:first-child {
    height: 36px;
  }

  .nav-logo {
    height: 62px;
    margin-top: -3px;
  }

  .hero-trust-logos {
    grid-template-columns: repeat(2, auto);
    gap: 0.85rem 0.9rem;
  }

  .logo-marquee__track {
    gap: 1.5rem;
  }

  .trust-logo-item {
    --logo-height: 28px;
    --logo-max-width: 130px;
  }

  .trust-logo-item.institution-logo--harvard {
    --logo-height: 28px;
    --logo-max-width: 140px;
  }

  .trust-logo-item.institution-logo--jhu {
    --logo-height: 26px;
    --logo-max-width: 145px;
  }

  .trust-logo-item.institution-logo--yale {
    --logo-height: 28px;
    --logo-max-width: 100px;
  }

  .trust-logo-item.institution-logo--ucsf {
    --logo-height: 26px;
    --logo-max-width: 140px;
  }

  .trust-logo-item.institution-logo--mgb {
    --logo-height: 26px;
    --logo-max-width: 150px;
  }

  .trust-logo-item.institution-logo--kcl {
    --logo-height: 32px;
    --logo-max-width: 90px;
  }

  .trust-logo-item.institution-logo--team {
    --logo-height: 26px;
    --logo-max-width: 140px;
  }

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

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

  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .compare-table {
    font-size: 0.82rem;
  }

  .compare-table th, .compare-table td {
    padding: 0.6rem 0.7rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.5rem);
  }

  .grid-responsive-3 {
    grid-template-columns: 1fr !important;
  }

  .grid-responsive-2 {
    grid-template-columns: 1fr !important;
  }

  .app-window__bar {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .app-window__meta {
    margin-left: 0;
    width: 100%;
  }

  .mockup-workspace {
    padding: 0.8rem;
  }

  .mockup-workspace__grid {
    padding-top: 1rem;
  }

  .mockup-conversation,
  .mockup-summary {
    padding: 0.9rem;
  }

  .mockup-panel-title,
  .mockup-patient-card__title {
    flex-direction: column;
    align-items: flex-start;
  }

  .ft-controls {
    gap: 0.6rem;
  }

  .ft-caption {
    font-size: 0.68rem;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .workflow-canvas {
    padding: 0.8rem;
  }

  .workflow-step {
    padding: 0.9rem;
  }

  .device-shell {
    width: min(100%, 260px);
  }

  .device-screen {
    min-height: 420px;
  }
}

