/* Heloo Health — marketing site */
:root {
  --bg: #f2f8f6;
  --bg-deep: #e4f0ec;
  --mist: #d8ede7;
  --primary: #0f766e;
  --primary-deep: #0a5c56;
  --accent: #0f766e;
  --ink: #0b1f33;
  --muted: #5a6b7a;
  --line: #d5e4df;
  --surface: #ffffff;
  --danger: #b91c1c;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --radius: 1.25rem;
  --shadow: 0 16px 40px rgba(11, 31, 51, 0.08);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary-deep);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 0.75rem;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(242, 248, 246, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

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

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

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__links .btn {
  color: inherit;
}

.nav__links .btn--primary {
  background: var(--accent);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
  white-space: nowrap;
}

.nav__links .btn--primary:hover {
  background: #0A5C56;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.btn--primary:hover {
  background: var(--primary-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  background: var(--surface);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  padding: 2rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 80% 15%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 50% at 10% 80%, rgba(15, 118, 110, 0.16), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, var(--bg-deep) 42%, var(--bg) 100%);
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  animation: drift 14s ease-in-out infinite alternate;
}

.hero__orb--a {
  width: 18rem;
  height: 18rem;
  right: -4rem;
  top: 4rem;
  background: rgba(15, 118, 110, 0.14);
}

.hero__orb--b {
  width: 14rem;
  height: 14rem;
  left: -3rem;
  bottom: 6rem;
  background: rgba(15, 118, 110, 0.12);
  animation-delay: -4s;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-1.5rem, 1rem);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero__copy {
  max-width: 34rem;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: rise 700ms ease forwards;
}

.hero__brand img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  opacity: 0;
  animation: rise 700ms ease 120ms forwards;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 32rem;
  opacity: 0;
  animation: rise 700ms ease 220ms forwards;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 700ms ease 320ms forwards;
}

.hero__note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  opacity: 0;
  animation: rise 700ms ease 400ms forwards;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 19rem);
  opacity: 0;
  animation: rise 900ms ease 280ms forwards;
}

.phone {
  background: var(--surface);
  border-radius: 2rem;
  padding: 0.55rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.phone__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #e8f2ef;
  display: block;
  padding: 0;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone--sm {
  width: min(100%, 15rem);
  margin-inline: auto;
}

.shot-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  align-items: flex-end;
}

.shot-pair .phone {
  width: min(47%, 14.25rem);
}

.shot-pair .phone:first-child {
  transform: translateY(1.1rem);
}

.shot-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: 2rem;
}

.shot-strip .phone {
  padding: 0.4rem;
  border-radius: 1.25rem;
}

.shot-strip .phone__screen {
  border-radius: 1rem;
  aspect-ratio: 9 / 17;
}

.shot-caption {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

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

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

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

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

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

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

.feature {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 200ms ease, transform 200ms ease;
}

.feature:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-2px);
}

.feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

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

/* Feature catalog chips */
.catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
}

.catalog a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.catalog a:hover {
  border-color: var(--primary);
  background: rgba(15, 118, 110, 0.06);
  color: var(--primary-deep);
}

/* Showcase rows with graphics */
.showcase {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin: 3.5rem 0;
}

@media (min-width: 880px) {
  .showcase {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .showcase--flip .showcase__copy {
    order: 2;
  }
  .showcase--flip .showcase__art {
    order: 1;
  }
}

.showcase__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.showcase__copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.showcase__copy > p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

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

.bullet-list li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.mini-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

@media (min-width: 560px) {
  .mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mini {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.mini h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

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

.art-frame {
  position: relative;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  min-height: 0;
}

.art-frame .phone {
  width: min(100%, 18.5rem);
  margin-inline: auto;
}

.triage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.triage span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
}

.triage i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  display: inline-block;
}

.t-green i { background: #16a34a; }
.t-yellow i { background: #ca8a04; }
.t-orange i { background: #ea580c; }
.t-red i { background: #dc2626; }

.feature-grid--dense .feature {
  padding: 1.1rem 1.15rem 1.2rem;
}

.feature__tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

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

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

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

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

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

.trust {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid var(--line);
}

.trust strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.trust p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  padding: 3.5rem 0 4.5rem;
}

.cta-band__inner {
  text-align: center;
  padding: 2.75rem 1.5rem;
  border-radius: 1.75rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 118, 110, 0.16), transparent 45%),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 20px 48px rgba(10, 92, 86, 0.28);
}

.cta-band__inner h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.cta-band__inner p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  opacity: 0.92;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--primary-deep);
  box-shadow: none;
}

.cta-band .btn--primary:hover {
  background: var(--mist);
  color: var(--primary-deep);
}

.cta-band .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

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

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

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

.footer__meta p {
  margin: 0.35rem 0 0;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.footer nav a:hover {
  color: var(--primary);
}

.footer__legal {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Legal / privacy pages */
.legal-hero {
  padding: 3rem 0 1.5rem;
  background: linear-gradient(180deg, #fff, var(--bg));
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
}

.legal {
  padding: 1rem 0 4rem;
}

.legal article {
  max-width: 46rem;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.legal h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

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

.legal a {
  font-weight: 500;
}

@media (max-width: 720px) {
  .nav__links .nav-hide-sm {
    display: none;
  }
}
