/* HEALIO DIGITAL LTD — clinical soft teal system */

:root {
  --aqua: #E0F7F5;
  --aqua-deep: #B2EBE5;
  --teal: #0F766E;
  --teal-mid: #148F86;
  --ink: #134E4A;
  --ink-soft: #2A6B66;
  --white: #ffffff;
  --mist: #F4FBFA;
  --line: rgba(15, 118, 110, 0.18);
  --shadow-soft: 0 18px 48px rgba(19, 78, 74, 0.08);
  --font-display: "Literata", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0.4rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.container.narrow {
  width: min(760px, calc(100% - 2.5rem));
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 251, 250, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(19, 78, 74, 0.04);
}

.nav {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, var(--white) 0 18%, transparent 19%),
    linear-gradient(145deg, var(--aqua-deep), var(--teal));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--teal) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15, 118, 110, 0.35);
}

.btn-ghost:hover {
  background: var(--aqua);
  color: var(--teal);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(178, 235, 229, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(224, 247, 245, 0.95) 0%, transparent 50%),
    linear-gradient(180deg, #F7FCFB 0%, var(--aqua) 45%, #D5F3EF 100%);
  z-index: 0;
}

.hero-ecg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  height: 120px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.ecg-svg {
  width: 100%;
  height: 100%;
}

.ecg-path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecg-draw 4.5s ease-in-out infinite;
}

@keyframes ecg-draw {
  0% { stroke-dashoffset: 1400; opacity: 0.2; }
  20% { opacity: 0.7; }
  55% { stroke-dashoffset: 0; opacity: 0.85; }
  100% { stroke-dashoffset: -1400; opacity: 0.2; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.5rem));
  margin-inline: auto;
  margin-left: max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 1.1rem;
  line-height: 1.15;
}

.hero-headline {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
  max-width: 28ch;
}

.hero-support {
  margin: 0 0 1.85rem;
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* —— Journey —— */
.journey {
  background: var(--white);
}

.journey-path {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--aqua-deep) transparent;
}

.journey-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  min-width: 4.5rem;
}

.step-node {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--mist);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.journey-connector {
  flex: 1 1 1.5rem;
  min-width: 1.25rem;
  max-width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua-deep), var(--teal-mid));
  opacity: 0.45;
  margin-bottom: 1.7rem;
  border-radius: 2px;
  transition: opacity 0.3s var(--ease);
}

.journey-step.is-active,
.journey-step:hover {
  color: var(--teal);
}

.journey-step.is-active .step-node {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15);
}

.journey-step.is-active + .journey-connector,
.journey-connector:has(+ .journey-step.is-active) {
  opacity: 1;
}

.journey-panel {
  background: var(--aqua);
  border-radius: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  min-height: 8.5rem;
  box-shadow: var(--shadow-soft);
}

.journey-panel-title {
  margin-top: 0;
  color: var(--teal);
}

.journey-panel-body {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* —— Pillars (radial / overlapping discs) —— */
.pillars {
  background:
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(224, 247, 245, 0.9) 0%, transparent 70%),
    var(--mist);
}

.pillars-radial {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 2rem auto 0;
}

.pillar-disc {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8%;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 12px 36px rgba(19, 78, 74, 0.07);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.pillar-disc:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 44px rgba(19, 78, 74, 0.12);
  z-index: 5;
}

.pillar-disc h3 {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}

.pillar-disc p {
  margin: 0;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.pillar-a {
  top: 2%;
  left: 27%;
  background: rgba(224, 247, 245, 0.92);
  z-index: 2;
}

.pillar-b {
  top: 28%;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 3;
}

.pillar-c {
  bottom: 2%;
  left: 27%;
  background: rgba(178, 235, 229, 0.55);
  z-index: 2;
}

.pillar-d {
  top: 28%;
  left: 0;
  background: rgba(255, 255, 255, 0.88);
  z-index: 3;
}

.pillars-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 4;
  box-shadow: 0 0 0 10px rgba(15, 118, 110, 0.1);
}

/* —— Evidence / prose with inline stats —— */
.evidence {
  background: var(--white);
}

.prose p {
  margin: 0 0 1.35rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

.stat-callout {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35em;
  color: var(--teal);
  line-height: 1;
  padding: 0 0.12em;
  border-bottom: 2px solid var(--aqua-deep);
  vertical-align: baseline;
}

/* —— Testimonials —— */
.voices {
  background: var(--mist);
}

.testimonials {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testimonial {
  margin: 0;
  padding: 1.6rem 0 1.6rem 1.35rem;
  border-left: 3px solid var(--aqua-deep);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.testimonial + .testimonial {
  border-top: 1px solid var(--line);
}

.testimonial p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.55;
}

.testimonial footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--teal);
}

/* —— Trust checklist —— */
.trust {
  background: var(--white);
}

.trust-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.trust-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.trust-checklist li:last-child {
  border-bottom: 0;
}

.check-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.trust-checklist h3 {
  margin-bottom: 0.35rem;
}

.trust-checklist p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— FAQ two-column —— */
.faq {
  background:
    linear-gradient(180deg, var(--aqua) 0%, var(--mist) 100%);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.faq-item h3 {
  margin-bottom: 0.55rem;
}

.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* —— Contact —— */
.contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-address {
  margin-top: 1.75rem;
  font-style: normal;
  line-height: 1.8;
  color: var(--ink-soft);
}

.contact-address strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.contact-form {
  background: var(--mist);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(15, 118, 110, 0.22);
  border-radius: 0.65rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 1.15rem;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  color: var(--teal);
  min-height: 1.4em;
}

.form-status.is-error {
  color: #9B2C2C;
}

/* —— Footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(224, 247, 245, 0.85);
  padding: 3rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.footer-brand p:last-child {
  margin: 0;
  max-width: 32ch;
}

.footer-meta p {
  margin: 0 0 0.4rem;
}

.footer-meta a {
  color: var(--aqua);
}

.footer-meta a:hover {
  color: var(--white);
}

.footer-legal {
  margin-top: 1rem !important;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* —— Reveals —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    display: none;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.25rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }

  .hero-inner {
    margin-left: auto;
  }

  .faq-grid,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .pillars-radial {
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .pillar-disc p {
    display: none;
  }

  .pillar-disc {
    padding: 6%;
  }

  .pillars-radial {
    width: min(340px, 96%);
  }

  .journey-step {
    min-width: 3.8rem;
  }

  .step-node {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 0.75rem;
  }
}

/* —— Reduced motion —— */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ecg-path {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 0.5;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .journey-step.is-active .step-node,
  .pillar-disc,
  .btn {
    transition: none;
  }

  .journey-step.is-active .step-node {
    transform: none;
  }
}
