:root {
  --ink: #0a1f3d;
  --navy: #0b2c5e;
  --navy-deep: #061833;
  --teal: #1a9b96;
  --teal-bright: #22b5af;
  --mist: #e8f3fb;
  --paper: #f5f9fc;
  --copper: #1a9b96;
  --copper-bright: #22b5af;
  --cream: #f0f7fc;
  --muted: #5a6e82;
  --line: rgba(11, 44, 94, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 0.35rem;
  --max: 72rem;
  /* aliases used by older rules */
  --forest: var(--navy);
  --forest-deep: var(--navy-deep);
  --leaf: var(--teal);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(245, 249, 252, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.45rem;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--forest);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--leaf);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--forest);
  margin: 0.28rem 0;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: 3.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    padding: 0.5rem;
    box-shadow: 0 12px 40px rgba(7, 38, 28, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.85rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--copper);
  color: var(--forest-deep);
}

.btn-primary:hover {
  background: var(--copper-bright);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}

.btn-outline:hover {
  background: var(--mist);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Store badges (Play / App Store style) */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.store-badges-stacked {
  flex-direction: column;
  align-items: stretch;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: 0.55rem;
  background: #111;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(6, 24, 51, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 10px 24px rgba(6, 24, 51, 0.28);
}

.store-badge-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-badge-kicker {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-badge-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-dark .store-badge {
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero — full-bleed banner slider */
.hero {
  position: relative;
  min-height: min(88vh, 46rem);
  overflow: hidden;
  color: #fff;
  background: var(--navy-deep);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6.5s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  display: none;
}

.hero-stage {
  display: none;
}

.hero-slider-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 24, 51, 0.35);
  backdrop-filter: blur(8px);
}

.hero-slider-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}

.hero-slider-dots {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.hero-slider-dots button {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider-dots button.is-active {
  width: 1.35rem;
  background: #fff;
}

/* Mockup gallery */
.mockup-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .mockup-grid {
    grid-template-columns: 1.15fr 0.85fr 0.85fr;
    align-items: end;
  }
}

.mockup-card {
  margin: 0;
}

.mockup-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 44, 94, 0.12);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.mockup-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22), transparent 42%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mockup-card:hover .mockup-frame,
.showcase-media:hover .mockup-frame {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(11, 44, 94, 0.2);
}

.mockup-card:hover .mockup-frame::after,
.showcase-media:hover .mockup-frame::after {
  opacity: 1;
}

.mockup-frame img,
.mockup-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.mockup-frame-tilt {
  transform: rotate(-1.5deg);
}

.mockup-frame-tilt-alt {
  transform: rotate(1.5deg);
}

.showcase-media:hover .mockup-frame-tilt,
.showcase-media:hover .mockup-frame-tilt-alt {
  transform: translateY(-8px) rotate(0deg);
}

.mockup-card figcaption {
  margin-top: 0.85rem;
}

.mockup-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.mockup-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Showcase rows (patient / staff) */
.showcase-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .showcase-row {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .showcase-row-flip .showcase-copy {
    order: 2;
  }

  .showcase-row-flip .showcase-media {
    order: 1;
  }
}

.showcase-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.journey-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: journey;
  display: grid;
  gap: 0.85rem;
}

.journey-list li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.journey-list li::before {
  counter-increment: journey;
  content: counter(journey);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.journey-list strong {
  color: var(--ink);
}

.feature-list-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .feature-list-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.band-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.band-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 240px 120px;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.7s ease var(--reveal-delay, 0ms),
    transform 0.7s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-brand,
  .hero-line,
  .hero .btn-row,
  .hero-slider-controls,
  .hero-slide {
    animation: none !important;
    transition: none !important;
  }

  .hero-slide {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3.25rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--mist), var(--paper));
}

.section-dark {
  background: var(--forest-deep);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.65rem;
}

.section-dark .eyebrow {
  color: var(--copper-bright);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  padding-left: 1.35rem;
  border-left: 3px solid var(--copper);
}

.feature-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--forest);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

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

.step {
  position: relative;
  padding-top: 0.25rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 760px) {
  .band {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.store-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.store-panel p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-block a {
  color: var(--copper-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-hero {
  padding: 4rem 0 2rem;
  background:
    linear-gradient(180deg, var(--mist), var(--paper));
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--forest);
  max-width: 16ch;
}

.page-hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  background: #fff;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand-block {
  max-width: 28rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--forest);
  margin-bottom: 0.35rem;
}

.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-contact a:hover {
  color: var(--forest);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  margin: 2rem 0 0.65rem;
  max-width: none;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--forest);
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal a {
  color: var(--leaf);
  text-decoration: underline;
  text-underline-offset: 3px;
}
