/* ============================================================
   MediTrack landing page
   Tokens: brand colors mirrored from lib/theme/colors.dart
   Shape lock: buttons = full pill, cards = 20px, chips = 12px
   Theme: light mode by default, toggleable to dark mode
   ============================================================ */

:root,
[data-theme="light"] {
  /* Brand (light) */
  --accent: #2563eb;
  --accent-brand: #3b82f6;
  --accent-deep: #1d4ed8;
  --accent-tint: #eff6ff;
  --accent-tint-2: #dbeafe;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  /* Atmosphere (Light mode balanced with soft luminous depth) */
  --glow-a: rgba(59, 130, 246, 0.17);
  --glow-b: rgba(99, 102, 241, 0.12);
  --glow-c: rgba(56, 189, 248, 0.15);
  --glow-d: rgba(147, 197, 253, 0.35);
  --shadow-soft:
    0 1px 3px rgba(15, 23, 42, 0.04), 0 16px 36px -6px rgba(37, 99, 235, 0.08);
  --shadow-lift:
    0 3px 6px rgba(15, 23, 42, 0.05), 0 24px 56px -8px rgba(37, 99, 235, 0.13);
  --shadow-phone:
    0 28px 65px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.86);
  --nav-border: rgba(15, 23, 42, 0.08);

  --radius-card: 20px;
  --radius-chip: 12px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --accent: #60a5fa;
  --accent-brand: #3b82f6;
  --accent-deep: #3b82f6;
  --accent-tint: rgba(59, 130, 246, 0.12);
  --accent-tint-2: rgba(59, 130, 246, 0.22);
  --bg: #0b0f17;
  --surface: #141c2b;
  --surface-2: #1b263b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;

  --glow-a: rgba(59, 130, 246, 0.16);
  --glow-b: rgba(99, 102, 241, 0.08);
  --glow-c: rgba(56, 189, 248, 0.08);
  --glow-d: rgba(30, 58, 138, 0.2);
  --shadow-soft:
    0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-lift:
    0 4px 8px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.45);
  --shadow-phone:
    0 28px 65px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(15, 22, 36, 0.85);
  --nav-border: rgba(255, 255, 255, 0.1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

/* Light mode subtle multi-point radial mesh on body */
[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -15%, rgba(219, 234, 254, 0.42), transparent 70%),
    radial-gradient(ellipse 55% 35% at 100% 35%, rgba(224, 231, 255, 0.32), transparent 65%),
    radial-gradient(ellipse 55% 35% at 0% 70%, rgba(219, 234, 254, 0.35), transparent 65%);
  background-attachment: fixed;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

em {
  font-style: italic;
  font-weight: inherit;
}

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

/* Fixed atmosphere glow with softly layered orbs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(52rem 36rem at 85% -5%, var(--glow-a), transparent 68%),
    radial-gradient(45rem 32rem at -5% 30%, var(--glow-b), transparent 68%),
    radial-gradient(54rem 38rem at 95% 65%, var(--glow-c), transparent 70%),
    radial-gradient(48rem 34rem at 10% 90%, var(--glow-d), transparent 68%);
}

/* ---------- Buttons (pill system) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn-primary {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .btn-primary {
  background: var(--accent);
  color: #0b0f17;
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.38);
}

.btn-ghost {
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--accent-tint-2);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--accent-tint-2);
}

/* ---------- 1. Floating Pill Navbar (Matching Reference Pic 1) ---------- */

.nav-sentinel {
  position: absolute;
  top: 3rem;
  width: 1px;
  height: 1px;
}

.nav-shell {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  pointer-events: none;
}

.navbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(calc(100% - 2rem), 960px);
  padding: 0.45rem 0.55rem 0.45rem 1.25rem;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-pill);
  box-shadow:
    0 12px 32px -8px rgba(15, 23, 42, 0.08),
    0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  flex-shrink: 0;
}

.nav-link {
  font-size: clamp(0.84rem, 0.95vw, 0.9rem);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Light / Dark Mode Toggle Button */
.theme-toggle-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.theme-toggle-btn:hover {
  transform: scale(1.06);
  background: var(--accent-tint-2);
  color: var(--accent);
}

/* Icon visibility based on theme */
[data-theme="light"] .sun-icon {
  display: none;
}
[data-theme="light"] .moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}

/* Nav CTA: "Get the App" pill button with circle arrow badge */
.btn-nav {
  padding: 0.44rem 0.5rem 0.44rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 0.65rem;
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

[data-theme="dark"] .btn-nav {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-nav:hover {
  transform: translateY(-1px);
}

.btn-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #0f172a;
  flex: none;
}

[data-theme="dark"] .btn-dot {
  background: #0f172a;
  color: #ffffff;
}

.btn-dot svg {
  width: 14px;
  height: 14px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-out);
}

.nav-burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 2.5rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-link {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-theme-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 48px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
}

.mobile-cta {
  align-self: stretch;
}

/* ---------- Eyebrows ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin: 0;
}

.eyebrow-section {
  color: var(--text-muted);
  background: none;
  border: 0;
  padding: 0;
}

/* ---------- 2. Hero Section ---------- */

.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.4rem, 3.6vw, 3rem);
  font-weight: 800;
  margin-top: 1.5rem;
}

.hero-title em {
  color: var(--accent);
}

.hero-sub {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- 2. Interactive App Demo Stage (Matching Reference Pic 2) ---------- */

.hero-stage {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

/* Ambient Blue Halo Glow Behind Phone */
.phone-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 480px;
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.26) 0%,
    rgba(99, 102, 241, 0.14) 40%,
    transparent 72%
  );
  pointer-events: none;
  filter: blur(28px);
  z-index: 0;
  animation: halo-pulse 6s ease-in-out infinite alternate;
}

@keyframes halo-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

/* Floating Badges with gentle floating animation */
.floating-badge {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 16px 36px -8px rgba(15, 23, 42, 0.14),
    0 4px 12px rgba(15, 23, 42, 0.05);
  pointer-events: none;
  backdrop-filter: blur(12px);
}

[data-theme="dark"] .floating-badge {
  background: rgba(22, 30, 46, 0.92);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
}

.badge-tl {
  top: 1.5rem;
  left: -2.8rem;
  animation: float-badge-tl 5s ease-in-out infinite alternate;
}

.badge-br {
  bottom: 2.8rem;
  right: -2.8rem;
  animation: float-badge-br 5.5s ease-in-out infinite alternate;
}

@keyframes float-badge-tl {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes float-badge-br {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(8px) rotate(1deg);
  }
}

.badge-dot {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex: none;
}

.dot-mint {
  background: #10b981;
  color: #ffffff;
}

.dot-blue {
  background: #3b82f6;
  color: #ffffff;
}

.badge-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 2px;
}

/* Phone Mockup Shell */
.phone-shell {
  position: relative;
  z-index: 5;
  width: min(326px, 88vw);
  border-radius: 40px;
  background: #0f172a;
  padding: 10px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.phone-screen {
  border-radius: 32px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

/* Header inside Phone */
.app-header {
  padding: 1.1rem 1.15rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.app-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.app-greeting {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.app-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint-2);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* 4 Tab Buttons */
.phone-tab-bar {
  display: flex;
  gap: 0.35rem;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius-pill);
}

.phone-tab-btn {
  flex: 1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s var(--ease-out);
}

.phone-tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Phone App Body & Panels */
.app-body {
  padding: 1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInPanel 0.25s var(--ease-out);
}

.app-panel.active {
  display: flex;
}

@keyframes fadeInPanel {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Today's Health Progress Card */
.phone-progress-card {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(99, 102, 241, 0.04)
  );
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

[data-theme="dark"] .phone-progress-card {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.12),
    rgba(99, 102, 241, 0.08)
  );
}

.phone-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.pp-eyebrow {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 2px;
}

.phone-progress-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.pp-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.phone-progress-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--surface);
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}

.phone-progress-bar-track {
  width: 100%;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.phone-progress-bar-fill {
  width: 60%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  transition: width 0.6s var(--ease-out);
}

/* Medicine Item Cards */
.med-card-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.med-card-item:hover {
  transform: translateY(-1px);
  border-color: var(--accent-tint-2);
}

.med-card-item.is-taken {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.med-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--border);
}

.med-icon-pink {
  background: #fff1f2;
}
.med-icon-mint {
  background: #ecfdf5;
}
.med-icon-orange {
  background: #f0fdf4;
}

[data-theme="dark"] .med-icon-pink {
  background: rgba(244, 63, 94, 0.15);
}
[data-theme="dark"] .med-icon-mint {
  background: rgba(16, 185, 129, 0.15);
}
[data-theme="dark"] .med-icon-orange {
  background: rgba(56, 189, 248, 0.15);
}

.med-info {
  flex: 1;
  min-width: 0;
}

.med-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.med-dose {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.med-action-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  flex: none;
  transition: all 0.25s var(--ease-out);
}

.med-action-pink {
  background: #ff5277;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 82, 119, 0.3);
}

.med-action-pink.taken {
  background: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  animation: checkPulse 0.4s var(--ease-out);
}

@keyframes checkPulse {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.med-action-mint {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Scanner panel */
.scanner-preview-box {
  background: #0f172a;
  border-radius: 14px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: #94a3b8;
}

.scanner-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.scanner-laser {
  position: absolute;
  left: -20px;
  right: -20px;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

.scanner-caption {
  font-size: 0.72rem;
  font-weight: 700;
  color: #38bdf8;
}

.scanner-extracted-list {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.extracted-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0;
  color: var(--text);
}

.extracted-item .confident {
  color: #10b981;
  font-weight: 700;
}

/* Generics panel */
.phone-generic-lookup {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.generic-search-bar-sim {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.generic-match-card {
  background: var(--surface-2);
  border: 1px solid var(--accent-tint-2);
  border-radius: 14px;
  padding: 0.85rem;
}

.generic-match-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.gh-price {
  color: var(--text-muted);
  text-decoration: line-through;
}

.gh-generic {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0.5rem;
}

.generic-sub-alt {
  display: flex;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  font-size: 0.76rem;
}

.generic-sub-alt strong {
  color: #10b981;
}

/* AI Chat panel */
.phone-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-bubble {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  max-width: 90%;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 2px;
}

/* ---------- Section Headings ---------- */

.section-head {
  max-width: 40rem;
  margin-bottom: 3.5rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- 3. Trust Stats Strip ---------- */

.stats {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .stats {
  background: rgba(20, 28, 43, 0.75);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat-number {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 16rem;
}

/* ---------- 4. Features Bento ---------- */

.features {
  padding: 7rem 0;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.bento-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-chip);
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.bento-cell h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.bento-cell p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.bento-scan {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(150deg, var(--accent-tint), var(--surface) 62%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bento-scan h3 {
  font-size: 1.4rem;
}

.bento-box {
  background-image: radial-gradient(var(--accent-tint-2) 1px, transparent 1px);
  background-size: 14px 14px;
}

.bento-tint {
  background: var(--accent-tint);
  border-color: transparent;
}

.bento-family {
  background: linear-gradient(150deg, var(--accent-tint-2), var(--surface) 78%);
}

.scan-preview {
  margin-top: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 26rem;
}

.scan-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.scan-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-top: 1px solid var(--border);
}

.scan-row:first-of-type {
  border-top: 0;
}

.scan-row i {
  flex: none;
  font-size: 1.05rem;
}

.scan-row.is-ok i {
  color: var(--success);
}

.scan-row.is-edit i {
  color: var(--accent);
}

.scan-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.85rem;
}

/* ---------- 5. Clinical AI Showcase (Screenshot Content Redesigned) ---------- */

.clinical-showcase {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.clinical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.sc-header {
  margin-bottom: 1.5rem;
}

.sc-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.sc-tag-blue {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .sc-tag-blue {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.3);
}

.sc-tag-pink {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.2);
}

[data-theme="dark"] .sc-tag-pink {
  background: rgba(244, 114, 182, 0.15);
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.3);
}

.sc-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.sc-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sc-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sc-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sc-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.42rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.sc-chip:hover {
  background: var(--accent-tint);
  color: var(--text);
  border-color: var(--accent-tint-2);
}

.sc-chip.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.sc-guidance-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s var(--ease-out);
}

.sc-guidance-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.sc-guidance-text strong {
  color: var(--accent);
}

.sc-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--accent-tint-2);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.sc-action-pill i {
  color: #f59e0b;
}

/* Clinical Export Terminal */
.sc-terminal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.35);
}

.sc-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
}

.term-dot-red {
  background: #ef4444;
}
.term-dot-yellow {
  background: #f59e0b;
}
.term-dot-green {
  background: #10b981;
}

.term-title {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
}

.sc-terminal-content {
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #93c5fd;
  white-space: pre-wrap;
  overflow-x: auto;
}

.btn-copy-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn-copy-summary:hover {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent-tint-2);
  transform: translateY(-1px);
}

.btn-copy-summary.is-copied {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .btn-copy-summary.is-copied {
  color: #34d399;
}

/* ---------- 6. Nearby Pharmacy Finder (Google Maps Deep Links) ---------- */

.pharmacy-finder {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.pharmacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.pharmacy-copy h2 {
  margin: 1.25rem 0 1rem;
}

.pharmacy-copy > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

/* City quick filter bar */
.pharmacy-city-bar {
  margin: 1.75rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.city-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.city-chips {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.city-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.city-chip:hover {
  background: var(--accent-tint);
  color: var(--text);
}

.city-chip.active {
  background: var(--accent-deep);
  color: #ffffff;
  border-color: transparent;
}

[data-theme="dark"] .city-chip.active {
  background: var(--accent);
  color: #0b0f17;
}

/* Category cards */
.pharmacy-categories {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pharmacy-cat-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.pharmacy-cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: var(--accent-tint-2);
}

.cat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-chip);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex: none;
}

.cat-icon-red {
  background: #fee2e2;
  color: #dc2626;
}

[data-theme="dark"] .cat-icon-red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.cat-icon-blue {
  background: #eff6ff;
  color: #2563eb;
}

[data-theme="dark"] .cat-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.cat-icon-green {
  background: #ecfdf5;
  color: #059669;
}

[data-theme="dark"] .cat-icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.cat-info {
  flex: 1;
  min-width: 0;
}

.cat-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.cat-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

.cat-pill-red {
  background: #fee2e2;
  color: #b91c1c;
}
[data-theme="dark"] .cat-pill-red {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.cat-pill-blue {
  background: #dbeafe;
  color: #1d4ed8;
}
[data-theme="dark"] .cat-pill-blue {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.cat-pill-green {
  background: #d1fae5;
  color: #047857;
}
[data-theme="dark"] .cat-pill-green {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
}

.cat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.cat-arrow {
  color: var(--text-muted);
  font-size: 1.15rem;
  flex: none;
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.pharmacy-cat-card:hover .cat-arrow {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* Google Maps Visual Preview Card */
.maps-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-lift);
}

.maps-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.maps-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.maps-g-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

/* Simulated Map UI Canvas */
.maps-canvas-box {
  position: relative;
  height: 190px;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-grid-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.map-route-line {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 170px;
  height: 70px;
  border-top: 3px dashed #3b82f6;
  border-right: 3px dashed #3b82f6;
  border-top-right-radius: 30px;
  opacity: 0.75;
}

.map-user-pin {
  position: absolute;
  top: 50px;
  left: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pin-pulse {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: rgba(59, 130, 246, 0.4);
  animation: userPinPulse 2s infinite;
}

@keyframes userPinPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.pin-core {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
  background: #3b82f6;
  border: 2.5px solid #ffffff;
  position: relative;
  z-index: 2;
}

.pin-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
}

.map-dest-pin {
  position: absolute;
  bottom: 45px;
  right: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dest-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: #ef4444;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.dest-tooltip {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Card details */
.maps-card-footer {
  margin-top: 1.25rem;
}

.store-meta {
  margin-bottom: 1.15rem;
}

.store-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.store-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.store-badge-open {
  font-size: 0.7rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .store-badge-open {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.store-details {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.store-distance {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.4rem;
}

.maps-actions {
  margin-bottom: 0.9rem;
}

.maps-privacy-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.maps-privacy-note i {
  color: var(--success);
  flex: none;
}

/* ---------- 7. How It Works (Timeline) ---------- */

.how {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step {
  flex: 1;
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
  border: 1px solid var(--accent-tint-2);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 22rem;
}

.step-connector {
  flex: none;
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin-top: 26px;
}

/* ---------- 6. Savings Spotlight ---------- */

.savings {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.savings-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.savings-copy h2 {
  margin-bottom: 1.25rem;
}

.savings-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.savings-note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: 1.6rem;
  max-width: 26rem;
}

.price-medicine {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.price-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  padding: 0.9rem 1rem;
}

.price-option + .price-option {
  margin-top: 0.6rem;
}

.price-option-generic {
  background: var(--accent-tint);
  border-color: var(--accent-tint-2);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.price-tag-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.price-tag-name.is-generic {
  color: var(--accent);
}

.price-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.price-value.is-generic {
  color: var(--accent);
}

.price-sub {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.price-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--success);
}

.visual-caption {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 7. Pricing ---------- */

.pricing {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.pricing .section-head {
  margin-inline: auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
  align-items: start;
}

.price-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
}

.price-plan-premium {
  background: linear-gradient(160deg, var(--accent-tint), var(--surface) 55%);
  border-color: var(--accent-tint-2);
  box-shadow: var(--shadow-soft);
}

.price-plan h3 {
  font-size: 1.2rem;
}

.plan-price {
  margin: 0.75rem 0 1.5rem;
}

.plan-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan-per {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.plan-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.plan-list i {
  color: var(--success);
  font-size: 1rem;
  transform: translateY(1px);
}

.plan-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- 8. FAQ ---------- */

.faq {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.faq-wrap {
  max-width: 46rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.2rem 1.4rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.faq-q i {
  flex: none;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out);
}

.faq-q[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > p {
  overflow: hidden;
  padding: 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.faq-item.is-open .faq-a > p {
  padding-bottom: 1.3rem;
}

/* ---------- 9. Final CTA & Footer ---------- */

.cta {
  padding: 7rem 0 8rem;
}

.cta-inner {
  text-align: center;
  background: linear-gradient(150deg, var(--accent-tint-2), var(--surface) 72%);
  border: 1px solid var(--accent-tint-2);
  border-radius: calc(var(--radius-card) + 8px);
  padding: 4.5rem 2rem;
  max-width: 52rem;
  margin-inline: auto;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.cta-inner p {
  margin: 0.9rem 0 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s var(--ease-out);
}

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

.footer-legal {
  margin-left: auto;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 26rem;
}

.footer-legal p + p {
  margin-top: 0.3rem;
}

/* ---------- Reveal on Scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.7s var(--ease-out);
  }

  [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive Media Queries ---------- */

@media (max-width: 940px) {
  .navbar {
    gap: 0.45rem;
    padding-inline: 1rem 0.55rem;
  }

  .nav-links {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.45rem;
  }

  .nav-burger {
    display: flex;
    flex: none;
  }

  .floating-badge {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 7rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stage {
    order: 2;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    padding: 2.5rem 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-scan {
    grid-column: auto;
    grid-row: auto;
  }

  .clinical-grid {
    grid-template-columns: 1fr;
  }

  .pharmacy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pharmacy-visual {
    order: 2;
  }

  .steps {
    flex-direction: column;
    gap: 0;
  }

  .step {
    padding-bottom: 2.5rem;
    border-left: 1px solid var(--border);
    padding-left: 1.75rem;
    position: relative;
  }

  .step:last-child {
    padding-bottom: 0;
    border-left: 0;
  }

  .step::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-tint);
  }

  .step:last-child::before {
    display: none;
  }

  .step-icon {
    margin-bottom: 0.9rem;
  }

  .step-connector {
    display: none;
  }

  .savings-grid {
    grid-template-columns: 1fr;
  }

  .savings-visual {
    order: 2;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .phone-shell {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
