:root {
  --purple: #423a56;
  --purple-deep: #2e2733;
  --coral: #f18e90;
  --highlight: #feedda;
  --text: #2e2733;
  --text-muted: #4a4454;
  --border: rgba(46, 39, 51, 0.12);
  --bg: #f7f6f9;
  --surface: #ffffff;
  --radius: 16px;
  --radius-btn: 12px;
  --font: "Poppins", system-ui, sans-serif;
  --max: 1120px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-ui: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-deep);
  text-wrap: balance;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 40rem; }
.text-center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--purple); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4rem; gap: 1rem;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 700; color: var(--purple); text-decoration: none;
}
.brand img { border-radius: 10px; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500;
  color: var(--text-muted); font-size: 0.95rem;
  transition: color var(--duration-ui) var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--purple); }

.nav-toggle {
  display: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.5rem; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-btn);
  font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; font-family: inherit; font-size: 0.95rem;
  transition: transform var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    border-color var(--duration-ui) var(--ease-out);
}

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #e07d7f; color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--purple);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple); color: var(--purple-deep); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; min-height: 2.5rem; }

@media (hover: hover) and (pointer: fine) {
  .btn:active { transform: scale(0.97); }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.875rem; font-weight: 600;
  color: var(--purple); letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero .lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}

.hero-phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.phone-frame {
  aspect-ratio: 9/19;
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.phone-frame--offset {
  transform: translateY(1.25rem);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: fade-up 500ms var(--ease-out) both;
  }
  .hero-phones {
    animation: fade-up 550ms var(--ease-out) 80ms both;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.phone-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.section h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); margin: 0 0 0.75rem; }
.section-intro {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}
.section-head { margin-bottom: 2rem; }
.section-cta-inline { margin-top: 2rem; }

.page-hero { padding: 2.5rem 0 2rem; }
.page-hero--compact { padding-bottom: 1rem; }
.page-hero h1 { margin: 0.5rem 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.lead { font-size: 1.0625rem; color: var(--text-muted); text-wrap: pretty; }

/* Pillars */
.pillar-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem;
}

@media (min-width: 700px) {
  .pillar-list { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

.pillar-list li {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pillar-list strong {
  display: block;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* Feature rows (not identical card grid) */
.feature-rows {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.feature-row {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child { border-bottom: none; }

@media (min-width: 700px) {
  .feature-rows {
    grid-template-columns: 1fr 1fr;
  }
  .feature-row:nth-child(odd) { border-right: 1px solid var(--border); }
  .feature-row:nth-last-child(-n+2) { border-bottom: none; }
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-row p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Quotes */
.quotes {
  display: grid; gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .quotes { grid-template-columns: 1fr 1fr; }
}

.quote {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text);
  font-style: italic;
}

.quote footer {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: normal;
}

/* Clinics band */
.clinics-band {
  background: var(--purple);
  color: #fff;
  padding: 2.5rem 0;
}

.clinics-band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.clinics-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.clinics-band p {
  margin: 0;
  max-width: 32rem;
  opacity: 0.92;
  font-size: 0.95rem;
}

.clinics-band .btn-primary {
  background: #fff;
  color: var(--purple-deep);
  flex-shrink: 0;
}

.clinics-band .btn-primary:hover {
  background: var(--highlight);
  color: var(--purple-deep);
}

/* Cards (inner pages) */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

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

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.store-badge, .store-badges--sm a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  color: var(--purple-deep);
  transition: border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.store-badge:hover { border-color: var(--coral); color: var(--coral); }
.store-badges--sm a { font-size: 0.8rem; padding: 0.4rem 0.75rem; min-height: auto; }

@media (hover: hover) and (pointer: fine) {
  .store-badge:active { transform: scale(0.97); }
}

/* FAQ */
.faq-list { max-width: 48rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0.75rem 0 0; color: var(--text-muted); }

/* Blog */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; font-size: 0.875rem; font-weight: 500;
}
.chip-count { opacity: 0.65; font-size: 0.8rem; }
.blog-list { display: grid; gap: 1.25rem; }
.blog-card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.blog-card h2 { margin: 0.35rem 0; font-size: 1.2rem; }
.blog-card-meta { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.breadcrumb { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }

.article {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.article-header { margin-bottom: 2rem; }
.article-meta { font-size: 0.875rem; color: var(--text-muted); }
.article h2 { font-size: 1.25rem; margin-top: 2rem; }
.article h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.article ul, .article ol { padding-left: 1.25rem; color: var(--text-muted); }
.article li { margin-bottom: 0.5rem; }

.article blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--coral);
  background: color-mix(in srgb, var(--coral) 8%, var(--surface));
  border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
}

/* CTA panels */
.section-cta { padding: 3rem 0 4rem; }
.cta-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  background: var(--purple);
  color: #fff;
}

.cta-panel h2 { color: #fff; margin-top: 0; }
.cta-panel p {
  opacity: 0.92;
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.cta-panel .store-badge {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.28);
  color: #fff;
}

.cta-panel .store-badge:hover {
  background: #fff;
  color: var(--purple-deep);
}

.agent-box {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: rgba(255,255,255,0.88);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

.footer-grid h3 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-brand p { font-size: 0.9rem; max-width: 22rem; opacity: 0.85; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-bottom .store-badges--sm a {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* Forms */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; }

input, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  font: inherit;
  background: var(--surface);
}

input:focus, textarea:focus {
  outline: 2px solid var(--coral);
  outline-offset: 1px;
  border-color: transparent;
}

.captcha-label { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 0.35rem; }

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.checkbox-row label { font-weight: 400; margin: 0; }

.form-status { font-size: 0.875rem; margin-top: 0.5rem; }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }

/* Editorial / SEO long-form */
.content-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .content-layout--aside {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}
.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 42rem;
}
.prose-wide { max-width: 48rem; }
.prose h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.prose h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
  font-weight: 600;
}
.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--purple); font-weight: 500; }
.prose-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.toc {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc a { text-decoration: none; color: var(--purple); }
.takeaway {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: color-mix(in srgb, var(--coral) 10%, var(--surface));
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--coral) 25%, var(--border));
}
.takeaway h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--purple-deep);
}
.takeaway ul { margin: 0; padding-left: 1.2rem; }
.related-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-block h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.related-links a { text-decoration: none; font-weight: 500; }
.page-hero--rich {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero--rich .lead { max-width: 40rem; }
.link-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .link-grid { grid-template-columns: repeat(2, 1fr); }
}
.link-card {
  display: block;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}
.link-card:hover {
  border-color: var(--coral);
  color: inherit;
  transform: translateY(-2px);
}
.link-card strong {
  display: block;
  color: var(--purple-deep);
  margin-bottom: 0.35rem;
}
.link-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .phone-frame--offset { transform: none; }
}
