/* Shraavi landing page.
   Colours and fonts are the locked brand tokens from the app repo
   (docs/vagmi_brand_design/vagmi-tokens.css); fonts are self-hosted, as in
   the app, so the page makes no third-party requests. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/assets/fonts/poppins-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/assets/fonts/poppins-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/assets/fonts/poppins-700-latin.woff2') format('woff2'); }

:root {
  --teal: #0F6B62;
  --teal-dark: #0B524B;
  --teal-50: #EAF4F2;
  --teal-100: #D3E8E4;
  --marigold: #E8A33D;
  --marigold-50: #FDF3E3;
  --cream: #F3E9DA;
  --ivory: #FAF6EF;
  --ink: #16242B;
  --text: #33424A;
  --slate: #6B7789;
  --line: #E6E0D6;
  --white: #FFFFFF;
  --danger: #B3372E;

  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Gujarati/Hindi fall back to the OS's own Indic fonts, which every
     phone and laptop ships; bundling them would triple the page weight. */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 36, 43, .06), 0 1px 1px rgba(22, 36, 43, .04);
  --shadow: 0 12px 32px -12px rgba(22, 36, 43, .18), 0 2px 6px rgba(22, 36, 43, .05);
  --shadow-lg: 0 30px 60px -20px rgba(15, 107, 98, .28), 0 8px 20px -8px rgba(22, 36, 43, .12);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 6px 16px -6px rgba(15, 107, 98, .55); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: none; }
.btn-block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(250, 246, 239, .82);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .88); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-login { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.link-login:hover { color: var(--teal); }

/* The stylised wordmark — values from the brand spec §3, scaled down. */
.brand-word {
  font-family: var(--font-display); font-weight: 600; font-size: 27px; letter-spacing: .3px;
  line-height: 1; color: var(--teal); display: inline-block; margin-top: 2px;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 480px at 88% 10%, rgba(15, 107, 98, .10), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(232, 163, 61, .12), transparent 60%),
    var(--ivory);
  padding: 72px 0 96px; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + 64px);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; }
h1 .accent { color: var(--teal); }
.lede { font-size: 19px; color: var(--text); margin-top: 20px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--slate); }

/* Hero illustration: Ambient conversation → Prescription */
.hero-visual { position: relative; display: flex; flex-direction: column; gap: 12px; }
.mock-convo {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 16px; border: 1px solid rgba(22, 36, 43, .08);
}
.mock-convo-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mock-convo-status { display: flex; align-items: center; gap: 10px; }
.mock-mic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: var(--teal); flex: none; }
.mock-label { display: block; font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.2; }
.mock-sublabel { display: block; font-size: 11.5px; color: var(--slate); font-weight: 500; }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 20px; flex: none; }
.bars i { display: block; width: 3.5px; height: 30%; border-radius: 2px; background: var(--marigold);
  animation: bar 1.1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.9s; } .bars i:nth-child(3) { animation-delay: -.7s; }
.bars i:nth-child(4) { animation-delay: -.5s; } .bars i:nth-child(5) { animation-delay: -.3s; }
.bars i:nth-child(6) { animation-delay: -.15s; } .bars i:nth-child(7) { animation-delay: -.6s; }
@keyframes bar { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (prefers-reduced-motion: reduce) { .bars i { animation: none; height: 60%; } }

.mock-dialogue { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: 13px; line-height: 1.45; }
.mock-turn { padding: 8px 11px; border-radius: 10px; }
.mock-turn-patient { background: var(--ivory); border-left: 3px solid var(--marigold); color: var(--ink); }
.mock-turn-doctor { background: var(--teal-50); border-left: 3px solid var(--teal); color: var(--ink); }
.turn-role {
  display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 2px;
}
.mock-turn-doctor .turn-role { color: var(--teal-dark); }

.mock-flow-badge {
  align-self: center; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--teal-dark);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 4px 12px; border-radius: 999px;
}

.mock-rx {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 22px 24px 18px; border: 1px solid rgba(22, 36, 43, .06); font-size: 13.5px; line-height: 1.48;
  transform: rotate(.8deg);
}
.mock-rx-head { display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 10px; border-bottom: 2px solid var(--teal); }
.mock-rx-head strong { display: block; font-family: var(--font-display); color: var(--teal); font-size: 16px; }
.mock-rx-head span { color: var(--slate); font-size: 12px; }
.mock-patient { margin: 10px 0 4px; font-weight: 600; color: var(--ink); font-size: 13px; }
.mock-section { margin-top: 10px; }
.mock-section em { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate); }
.mock-section p { color: var(--ink); }
.mock-med { display: flex; flex-direction: column; padding: 6px 10px; margin-top: 5px;
  background: var(--ivory); border-radius: 8px; color: var(--ink); }
.mock-med b { color: var(--ink); }
.gu { color: var(--teal-dark); font-size: 12.5px; }
.mock-sign { display: flex; justify-content: flex-end; margin-top: 12px; }
.mock-signed { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); background: #E3EFE9;
  font-weight: 600; font-size: 12px; padding: 4px 11px; border-radius: 999px; }

/* ── How it works ────────────────────────────────────────────────────── */
.steps-band { background: var(--white); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 36px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: var(--teal); background: var(--teal-50); }
.steps h3 { font-size: 18px; margin-bottom: 2px; }
.steps p { font-size: 15.5px; color: var(--slate); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tint { background: var(--ivory); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.015em; }
.section-lede { margin-top: 12px; color: var(--slate); font-size: 18px; }
.section-lede-wide { max-width: 44em; margin-top: -36px; margin-bottom: 36px; }
.kicker { font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--marigold);
  margin-bottom: 10px; filter: saturate(1.1) brightness(.85); }
.section-title { max-width: 20em; margin-bottom: 56px; }

/* Ambient/Dictation mode cards */
.mode-cards { align-items: stretch; }
.mode-card { display: flex; flex-direction: column; }
.mode-card-primary {
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 55%);
  border-color: var(--teal-100);
}
.mode-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mode-badge {
  font-size: 12.5px; font-weight: 600; color: var(--teal-dark);
  background: var(--white); border: 1px solid var(--teal-100);
  padding: 5px 12px; border-radius: 999px;
}
.mode-badge-muted {
  color: #9A6212; background: var(--marigold-50); border-color: rgba(232, 163, 61, .35);
}
.mode-points {
  margin: 18px 0 0; padding-left: 20px; color: var(--ink); font-size: 15px;
  display: flex; flex-direction: column; gap: 6px;
}
.mode-points li::marker { color: var(--teal); }

.video-frame { margin-top: 36px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11; background: var(--ink); }
.video-frame video { width: 100%; height: 100%; display: block; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255, 255, 255, .8); font-weight: 500;
  background: radial-gradient(600px 300px at 50% 40%, #1d4b47, var(--ink)); }
.play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--teal); padding-left: 4px; }

/* Feature rows: copy beside a screenshot, alternating sides. */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; margin-bottom: 88px; }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.feature p { font-size: 17.5px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }
.shot-paper { max-width: 440px; justify-self: center; }

.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; font-weight: 600; margin: 16px 0 8px; }
.card p { font-size: 15.5px; color: var(--text); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal); }
#patients .card-icon { background: var(--marigold-50); color: #B7771B; }

/* ── Demo form ───────────────────────────────────────────────────────── */
.demo-band { background: linear-gradient(135deg, var(--teal) 0%, #0C5A53 100%); color: rgba(255, 255, 255, .9); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo-copy h2 { color: var(--white); }
.demo-copy p { margin-top: 14px; font-size: 18px; }
.demo-copy .waitlist { margin-top: 28px; font-size: 16px; color: rgba(255, 255, 255, .8); }
.demo-copy a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
.demo-form { background: var(--white); border-radius: 20px; padding: 32px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .4); color: var(--text); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease; }
.field input::placeholder { color: #A7AFB9; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; margin-top: 12px; font-size: 15px; font-weight: 500; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--teal); }
.form-note { font-size: 13px; color: var(--slate); }
.demo-form.done .field, .demo-form.done button, .demo-form.done .form-note { display: none; }
.demo-form.done .form-status { font-size: 18px; margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 36px 0; font-size: 15px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 600; }
.footer-brand img { background: var(--cream); border-radius: 8px; padding: 2px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright { font-size: 14px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid, .feature, .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-copy { order: 0; }
  .feature { margin-bottom: 64px; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { max-width: 540px; }
}
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .brand-word { font-size: 23px; }
  .logo img { width: 30px; height: 30px; }
  .header-actions { gap: 14px; }
  .btn-sm { padding: 9px 14px; font-size: 14px; }
  .hero { padding-bottom: 64px; padding-top: calc(var(--header-h) + 40px); }
  .lede { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .mock-rx { padding: 20px 16px 16px; transform: none; }
  .steps { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 36px; }
  .section-lede-wide { margin-top: -20px; margin-bottom: 28px; }
  .feature h3 { font-size: 22px; }
  .cards.two, .cards.four { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .demo-form { padding: 24px 20px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 360px) {
  .link-login { font-size: 14px; }
  .brand-word { font-size: 21px; }
}

/* The history crop is a narrow panel; keep it at its own scale. */
.shot-narrow { max-width: 460px; justify-self: center; }
