/* ============================================================
   Syntra Health Analytics — design system
   Self-contained, no external fonts or CDNs.
   ============================================================ */

:root {
  --ink:      #0b1b2b;
  --navy-900: #081726;
  --navy-800: #0e2743;
  --navy-700: #16395d;
  --teal:     #14b8a6;
  --teal-600: #0d9488;
  --teal-050: #e6faf6;
  --emerald:  #10b981;
  --gold:     #eab308;
  --red:      #e5484d;
  --bg:       #f5f8fc;
  --surface:  #ffffff;
  --surface-2:#f0f4fa;
  --muted:    #5a6b7e;
  --muted-2:  #8494a5;
  --line:     #e2e8f1;
  --line-2:   #d3dce8;

  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 1px 2px rgba(13,37,63,.06), 0 8px 24px rgba(13,37,63,.06);
  --shadow-lg:0 20px 50px rgba(9,26,47,.18);
  --maxw:     1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
  font-weight: 700; color: var(--teal-600); margin: 0 0 12px;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; cursor: pointer;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #04201c; box-shadow: 0 8px 20px rgba(20,184,166,.35); }
.btn-primary:hover { background: #10cbb6; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-lg { padding: 16px 30px; font-size: 17px; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--teal-600); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #eaf2fb; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(20,184,166,.28), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(22,57,93,.6), transparent 55%),
    linear-gradient(160deg, #0a1c31 0%, #0e2743 55%, #0c2036 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
  padding: 78px 0 90px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero .lead { color: #b9cbdd; max-width: 54ch; }
.hero .eyebrow { color: #5fe3cf; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; color: #9fb4c9; font-size: 14px; }
.hero-trust b { color: #fff; font-size: 22px; display: block; font-weight: 800; }

/* floating dashboard preview in hero */
.hero-card {
  background: linear-gradient(180deg, #ffffff, #f4f8fd);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 18px; color: var(--ink); transform: rotate(.4deg);
}
.hero-card .hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hero-card .hc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); margin-right: 6px; }
.hc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.hc-kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; }
.hc-kpi .k-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hc-kpi .k-val { font-size: 19px; font-weight: 800; margin-top: 2px; }
.hc-kpi .k-up { color: var(--emerald); font-size: 11.5px; font-weight: 700; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 66ch; margin-bottom: 44px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- logos / meta strip ---------- */
.strip { background: var(--navy-800); color: #cdd9e6; padding: 20px 0; }
.strip-inner { display: flex; flex-wrap: wrap; gap: 12px 34px; align-items: center; justify-content: center; font-size: 14px; }
.strip-inner b { color: #fff; }
.strip .sep { color: #3d5877; }

/* ---------- service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal-600); margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- purpose / value block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.value-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; }
.value-list li { display: flex; gap: 14px; align-items: flex-start; }
.value-list .chk {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-050);
  color: var(--teal-600); display: grid; place-items: center; margin-top: 2px; font-weight: 900;
}
.value-list b { display: block; }
.value-list span.d { color: var(--muted); font-size: 15px; }

/* ---------- dashboards / tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: all .14s ease;
}
.tab:hover { border-color: var(--teal); }
.tab.active { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dash {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.dash-head h3 { margin: 0; font-size: 17px; }
.dash-head .badge { font-size: 12px; color: var(--muted-2); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.dash-body { padding: 22px; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.kpi {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.kpi .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi .val { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.02em; }
.kpi .chg { font-size: 13px; font-weight: 700; margin-top: 2px; }
.chg.up { color: var(--emerald); }
.chg.down { color: var(--red); }
.chg.gold { color: #b58900; }
.chart-wrap { width: 100%; overflow-x: auto; }
.chart-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-size: 17px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .pm { flex: 0 0 auto; color: var(--teal-600); font-size: 22px; transition: transform .2s ease; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); }

/* ---------- founder ---------- */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.founder .avatar {
  width: 260px; height: 260px; border-radius: 20px; margin: 0 auto;
  background:
    radial-gradient(120px 120px at 50% 34%, rgba(255,255,255,.5), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--teal-600));
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-size: 90px; font-weight: 700; box-shadow: var(--shadow-lg);
}
.founder blockquote { margin: 0 0 16px; font-family: var(--font-display); font-size: 22px; line-height: 1.5; color: var(--ink); }
.founder .cred { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.founder .cred div b { display: block; font-size: 24px; font-weight: 800; color: var(--teal-600); }
.founder .cred div span { font-size: 13px; color: var(--muted); }

/* ---------- booking ---------- */
.booking { background: linear-gradient(160deg, #0a1c31, #0e2743); color: #eaf2fb; }
.booking h2 { color: #fff; }
.booking .lead { color: #b9cbdd; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.book-panel {
  background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg);
}
.book-panel h3 { font-size: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface); transition: border .14s, box-shadow .14s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.18);
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-status { font-size: 14.5px; font-weight: 700; margin-top: 12px; }
.calendly-slot { min-height: 120px; }
.book-aside li { margin-bottom: 12px; color: #cdd9e6; }
.book-aside .chk2 { color: #5fe3cf; font-weight: 900; margin-right: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #9fb4c9; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.footer .brand { color: #fff; }
.footer a { color: #b9cbdd; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15px; }
.footer-bottom { border-top: 1px solid #1a3350; margin-top: 40px; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7f96ad; }

/* ============================================================
   AI Assistant widget
   ============================================================ */
.assistant-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  background: var(--teal); color: #04201c; font-weight: 800; font-size: 15px;
  border: 0; border-radius: 999px; padding: 14px 20px; cursor: pointer;
  box-shadow: 0 12px 30px rgba(20,184,166,.42); transition: transform .14s ease, box-shadow .14s;
}
.assistant-fab:hover { transform: translateY(-2px) scale(1.02); }
.assistant-fab svg { width: 20px; height: 20px; }
.assistant-fab .pulse { width: 9px; height: 9px; border-radius: 50%; background: #04201c; position: relative; }

.assistant {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2);
}
.assistant.open { display: flex; animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.as-head {
  background: linear-gradient(150deg, #0e2743, #0d9488); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; gap: 12px;
}
.as-head .av { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 800; }
.as-head .t b { display: block; font-size: 15.5px; }
.as-head .t span { font-size: 12px; color: #bfe9e1; }
.as-head .t span i { font-style: normal; color: #7dffea; }
.as-close { margin-left: auto; background: none; border: 0; color: #cfe9f6; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; }
.as-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--surface-2); }
.msg { max-width: 84%; margin-bottom: 12px; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.msg.user { background: var(--navy-800); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.bot a { color: var(--teal-600); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.chip {
  background: #fff; border: 1px solid var(--line-2); color: var(--navy-800);
  padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .12s;
}
.chip:hover { border-color: var(--teal); background: var(--teal-050); }
.as-typing { display: flex; gap: 4px; padding: 6px 2px; }
.as-typing i { width: 7px; height: 7px; background: var(--muted-2); border-radius: 50%; animation: blink 1.2s infinite; }
.as-typing i:nth-child(2){ animation-delay:.2s } .as-typing i:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{ opacity:.25 } 30%{ opacity:1 } }
.as-foot { border-top: 1px solid var(--line); padding: 12px; background: #fff; }
.as-input { display: flex; gap: 8px; }
.as-input input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px; font-family: inherit; font-size: 14.5px; }
.as-input input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.16); }
.as-input button { background: var(--teal); border: 0; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto; }
.as-input button svg { width: 19px; height: 19px; }
.as-disclaimer { font-size: 11px; color: var(--muted-2); text-align: center; margin-top: 8px; }

/* ---------- utilities / reveal ---------- */
/* Content is visible by default; the hidden/animate state only applies once JS
   adds .reveal-ready (so no-JS and unsupported browsers always see everything). */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready .reveal.in { opacity: 1; transform: none; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.pill-note { display: inline-block; background: var(--teal-050); color: var(--teal-600); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid, .split, .book-grid, .founder { grid-template-columns: 1fr; }
  .founder { text-align: center; }
  .founder .cred { justify-content: center; }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { transform: none; margin-top: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .nav-links.show {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .nav .btn-book-desktop { display: none; }
  .grid-3, .grid-2, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .founder .avatar { width: 180px; height: 180px; font-size: 64px; }
  .assistant { right: 0; bottom: 0; width: 100vw; height: 100vh; border-radius: 0; }
  .assistant-fab { right: 16px; bottom: 16px; }
}
