:root {
  --ink: #17314a;
  --ink-soft: #47647b;
  --feature-icon-color: #667085;
  --blue: #166d8f;
  --blue-dark: #0f536f;
  --blue-deep: #123d59;
  --teal: #5ea5a0;
  --teal-pale: #e8f6f4;
  --sky: #eaf5f9;
  --cream: #fbfcfa;
  --white: #ffffff;
  --line: #dce8ed;
  --shadow: 0 18px 48px rgba(18, 61, 89, 0.11);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--blue); }

button, a.button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(220, 232, 237, 0.85);
  background: rgba(251, 252, 250, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo img { width: 172px; height: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.desktop-nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-nav a:hover { color: var(--blue); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-button svg { width: 22px; margin: auto; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-nav.open { display: block; }

.mobile-nav-inner {
  display: grid;
  gap: 4px;
  padding: 12px 0 18px;
}

.mobile-nav a {
  padding: 10px 4px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 9px 22px rgba(22, 109, 143, 0.18);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--blue-dark);
  background: var(--sky);
}

.button.disabled,
.button[aria-disabled="true"] {
  opacity: 0.86;
  cursor: default;
  pointer-events: none;
}

.button.small { min-height: 40px; padding: 8px 14px; font-size: 0.9rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -90px -120px auto auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(94, 165, 160, 0.25), rgba(94, 165, 160, 0));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: var(--teal);
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
  letter-spacing: -0.06em;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions, .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  max-width: 590px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.preview-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.preview-card::after {
  content: "App preview";
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-card img { border-radius: 21px; }

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
}

.trust-grid h2 { font-size: clamp(1.4rem, 3vw, 2rem); }

.trust-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.section { padding: 88px 0; }
.section.compact { padding: 68px 0; }
.section.tint { background: var(--sky); }
.section.teal-tint { background: var(--teal-pale); }

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 61, 89, 0.055);
}

.card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 16px;
  color: var(--feature-icon-color);
  background: var(--sky);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.feature-icon--medications svg {
  width: 28px;
  height: 28px;
}

.feature-icon--medications img {
  width: 28px;
  height: 28px;
  display: block;
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  font-weight: 850;
}

.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 30px;
  align-items: center;
}

.ai-examples {
  display: grid;
  gap: 10px;
}

.quote-card {
  padding: 16px 18px;
  border: 1px solid rgba(94, 165, 160, 0.45);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 650;
}

.callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.plan-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 61, 89, 0.06);
}

.plan-card.featured {
  border-color: rgba(22, 109, 143, 0.48);
  background: linear-gradient(180deg, rgba(234, 245, 249, 0.96), rgba(232, 246, 244, 0.78));
  box-shadow: 0 18px 40px rgba(18, 61, 89, 0.12);
}

.plan-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.plan-label {
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(22, 109, 143, 0.18);
  border-radius: 999px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 800;
}

.plan-card h3 { margin-top: 8px; font-size: 1.8rem; }

.plan-card p { margin: 8px 0 0; color: var(--ink-soft); }

.plan-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.plan-price-amount {
  color: var(--ink);
  font-size: clamp(2.65rem, 4vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.plan-price-period {
  padding-bottom: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: lowercase;
}

.plan-yearly,
.plan-savings,
.plan-supporting-copy,
.plan-legal-note {
  margin-top: 6px;
  color: var(--ink-soft);
}

.plan-yearly {
  font-size: 1rem;
}

.plan-savings {
  font-weight: 800;
}

.plan-supporting-copy {
  margin-top: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 900;
}

.plan-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.plan-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.trust-points {
  display: grid;
  gap: 14px;
}

.trust-point {
  padding: 18px;
  border: 1px solid rgba(94, 165, 160, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-point p { margin: 6px 0 0; color: var(--ink-soft); }

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
}

.faq-list summary {
  padding: 17px 18px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 780;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
}

.cta {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border-radius: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.cta::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta h2, .cta p { position: relative; z-index: 1; color: var(--white); }
.cta p { max-width: 700px; margin-bottom: 0; }
.cta-actions { position: relative; z-index: 1; }
.cta .button { color: var(--blue-deep); background: var(--white); }

.site-footer {
  margin-top: 80px;
  padding: 46px 0 22px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
}

.footer-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.footer-copy {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.footer-links {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 8px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.footer-links a:hover { color: var(--blue); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}

.footer-social svg {
  width: 22px;
  height: 22px;
  max-width: 24px;
  max-height: 24px;
  flex: 0 0 auto;
}

.footer-social span {
  line-height: 1.2;
}

.contact-list {
  display: grid;
  gap: 6px;
}

.contact-list a {
  width: fit-content;
}

.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.page-hero {
  padding: 68px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--sky);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.prose {
  max-width: 880px;
  padding: 46px 0 0;
}

.prose h2 {
  margin-top: 38px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin-top: 24px;
  font-size: 1.15rem;
}

.prose p, .prose li {
  color: var(--ink-soft);
}

.prose ul, .prose ol { padding-left: 22px; }

.prose .note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sky);
}

.prose .contact-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(18, 61, 89, 0.06);
}

.prose .contact-panel p:last-child { margin-bottom: 0; }

.toc {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.toc strong { color: var(--ink); }
.toc a { width: fit-content; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--blue-dark);
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover { color: var(--blue); }

.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  text-align: center;
}

.not-found-inner { max-width: 580px; }
.not-found p { color: var(--ink-soft); }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-grid; }
  .hero { padding-top: 62px; }
  .hero-grid,
  .trust-grid,
  .ai-grid,
  .privacy-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 34px; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-links { justify-items: start; }
}

@media (max-width: 680px) {
  .section { padding: 68px 0; }
  .section.compact { padding: 56px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta { padding: 30px 24px; border-radius: 22px; }
  .preview-card { padding: 12px; border-radius: 24px; }
  .preview-card img { border-radius: 15px; }
}
