/* Lenis smooth scroll (recommended base styles) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f7fb;
  --surface-3: #f5f7fd;
  --surface-blue: #eaf8fc;
  --surface-blue-2: #edf4ff;
  --surface-mint: #edf7f1;
  --surface-sand: #f8f3e6;

  --line: #dbe7f1;
  --line-strong: #c7d7e5;

  --text: #13263f;
  --text-soft: #5f738c;
  --text-muted: #7f90a6;

  --brand: #17b5d7;
  --brand-strong: #0e9dbd;
  --brand-soft: #dff6fb;
  --accent: #cceef6;

  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;

  --container: 1280px;
  --title-font: "Satoshi", "Manrope", sans-serif;
  --body-font: "Geist", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.page-shell {
  overflow: clip;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(219, 231, 241, 0.7);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: var(--surface);
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color 0.25s var(--ease);
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.button-ghost {
  background: var(--surface);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text);
}

/* HERO */
.hero {
  padding: 80px 0 72px;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.eyebrow-dot {
  display: none;
}

.hero-title,
.section-heading h2,
.split-card h2,
.faq-intro h2,
.cta-copy h2 {
  margin: 0;
  font-family: var(--title-font);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  max-width: 18ch;
}

.hero-title span {
  color: #6da8df;
}

.hero-text {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.store-btn:hover {
  transform: translateY(-2px);
  background: #f7f9fc;
  border-color: var(--line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.store-btn-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.store-btn-text small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.01em;
}

.store-btn-text strong {
  font-family: var(--title-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.soft-tag {
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
}

.hero-surface {
  position: relative;
  min-height: 640px;
  padding: 28px;
  border-radius: 40px;
  background: linear-gradient(180deg, #f0f3fd 0%, #edf8fb 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  color: rgba(109, 168, 223, 0.55);
  pointer-events: none;
}

.hero-decoration-top {
  top: 0;
  left: 0;
}

.visual-card {
  position: absolute;
  border-radius: 28px;
  border: 1px solid rgba(201, 219, 234, 0.9);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.card-large {
  top: 72px;
  left: 28px;
  width: min(100%, 380px);
}

.card-medium {
  width: min(100%, 280px);
}

.card-offset-a {
  right: 28px;
  top: 240px;
  background: rgba(234, 248, 252, 0.95);
}

.card-offset-b {
  left: 90px;
  bottom: 58px;
  background: rgba(248, 243, 230, 0.85);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(23, 181, 215, 0.12);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.visual-card h3 {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.visual-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.97rem;
}

.floating-chip {
  position: absolute;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 219, 234, 0.9);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.chip-a {
  right: 44px;
  top: 100px;
}

.chip-b {
  left: 34px;
  bottom: 26px;
}

/* SECTION SHARED */
.section-divider {
  padding: 10px 0 0;
}

.section-divider span {
  display: block;
  width: 100%;
  height: 1px;
  background:
    linear-gradient(90deg, transparent 0%, var(--line) 10%, var(--line) 90%, transparent 100%);
}

.features,
.how-it-works,
.split-section,
.faq,
.final-cta {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.5rem);
  margin-bottom: 16px;
}

.section-heading p,
.cta-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.03rem;
}

/* BENTO */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.bento-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(23, 181, 215, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 45%);
  opacity: 0.82;
  pointer-events: none;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-5 { grid-column: span 5; }

.tint-blue { background: var(--surface-blue); }
.tint-blue-soft { background: var(--surface-blue-2); }
.tint-mint { background: var(--surface-mint); }
.tint-sand { background: var(--surface-sand); }

.bento-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(201, 219, 234, 0.75);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  flex: 0 0 auto;
}

.icon-badge.small {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.card-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
}

.bento-card h3 {
  margin: 0 0 12px;
  font-family: var(--title-font);
  font-size: 1.55rem;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.bento-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  max-width: 62ch;
}

/* HOW IT WORKS */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}

.step-card {
  position: relative;
  border-radius: 28px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-number {
  position: absolute;
  top: 0;
  right: 26px;
  /* Straddle the card's top border, centered on it */
  transform: translateY(-50%);
  display: inline-flex;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-soft);
  margin-bottom: 18px;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-card h3 {
  margin: 0 0 10px;
  font-family: var(--title-font);
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

/* HORIZONTAL */
.journey {
  /* Kept generous, but capped so the pinned section reliably fits the viewport
     height on laptops (a taller-than-viewport pin scrolls janky). */
  padding: clamp(72px, 9vw, 120px) 0;
}

.journey-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.journey-heading {
  max-width: 740px;
}

.journey-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.journey-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.journey-arrow svg {
  width: 22px;
  height: 22px;
}

.journey-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-3);
}

.journey-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.journey-divider {
  display: block;
  margin-bottom: 16px;
  line-height: 0;
}

.journey-divider svg {
  width: min(220px, 52vw);
  height: auto;
}

.journey-divider .jd-dot,
.journey-divider .jd-pin {
  fill: var(--brand);
}

.journey-divider .jd-line {
  stroke: var(--line-strong);
  stroke-width: 2;
}

.journey-divider .jd-dash {
  stroke: var(--brand);
  stroke-width: 2;
  animation: jd-flow 1.1s linear infinite;
}

@keyframes jd-flow {
  to {
    stroke-dashoffset: -8.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-divider .jd-dash {
    animation: none;
  }
}

.journey-heading h2 {
  margin: 0 0 14px;
  font-family: var(--title-font);
  font-size: clamp(2rem, 3vw, 3.5rem);
  letter-spacing: -0.05em;
}

.journey-heading p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.journey-track-wrap {
  --journey-gutter: max(calc((100vw - min(var(--container), calc(100% - 32px))) / 2), 16px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--journey-gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: var(--journey-gutter);
}

.journey-track-wrap::-webkit-scrollbar {
  display: none;
}

.journey-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding-right: var(--journey-gutter);
}

.journey-card {
  scroll-snap-align: start;
  min-width: clamp(280px, 30vw, 400px);
  min-height: 320px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.journey-card:nth-child(2n) {
  background: var(--surface-blue);
}

.journey-card:nth-child(3n) {
  background: var(--surface-sand);
}

.journey-card:nth-child(4n) {
  background: var(--surface-mint);
}

.journey-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(201, 219, 234, 0.8);
}

.journey-card h3 {
  margin: 28px 0 10px;
  font-family: var(--title-font);
  font-size: clamp(1.7rem, 2vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.journey-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 36ch;
}

/* On phones/tablets the arrow carousel is replaced by a simple vertical stack
   — most reliable on touch. The arrows are hidden. */
@media (max-width: 900px) {
  .journey-controls {
    display: none;
  }

  .journey-track-wrap {
    overflow: visible;
    scroll-snap-type: none;
    padding-left: 0;
  }

  .journey-track {
    flex-direction: column;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    gap: 16px;
    padding-right: 0;
  }

  .journey-card {
    min-width: 0;
    width: 100%;
    min-height: 0;
  }
}

/* SPLIT */
.split-grid {
  display: grid;
  gap: 20px;
}

.split-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
  transition:
    transform 0.32s var(--ease),
    border-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease);
}

.split-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.split-card--patient {
  background: var(--surface);
}

.split-card--doctor {
  background: linear-gradient(135deg, #f3f8fb 0%, #eef5fa 100%);
}

/* Eyebrow with icon */
.split-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.split-eyebrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(23, 181, 215, 0.2);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  flex-shrink: 0;
}

.split-eyebrow-icon svg {
  width: 16px;
  height: 16px;
}

.split-card h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  margin-bottom: 12px;
  line-height: 1.05;
}

.split-card p {
  color: var(--text-soft);
  line-height: 1.75;
  margin: 0;
  font-size: 1rem;
}

/* Feature list with icons */
.split-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.split-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.split-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(23, 181, 215, 0.08);
  border: 1px solid rgba(23, 181, 215, 0.12);
  display: grid;
  place-items: center;
  color: var(--brand-strong);
  flex-shrink: 0;
  transition: background 0.25s var(--ease);
}

.split-feature-list li:hover .split-feature-icon {
  background: rgba(23, 181, 215, 0.14);
}

.split-feature-icon svg {
  width: 16px;
  height: 16px;
}

/* Visual area */
.split-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.split-visual-inner {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 280 / 260;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23, 181, 215, 0.06) 0%, rgba(109, 168, 223, 0.08) 100%);
  border: 1px solid rgba(23, 181, 215, 0.1);
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--brand-strong);
  transition: transform 0.4s var(--ease);
}

.split-card:hover .split-visual-inner {
  transform: scale(1.02);
}

.split-visual-inner svg {
  width: 100%;
  height: auto;
}

/* FAQ */
.faq-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.faq-intro {
  max-width: 52ch;
}

.faq-list {
  width: 100%;
  max-width: 680px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: var(--line-strong);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--title-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.faq-trigger:hover {
  color: var(--brand-strong);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-soft);
  transition: transform 0.4s var(--ease), color 0.2s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-strong);
}

.faq-body {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease);
}

.faq-body p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 0.97rem;
}

/* CTA */
.cta-panel {
  position: relative;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: #e9f7fb;
  padding: 56px 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-copy {
  max-width: 660px;
  position: relative;
  z-index: 2;
}

.cta-copy h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  white-space: nowrap;
  margin-bottom: 12px;
}

.cta-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cta-clouds {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(46%, 520px);
  color: rgba(23, 181, 215, 0.35);
  pointer-events: none;
}

/* FOOTER */
.site-footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--brand-strong);
}

.footer-divider {
  color: var(--line-strong);
  font-size: 0.85rem;
  user-select: none;
}

/* ANIMATION BASE */
.reveal,
.reveal-up,
.reveal-stagger > * {
  will-change: transform, opacity;
}

/* RESPONSIVE */
@media (max-width: 1120px) {
  .hero-grid,
  .split-card {
    grid-template-columns: 1fr;
  }

  .hero-surface {
    min-height: 560px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-title {
    max-width: 12ch;
  }

  .hero-surface {
    min-height: 660px;
    padding: 18px;
  }

  .card-large {
    left: 18px;
    right: 18px;
    width: auto;
  }

  .card-offset-a {
    right: 18px;
    left: 72px;
    width: auto;
  }

  .card-offset-b {
    left: 18px;
    right: 68px;
    width: auto;
  }

  .chip-a,
  .chip-b {
    display: none;
  }

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

  .bento-card.span-7,
  .bento-card.span-6,
  .bento-card.span-5 {
    grid-column: auto;
  }

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

  .split-card {
    padding: 28px;
    gap: 24px;
  }

  .split-card-visual {
    order: -1;
  }

  .split-visual-inner {
    max-width: 220px;
  }

  .cta-panel {
    padding: 28px;
  }

  .cta-clouds {
    width: 70%;
    opacity: 0.55;
  }

}

@media (max-width: 560px) {
  .container {
    /* 24px lateral padding on each side */
    width: min(var(--container), calc(100% - 48px));
  }

  /* Match the stacked journey cards to the 24px section gutters */
  .journey-track {
    width: min(var(--container), calc(100% - 48px));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .hero-text,
  .section-heading p,
  .journey-heading p,
  .split-card p,
  .faq-item p,
  .cta-copy p {
    font-size: 0.98rem;
  }

  .hero-surface {
    min-height: 620px;
    border-radius: 30px;
  }

  .visual-card {
    padding: 18px;
    border-radius: 24px;
  }

  .visual-card h3,
  .bento-card h3 {
    font-size: 1.3rem;
  }

  .section-heading h2,
  .journey-heading h2,
  .split-card h2,
  .faq-intro h2,
  .cta-copy h2 {
    line-height: 1.03;
  }

  .cta-copy h2 {
    /* Allow the title to wrap instead of overflowing the panel on phones */
    white-space: normal;
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .cta-panel {
    border-radius: 30px;
  }
}
