@font-face {
  font-family: "Onest";
  src: url("fonts/Onest-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Palette: the brand mark's forest and lime, widened with a mint bridge and a saffron signal. */
  --forest-900: #08261f;
  --forest-800: #0c3a33;
  --forest-700: #174f3f;
  --forest-600: #266354;
  --mint-400: #5fd0a5;
  --lime-200: #d5f3a7;
  --lime-100: #ecf9d6;
  --saffron: #f5a623;
  --mist: #f1f6f2;
  --paper: #ffffff;
  --ink: #12201c;
  --ink-soft: #4a5c56;
  --line: #d6e3dc;

  --grad-aurora: linear-gradient(135deg, #0c3a33 0%, #174f3f 45%, #1f6b55 75%, #2f7f5f 100%);
  --grad-signal: linear-gradient(90deg, var(--mint-400), var(--lime-200));

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lime-200); color: var(--forest-900);
  padding: 10px 16px; border-radius: var(--r-pill); font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--lime { background: var(--lime-200); color: var(--forest-900); }
.btn--lime:hover { background: #e4f8c2; }
.btn--ghost { color: var(--lime-100); border-color: rgba(213, 243, 167, .45); }
.btn--ghost:hover { background: rgba(213, 243, 167, .1); border-color: var(--lime-200); }
.btn--forest { background: var(--forest-700); color: var(--lime-100); }
.btn--forest:hover { background: var(--forest-800); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 58, 51, .86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  color: var(--lime-100);
  border-bottom: 1px solid rgba(213, 243, 167, .12);
}
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(213, 243, 167, .25); }
.nav__links { display: flex; gap: 26px; margin-left: 12px; }
.nav__links a { text-decoration: none; font-size: 15px; color: rgba(236, 249, 214, .78); }
.nav__links a:hover { color: var(--lime-200); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: var(--r-pill); background: rgba(8, 38, 31, .55); border: 1px solid rgba(213, 243, 167, .14); }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; color: rgba(236, 249, 214, .7);
  background: none; border: 0; cursor: pointer; padding: 7px 11px; border-radius: var(--r-pill); min-width: 44px;
}
.lang button[aria-pressed="true"] { background: var(--lime-200); color: var(--forest-900); }

/* Aurora glow (shared by hero and trust) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora span:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -220px; background: radial-gradient(circle, #2f9a73 0%, transparent 70%); }
.aurora span:nth-child(2) { width: 520px; height: 520px; right: -120px; top: 40px; background: radial-gradient(circle, #b7e48a 0%, transparent 68%); opacity: .32; }
.aurora span:nth-child(3) { width: 700px; height: 380px; left: 30%; bottom: -260px; background: radial-gradient(circle, #5fd0a5 0%, transparent 70%); opacity: .3; }
.aurora--soft span { opacity: .28; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-aurora); color: var(--lime-100);
  padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 136px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 720;
  color: #fff; max-width: 14ch; text-wrap: balance;
}
.hero__lede { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: rgba(236, 249, 214, .86); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__note { margin-top: 22px; font-size: 14px; color: rgba(236, 249, 214, .62); }

/* Visit card */
.visit-card {
  margin: 0; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(213, 243, 167, .22);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 40px 80px -30px rgba(3, 20, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.vc__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.vc__eyebrow { font-size: 14px; color: rgba(236, 249, 214, .7); }
.vc__title { margin-top: 4px; font-size: 22px; font-weight: 650; color: #fff; letter-spacing: -.01em; }
.vc__sub { margin-top: 2px; font-size: 14px; color: rgba(236, 249, 214, .7); }
.vc__badge {
  flex: none; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: var(--r-pill);
  background: rgba(213, 243, 167, .16); color: var(--lime-200); border: 1px solid rgba(213, 243, 167, .3);
}
.vc__pulse { width: 100%; height: 60px; margin: 22px 0 18px; }
.vc__pulse path { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.8s .3s cubic-bezier(.6, .1, .3, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.vc__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.vc__steps::before {
  content: ""; position: absolute; top: 6px; left: 6px; right: calc(25% - 6px); height: 2px;
  background: rgba(213, 243, 167, .2);
}
.vc__steps li { position: relative; display: grid; gap: 10px; font-size: 13px; color: rgba(236, 249, 214, .58); }
.vc__steps .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--forest-700); border: 2px solid rgba(213, 243, 167, .35); position: relative; z-index: 1; }
.vc__steps .is-done { color: rgba(236, 249, 214, .9); }
.vc__steps .is-done .dot { background: var(--mint-400); border-color: var(--mint-400); }
.vc__steps .is-now { color: #fff; font-weight: 600; }
.vc__steps .is-now .dot { background: var(--saffron); border-color: var(--saffron); box-shadow: 0 0 0 6px rgba(245, 166, 35, .2); }

.vc__queue { margin-top: 26px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(8, 38, 31, .5); }
.vc__big { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: rgba(236, 249, 214, .8); }
.vc__num { font-size: 44px; font-weight: 750; line-height: 1; color: var(--lime-200); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vc__bar { margin-top: 14px; height: 6px; border-radius: 6px; background: rgba(213, 243, 167, .14); overflow: hidden; }
.vc__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-signal); animation: fill 1.4s 1.6s ease-out forwards; }
@keyframes fill { to { width: 68%; } }

/* Formula band */
.formula { background: var(--mist); padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.formula__eq {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .38em;
  font-size: clamp(34px, 5.2vw, 72px); font-weight: 720; letter-spacing: -.035em; line-height: 1.08;
  color: var(--forest-800);
}
.formula__eq i { font-style: normal; font-weight: 300; color: var(--mint-400); }
.formula__eq b {
  font-weight: 720;
  background: linear-gradient(90deg, var(--forest-700), #2f9a73 60%, #7cc36b);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.formula__text { margin-top: 26px; max-width: 40em; font-size: 19px; color: var(--ink-soft); }

/* Shared section heading */
.h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.028em; font-weight: 700; color: var(--forest-800); max-width: 20ch; text-wrap: balance; }

/* Audiences */
.audiences { padding: clamp(72px, 9vw, 120px) 0; }
.tabs {
  display: inline-flex; gap: 4px; margin-top: 32px; padding: 5px; border-radius: var(--r-pill);
  background: var(--mist); border: 1px solid var(--line); max-width: 100%; overflow-x: auto;
}
.tabs [role="tab"] {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; padding: 11px 24px; border-radius: var(--r-pill); min-height: 44px;
  transition: background-color .2s, color .2s;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--forest-700); color: var(--lime-100); }
.tabs [role="tab"]:not([aria-selected="true"]):hover { color: var(--forest-800); }

.panel { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; }
.panel[hidden] { display: none; }
.panel__intro h3 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; font-weight: 680; color: var(--ink); }
.panel__intro p { margin-top: 14px; color: var(--ink-soft); }
.panel__intro .btn { margin-top: 28px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
.features li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.features h4 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; color: var(--forest-800); display: flex; align-items: center; gap: 10px; }
.features h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-signal); box-shadow: 0 0 0 4px var(--lime-100); flex: none; }
.features p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); max-width: 34em; }

/* Visit steps */
.visit { background: var(--mist); padding: clamp(72px, 9vw, 120px) 0; }
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 23px; left: 24px; right: calc(20% - 40px); height: 2px;
  background: linear-gradient(90deg, var(--forest-700), var(--mint-400), var(--lime-200));
}
.steps li { position: relative; }
.steps__n {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--forest-700); color: var(--forest-700);
  font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums;
}
.steps li:last-child .steps__n { background: var(--forest-700); color: var(--lime-200); }
.steps h3 { margin-top: 20px; font-size: 20px; font-weight: 680; letter-spacing: -.01em; color: var(--forest-800); }
.steps p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); }

/* Trust */
.trust { position: relative; overflow: hidden; isolation: isolate; background: var(--forest-900); color: var(--lime-100); padding: clamp(80px, 10vw, 136px) 0; }
.trust .h2 { color: #fff; }
.trust__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); }
.trust__lede { margin-top: 22px; font-size: 19px; color: rgba(236, 249, 214, .78); max-width: 26em; }
.trust__list li { padding: 24px 0; border-top: 1px solid rgba(213, 243, 167, .16); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.trust__list li:last-child { border-bottom: 1px solid rgba(213, 243, 167, .16); }
.trust__list h3 { font-size: 18px; font-weight: 650; color: var(--lime-200); }
.trust__list p { color: rgba(236, 249, 214, .76); font-size: 16px; }

/* Portals */
.cta { padding: clamp(72px, 9vw, 120px) 0; }
.portals { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portal {
  position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 30px;
  border-radius: var(--r-lg); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.portal::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -110px; border-radius: 50%; z-index: -1;
  filter: blur(10px); opacity: .7;
}
.portal:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(12, 58, 51, .5); }
.portal--patient { background: linear-gradient(150deg, #174f3f, #0c3a33); color: var(--lime-100); }
.portal--patient::after { background: radial-gradient(circle, #5fd0a5, transparent 70%); }
.portal--doctor { background: linear-gradient(150deg, #e8f7d2, #cfeeb0); color: var(--forest-900); }
.portal--doctor::after { background: radial-gradient(circle, #ffffff, transparent 70%); }
.portal--clinic { background: linear-gradient(150deg, #2f7f5f, #174f3f); color: var(--lime-100); }
.portal--clinic::after { background: radial-gradient(circle, #f5a623, transparent 70%); opacity: .35; }
.portal__who { font-size: 30px; font-weight: 720; letter-spacing: -.025em; }
.portal__what { margin-top: 10px; font-size: 16.5px; opacity: .85; max-width: 22em; }
.portal__url { margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 15px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand--small { color: var(--forest-800); font-size: 16px; }
.brand--small .brand__mark { width: 28px; height: 28px; border-radius: 8px; box-shadow: none; }
.footer__copy { margin-left: auto; }

/* Responsive */
@media (max-width: 1040px) {
  .nav__links { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
  .visit-card { max-width: 520px; }
  .panel { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--forest-700), var(--mint-400), var(--lime-200)); }
  .steps li { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps__n { grid-row: span 2; }
  .steps h3 { margin-top: 10px; }
  .trust__grid { grid-template-columns: 1fr; }
  .portals { grid-template-columns: 1fr; }
  .portal { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__row { gap: 12px; min-height: 64px; }
  .brand span { display: none; }
  .footer .brand span { display: inline; }
  .nav__end { gap: 8px; }
  .lang button { padding: 7px 8px; min-width: 40px; }
  .btn--sm { padding: 0 14px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .visit-card { padding: 22px; }
  .vc__head { flex-direction: column; }
  .vc__steps li { font-size: 12px; }
  .features { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tabs [role="tab"] { flex: 1; padding: 11px 12px; }
  .trust__list li { grid-template-columns: 1fr; gap: 6px; }
  .footer__copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vc__pulse path { animation: none; stroke-dashoffset: 0; }
  .vc__bar span { animation: none; width: 68%; }
  .portal, .btn, .tabs [role="tab"] { transition: none; }
  .portal:hover { transform: none; }
}
