/* =========================================================================
   ViriMed — landing page styles
   Palette : Navy #0B1B3B · Teal #0C6B4E (action) · Gold #B8860B (accent)
   Type    : Spectral (display, serif) · Inter (UI / body)
   Theme   : Adobe-clean — white-dominant, hairline borders, calm elevation
   ========================================================================= */

:root {
  /* brand */
  --navy:        #0B1B3B;
  --navy-deep:   #07142B;
  --navy-soft:   #16264A;
  --teal:        #0C6B4E;
  --teal-bright: #12A37A;
  --teal-ink:    #0A5C43;   /* darker teal for text on white (contrast) */
  --gold:        #B8860B;
  --gold-bright: #D4A52A;

  /* neutrals */
  --white:   #FFFFFF;
  --paper:   #F7F9FC;
  --mist:    #EEF2F7;
  --line:    #E2E8F0;
  --line-2:  #D6DEE9;
  --slate:   #475569;
  --muted:   #6B7892;
  --ink:     #0B1B3B;

  /* type */
  --display: "Spectral", Georgia, "Times New Roman", serif;
  --ui:      "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* shape + elevation */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(11,27,59,.06), 0 1px 3px rgba(11,27,59,.05);
  --shadow-2: 0 8px 28px rgba(11,27,59,.10);
  --shadow-3: 0 20px 50px rgba(11,27,59,.16);

  --container: 1160px;
  --pad: clamp(20px, 5vw, 40px);
}

/* ───────────────── reset / base ───────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ui);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 4px; }

/* ───────────────── shared type ───────────────── */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }

.section__head { max-width: 760px; margin-inline: auto; text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; margin-bottom: 56px; }
.section__title {
  font-family: var(--display); font-weight: 500; line-height: 1.12;
  font-size: clamp(1.95rem, 3.4vw, 2.85rem); letter-spacing: -.01em; color: var(--navy);
}
.section__title--invert { color: #fff; }
.section__lede { margin-top: 22px; font-size: 1.12rem; color: var(--slate); }

/* ───────────────── buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; line-height: 1; letter-spacing: .005em;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--solid { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(12,107,78,.22); }
.btn--solid:hover { background: var(--teal-ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(12,107,78,.28); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(184,134,11,.24); }
.btn--gold:hover { background: var(--gold-bright); transform: translateY(-2px); }

/* ───────────────── nav ───────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { display: inline-flex; }
.brand__word { font-size: 1.18rem; letter-spacing: -.01em; color: var(--navy); }
.nav__links { display: flex; gap: 26px; margin-left: 8px; margin-right: auto; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--slate); transition: color .18s; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 10px 18px; font-size: .9rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 12px var(--pad) 22px; border-bottom: 1px solid var(--line); background: #fff; }
.nav__mobile a { padding: 12px 4px; font-weight: 500; color: var(--slate); border-bottom: 1px solid var(--mist); }
.nav__mobile .btn { margin-top: 8px; }

/* ───────────────── hero ───────────────── */
.hero { padding-block: clamp(48px, 7vw, 92px); background:
  radial-gradient(120% 90% at 88% 0%, rgba(18,163,122,.07), transparent 55%),
  radial-gradient(80% 70% at 0% 10%, rgba(11,27,59,.04), transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.hero__title {
  font-family: var(--display); font-weight: 500; letter-spacing: -.015em; line-height: 1.06;
  font-size: clamp(2.5rem, 5.2vw, 4.05rem); color: var(--navy); margin-bottom: 24px;
}
.hero__title em { font-style: italic; color: var(--teal-ink); }
.hero__lede { font-size: 1.17rem; color: var(--slate); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__note { margin-top: 22px; font-size: .88rem; color: var(--muted); }

/* signature: decision-support card */
.ds { position: relative; }
.ds__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-3); padding: 24px;
  position: relative; z-index: 2;
}
.ds__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--mist); }
.ds__title { font-weight: 600; font-size: .95rem; color: var(--navy); }
.ds__live { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 600; color: var(--teal-ink); text-transform: lowercase; letter-spacing: .02em; }
.ds__live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 0 rgba(18,163,122,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(18,163,122,.45);} 70%{ box-shadow:0 0 0 9px rgba(18,163,122,0);} 100%{ box-shadow:0 0 0 0 rgba(18,163,122,0);} }

.ds__patient { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.ds__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 600; }
.ds__name { font-weight: 600; font-size: .92rem; color: var(--navy); }
.ds__meta { font-size: .8rem; color: var(--muted); }

.ds__insight { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.ds__insight-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
.ds__chip { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.ds__chip--flag { background: rgba(184,134,11,.12); color: var(--gold); }
.ds__confidence { display: inline-flex; align-items: center; gap: 8px; }
.ds__confidence-bar { width: 64px; height: 6px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.ds__confidence-fill { display: block; height: 100%; width: 92%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); border-radius: 3px; transform-origin: left; }
.ds__confidence-num { font-size: .78rem; font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums; }
.ds__insight-text { font-size: .9rem; color: var(--slate); line-height: 1.55; }

.ds__decision { margin-top: 18px; }
.ds__decision-label { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ds__buttons { display: flex; gap: 10px; margin-top: 10px; }
.ds__btn { flex: 1; padding: 11px 12px; border-radius: 10px; font-weight: 600; font-size: .85rem; border: 1.5px solid transparent; transition: .18s; }
.ds__btn--accept { background: var(--navy); color: #fff; }
.ds__btn--accept:hover { background: var(--navy-soft); }
.ds__btn--override { background: #fff; color: var(--navy); border-color: var(--line-2); }
.ds__btn--override:hover { border-color: var(--navy); }
.ds__foot { margin-top: 16px; font-size: .78rem; color: var(--muted); line-height: 1.5; }

.layers { margin-top: 18px; background: var(--navy); border-radius: var(--r-md); padding: 16px 18px; color: #fff; position: relative; overflow: hidden; }
.layers::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(18,163,122,.25), transparent); transform: translateX(-100%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%{transform:translateX(-100%);} 55%,100%{transform:translateX(100%);} }
.layers__label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.layers__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; position: relative; z-index: 1; }
.layers__list li { font-size: .8rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); }

/* ───────────────── trust strip ───────────────── */
.trust { background: var(--navy); color: #fff; }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding-block: 22px; }
.trust__lead { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.trust__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin-left: auto; }
.trust__list li { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.92); position: relative; padding-left: 18px; }
.trust__list li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); }

/* ───────────────── platform ───────────────── */
#platform .section__lede { font-size: 1.16rem; }

/* ───────────────── features ───────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px 26px; box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(18,163,122,.10); color: var(--teal-ink); margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature__title { font-family: var(--ui); font-size: 1.18rem; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -.005em; }
.feature__body { font-size: .98rem; color: var(--slate); }

/* ───────────────── steps ───────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: none; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); }
.step__num { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--gold); display: block; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.step__title { font-size: 1.12rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.step__body { font-size: .94rem; color: var(--slate); }

/* ───────────────── access / mission ───────────────── */
.access { background: var(--navy-deep); color: #fff; border: 0; }
.access__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(34px,5vw,68px); align-items: center; }
.access__lede { font-size: 1.12rem; color: rgba(255,255,255,.82); margin-top: 20px; }
.access__list { list-style: none; margin-top: 28px; display: grid; gap: 16px; }
.access__list li { font-size: 1rem; color: rgba(255,255,255,.78); padding-left: 24px; position: relative; }
.access__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); }
.access__list strong { color: #fff; font-weight: 600; }
.access__panel { background: linear-gradient(160deg, var(--navy-soft), var(--navy)); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 38px 34px; box-shadow: var(--shadow-3); }
.access__stat-num { display: block; font-family: var(--display); font-size: 2.3rem; font-weight: 500; color: var(--teal-bright); line-height: 1.1; }
.access__stat-label { display: block; font-size: .98rem; color: rgba(255,255,255,.7); margin-top: 6px; }
.access__divider { height: 1px; background: rgba(255,255,255,.14); margin: 26px 0; }
.access__quote { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: #fff; line-height: 1.4; }

/* ───────────────── founder ───────────────── */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.founder__photo { aspect-ratio: 1; border-radius: var(--r-lg); background:
  radial-gradient(120% 120% at 30% 20%, var(--navy-soft), var(--navy) 60%, var(--navy-deep));
  display: grid; place-items: center; box-shadow: var(--shadow-2); border: 1px solid var(--line); }
.founder__monogram { font-family: var(--display); font-size: 4.4rem; font-weight: 500; color: #fff; letter-spacing: .02em; }
.founder__role { font-weight: 600; color: var(--teal-ink); margin: 6px 0 18px; }
.founder__body { font-size: 1.04rem; color: var(--slate); max-width: 620px; }
.founder__body + .founder__body { margin-top: 14px; }

/* ───────────────── dual CTA ───────────────── */
.cta-section { background: var(--paper); border-top: 1px solid var(--line); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px,3.5vw,44px); box-shadow: var(--shadow-2); }
.cta-card--invert { background: var(--navy); color: #fff; border-color: var(--navy-soft); }
.cta-card__title { font-family: var(--display); font-weight: 500; font-size: 1.85rem; color: var(--navy); margin-bottom: 12px; }
.cta-card--invert .cta-card__title { color: #fff; }
.cta-card__lede { color: var(--slate); margin-bottom: 26px; }
.cta-card--invert .cta-card__lede { color: rgba(255,255,255,.78); }

.form__row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form__row label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.form--invert .form__row label { color: rgba(255,255,255,.85); }
.optional { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff;
  transition: border-color .18s, box-shadow .18s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal-bright); box-shadow: 0 0 0 3px rgba(18,163,122,.16); }
.form--invert input, .form--invert select, .form--invert textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.form--invert input:focus, .form--invert textarea:focus, .form--invert select:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(212,165,42,.22); }
.form .btn { margin-top: 6px; }
.form__status { margin-top: 14px; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form__status[data-state="ok"] { color: var(--teal-ink); }
.form--invert .form__status[data-state="ok"] { color: var(--gold-bright); }
.form__status[data-state="err"] { color: #C0362C; }
.form--invert .form__status[data-state="err"] { color: #FFB4AB; }
.form__row input[aria-invalid="true"], .form__row select[aria-invalid="true"] { border-color: #C0362C; }

/* ───────────────── footer ───────────────── */
.footer { background: var(--navy-deep); color: #fff; padding-block: 56px 36px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer__brand { display: grid; gap: 6px; }
.footer__word { font-weight: 700; font-size: 1.1rem; }
.footer__brand .brand__mark { margin-bottom: 4px; }
.footer__tag { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer__links a { font-size: .92rem; color: rgba(255,255,255,.75); }
.footer__links a:hover { color: #fff; }
.footer__legal { text-align: right; font-size: .82rem; color: rgba(255,255,255,.55); }
.footer__fine { margin-top: 8px; max-width: 280px; margin-left: auto; }

/* ───────────────── reveal animation ───────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ds__live .dot, .layers::after { animation: none; }
}

/* ───────────────── responsive ───────────────── */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .ds { max-width: 460px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .access__grid, .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 260px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; text-align: left; }
  .footer__fine { margin-left: 0; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .cta__grid { grid-template-columns: 1fr; }
  .trust__list { margin-left: 0; }
}
@media (max-width: 540px) {
  .features, .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1; }
}
