/* ==========================================================================
   AntaraNeuro CLINICS — Components
   components.css — All UI components and section styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background-color: rgba(244, 241, 234, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), top var(--transition-base);
}

.nav--scrolled {
  top: 0;
  background-color: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(45,45,45,0.06), 0 4px 20px rgba(45,45,45,0.08);
}

/* Scrolled state — revert to dark elements for light sections */
.nav--scrolled .nav__logo img {
  filter: none;
}

.nav--scrolled .nav__logo-text {
  color: var(--graphite);
}

.nav--scrolled .nav__link {
  color: var(--graphite);
}

.nav--scrolled .nav__link::after {
  background-color: var(--clay);
}

.nav--scrolled .nav__link:hover,
.nav--scrolled .nav__link--active {
  color: var(--clay);
}

.nav--scrolled .nav__cta {
  background-color: var(--graphite);
  border-color: var(--graphite);
  color: var(--bone);
}

.nav--scrolled .nav__cta:hover {
  background-color: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.nav--scrolled .nav__toggle-line {
  background-color: var(--graphite);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  /* No knock-out filter: the mark is shown in its own sage/clay/navy colours
     against the light nav on every page. */
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--graphite);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background-color: var(--clay);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--clay);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  padding: var(--space-3) var(--space-6);
  background-color: var(--graphite);
  border: 1px solid var(--graphite);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  display: inline-block;
}

.nav__cta:hover {
  background-color: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

/* Portal login — quiet text link beside the CTA */
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-shrink: 0;
}

.nav__login {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--graphite);
  transition: color var(--transition-fast);
}

.nav__login:hover { color: var(--clay); }

/* Mobile Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px 12px;
  background: rgba(45, 45, 45, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  z-index: 10;
  transition: background var(--transition-base);
}

.nav--scrolled .nav__toggle {
  background: rgba(45, 45, 45, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__toggle-line {
  display: block;
  width: 22px; height: 1.5px;
  background-color: var(--graphite);
  transform-origin: center;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile Menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--graphite);
  z-index: 998;
  padding: calc(var(--nav-height) + var(--space-8)) var(--space-8) var(--space-10) var(--space-8);
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow-y: auto;
}

.nav__mobile-menu.open { display: flex; }

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: rgba(244, 241, 234, 0.65);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  padding: var(--space-5) 0;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__mobile-link::after {
  content: '→';
  font-family: var(--font-body);
  font-size: var(--text-base);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav__mobile-link:hover {
  color: var(--bone);
  padding-left: var(--space-3);
}

.nav__mobile-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.nav__mobile-cta {
  margin-top: var(--space-8);
  align-self: stretch;
  text-align: center;
  background-color: var(--clay);
  border-color: var(--clay);
  color: var(--white);
  padding: var(--space-5) var(--space-8);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0;
  padding: var(--space-4) var(--space-8);
}

.btn--primary {
  background-color: var(--brass);
  color: var(--white);
  border: 1.5px solid var(--brass);
}
.btn--primary:hover {
  background-color: var(--brass-light);
  border-color: var(--brass-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(185,138,62,0.25);
}

.btn--outline {
  background-color: transparent;
  color: var(--bone);
  border: 1.5px solid rgba(244, 241, 234, 0.35);
}
.btn--outline:hover {
  background-color: rgba(244, 241, 234, 0.08);
  border-color: rgba(244, 241, 234, 0.65);
}

.btn--outline-pine {
  background-color: transparent;
  color: var(--deep-pine);
  border: 1.5px solid var(--deep-pine);
}
.btn--outline-pine:hover {
  background-color: var(--deep-pine);
  color: var(--bone);
}

.btn--pine {
  background-color: var(--deep-pine);
  color: var(--bone);
  border: 1.5px solid var(--deep-pine);
}
.btn--pine:hover {
  background-color: var(--deep-pine-light);
  border-color: var(--deep-pine-light);
  transform: translateY(-1px);
}

.btn--lg {
  font-size: var(--text-sm);
  padding: var(--space-5) var(--space-10);
}

.btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.btn:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Hero — light split layout

   Copy on the left, a clinical session photograph on the right with two
   floating credential cards. The whole section sits on bone so the AntaraNeuro logo
   renders in its own colours rather than being knocked out to white.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: var(--bone);
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16);
  overflow: hidden;
}

/* Silk texture background.

   The asset is already flattened towards bone when it is generated, and it is
   laid under a bone veil here as well, so the texture reads as a whisper of
   movement behind the copy rather than as a photograph competing with it.
   Kept on a pseudo-element so the veil never tints the content above it. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(244, 241, 234, 0.86) 0%, rgba(244, 241, 234, 0.52) 40%, rgba(244, 241, 234, 0.14) 100%),
    url('../assets/images/hero-texture.jpg');
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
}

/* Fade the texture out into the flat bone above and below, so there is no
   hard seam against the nav or the trust bar. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to bottom, var(--bone) 0%, rgba(244, 241, 234, 0) 22%, rgba(244, 241, 234, 0) 80%, var(--bone) 100%);
  pointer-events: none;
}

/* Soft sage bloom behind the visual, echoing the logo's arcs. */
.hero__glow {
  position: absolute;
  z-index: 0;
  top: -22rem;
  right: -16rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 155, 138, 0.28) 0%, rgba(122, 155, 138, 0.10) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--space-16);
}

/* ---------- Left column ---------- */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background-color: var(--white);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  /* Graphite rather than the muted grey: the badge sits over the strongest
     part of the texture, and muted grey lands just under AA there. */
  color: var(--graphite);
  animation: heroRise 0.7s ease both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--deep-pine);
  flex-shrink: 0;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.35rem, 3.9vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--deep-pine);
  margin-bottom: var(--space-5);
  text-wrap: balance;
  animation: heroRise 0.7s ease 0.08s both;
}

.hero__headline em {
  display: block;
  margin-top: var(--space-2);
  font-style: italic;
  color: var(--clay);
}

.hero__subheadline {
  max-width: 31rem;
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  /* A step darker than the site-wide muted grey: the hero text sits over the
     silk texture, where that grey falls just below AA. Scoped to the hero so
     body copy elsewhere is unaffected. */
  color: #5c5c5c;
  margin-bottom: var(--space-8);
  animation: heroRise 0.7s ease 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  animation: heroRise 0.7s ease 0.24s both;
}

/* Pill actions, echoing the rounded badge and cards around them. */
.hero__actions .btn {
  border-radius: 999px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  list-style: none;
  animation: heroRise 0.7s ease 0.32s both;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #5c5c5c;
}

.hero__trust-item svg {
  color: var(--brass);
  flex-shrink: 0;
}

/* ---------- Right column: floating credential cards ---------- */

.hero__cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  animation: heroRise 0.8s ease 0.2s both;
}

.hero__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  width: 100%;
  max-width: 21rem;
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(21, 41, 32, 0.10);
  animation: heroFloat 7s ease-in-out infinite;
}

/* Stagger the cluster so it reads as floating rather than as a list. */
.hero__card--one   { margin-left: 0;             animation-delay: 0s; }
.hero__card--two   { margin-left: var(--space-12); animation-delay: -2.3s; }
.hero__card--three { margin-left: var(--space-5);  animation-delay: -4.6s; }

.hero__card-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--deep-pine);
}

.hero__card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero__card-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--deep-pine);
  line-height: var(--leading-snug);
}

.hero__card-note {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
  margin-top: 2px;
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

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

/* Respect a reduced-motion preference: keep everything, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .hero__badge,
  .hero__headline,
  .hero__subheadline,
  .hero__actions,
  .hero__trust,
  .hero__cards,
  .hero__card {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Shared image utilities
   -------------------------------------------------------------------------- */

/* Full-cover image inside any position:relative container */
.img-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradient overlay on top of .img-fill */
.img-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Default overlays per context */
.treatment-card__visual .img-overlay {
  background: linear-gradient(160deg, rgba(21,41,32,0.78) 0%, rgba(31,59,52,0.60) 55%, rgba(185,138,62,0.08) 100%);
  z-index: 1;
}

.journey__media .img-overlay {
  background: linear-gradient(160deg, rgba(21,41,32,0.65) 0%, rgba(31,59,52,0.40) 100%);
  z-index: 1;
}

.clinic-card__image .img-overlay {
  background: linear-gradient(180deg, rgba(21,41,32,0.30) 0%, rgba(21,41,32,0.70) 100%);
  z-index: 1;
}

.founder__image-frame .img-overlay {
  background: linear-gradient(180deg, transparent 50%, rgba(21,41,32,0.55) 100%);
  z-index: 1;
}

/* Raise z-index on watermarks/tags so they sit above image */
.treatment-card__watermark,
.treatment-card__tag,
.clinic-card__badge,
.clinic-card__image-text,
.journey__media-label { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Trust Bar
   -------------------------------------------------------------------------- */

.trust-bar {
  background-color: var(--deep-pine);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(185, 138, 62, 0.15);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: rgba(244, 241, 234, 0.6);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
}

.trust-bar__item svg { color: var(--brass); }

.trust-bar__divider {
  width: 1px; height: 20px;
  background-color: rgba(244, 241, 234, 0.1);
}

/* Trust Bar Scrolling Variant */
.trust-bar--scrolling {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 241, 234, 0.2) transparent;
}

.trust-bar--scrolling::-webkit-scrollbar {
  height: 4px;
}

.trust-bar--scrolling::-webkit-scrollbar-track {
  background-color: transparent;
}

.trust-bar--scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(244, 241, 234, 0.2);
  border-radius: 2px;
}

.trust-bar__scroll-container {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-8);
  flex-wrap: nowrap;
  min-width: min-content;
  padding-right: var(--space-12);
}

/* --------------------------------------------------------------------------
   Founder Section
   -------------------------------------------------------------------------- */

.founder {
  background-color: var(--bone);
  position: relative;
  overflow: hidden;
}

.founder__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-20);
  align-items: center;
}

.founder__visual {
  position: relative;
}

.founder__image-frame {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--deep-pine) 0%, var(--deep-pine-light) 55%, rgba(185,138,62,0.12) 100%);
  overflow: hidden;
}

.founder__image-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: transform var(--transition-slow);
}

.founder__image-frame:hover img { transform: scale(1.03); }

.founder__image-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  padding: var(--space-8);
}

.founder__frame-accent {
  position: absolute;
  bottom: -18px; right: -18px;
  width: 55%; height: 55%;
  border: 1.5px solid var(--brass);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.founder__quote-float {
  position: absolute;
  bottom: var(--space-8);
  right: calc(-1 * var(--space-10));
  background-color: var(--white);
  padding: var(--space-6) var(--space-8);
  max-width: 260px;
  border-left: 3px solid var(--clay);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.founder__quote-float p {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 300;
  color: var(--graphite);
  line-height: var(--leading-snug);
}

.founder__content {}

.founder__title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 300;
  color: var(--deep-pine);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.founder__body {
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  max-width: 500px;
}

.founder__signature {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.founder__sig-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-pine), var(--deep-pine-light));
  flex-shrink: 0;
  overflow: hidden;
}

.founder__sig-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.founder__sig-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  color: var(--deep-pine);
  display: block;
}

.founder__sig-role {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Co-founder Cards
   -------------------------------------------------------------------------- */

.cofounder-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
}

.cofounder-card__avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-pine), var(--deep-pine-light));
}

.cofounder-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cofounder-card__body { min-width: 0; }

.cofounder-card__name-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.cofounder-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--deep-pine);
}

.cofounder-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--deep-pine);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.cofounder-card__linkedin:hover {
  background-color: var(--brass);
  border-color: var(--brass);
  color: var(--white);
}

.cofounder-card__role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-4);
}

.cofounder-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   Conditions Section
   -------------------------------------------------------------------------- */

.conditions {
  background-color: var(--white);
  overflow-x: hidden;
}

.conditions__header {
  max-width: 600px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.conditions__header .section-label {
  justify-content: center;
}
.conditions__header .section-label::before { display: none; }
.conditions__header .section-label::after {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background-color: var(--brass);
}

.conditions__title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.conditions__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
}

.conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.condition-card {
  background-color: var(--bone);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.condition-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--deep-pine), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.condition-card:hover::after,
.condition-card.active::after { transform: scaleX(1); }

.condition-card:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.condition-card.active {
  background-color: var(--deep-pine);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.condition-card__icon {
  width: 44px; height: 44px;
  margin-bottom: var(--space-5);
  color: var(--brass);
}

.condition-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--deep-pine);
  margin-bottom: var(--space-3);
  transition: color var(--transition-base);
}
.condition-card.active .condition-card__title { color: var(--bone); }

.condition-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  transition: color var(--transition-base);
}
.condition-card.active .condition-card__excerpt { color: rgba(244,241,234,0.65); }

.condition-card__detail {
  display: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244,241,234,0.12);
  font-size: var(--text-sm);
  color: rgba(244,241,234,0.62);
  line-height: var(--leading-relaxed);
}
.condition-card.active .condition-card__detail { display: block; }

/* Expand indicator — hidden on desktop, shown via responsive.css on mobile */
.condition-card__expand {
  display: none;
}

.condition-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  transition: gap var(--transition-fast);
}
.condition-card__cta:hover { gap: var(--space-3); }

/* Conditions — primary tiles + secondary list */

.conditions__primary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.condition-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  min-height: 200px;
  padding: var(--space-10) var(--space-6);
  background-color: var(--bone);
  border: 1px solid var(--color-border);
  border-bottom: 2px solid var(--brass);
  transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.condition-tile:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.condition-tile__icon {
  color: var(--brass);
  line-height: 0;
}

.condition-tile__name {
  font-family: var(--font-display);
  font-size: clamp(var(--text-lg), 2.2vw, var(--text-2xl));
  font-weight: 400;
  color: var(--deep-pine);
  line-height: var(--leading-snug);
}

.conditions__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.condition-mini {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--deep-pine);
  background-color: var(--bone);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-6);
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.condition-mini:hover {
  background-color: var(--deep-pine);
  border-color: var(--deep-pine);
  color: var(--bone);
}

.conditions__cta { text-align: center; }

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */

.how-it-works {
  background-color: var(--deep-pine);
  position: relative;
  overflow: hidden;
}

.how-it-works__glow {
  position: absolute;
  top: -120px; right: -120px;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(185,138,62,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.how-it-works__glow--2 {
  top: auto; right: auto;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(197,107,79,0.05) 0%, transparent 65%);
}

.how-it-works__header {
  margin-bottom: var(--space-20);
  max-width: 600px;
}

.how-it-works__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 300;
  color: var(--bone);
  margin-bottom: var(--space-5);
}

.how-it-works__subtitle {
  color: rgba(244,241,234,0.55);
  font-weight: 300;
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.how-it-works__portal {
  margin-top: var(--space-16);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(244,241,234,0.55);
}

.how-it-works__portal a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
}

/* Horizontal connector line */
.steps-track::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 32px);
  right: calc(12.5% + 32px);
  height: 1px;
  background: linear-gradient(90deg, var(--brass), rgba(185,138,62,0.15));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 var(--space-4);
  position: relative;
  z-index: 1;
}

.step__node {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px solid rgba(185,138,62,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--brass);
  background-color: var(--deep-pine);
  transition: all var(--transition-base);
}

.step:hover .step__node {
  background-color: var(--brass);
  border-color: var(--brass);
  color: var(--white);
  animation: pulseGlow 1s ease;
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--bone);
  margin-bottom: var(--space-3);
}

.step__desc {
  font-size: var(--text-sm);
  color: rgba(244,241,234,0.45);
  line-height: var(--leading-relaxed);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Treatments Section
   -------------------------------------------------------------------------- */

.treatments {
  background-color: var(--bone);
}

.treatments__header {
  margin-bottom: var(--space-16);
}

.treatments__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.treatments__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
  max-width: 520px;
}

.treatment-card {
  background-color: var(--white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  min-width: 0;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.treatment-card__visual {
  height: 200px;
  background: linear-gradient(135deg, var(--deep-pine) 0%, var(--deep-pine-light) 55%, rgba(185,138,62,0.12) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.treatment-card__watermark {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 200;
  color: rgba(244,241,234,0.06);
  letter-spacing: -0.05em;
  line-height: 1;
  position: relative;
  z-index: 1;
  user-select: none;
}

.treatment-card__tag {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  padding: 3px var(--space-3);
  border: 1px solid rgba(185,138,62,0.3);
  background-color: rgba(185,138,62,0.08);
}

.treatment-card__body { padding: var(--space-8); }

.treatment-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--deep-pine);
  margin-bottom: var(--space-2);
}

.treatment-card__subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
}

.treatment-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.treatment-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
}

.treatment-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.treatment-card__feature svg { color: var(--brass); flex-shrink: 0; margin-top: 2px; }

.treatment-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--deep-pine);
  transition: gap var(--transition-fast), color var(--transition-fast);
}
.treatment-card__link:hover { color: var(--brass); gap: var(--space-3); }

/* --------------------------------------------------------------------------
   Patient Experience / Journey
   -------------------------------------------------------------------------- */

.experience {
  background-color: var(--white);
  position: relative;
  overflow-x: hidden;
}

.experience__header {
  max-width: 600px;
  margin: 0 auto var(--space-20);
  text-align: center;
}

.experience__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.experience__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
}

.journey { position: relative; }

.journey__spine {
  position: absolute;
  top: 40px; left: var(--space-10);
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to bottom, var(--brass), rgba(185,138,62,0.08));
}

.journey__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-left: calc(var(--space-10) + var(--space-10));
}

.journey__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  position: relative;
}

.journey__dot {
  position: absolute;
  left: calc(-1 * var(--space-10) - 6px);
  top: 36px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background-color: var(--bone-dark);
  border: 2px solid var(--brass);
  transition: background-color var(--transition-base);
}
.journey__item:hover .journey__dot { background-color: var(--brass); }

.journey__num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 200;
  color: rgba(31,59,52,0.05);
  line-height: 1;
  margin-bottom: -var(--space-2);
  letter-spacing: var(--tracking-tight);
  user-select: none;
}

.journey__heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--deep-pine);
  margin-bottom: var(--space-4);
}

.journey__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 380px;
}

.journey__media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--deep-pine) 0%, var(--deep-pine-light) 60%, rgba(185,138,62,0.08) 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey__media-label {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: rgba(244,241,234,0.06);
  font-style: italic;
  user-select: none;
}

.journey__item:nth-child(even) { direction: rtl; }
.journey__item:nth-child(even) > * { direction: ltr; }

/* --------------------------------------------------------------------------
   Outcomes & Evidence
   -------------------------------------------------------------------------- */

.outcomes {
  background-color: var(--deep-pine);
  position: relative;
  overflow: hidden;
}

.outcomes__glow {
  position: absolute;
  bottom: -150px; left: -150px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,107,79,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.outcomes__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.outcomes__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 300;
  color: var(--bone);
  margin-bottom: var(--space-5);
}

.outcomes__subtitle {
  color: rgba(244,241,234,0.55);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background-color: rgba(244,241,234,0.06);
  margin-bottom: var(--space-12);
}

.stat-block {
  background-color: var(--deep-pine);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  transition: background-color var(--transition-base);
}
.stat-block:hover { background-color: rgba(244,241,234,0.03); }

.stat-block__number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--bone);
  margin-bottom: var(--space-3);
}

.stat-block__number span { color: var(--brass); }

.stat-block__label {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  color: rgba(244,241,234,0.45);
  margin-bottom: var(--space-3);
}

.stat-block__note {
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(244,241,234,0.25);
  line-height: var(--leading-relaxed);
}

.outcomes__disclaimer {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background-color: rgba(244,241,234,0.03);
  border: 1px solid rgba(244,241,234,0.06);
  padding: var(--space-6) var(--space-8);
}

.outcomes__disclaimer svg { color: var(--brass); flex-shrink: 0; margin-top: 2px; }

.outcomes__disclaimer p {
  font-size: var(--text-sm);
  color: rgba(244,241,234,0.45);
  line-height: var(--leading-relaxed);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials { background-color: var(--bone); overflow-x: hidden; }

.testimonials__header {
  max-width: 600px;
  margin-bottom: var(--space-16);
}

.testimonials__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.testimonials__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background-color: var(--white);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 200;
  color: var(--clay);
  opacity: 0.18;
  line-height: 0.75;
  margin-bottom: var(--space-4);
  user-select: none;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 300;
  font-style: italic;
  color: var(--graphite);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.testimonial-card__bar {
  width: 28px; height: 2px;
  background-color: var(--clay);
  margin-bottom: var(--space-5);
}

.testimonial-card__patient {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-pine), var(--deep-pine-light));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--bone);
  font-weight: 300;
}

.testimonial-card__name {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--graphite);
  display: block;
}

.testimonial-card__condition {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  display: block;
  margin-top: 2px;
}

.testimonial-card__condition span { color: var(--clay); }

/* --------------------------------------------------------------------------
   Clinics
   -------------------------------------------------------------------------- */

.clinics { background-color: var(--white); overflow-x: hidden; }

.clinics__header {
  margin-bottom: var(--space-16);
}

.clinics__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.clinics__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
}

.clinics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

/* Single-clinic state — one narrower card, centred in the section */
.clinics__grid--single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.clinics__header--center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.clinics__header--center .section-label { justify-content: center; }

.clinic-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  min-width: 0;
}
.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.clinic-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--deep-pine) 0%, var(--deep-pine-light) 55%, rgba(185,138,62,0.1) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.clinic-card__image-text {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 200;
  color: rgba(244,241,234,0.05);
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  user-select: none;
}

.clinic-card__badge {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  background-color: var(--brass);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: 3px var(--space-3);
}

/* Expand indicator — hidden on desktop, shown via responsive.css on mobile */
.clinic-card__expand { display: none; }

.clinic-card__body {
  padding: var(--space-6);
  background-color: var(--bone);
}

.clinic-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--deep-pine);
  margin-bottom: var(--space-1);
}

.clinic-card__city {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
  display: block;
}

.clinic-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.clinic-card__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

.clinic-card__detail svg { color: var(--brass); flex-shrink: 0; margin-top: 2px; }

.clinic-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

/* Announcement variant — no image, no address; used before a clinic is confirmed */
.clinic-card--announce:hover {
  transform: none;
  box-shadow: none;
}

.clinic-card--announce .clinic-card__body {
  padding: var(--space-10) var(--space-8);
  text-align: center;
}

.clinic-card__badge--static {
  position: static;
  display: inline-block;
  margin-bottom: var(--space-5);
}

.clinic-card--announce .clinic-card__name {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.clinic-card__announce-text {
  font-size: var(--text-md);
  color: var(--graphite);
  line-height: var(--leading-relaxed);
  max-width: 44ch;
  margin: 0 auto var(--space-3);
}

.clinic-card__announce-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 44ch;
  margin: 0 auto var(--space-2);
}

.clinic-card--announce .clinic-card__actions {
  justify-content: center;
  border-top: none;
  padding-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { background-color: var(--bone); }

.faq__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.faq__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-4);
}

.faq__subtitle { color: var(--color-text-muted); font-weight: 300; }

.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-8);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--deep-pine);
  transition: background-color var(--transition-fast);
}
.faq-item__btn:hover { background-color: rgba(31,59,52,0.02); }
.faq-item.open .faq-item__btn { background-color: rgba(31,59,52,0.03); }

.faq-item__icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(31,59,52,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-base);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  background-color: var(--deep-pine);
  transition: all var(--transition-base);
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after  { width: 1.5px; height: 10px; }

.faq-item.open .faq-item__icon {
  background-color: var(--deep-pine);
  border-color: var(--deep-pine);
  transform: rotate(45deg);
}
.faq-item.open .faq-item__icon::before,
.faq-item.open .faq-item__icon::after { background-color: var(--bone); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__answer-inner a {
  color: var(--deep-pine);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-item__answer-inner {
  padding: var(--space-5) var(--space-8) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  border-top: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  background-color: var(--deep-pine);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta__pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(185,138,62,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,138,62,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.final-cta__glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,107,79,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.final-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  color: var(--brass);
}

.final-cta__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 300;
  color: var(--bone);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.final-cta__body {
  color: rgba(244,241,234,0.55);
  font-weight: 300;
  margin-bottom: var(--space-12);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

.final-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.final-cta__note {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: rgba(244,241,234,0.25);
  letter-spacing: var(--tracking-wide);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background-color: var(--deep-pine-dark);
  color: rgba(244,241,234,0.55);
  overflow-x: hidden;
}

.footer__main {
  padding: var(--space-16) 0;
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  border-bottom: 1px solid rgba(244,241,234,0.07);
}

.footer__logo { margin-bottom: var(--space-5); }

.footer__logo img {
  height: 44px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--bone);
  text-transform: uppercase;
}

.footer__tagline {
  font-size: var(--text-sm);
  font-style: italic;
  font-family: var(--font-display);
  color: rgba(244,241,234,0.35);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 280px;
}

/* Registered / corporate office — an office, not a patient-facing clinic */
.footer__office {
  margin-bottom: var(--space-8);
  max-width: 280px;
}

.footer__office-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-2);
}

.footer__office-address {
  font-size: var(--text-xs);
  color: rgba(244,241,234,0.45);
  line-height: var(--leading-relaxed);
  font-style: normal;
}

.footer__cin {
  font-size: var(--text-xs);
  color: rgba(244, 241, 234, 0.35);
  letter-spacing: 0.04em;
  margin-top: var(--space-3);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(244,241,234,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(244,241,234,0.35);
  transition: all var(--transition-fast);
}
.footer__social-link:hover {
  border-color: var(--brass);
  color: var(--brass);
  background-color: rgba(185,138,62,0.07);
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--bone);
  margin-bottom: var(--space-6);
  display: block;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(244,241,234,0.45);
  transition: color var(--transition-fast);
  line-height: var(--leading-normal);
}
.footer__link:hover { color: var(--bone); }

.footer__bottom {
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(244,241,234,0.25);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(244,241,234,0.25);
  transition: color var(--transition-fast);
}
.footer__legal-link:hover { color: rgba(244,241,234,0.55); }

.footer__motto {
  font-size: var(--text-xs);
  font-style: italic;
  color: rgba(244,241,234,0.18);
  font-family: var(--font-display);
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Mobile Sticky CTA
   -------------------------------------------------------------------------- */

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background-color: var(--deep-pine);
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 -4px 20px rgba(21,41,32,0.35);
  gap: var(--space-3);
  border-top: 1px solid rgba(185,138,62,0.2);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* While the hero is on screen its own buttons are already there, so the
   sticky bar would repeat them and dominate the first view. Tuck it away
   until the visitor has scrolled past the hero. */
.mobile-cta-bar--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Inner Page Hero
   -------------------------------------------------------------------------- */

.page-hero {
  background-color: var(--deep-pine);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,138,62,0.4), transparent);
}

.page-hero__title {
  font-size: clamp(var(--text-4xl), 5vw, 4.5rem);
  font-weight: 300;
  color: var(--bone);
  margin-bottom: var(--space-5);
  line-height: 1.08;
}

.page-hero__subtitle {
  font-size: var(--text-md);
  font-weight: 300;
  color: rgba(244,241,234,0.55);
  max-width: 540px;
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   Contact / Forms
   -------------------------------------------------------------------------- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--deep-pine);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background-color: var(--white);
  border: 1px solid rgba(31,59,52,0.15);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--graphite);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--deep-pine);
  box-shadow: 0 0 0 3px rgba(31,59,52,0.07);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(45,45,45,0.3); }

.form-textarea { resize: vertical; min-height: 130px; line-height: var(--leading-relaxed); }

.form-input.error,
.form-textarea.error { border-color: var(--clay); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}


/* --------------------------------------------------------------------------
   Software Platform Section — product showcase
   -------------------------------------------------------------------------- */

.platform {
  background-color: var(--deep-pine);
  position: relative;
  overflow: hidden;
}

.platform__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(185,138,62,0.10) 0%, transparent 65%);
  pointer-events: none;
}

.platform .container { position: relative; z-index: 1; }

.platform__header {
  max-width: 760px;
  margin-bottom: var(--space-20);
}

.platform__label { color: var(--brass); }

.platform__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  line-height: var(--leading-tight);
  color: var(--bone);
  margin-bottom: var(--space-5);
}

.platform__subtitle {
  color: rgba(244, 241, 234, 0.60);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

/* Secondary line under the platform subtitle — who builds it, and where */
.platform__subtitle--attribution {
  margin-top: var(--space-5);
  padding-left: var(--space-4);
  border-left: 2px solid var(--brass);
  font-size: var(--text-sm);
  color: rgba(244, 241, 234, 0.72);
}

.platform__rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

/* Security posture band — healthtech credibility inside the platform section */
.platform__security {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.platform__security-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--brass);
  margin-bottom: var(--space-8);
}

.platform__security-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--bone);
}

.platform__security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
}

.platform__security-item {
  padding-left: var(--space-4);
  border-left: 2px solid rgba(185, 138, 62, 0.45);
}

.platform__security-item h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--bone);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.platform__security-item p {
  font-size: var(--text-xs);
  color: rgba(244, 241, 234, 0.55);
  line-height: var(--leading-relaxed);
}

.platform__security-foot {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: rgba(244, 241, 234, 0.5);
}

.platform__security-foot a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.platform__note {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  font-size: var(--text-xs);
  color: rgba(244, 241, 234, 0.40);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  max-width: 720px;
}

/* Rows --------------------------------------------------------------- */

.pf-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-16);
  align-items: center;
}

.pf-row--rev .pf-row__content { order: 2; }
.pf-row--rev .pf-row__visual  { order: 1; }

.pf-row__content { min-width: 0; }

.pf-row__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-4);
}

.pf-row__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-xl), 2.6vw, var(--text-3xl));
  line-height: var(--leading-snug);
  color: var(--bone);
  margin-bottom: var(--space-5);
}

.pf-row__desc {
  font-size: var(--text-sm);
  color: rgba(244, 241, 234, 0.58);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pf-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.82);
  background: rgba(244, 241, 234, 0.05);
  border: 1px solid rgba(244, 241, 234, 0.10);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}

/* Screen mockups ----------------------------------------------------- */

.pf-row__visual {
  position: relative;
  min-width: 0;
}

.pf-screen {
  background: linear-gradient(165deg, rgba(244,241,234,0.07) 0%, rgba(244,241,234,0.03) 100%);
  border: 1px solid rgba(244, 241, 234, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-base);
}

.pf-row__visual:hover .pf-screen { transform: translateY(-4px); }

/* Per-screen accent — distinguishes the four mockups at a glance */
.pf-screen--dash    { border-top: 2px solid rgba(185, 138, 62, 0.55); }
.pf-screen--session { border-top: 2px solid rgba(197, 107, 79, 0.60); }
.pf-screen--proto   { border-top: 2px solid rgba(185, 138, 62, 0.55); }
.pf-screen--report  { border-top: 2px solid rgba(197, 107, 79, 0.60); }
.pf-screen--eeg     { border-top: 2px solid rgba(193, 154, 88, 0.60); }

.pf-screen__bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(21, 41, 32, 0.55);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.pf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.22);
  flex-shrink: 0;
}

.pf-screen__name {
  margin-left: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-screen__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Shared skeleton primitives */

.pf-line {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(244, 241, 234, 0.13);
}

.pf-line + .pf-line { margin-top: var(--space-2); background: rgba(244, 241, 234, 0.07); }

.pf-line--25 { width: 25%; }
.pf-line--28 { width: 28%; }
.pf-line--30 { width: 30%; }
.pf-line--33 { width: 33%; }
.pf-line--35 { width: 35%; }
.pf-line--38 { width: 38%; }
.pf-line--40 { width: 40%; }
.pf-line--45 { width: 45%; }
.pf-line--50 { width: 50%; }
.pf-line--55 { width: 55%; }
.pf-line--60 { width: 60%; }
.pf-line--70 { width: 70%; }

.pf-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  background: rgba(244, 241, 234, 0.06);
  border: 1px solid rgba(244, 241, 234, 0.10);
  border-radius: 999px;
  padding: 4px var(--space-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.pf-pill--ok {
  color: var(--brass-light);
  border-color: rgba(185, 138, 62, 0.35);
  background: rgba(185, 138, 62, 0.10);
}

.pf-pill--live {
  color: var(--clay-light);
  border-color: rgba(197, 107, 79, 0.40);
  background: rgba(197, 107, 79, 0.12);
}

/* Floating caption */

.pf-float {
  position: absolute;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  color: var(--deep-pine);
  background: var(--bone);
  border-radius: 999px;
  padding: var(--space-3) var(--space-5);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-float--tr { top: calc(var(--space-5) * -1); right: var(--space-8); }
.pf-float--bl { bottom: calc(var(--space-5) * -1); left: var(--space-8); }

/* Row 1 — dashboard */

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.pf-stat {
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 0;
}

.pf-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--bone);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.pf-stat__lbl {
  display: block;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.42);
}

.pf-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pf-list__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.05);
}

.pf-list__row:last-child { border-bottom: 0; }

.pf-avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.75);
  background: rgba(244, 241, 234, 0.08);
  border: 1px solid rgba(244, 241, 234, 0.10);
}

.pf-list__lines { flex: 1; min-width: 0; }

/* Row 2 — live session */

.pf-session__head { display: flex; }

.pf-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.pf-gauge {
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  min-width: 0;
}

.pf-gauge__val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--bone);
  line-height: 1;
  margin-bottom: var(--space-2);
  white-space: nowrap;
}

.pf-gauge__val small {
  font-family: var(--font-body);
  font-size: 10px;
  color: rgba(244, 241, 234, 0.45);
  margin-left: 2px;
}

.pf-gauge__lbl {
  display: block;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.42);
}

.pf-wave {
  background: rgba(244, 241, 234, 0.03);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--brass);
}

.pf-wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

.pf-wave__lbl {
  display: block;
  margin-top: var(--space-2);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.42);
}

.pf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pf-check {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.55);
  background: rgba(244, 241, 234, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px var(--space-3);
}

/* Row 3 — protocol builder */

.pf-modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pf-mode {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.35);
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
}

.pf-mode--on {
  color: var(--deep-pine);
  background: var(--brass);
  border-color: var(--brass);
}

.pf-suggest {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(185, 138, 62, 0.08);
  border: 1px solid rgba(185, 138, 62, 0.28);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.pf-suggest__tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brass-light);
}

.pf-suggest__body { flex: 1; min-width: 0; }

.pf-suggest__score {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--brass-light);
  white-space: nowrap;
}

.pf-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.pf-card {
  background: rgba(244, 241, 234, 0.04);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  min-width: 0;
}

/* Row 4 — progress report */

.pf-chart {
  background: rgba(244, 241, 234, 0.03);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.pf-chart svg {
  display: block;
  width: 100%;
  height: 110px;
}

.pf-chart__grid {
  stroke: rgba(244, 241, 234, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.pf-chart__line {
  stroke-width: 2;
  stroke-linecap: round;
}

.pf-chart__line--a { stroke: var(--brass); }
.pf-chart__line--b { stroke: var(--clay-light); }

.pf-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.pf-leg {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.50);
}

.pf-leg__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pf-leg__dot--a { background: var(--brass); }
.pf-leg__dot--b { background: var(--clay-light); }

.pf-scales {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pf-scale__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.pf-scale__name {
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: rgba(244, 241, 234, 0.55);
}

.pf-scale__val {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--brass-light);
  white-space: nowrap;
}

.pf-bar {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(244, 241, 234, 0.07);
  overflow: hidden;
}

.pf-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brass) 0%, var(--brass-light) 100%);
}

/* --------------------------------------------------------------------------
   Devices Section — regulatory approvals
   -------------------------------------------------------------------------- */

.devices {
  background-color: var(--bone);
}

.devices__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
}

.devices__content { min-width: 0; }

.devices__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.2vw, var(--text-3xl));
  line-height: var(--leading-tight);
  color: var(--deep-pine);
  margin-bottom: var(--space-5);
}

.devices__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.devices__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  transition: gap var(--transition-fast);
}

.devices__link:hover { gap: var(--space-3); }

.devices__certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--deep-pine);
  padding: var(--space-5);
  min-width: 0;
}

.cert-card--wide { grid-column: 1 / -1; }

.cert-card__region {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--deep-pine);
  margin-bottom: var(--space-3);
}

.cert-card__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

.devices__note {
  margin-top: var(--space-12);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Home — Leadership & Network (mirrors about.html)
   -------------------------------------------------------------------------- */

.people {
  background-color: var(--white);
}

.people__header {
  max-width: 700px;
  margin-bottom: var(--space-12);
}

.people__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.2vw, var(--text-3xl));
  line-height: var(--leading-tight);
  color: var(--deep-pine);
  margin-bottom: var(--space-4);
}

.people__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.people__subhead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--deep-pine);
  margin-bottom: var(--space-6);
}

.people__block { margin-top: var(--space-16); }

.people__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.doctor-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  background: var(--bone);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
}

.doctor-card__avatar {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep-pine), var(--deep-pine-light));
}

.doctor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card__body { min-width: 0; }

.doctor-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--deep-pine);
  margin-bottom: var(--space-1);
}

.doctor-card__role {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-3);
}

.doctor-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

.people__cta {
  margin-top: var(--space-12);
}

/* --------------------------------------------------------------------------
   Conditions — "Also supported" cards
   -------------------------------------------------------------------------- */

.cond-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
}

.cond-more-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(244, 241, 234, 0.06);
  padding: var(--space-8);
  background-color: rgba(244, 241, 234, 0.03);
  transition: border-color var(--transition-base), background-color var(--transition-base);
}

.cond-more-card:hover {
  border-color: rgba(244, 241, 234, 0.16);
  background-color: rgba(244, 241, 234, 0.05);
}

.cond-more-card__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-4);
}

.cond-more-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--bone);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.cond-more-card__body {
  font-size: var(--text-sm);
  color: rgba(244, 241, 234, 0.55);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.cond-more-card__cta {
  font-size: 11px;
  padding: var(--space-3) var(--space-5);
  /* Push the button to the card foot so every card's CTA lines up. */
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   Our Story — the patient problem
   -------------------------------------------------------------------------- */

.story-problem {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.story-problem__item {
  padding: var(--space-8);
  background-color: var(--white);
  border: 1px solid var(--color-border);
  border-left: 2px solid var(--clay);
}

.story-problem__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--deep-pine);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
}

.story-problem__body {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.story-answer {
  padding: var(--space-10);
  background-color: var(--deep-pine);
}

.story-answer__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
}

.story-answer__body {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(244, 241, 234, 0.82);
  line-height: var(--leading-relaxed);
}

.story-answer__body + .story-answer__body {
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   Platform — EEG report visual
   -------------------------------------------------------------------------- */

.pf-eeg {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  background-color: rgba(244, 241, 234, 0.03);
  border: 1px solid rgba(244, 241, 234, 0.07);
  border-radius: var(--radius-md);
}

.pf-eeg__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pf-eeg__ch {
  flex: 0 0 28px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}

.pf-eeg__trace {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
}

.pf-eeg__trace path {
  stroke: var(--brass);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.pf-eeg__row:nth-child(even) .pf-eeg__trace path {
  stroke: var(--brass-light);
  opacity: 0.7;
}

.pf-bands {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   Corporate Mental Health
   -------------------------------------------------------------------------- */

.corporate {
  background-color: var(--color-surface, var(--white));
  border-top: 1px solid var(--color-border);
}

.corporate__header {
  max-width: 760px;
  margin-bottom: var(--space-16);
}

.corporate__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.2vw, var(--text-3xl));
  line-height: var(--leading-tight);
  color: var(--deep-pine);
  margin-bottom: var(--space-5);
}

.corporate__subtitle {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
}

/* Two columns: the problem, then the response. */
.corporate__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.corporate__col-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--deep-pine);
  line-height: var(--leading-snug);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.corporate__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  list-style: none;
}

.corporate__item {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-5);
  border-left: 2px solid var(--brass);
}

/* The response column reads as the answer to the column beside it. */
.corporate__col + .corporate__col .corporate__item {
  border-left-color: var(--clay);
}

.corporate__item-title {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--deep-pine);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
}

/* Dark outcomes block — carries the positive case for neuromodulation. */
.corporate__outcomes {
  background-color: var(--deep-pine);
  padding: var(--space-12);
}

.corporate__outcomes-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-5);
}

.corporate__outcomes-intro {
  max-width: 780px;
  font-weight: 300;
  color: rgba(244, 241, 234, 0.82);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
}

.corporate__outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-8);
}

.corporate__outcome h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--bone);
  line-height: var(--leading-snug);
  padding-top: var(--space-4);
  margin-bottom: var(--space-3);
  border-top: 2px solid var(--brass);
}

.corporate__outcome p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: rgba(244, 241, 234, 0.55);
  line-height: var(--leading-relaxed);
}

.corporate__outcomes-note {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgba(244, 241, 234, 0.45);
  line-height: var(--leading-relaxed);
}

.corporate__cta {
  margin-top: var(--space-12);
}

.platform__cta {
  margin-top: var(--space-12);
}

/* --------------------------------------------------------------------------
   Eligibility check — section
   -------------------------------------------------------------------------- */

.checkup {
  background-color: var(--bone);
  border-top: 1px solid var(--color-border);
}

.checkup__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

.checkup__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(var(--text-2xl), 3.4vw, var(--text-4xl));
  line-height: var(--leading-tight);
  color: var(--deep-pine);
  margin-bottom: var(--space-5);
}

.checkup__body {
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 54ch;
}

.checkup__start {
  border-radius: 999px;
}

.checkup__disclaimer {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
}

.checkup__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  list-style: none;
}

.checkup__fact {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-6);
  background-color: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.checkup__fact-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1;
  color: var(--brass);
}

.checkup__fact-label {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------------------
   Eligibility check — modal
   -------------------------------------------------------------------------- */

.quiz {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

/* Any explicit `display` outranks the browser default for [hidden]. Without
   this, the closed dialog stays on screen and swallows every click on the page
   behind it, and the step/result/back elements never hide. */
.quiz[hidden],
.quiz [hidden] {
  display: none !important;
}

.quiz__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 20, 19, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: quizFade 0.25s ease both;
}

.quiz__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - var(--space-12));
  overflow-y: auto;
  background-color: var(--bone);
  border-radius: 20px;
  padding: var(--space-8);
  box-shadow: 0 24px 70px rgba(18, 20, 19, 0.3);
  animation: quizRise 0.3s ease both;
}

@keyframes quizFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes quizRise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.quiz__close {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.quiz__close:hover {
  background-color: rgba(18, 20, 19, 0.06);
  color: var(--deep-pine);
}

/* Question view */

.quiz__progress-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.quiz__question {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl));
  font-weight: 400;
  line-height: var(--leading-snug);
  color: var(--deep-pine);
  /* Reserve room so a one-line and a two-line question do not resize the card. */
  min-height: 2.4em;
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
}

.quiz__progress {
  height: 4px;
  border-radius: 2px;
  background-color: rgba(18, 20, 19, 0.08);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.quiz__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background-color: var(--deep-pine);
  transition: width 0.35s ease;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz__option {
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  line-height: var(--leading-snug);
  padding: var(--space-5) var(--space-6);
  background-color: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.quiz__option:hover {
  border-color: var(--deep-pine);
  background-color: var(--color-surface);
  transform: translateY(-1px);
}

.quiz__option:active {
  transform: none;
}

.quiz__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.quiz__back:hover {
  color: var(--deep-pine);
}

/* Result view */

.quiz__result-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-right: var(--space-8);
}

.quiz__result-icon {
  flex: 0 0 auto;
  display: flex;
  color: var(--deep-pine);
}

.quiz__result-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl));
  font-weight: 500;
  line-height: var(--leading-snug);
  color: var(--deep-pine);
}

.quiz__result-body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.quiz__summary {
  /* Two-up so five answers do not push the call to action off screen. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.quiz__summary-item {
  padding: var(--space-3) var(--space-4);
  background-color: rgba(18, 20, 19, 0.045);
  border-radius: 10px;
}

.quiz__summary-item dt {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.quiz__summary-item dd {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: var(--leading-snug);
}

.quiz__result-note {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.quiz__cta {
  display: flex;
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}

.quiz__restart {
  display: block;
  width: 100%;
  margin-top: var(--space-4);
  padding: var(--space-3);
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.quiz__restart:hover {
  color: var(--deep-pine);
}
