:root {
  --bg: #0d2943;
  --bg-soft: #133a5b;
  --surface: #ffffff;
  --surface-2: #f2f8fc;
  --surface-3: #eaf5fb;
  --text: #16314a;
  --muted: #607488;
  --line: #dbe7ef;
  --accent: #1ec7c2;
  --accent-2: #6ee8dd;
  --accent-dark: #0f6f87;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(22, 49, 74, 0.12);
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { max-width: 100%; display: block; }

.shell { width: var(--shell); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: #000; padding: .8rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(22, 49, 74, .05);
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 32px rgba(22, 49, 74, .10);
  border-color: rgba(22, 49, 74, .08);
  padding: 10px 0;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { width: 58px; flex: 0 0 58px; }
.brand-mark img { width: 100%; height: auto; }
.brand-copy { min-width: 0; }
.brand-copy-image img { width: min(100%, 260px); height: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; color: var(--text); }
.main-nav > a:not(.button) { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.main-nav > a:not(.button):hover { color: var(--accent-dark); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(22,49,74,.14); background: rgba(255,255,255,.7); border-radius: 12px; padding: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0e5072, var(--accent));
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 12px 28px rgba(14, 80, 114, .16);
}
.button:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 16px 34px rgba(14, 80, 114, .22); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 13px; }
.button-light { background: #fff; color: #0e5072; }
.button-light:hover { filter: none; background: #f4ffff; }
.text-link { color: var(--accent-dark); text-decoration: none; font-weight: 700; }
.text-link:hover { color: #0a5467; }

.hero {
  position: relative;
  min-height: 900px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 14% 16%, rgba(30, 199, 194, .14) 0, transparent 28%), radial-gradient(circle at 82% 18%, rgba(17, 99, 136, .12) 0, transparent 24%), linear-gradient(180deg, #ffffff 0%, #f7fbff 46%, #edf7fc 100%);
  color: var(--text);
  padding: 145px 0 90px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(to bottom, transparent, rgba(237,247,252,.82)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .78fr 1.22fr; gap: 0; align-items: center; overflow: visible; }
.hero-copy { position: relative; z-index: 4; padding-right: 18px; }
.hero-copy h1 { margin: 16px 0 24px; max-width: 700px; font-size: clamp(48px, 6.2vw, 78px); line-height: .98; letter-spacing: -.055em; }
.hero-copy h1 span { color: var(--accent-dark); }
.hero-lead { max-width: 720px; margin: 0; color: #4d6478; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: 11px; color: var(--accent-dark); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--accent-dark); }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.platforms { display: flex; gap: 9px; margin-top: 28px; flex-wrap: wrap; }
.platforms span { border: 1px solid rgba(15, 111, 135, .12); background: rgba(255,255,255,.9); color: #557089; border-radius: 99px; padding: 7px 11px; font-size: 12px; box-shadow: 0 8px 16px rgba(22,49,74,.04); }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(12px); opacity: .9; }
.hero-glow-a { width: 420px; height: 420px; right: 6%; top: 6%; background: radial-gradient(circle, rgba(30,199,194,.13), transparent 68%); }
.hero-glow-b { width: 520px; height: 520px; left: -140px; bottom: -240px; background: radial-gradient(circle, rgba(13,41,67,.08), transparent 65%); }

.hero-product { position: relative; min-height: 720px; display: flex; align-items: center; justify-content: flex-end; z-index: 1; pointer-events: none; }
.hero-shot-wrap {
  position: relative;
  width: min(1240px, 148%);
  margin-right: -220px;
  margin-left: 0;
  transform: perspective(2200px) rotateY(-17deg) rotateX(5deg) scale(1.10);
  transform-origin: 70% 52%;
}
.hero-app-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 56px 110px rgba(22,49,74,.18), 0 20px 46px rgba(22,49,74,.10);
  backface-visibility: hidden;
}

.positioning { padding: 105px 0; background: #fff; }
.split-copy { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: start; }
.split-copy h2, .section-heading h2, .workflow h2, .cta-card h2 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.03; letter-spacing: -.045em; margin: 16px 0 0; }
.large-copy { font-size: 23px; line-height: 1.48; color: #314457; margin-top: 0; }
.split-copy p:not(.large-copy) { color: var(--muted); font-size: 17px; }

.feature-section { padding: 110px 0; background: linear-gradient(180deg, #f6fbfe 0%, var(--surface-2) 100%); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 0; }
.section-heading p { color: var(--muted); font-size: 18px; max-width: 650px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid #e3edf2; border-radius: 20px; padding: 28px; min-height: 255px; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 8px 24px rgba(22,49,74,.04); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-box { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e2f8f2; color: #0e6d5c; font-size: 12px; font-weight: 900; }
.feature-card h3 { font-size: 21px; line-height: 1.2; margin: 22px 0 11px; letter-spacing: -.02em; }
.feature-card p { margin: 0; color: #667687; font-size: 15px; }

.workflow { padding: 110px 0; background: linear-gradient(135deg, #0d2943 0%, #0f4a69 100%); color: #fff; }
.workflow-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.workflow-copy p { color: #d1e0ea; font-size: 18px; }
.statement { margin-top: 32px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(255,255,255,.05); }
.statement strong { display: block; color: var(--accent-2); margin-bottom: 4px; }
.statement span { color: #d3e1ea; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.timeline li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.04); }
.timeline li > span { width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.10); color: var(--accent-2); border-radius: 12px; font-weight: 900; }
.timeline strong { display: block; font-size: 17px; }
.timeline p { margin: 4px 0 0; color: #c4d4df; font-size: 14px; }

.audience { padding: 110px 0; background: #fff; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.audience-card { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(22,49,74,.04); }
.audience-card span { color: var(--accent-dark); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.audience-card h3 { margin: 14px 0 8px; font-size: 20px; }
.audience-card p { margin: 0; color: var(--muted); font-size: 14px; }

.faq { padding: 110px 0; background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%); }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.accordion details { border-top: 1px solid #d8e6ee; padding: 22px 2px; }
.accordion details:last-child { border-bottom: 1px solid #d8e6ee; }
.accordion summary { cursor: pointer; font-size: 18px; font-weight: 800; list-style: none; padding-right: 24px; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; position: absolute; right: 2px; top: -2px; color: #4f6272; font-size: 24px; font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion p { color: var(--muted); margin: 13px 30px 0 0; }

.cta-section { padding: 80px 0; background: #fff; }
.cta-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; background: linear-gradient(135deg, #0d2943, #0f5e78); color: #fff; border-radius: 30px; padding: 56px; overflow: hidden; position: relative; box-shadow: 0 30px 70px rgba(13,41,67,.18); }
.cta-card::after { content: ""; position: absolute; right: -20px; bottom: -10px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,255,255,.14), rgba(255,255,255,0) 66%); border-radius: 50%; }
.cta-card h2 { font-size: clamp(32px, 4vw, 50px); }
.cta-card p { color: #d0e0e9; font-size: 17px; }
.cta-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.contact-note { margin: 10px 0 0; font-size: 12px !important; color: #a8c0cc !important; }

.site-footer { background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%); color: var(--text); padding: 58px 0 22px; border-top: 1px solid #dce8f0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 50px; }
.footer-brand { margin-bottom: 18px; }
.footer-brand .brand-mark { width: 52px; flex-basis: 52px; }
.footer-brand .brand-copy-image img { width: min(100%, 240px); }
.footer-grid > div:first-child > p { color: #5f7488; max-width: 480px; font-size: 14px; }
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-links a { color: #345069; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #dce8f0; margin-top: 42px; padding-top: 20px; color: #6f8598; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.legal-page { min-height: 100vh; background: var(--surface-2); }
.legal-header { padding: 18px 0; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(22,49,74,.07); backdrop-filter: blur(18px); }
.legal-content { max-width: 850px; padding: 80px 0; }
.legal-content h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.04em; }
.legal-content h2 { margin-top: 42px; }
.legal-content p, .legal-content li { color: #5f6f7d; }
.todo-box { padding: 18px 20px; border-radius: 14px; background: #fff3d8; border: 1px solid #f0d999; color: #765413 !important; }

@media (max-width: 980px) {
  .hero-grid, .split-copy, .workflow-grid, .faq-grid, .cta-card { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero { min-height: auto; padding-top: 125px; }
  .hero-product { min-height: 360px; justify-content: center; }
  .hero-copy { z-index: 3; }
  .hero-shot-wrap { width: 100%; margin-right: 0; margin-left: 0; transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-grid, .faq-grid { gap: 50px; }
  .main-nav { position: absolute; top: 70px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.98); border: 1px solid rgba(22,49,74,.08); box-shadow: 0 18px 50px rgba(22,49,74,.15); }
  .main-nav.open { display: flex; }
  .main-nav .button { width: 100%; }
  .menu-toggle { display: block; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .site-header { padding: 10px 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 46px; flex-basis: 46px; }
  .brand-copy-image img { width: min(100%, 190px); }
  .hero { min-height: auto; padding: 105px 0 62px; }
  .hero-copy { position: relative; z-index: 4; }
.hero-copy h1 { font-size: 46px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-app-shot { max-width: 100%; }
  
  .patient-head { padding: 20px 18px 16px; }
  .care-grid { grid-template-columns: 1fr; }
  .floating-card { display: none; }
  .feature-grid, .audience-grid { grid-template-columns: 1fr; }
  .positioning, .feature-section, .workflow, .audience, .faq { padding: 76px 0; }
  .split-copy { gap: 35px; }
  .large-copy { font-size: 20px; }
  .cta-section { padding: 48px 0; }
  .cta-card { padding: 32px 24px; gap: 34px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Contact / demo request */
.contact-page { background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%); }
.contact-header { position: fixed; }
.contact-hero { position: relative; overflow: hidden; padding: 148px 0 90px; min-height: 100vh; }
.contact-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .88fr 1.12fr; gap: 72px; align-items: start; }
.contact-intro { padding-top: 36px; }
.contact-intro h1 { margin: 16px 0 24px; max-width: 690px; font-size: clamp(44px, 5.3vw, 70px); line-height: 1; letter-spacing: -.05em; }
.contact-lead { max-width: 690px; margin: 0; color: #526a7e; font-size: 19px; line-height: 1.65; }
.contact-points { display: grid; gap: 14px; margin-top: 36px; max-width: 680px; }
.contact-point { display: grid; grid-template-columns: 44px 1fr; gap: 15px; align-items: start; padding: 16px 18px; border: 1px solid #dfeaf1; border-radius: 16px; background: rgba(255,255,255,.75); }
.contact-point > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #e7f8f5; color: #0d6f77; font-size: 11px; font-weight: 900; }
.contact-point strong { display: block; margin: 1px 0 3px; font-size: 15px; }
.contact-point p { margin: 0; color: #667b8e; font-size: 13px; }
.contact-glow { position: absolute; border-radius: 50%; filter: blur(5px); pointer-events: none; }
.contact-glow-a { width: 520px; height: 520px; right: -120px; top: 20px; background: radial-gradient(circle, rgba(30,199,194,.13), transparent 68%); }
.contact-glow-b { width: 600px; height: 600px; left: -260px; bottom: -240px; background: radial-gradient(circle, rgba(15,111,135,.09), transparent 68%); }

.contact-form-card { background: rgba(255,255,255,.96); border: 1px solid #deebf2; border-radius: 28px; padding: 34px; box-shadow: 0 30px 80px rgba(22,49,74,.12); }
.contact-form-head { margin-bottom: 26px; }
.form-kicker { color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.contact-form-head h2 { margin: 8px 0 8px; font-size: 30px; letter-spacing: -.03em; }
.contact-form-head p { margin: 0; color: var(--muted); font-size: 13px; }
.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row-two { grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 7px; }
.contact-form label > span { color: #304d65; font-size: 13px; font-weight: 800; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; border: 1px solid #d7e4ec; border-radius: 12px; background: #fbfdff; color: var(--text); font: inherit; font-size: 14px; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.contact-form input,
.contact-form select { height: 48px; padding: 0 13px; }
.contact-form textarea { min-height: 138px; resize: vertical; padding: 12px 13px; line-height: 1.5; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #57bfc5; box-shadow: 0 0 0 4px rgba(30,199,194,.10); background: #fff; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #93a3b1; }
.form-consent { grid-template-columns: 18px 1fr !important; gap: 10px !important; align-items: start; color: #607488; font-size: 12px; font-weight: 500 !important; }
.form-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #0f7080; }
.form-consent span { font-size: 12px !important; font-weight: 500 !important; color: #607488 !important; }
.contact-submit { width: 100%; margin-top: 2px; cursor: pointer; }
.contact-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.turnstile-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.turnstile-wrap .cf-turnstile { width: 100%; }
.form-status { min-height: 0; padding: 0; border-radius: 12px; font-size: 13px; font-weight: 700; }
.form-status.is-success { padding: 12px 14px; color: #0d6b57; background: #e8f9f4; border: 1px solid #c9eee3; }
.form-status.is-error { padding: 12px 14px; color: #9b3434; background: #fff0ef; border: 1px solid #f1d0cd; }
.form-privacy { margin: -4px 0 0; color: #8293a2; font-size: 11px; text-align: center; }
.form-privacy a { color: #527185; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-footer { margin-top: 0; }

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; gap: 46px; }
  .contact-intro { padding-top: 10px; }
  .contact-hero { padding-top: 125px; }
}

@media (max-width: 680px) {
  .contact-hero { padding: 105px 0 62px; }
  .contact-intro h1 { font-size: 44px; }
  .contact-lead { font-size: 17px; }
  .contact-form-card { padding: 24px 18px; border-radius: 20px; }
  .form-row-two { grid-template-columns: 1fr; }
  .contact-point { padding: 14px; }
}
