/* MedAI — Brand Identity Redesign
   Jaida — 2026-03-28 — Visual Overhaul — Final
   Brand: Calming teal/green + warm white. Modern healthcare app.
   Typography: Plus Jakarta Sans + Inter + IBM Plex Mono
   ─────────────────────────────────────────────────────────────── */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Primary */
  --teal:        #0891B2;
  --teal-light:  #06B6D4;
  --teal-dark:   #0E7490;
  --teal-pale:   #cffafe;
  --teal-wash:   #F0FDFA;

  /* Secondary */
  --green:       #059669;
  --green-light: #10B981;
  --green-pale:  #D1FAE5;

  /* Functional */
  --alert-red:   #dc2626;
  --alert-red-pale: #FEF2F2;
  --caution:     #d97706;
  --caution-pale:#FFFBEB;
  --calm-blue:   #3b82f6;

  /* Neutrals */
  --bg:          #F8FFFE;
  --surface:     #FFFFFF;
  --section-bg:  #F0F9F7;
  --border:      #D5E8E4;
  --border-light:#E8F4F0;
  --charcoal:    #1e293b;
  --warm-grey:   #6b7280;
  --text:        #1e293b;
  --text-mid:    #475569;
  --text-soft:   #94A3B8;

  /* Shadows — teal-tinted */
  --shadow-sm:   0 1px 3px rgba(8,145,178,.06), 0 1px 2px rgba(8,145,178,.04);
  --shadow-md:   0 4px 16px rgba(8,145,178,.08), 0 1px 4px rgba(8,145,178,.04);
  --shadow-lg:   0 8px 32px rgba(8,145,178,.10), 0 2px 8px rgba(8,145,178,.06);
  --shadow-teal: 0 4px 24px rgba(8,145,178,.18);

  /* Radii */
  --radius:      14px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); }

/* ── Soft organic background ───────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(8,145,178,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(5,150,105,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Medical Disclaimer Banner ─────────────────────────────── */
.md-banner {
  background: #FFF7ED;
  border-bottom: 2px solid #FED7AA;
  padding: .5rem 1.5rem;
  text-align: center;
  font-size: .78rem;
  font-family: var(--font-body);
  color: #92400E;
  position: relative;
  z-index: 1;
}
.md-banner strong { color: #C2410C; }

/* ── JaidaOS Header ────────────────────────────────────────── */
.jaida-bar {
  background: linear-gradient(135deg, #F0F9F7 0%, #E8F4F0 100%);
  padding: 4px 16px;
  text-align: center;
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--warm-grey);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.jaida-bar a {
  color: var(--teal);
  font-weight: 600;
}

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,255,254,.92);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 800; color: var(--teal);
  letter-spacing: -.5px;
}
.nav-logo img {
  height: 36px; width: auto;
}
.nav-logo .wordmark {
  display: flex; align-items: baseline; gap: 0;
}
.nav-logo .wordmark .med { color: var(--teal); }
.nav-logo .wordmark .ai { color: var(--charcoal); }
.nav-logo .divider {
  color: var(--border); font-weight: 300; margin: 0 .4rem; font-size: 1.1rem;
}
.nav-logo .subtitle {
  color: var(--warm-grey); font-weight: 500; font-size: .85rem;
  font-family: var(--font-body);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: .9rem; color: var(--text-mid); font-weight: 500;
  font-family: var(--font-body);
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }
.btn-nav {
  background: var(--teal); color: #fff;
  padding: .5rem 1.25rem; border-radius: 10px;
  font-size: .875rem; font-weight: 600;
  font-family: var(--font-heading);
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn-nav:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal); color: #fff;
  padding: .85rem 2rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  font-family: var(--font-heading);
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer; border: none;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); color: var(--teal);
  border: 1.5px solid var(--teal);
  padding: .8rem 1.8rem; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  font-family: var(--font-heading);
  transition: background .2s, transform .15s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--teal-wash); transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, var(--teal-wash) 0%, #F0FDFA 30%, #F0FDF4 60%, #F8FFFE 100%);
  padding: 5.5rem 2rem 4.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(8,145,178,.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Decorative organic shapes */
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,.04) 0%, transparent 70%);
  right: -100px; bottom: -200px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal-pale); color: var(--teal-dark);
  border: 1px solid rgba(8,145,178,.15);
  padding: .4rem 1rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 1.75rem;
  font-family: var(--font-body);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  color: var(--charcoal); letter-spacing: -.5px;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-mid); max-width: 580px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-proof {
  margin-top: 3.5rem; display: flex; gap: 3rem;
  justify-content: center; flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-num {
  display: block; font-size: 1.75rem; font-weight: 800;
  font-family: var(--font-heading);
  color: var(--teal); letter-spacing: -.5px;
}
.proof-label {
  font-size: .82rem; color: var(--warm-grey); font-weight: 500;
  font-family: var(--font-body);
}

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 5rem 2rem; position: relative; z-index: 1; }
.container { max-width: 1160px; margin: 0 auto; }
.section-label {
  display: inline-block;
  color: var(--teal); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem;
  font-family: var(--font-body);
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.3px;
  color: var(--charcoal); margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-mid);
  max-width: 560px; margin-bottom: 3rem;
  line-height: 1.7;
}

/* ── Feature Grid ──────────────────────────────────────────── */
.features { background: var(--section-bg); }
.features .section-sub { margin-bottom: 3rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 0;
}
.feature-icon svg {
  width: 24px; height: 24px;
}
.feature-icon.teal-bg { background: var(--teal-pale); }
.feature-icon.green-bg { background: var(--green-pale); }
.feature-icon.blue-bg { background: rgba(59,130,246,.1); }
.feature-title {
  font-size: 1.05rem; font-weight: 700;
  font-family: var(--font-heading);
  color: var(--charcoal); margin-bottom: .5rem;
}
.feature-desc {
  font-size: .9rem; color: var(--text-mid); line-height: 1.65;
}
.feature-tag {
  display: inline-block; margin-top: .85rem;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  background: var(--teal-pale); color: var(--teal-dark);
  font-family: var(--font-body);
}

/* ── Trust Banner ──────────────────────────────────────────── */
.trust {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  top: -300px; right: -100px;
  pointer-events: none;
}
.trust-inner { max-width: 720px; margin: 0 auto; position: relative; }
.trust h2 {
  font-size: 1.85rem; font-weight: 800; margin-bottom: 1rem;
  line-height: 1.3;
}
.trust p { font-size: 1.05rem; opacity: .88; line-height: 1.7; margin-bottom: 1.5rem; }
.trust-pillars {
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 2rem;
}
.trust-pill {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); padding: .55rem 1.1rem;
  border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(4px);
}

/* ── How It Works ──────────────────────────────────────────── */
.how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; counter-reset: steps;
}
.step { text-align: center; position: relative; }
.step::before {
  counter-increment: steps;
  content: counter(steps);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  color: #fff;
  font-size: 1.15rem; font-weight: 800;
  font-family: var(--font-heading);
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(8,145,178,0.2);
}
.step h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: .4rem;
  font-family: var(--font-heading);
  color: var(--charcoal);
}
.step p {
  font-size: .875rem; color: var(--text-mid); line-height: 1.6;
}

/* ── Pricing ───────────────────────────────────────────────── */
.pricing { background: var(--section-bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8,145,178,.1), var(--shadow-md);
}
.badge-featured {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  color: #fff;
  padding: .2rem .75rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 1rem;
  font-family: var(--font-body);
}
.plan-name {
  font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem;
  font-family: var(--font-heading);
  color: var(--charcoal);
}
.plan-price {
  font-size: 2.5rem; font-weight: 800; color: var(--charcoal);
  font-family: var(--font-heading);
  margin: .5rem 0;
}
.plan-price sup { font-size: 1.1rem; vertical-align: top; margin-top: .5rem; }
.plan-price span { font-size: .95rem; font-weight: 400; color: var(--warm-grey); }
.plan-desc { font-size: .875rem; color: var(--text-mid); margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 1.75rem; }
.plan-features li {
  font-size: .875rem; color: var(--text-mid);
  padding: .4rem 0; display: flex; align-items: flex-start; gap: .5rem;
  border-bottom: 1px solid var(--border-light);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0;
}
.btn-plan {
  width: 100%; padding: .85rem; border-radius: 12px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .2s ease;
  font-family: var(--font-heading);
}
.btn-plan.outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--text);
}
.btn-plan.outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-plan.filled {
  background: var(--teal); color: #fff;
}
.btn-plan.filled:hover {
  background: var(--teal-dark);
  box-shadow: var(--shadow-teal);
}
.btn-plan.primary-gradient {
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  color: #fff;
}
.btn-plan.primary-gradient:hover {
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials { background: var(--bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-2px); }
.testimonial-stars { color: #F59E0B; font-size: 1rem; margin-bottom: .75rem; letter-spacing: 2px; }
.testimonial-text {
  font-size: .9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-pale), var(--green-pale));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-avatar svg { width: 20px; height: 20px; color: var(--teal); }
.author-name {
  font-size: .875rem; font-weight: 700; color: var(--charcoal);
  font-family: var(--font-heading);
}
.author-role { font-size: .78rem; color: var(--warm-grey); }

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(160deg, var(--teal-wash) 0%, #F0FDF4 50%, #F8FFFE 100%);
  text-align: center; padding: 5rem 2rem;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,.05) 0%, transparent 70%);
  left: -100px; top: -100px;
  pointer-events: none;
}
.cta-band h2 {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; color: var(--charcoal);
}
.cta-band p {
  color: var(--text-mid); font-size: 1.05rem; margin-bottom: 2rem;
  max-width: 520px; margin-inline: auto;
  line-height: 1.7;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--charcoal); color: rgba(255,255,255,.7);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}
.footer-brand .footer-logo img { height: 28px; filter: brightness(0) invert(1); }
.footer-brand .footer-logo span {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 800; color: #fff;
}
.footer-brand p {
  font-size: .85rem; line-height: 1.65;
}
.footer-col h4 {
  color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .85rem;
  font-family: var(--font-heading);
}
.footer-col a {
  display: block; font-size: .85rem; margin-bottom: .5rem;
  transition: color .2s; color: rgba(255,255,255,.55);
}
.footer-col a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .78rem;
}
.disclaimer-box {
  background: rgba(217,119,6,.08);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: 10px; padding: .85rem 1.25rem;
  font-size: .78rem; color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem; max-width: 1160px; margin-inline: auto;
  line-height: 1.65;
}
.disclaimer-box strong { color: rgba(255,255,255,.85); }

/* ── JaidaOS Footer ────────────────────────────────────────── */
.jaida-footer {
  background: var(--section-bg);
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}
.jaida-footer .jaida-brand {
  font-size: 13px; color: var(--teal); font-weight: 700;
  letter-spacing: 2px; margin-bottom: 6px;
  font-family: var(--font-heading);
}
.jaida-footer .jaida-tagline {
  font-size: 11px; color: var(--warm-grey); margin-bottom: 4px;
}
.jaida-footer .jaida-copy {
  font-size: 10px; color: var(--text-soft);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero-proof { gap: 1.5rem; }
  .trust-pillars { gap: .5rem; }
  .trust-pill { font-size: .78rem; padding: .4rem .85rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

/* ── Scroll reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: rgba(8,145,178,0.15); color: var(--charcoal); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
