/* HealthVerse. Barlow Condensed for headlines, Plus Jakarta Sans
   for the wordmark and everything you read. Lime marker, pastel cards. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #5271FF; outline-offset: 3px; }

:root {
  --ink: #1a1a1a;
  --text: #333;
  --muted: #666;
  --line: #e6e6e6;
  --lime: #D9FF70;
  --lime-btn: #D8FF6D;
  --peach: #FEEFDA;
  --lilac: #E5EAFE;
  --gray: #EEEEEE;
  --blue: #5271FF;
  --max: 1140px;
  --nav-h: 78px;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Plus Jakarta Sans", "Noto Sans Arabic", "Geeza Pro", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: saturate(1.2) blur(10px);
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.site-nav.scrolled {
  box-shadow: 0 10px 30px rgba(18, 32, 51, 0.06);
  border-bottom-color: transparent;
}
.nav-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.nav-panel { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a, .nav-cta {
  position: relative;
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: #243044;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #122033; }
.nav-cta {
  background: var(--lime-btn); color: #111; font-weight: 700;
  padding: 10px 16px; border-radius: 6px;
}
.nav-cta:hover { background: #c8f255; color: #111; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; font-family: var(--sans);
  font-weight: 700; letter-spacing: -0.035em;
  font-size: 22px; line-height: 1; color: #122033;
}
.brand svg {
  width: 36px; height: 36px; flex: none;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(18, 32, 51, 0.16);
}
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px;
  border: 1px solid var(--line); background: #fff; border-radius: 6px;
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 1.5px; background: #222; position: relative;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.display, .h2, .card h3, .step h3, .swatch h2, .band h2, .founder h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 0.95;
}
.display {
  font-size: clamp(3.6rem, 7.4vw, 6.4rem);
  margin: 0 0 18px;
}
.h2 { font-size: clamp(2.6rem, 4.5vw, 4rem); margin: 0 0 14px; }
.mark {
  background: var(--lime);
  padding: 0 0.12em 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero .mark {
  background-color: transparent;
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 0% 88%;
  background-position: 0 85%;
  animation: mark-in 0.55s var(--ease) 0.15s forwards;
}
@keyframes mark-in { to { background-size: 100% 88%; } }
.lead { font-size: 1.05rem; color: #444; max-width: 62ch; margin: 0 auto; }
.section { padding: 84px 0; background: #fff; }
.section-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
#systems, #trust { background: var(--gray); }

.btn-primary, .btn-ghost, .btn-primary.light, .btn-ghost.light {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; border-radius: 4px;
  padding: 14px 22px; font-size: 15px; font-weight: 600; line-height: 1;
  cursor: pointer; border: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.btn-primary, .btn-primary.light {
  background: var(--lime-btn); color: #111;
}
.btn-primary:hover, .btn-primary.light:hover { background: #c8f255; }
.btn-ghost, .btn-ghost.light {
  background: transparent; color: #111; border: 1px solid #ccc;
}
.btn-ghost:hover, .btn-ghost.light:hover { border-color: #111; }

.hero { padding: 64px 0 36px; text-align: center; background: #fff; }
.hero-copy { max-width: 980px; }
.lane {
  margin: 34px auto 0; max-width: 760px; text-align: left;
  background: #122033; color: #fff;
  border-radius: 18px; padding: 22px 24px 18px;
  box-shadow: 0 22px 50px rgba(18, 32, 51, 0.18);
}
.lane-ends {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center;
}
.lane-end {
  font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
  background: #1c2e46; border-radius: 8px; padding: 8px 12px;
  min-width: 7.5ch; text-align: center;
}
.lane-track {
  position: relative; height: 3px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}
.lane-pulse {
  position: absolute; top: 50%; left: 0; width: 14px; height: 14px;
  margin-top: -7px; border-radius: 50%; background: #C4784A;
  box-shadow: 0 0 0 6px rgba(196, 120, 74, 0.28), 0 0 16px #C4784A;
}
.lane-pulse.go { animation: travel 2.6s var(--ease) both; }
@keyframes travel {
  0% { left: 0; opacity: 1; }
  78% { left: calc(100% - 14px); opacity: 1; }
  100% { left: calc(100% - 14px); opacity: 0; }
}
.lane-type {
  margin: 16px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 0.9;
  letter-spacing: 0.02em; color: var(--lime);
}
.ticker {
  min-height: 1.5em; margin: 8px 0 0; max-width: none;
  font-size: 14px; color: rgba(255, 255, 255, 0.72); text-align: left;
  transition: opacity 0.22s var(--ease);
}
.ticker em { font-style: normal; font-weight: 700; color: #fff; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .btn-primary { padding: 16px 26px; font-size: 16px; box-shadow: 0 8px 20px rgba(216, 255, 109, 0.45); }
.pastel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 56px; text-align: left;
}
.swatch { border-radius: 6px; padding: 36px 28px 32px; min-height: 240px; }
.swatch.peach { background: var(--peach); }
.swatch.lime { background: var(--lime); }
.swatch.lilac { background: var(--lilac); }
.swatch h2 { font-size: 2rem; margin: 0 0 12px; }
.swatch p { margin: 0; color: #333; font-size: 15px; }

.cluster { margin-top: 42px; }
.cluster-label {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  margin-bottom: 14px; font-size: 14px; color: var(--muted);
}
.cluster-label strong {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #222; font-weight: 700;
}
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border-radius: 8px;
  padding: 22px 20px 16px;
  display: flex; flex-direction: column; min-height: 100%;
  text-decoration: none; color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
a.card { transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(18, 32, 51, 0.08); }
.card.usa { background: var(--peach); }
.card.ksa { background: var(--lilac); }
.card.dental { background: #f3ffe0; }
.card.mizan { background: #E7EEFF; }
#practice { background: #fff; }
#practice .feat p { margin: 0 0 12px; color: #444; }
.kicker {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #5271FF; font-weight: 700;
}
.card h3 { font-size: 2rem; margin: 8px 0 8px; }
.card p { margin: 0; color: #333; font-size: 14.5px; }
.specs { list-style: none; margin: 14px 0 0; padding: 0; }
.specs li {
  position: relative; padding: 7px 0 7px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13.5px; color: #222;
}
.specs li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: #111;
}
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 14px; font-size: 12px; color: #444;
}
.status { color: #111; font-weight: 700; }
.status.dim { color: #777; font-weight: 600; }
.card-foot a { color: var(--blue); }

.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; font-size: 14px; background: #fafafa; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.18s var(--ease); }
tbody tr:hover { background: #fafcf2; }
td:first-child, th:first-child { color: #666; font-weight: 600; white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
table a { color: var(--blue); font-weight: 600; text-decoration: none; }
table a:hover { text-decoration: underline; }

.sys-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; justify-content: center; }
.sys-tools input {
  flex: 1 1 240px; min-width: 180px; max-width: 360px;
  background: #fff; border: 1px solid #ddd; border-radius: 4px; padding: 12px 14px;
}
.sys-tools button {
  background: #fff; border: 1px solid #ddd; border-radius: 4px;
  padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: #333;
}
.sys-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.catalog { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sys-group { background: #fff; border-radius: 8px; padding: 16px; }
.sys-group h3 {
  margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #111;
  display: flex; justify-content: space-between; align-items: center;
}
.sys-group h3 .count {
  font-size: 12px; font-weight: 700; color: #111;
  background: var(--lime); border-radius: 99px; padding: 2px 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: #f6f6f6; border-radius: 99px; padding: 4px 10px; font-size: 12.5px; color: #333;
}
.sys-empty { display: none; text-align: center; color: #666; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.step-num { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5271FF; }
.step h3 { font-size: 1.7rem; margin: 10px 0 8px; }
.step p { margin: 0; color: #444; font-size: 14.5px; }

.trust-grid, .roles, .feat-grid { display: grid; gap: 14px; }
.trust-grid, .roles { grid-template-columns: repeat(3, 1fr); }
.feat-grid { grid-template-columns: repeat(2, 1fr); }
.trust-item, .role, .feat { background: #fff; border-radius: 8px; padding: 20px; }
.trust-item h3, .role h3, .feat h3 { margin: 0 0 8px; font-size: 1.05rem; color: #111; }
.trust-item p, .role p { margin: 0; color: #444; font-size: 14.5px; }
.feat ul { margin: 0; padding-left: 18px; color: #444; font-size: 14.5px; }
.feat li + li { margin-top: 6px; }
.split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 32px; align-items: start; }
.split .lead { margin: 0; text-align: left; }

.band {
  background: var(--gray); color: #111; border-radius: 8px; padding: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.band h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0 0 8px; }
.band p { margin: 0; color: #444; max-width: 52ch; }
.band-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.page-hero { padding: 56px 0 10px; text-align: left; }
.page-hero .lead { margin: 0; }
.meta-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.meta-row div { background: var(--gray); border-radius: 8px; padding: 14px; }
.meta-row span {
  display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #777; font-weight: 700;
}
.meta-row strong { font-weight: 600; font-size: 15px; color: #111; }
.ribbon { margin-top: 16px; }
.ribbon h3 {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 8px; color: #777; font-weight: 700;
}

.odonto { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.arch-label {
  grid-column: 1 / -1; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #777; margin-top: 8px; font-weight: 700;
}
.tooth-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; }
.tooth {
  aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; color: #333; background: #f4f4f4;
}
.tooth.caries { background: #F8E4E1; color: #A33B32; }
.tooth.restore { background: #E3F0F5; color: #1D6B8A; }
.tooth.watch { background: #F8EEDA; color: #8A5A12; }
.tooth.rct { background: #EDE6F6; color: #5C4588; }
.tooth.ext { background: #F4E8E4; color: #8C3E32; }
.tooth.missing { background: #EEF1F3; color: #8A97A3; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 13px; color: #444; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.legend .caries { background: #E2B2AB; }
.legend .restore { background: #B7D3DE; }
.legend .watch { background: #E4D0A4; }
.legend .rct { background: #CBBBE0; }
.legend .ext { background: #D9B8B0; }
.legend .missing { background: #C5CED6; }

.site-footer { padding: 48px 0 28px; background: #f3f3f3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.site-footer h2 { font-size: 14px; margin: 0 0 10px; font-weight: 700; color: #111; }
.site-footer p { color: #555; font-size: 14px; max-width: 32ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { text-decoration: none; font-size: 14px; color: #444; }
.site-footer a:hover { color: var(--blue); }
.footer-bottom {
  margin-top: 28px; padding-top: 14px; border-top: 1px solid #e0e0e0;
  font-size: 13px; color: #777;
}

@media (max-width: 980px) {
  .pastel, .split, .steps, .trust-grid, .roles, .cards.three, .cards.four, .footer-grid, .meta-row, .catalog {
    grid-template-columns: 1fr 1fr;
  }
  .tooth-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-panel { display: none; }
  .site-nav.open .nav-panel {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
    padding: 16px 20px 20px; gap: 14px;
  }
  .site-nav.open .nav-links { flex-direction: column; align-items: flex-start; }
  .pastel, .split, .steps, .trust-grid, .roles, .cards.three, .cards.two, .cards.four, .feat-grid, .footer-grid, .meta-row, .catalog {
    grid-template-columns: 1fr;
  }
  .band { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
  .display { font-size: 3rem; }
  .wrap, .nav-inner { width: min(var(--max), calc(100% - 32px)); }
}
.roster { display: grid; gap: 22px; }
.roster-group h3 {
  margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #5c6b78;
}
.roster-row {
  display: grid; grid-template-columns: 190px 1fr auto; gap: 16px; align-items: center;
  padding: 13px 14px; text-decoration: none; color: #243044;
  border-top: 1px solid #eee; background: #fff;
  transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}
.roster-group .roster-row:last-child { border-bottom: 1px solid #eee; }
.roster-row:hover { background: #fafcf2; padding-left: 18px; }
.roster-name { font-weight: 700; color: #122033; letter-spacing: -0.02em; }
.roster-what { color: #445; font-size: 14.5px; }
.pill {
  justify-self: end; font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 99px; white-space: nowrap;
}
.pill.live { background: var(--lime); color: #122033; }
.pill.workshop { background: var(--peach); color: #5c4030; }
.pill.internal { background: var(--lilac); color: #2c3a66; }
.pill.version { background: #f3f3f3; color: #333; }

.mark-pulse {
  stroke-dasharray: 92;
  stroke-dashoffset: 92;
  animation: pulse-draw 1.05s var(--ease) 0.15s forwards;
}
@keyframes pulse-draw { to { stroke-dashoffset: 0; } }

html.js .swatch,
html.js .card,
html.js .step,
html.js .feat,
html.js .trust-item,
html.js .roster-group {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease), box-shadow 0.32s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js .swatch.in,
html.js .card.in,
html.js .step.in,
html.js .feat.in,
html.js .trust-item.in,
html.js .roster-group.in {
  opacity: 1;
  transform: none;
}
html.js a.card.in:hover {
  transform: translateY(-4px);
  transition-delay: 0ms;
}

@media (max-width: 760px) {
  .roster-row { grid-template-columns: 1fr auto; }
  .roster-what { grid-column: 1 / -1; }
  .lane { padding: 18px 16px 14px; }
  .lane-end { min-width: 0; font-size: 13px; padding: 7px 8px; }
  .display { font-size: 3.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.card, .btn-primary, .btn-ghost, .nav-links a, .nav-links a::after, .roster-row, .site-nav, .ticker, tbody tr {
    transition: none;
  }
  .mark-pulse, .hero .mark, .lane-pulse { animation: none; }
  .mark-pulse { stroke-dashoffset: 0; }
  .hero .mark { background-size: 100% 88%; }
  .lane-pulse { left: calc(100% - 14px); opacity: 1; }
  html.js .swatch,
  html.js .card,
  html.js .step,
  html.js .feat,
  html.js .trust-item,
  html.js .roster-group {
    opacity: 1; transform: none; animation: none;
  }
}
