:root {
  color-scheme: light;
  --navy: oklch(32.8% 0.068 257.3);
  --blue: oklch(56% 0.078 238);
  --red: oklch(61.2% 0.208 22.2);
  --paper: oklch(97.5% 0.018 137.8);
  --aqua: oklch(85.4% 0.052 199.3);
  --aqua-soft: oklch(94.5% 0.024 199.3);
  --surface: oklch(99.8% 0.002 138);
  --surface-warm: oklch(99.3% 0.006 138);
  --surface-blue: oklch(98.5% 0.008 225);
  --text-strong: oklch(32.8% 0.068 257.3);
  --text-default: oklch(34.5% 0.044 250);
  --text-muted: oklch(51% 0.031 245);
  --rule-soft: oklch(32.8% 0.068 257.3 / 0.14);
  --rule-strong: oklch(32.8% 0.068 257.3 / 0.26);
  --focus: oklch(85.4% 0.052 199.3 / 0.8);
  --success: oklch(53% 0.114 150);
  --sponsored-bg: oklch(86% 0.065 75 / 0.26);
  --sponsored-text: oklch(41% 0.073 75);
  --sponsored-border: oklch(86% 0.065 75 / 0.4);
  --success-text: oklch(42% 0.102 150);
  --success-soft: oklch(53% 0.114 150 / 0.12);
  --success-border: oklch(53% 0.114 150 / 0.25);
  --shadow-soft: 0 18px 60px oklch(32.8% 0.068 257.3 / 0.09);
  --shadow-card: 0 14px 38px oklch(32.8% 0.068 257.3 / 0.075);
  --font-display: "Source Serif 4", Georgia, serif;
  --font-ui: "Sora", "Avenir Next", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --space-page: clamp(1rem, 4vw, 4rem);
  --max: 1328px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--text-default);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.contact-action.call:focus-visible,
.plan-cta:focus-visible,
.card-action.view-profile:focus-visible,
.search-submit:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  padding: 0.75rem 1rem;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: oklch(99.2% 0.006 138 / 0.92);
  border-bottom: 1px solid oklch(32.8% 0.068 257.3 / 0.08);
  backdrop-filter: blur(18px) saturate(1.15);
}

.nav-shell {
  width: min(var(--max), calc(100% - var(--space-page) * 2));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.topbar-wordmark {
  display: block;
  width: clamp(7.35rem, 11.8vw, 10rem);
  height: auto;
  max-height: 2.35rem;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-left: auto;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 520;
}

.nav-links a,
.site-footer nav a {
  border-radius: 999px;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}

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

.nav-cta,
.button-primary,
.button-secondary,
.diagnostic-link,
.doctor-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  font-weight: 650;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.nav-cta,
.button-primary,
.diagnostic-link,
.doctor-action {
  background: linear-gradient(180deg, oklch(36% 0.074 257.3), var(--navy));
  color: var(--paper);
  box-shadow: 0 10px 24px oklch(32.8% 0.068 257.3 / 0.18);
}

.nav-cta {
  min-width: 106px;
  padding: 0 1.2rem;
  font-size: 0.9rem;
}

.hero-section {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(0.75rem, 2vw, 1.5rem);
}

.hero-local-lines {
  display: none;
}

.hero-shell,
.mdr-section,
.site-footer {
  width: min(var(--max), calc(100% - var(--space-page) * 2));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(0.6rem, 2vw, 1rem);
  text-align: center;
}

.hero-copy {
  max-width: 920px;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid oklch(85.4% 0.052 199.3 / 0.5);
  border-radius: 999px;
  background: oklch(85.4% 0.052 199.3 / 0.18);
}

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

h1,
h2 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

h1 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
}

h3 {
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.title-dot {
  color: var(--red);
}

.hero-subtitle {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.search-panel {
  width: min(100%, 920px);
  display: grid;
  gap: 0.5rem;
}

.chat-search {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(7rem, 0.28fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 24px oklch(32.8% 0.068 257.3 / 0.05);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out), border-radius 180ms var(--ease-out);
}

.chat-search:focus-within {
  border-color: oklch(56% 0.078 238 / 0.5);
  box-shadow: 0 0 0 4px oklch(85.4% 0.052 199.3 / 0.45), 0 8px 40px oklch(32.8% 0.068 257.3 / 0.08);
}

.search-icon {
  color: var(--text-muted);
}

.search-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.field-block {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.field-block span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-block input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font-size: 1rem;
  outline: none;
}

.field-main input {
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.field-block input::placeholder {
  color: oklch(48% 0.032 245);
  opacity: 1;
}

.search-submit {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  cursor: pointer;
  box-shadow: 0 4px 14px oklch(32.8% 0.068 257.3 / 0.18);
  transition: transform 160ms var(--ease-expo), box-shadow 160ms var(--ease-expo), background 160ms var(--ease-out);
}

.search-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

.search-feedback {
  display: none;
}

.proof-section {
  padding-block: clamp(0.75rem, 2.5vw, 1.5rem);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.how-it-works {
  display: grid;
  gap: 0.6rem;
}

.how-it-works > h2 {
  max-width: 12ch;
  font-size: clamp(1.3rem, 2.8vw, 2rem);
}

.step-list {
  display: grid;
  gap: 0.4rem;
}

.step-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 0.6rem;
  align-items: start;
  padding: 0.35rem 0;
}

.step-item + .step-item {
  border-top: none;
}

.step-item:last-child {
  border-bottom: none;
}

.step-symbol {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
}

.step-symbol.is-floral {
  background: oklch(61.2% 0.208 22.2 / 0.11);
  color: var(--red);
}

.step-symbol svg {
  width: 1rem;
  height: 1rem;
}

.step-item h3,
.step-item p {
  grid-column: 2;
  margin-bottom: 0;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.conversation-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.conversation-card::before {
  display: none;
}

.conversation-header {
  display: none;
}

.message {
  max-width: 88%;
  margin-top: 0.5rem;
  border-radius: 0.8rem;
  padding: 0.5rem 0.7rem;
  color: var(--text-strong);
  font-size: 0.8rem;
  line-height: 1.35;
}

.user-message {
  margin-left: auto;
  background: oklch(96% 0.015 230);
}

.ai-message {
  border: none;
  padding-left: 0;
  background: transparent;
  color: var(--text-muted);
}

.result-list {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.doctor-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  border-radius: 0.7rem;
  background: transparent;
  padding: 0.4rem 0;
  transition: transform 180ms var(--ease-out);
}

.avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: oklch(85.4% 0.052 199.3 / 0.28);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: -0.04em;
}

.doctor-info {
  min-width: 0;
}

.doctor-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.doctor-topline h3 {
  margin-bottom: 0.1rem;
  font-size: 0.88rem;
}

.doctor-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.available-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.available-badge {
  background: var(--success-soft);
  color: var(--success-text);
}

.doctor-action {
  grid-column: 1 / -1;
  min-height: 30px;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  box-shadow: none;
  background: transparent;
  color: var(--blue);
  border: 1px solid oklch(56% 0.078 238 / 0.2);
}

.doctor-action.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid oklch(56% 0.078 238 / 0.2);
  box-shadow: none;
}

.local-section {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.local-illustration {
  display: none;
}

.local-copy {
  text-align: center;
}

.local-copy p:last-child {
  max-width: 48ch;
  margin: 0.8rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.button-primary,
.button-secondary,
.diagnostic-link {
  min-height: 48px;
  padding: 0 1.15rem;
}

.button-secondary {
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--navy);
}

.site-footer {
  margin-top: clamp(1rem, 2.4vw, 1.9rem);
  padding: clamp(0.35rem, 0.9vw, 0.65rem) 0 0.35rem;
  border-top: 1px solid oklch(32.8% 0.068 257.3 / 0.08);
  background: transparent;
}

.footer-institutional {
  padding-top: 0;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.45rem;
  margin: 0;
  justify-content: center;
}

.footer-line > * {
  position: relative;
}

.footer-line > * + *::before {
  content: "";
  position: absolute;
  left: -0.82rem;
  top: 0.52em;
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 999px;
  background: oklch(32.8% 0.068 257.3 / 0.24);
}

.footer-kicker {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(0.9rem, 1.55vw, 0.98rem);
  font-weight: 500;
  line-height: 1.45;
}

.footer-institutional a {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 580;
  line-height: 1.4;
  transition: color 160ms var(--ease-out);
}

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

.footer-legal {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.4;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover,
  .button-primary:hover,
  .diagnostic-link:hover,
  .doctor-action:hover,
  .search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px oklch(32.8% 0.068 257.3 / 0.22);
  }

  .button-secondary:hover,
  .doctor-action.secondary:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: 0 12px 26px oklch(32.8% 0.068 257.3 / 0.08);
  }

  .doctor-result:hover {
    transform: translateY(-3px);
    border-color: oklch(56% 0.078 238 / 0.34);
    box-shadow: 0 16px 38px oklch(32.8% 0.068 257.3 / 0.1);
  }
}

.search-submit:active,
.nav-cta:active,
.button-primary:active,
.button-secondary:active,
.diagnostic-link:active,
.doctor-action:active {
  transform: translateY(1px) scale(0.99);
}

@media (min-width: 640px) {
  .doctor-result {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .doctor-action {
    grid-column: auto;
  }
}

@media (min-width: 820px) {
  .section-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
 border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 979px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem var(--space-page) 1.2rem;
    z-index: 1;
    background: var(--surface);
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: 0 16px 24px oklch(32.8% 0.068 257.3 / 0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1rem;
  }
}

@media (min-width: 980px) {
  .nav-links {
    display: flex;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .nav-shell {
    min-height: 58px;
  }

  .topbar-wordmark {
    width: clamp(6.8rem, 31vw, 8.1rem);
    max-height: 1.95rem;
  }

  .nav-cta {
    min-width: auto;
    padding: 0 0.95rem;
    min-height: 44px;
  }

  .chat-search {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 1.55rem;
    min-height: 68px;
    padding: 0.65rem 0.7rem 0.65rem 1rem;
    gap: 0.65rem;
  }

  .search-tool {
    display: none;
  }

  .search-submit {
    width: 3.1rem;
    height: 3.1rem;
  }

  .hero-section {
    padding-top: 1rem;
  }

  .hero-shell {
    gap: 0.9rem;
  }

  .hero-copy {
    gap: 0.7rem;
  }

  .search-panel {
    margin-top: 0.25rem;
    margin-bottom: 0.55rem;
  }

  .message {
    max-width: 100%;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-institutional {
    padding-top: 0.1rem;
  }

  .footer-line {
    gap: 0.45rem 1.05rem;
  }

  .footer-line > * + *::before {
    left: -0.6rem;
  }
}

@media (max-width: 430px) {
  :root {
    --space-page: 1rem;
  }

  body {
    font-size: 0.98rem;
  }

  .hero-badge {
    max-width: 100%;
    justify-content: center;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .button-primary,
  .button-secondary,
  .diagnostic-link {
    width: 100%;
  }
}

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

/* Home reference composition: wide editorial hero and compact proof grid. */

.hero-section {
  overflow: hidden;
  padding-top: clamp(1.45rem, 2.8vw, 2.25rem);
  padding-bottom: clamp(1rem, 2.2vw, 1.55rem);
}

.hero-local-lines {
  display: block;
  position: absolute;
  inset: 0 0 auto;
  height: 34rem;
  background: radial-gradient(ellipse at center, oklch(85.4% 0.052 199.3 / 0.18), transparent 58%);
  pointer-events: none;
}

.hero-shell {
  gap: clamp(1rem, 2vw, 1.55rem);
}

.hero-copy {
  gap: clamp(0.75rem, 1.5vw, 1.15rem);
}

.hero-badge {
  padding: 0.43rem 0.9rem;
  background: oklch(85.4% 0.052 199.3 / 0.3);
}

h1 {
  max-width: 900px;
  font-size: clamp(3.05rem, 5.15vw, 4.35rem);
  line-height: 0.97;
}

.title-ai {
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.5;
}

.search-panel {
  width: min(100%, 975px);
  gap: 1rem;
  margin-top: clamp(0.35rem, 1.3vw, 1rem);
  margin-bottom: clamp(0.65rem, 1.8vw, 1.3rem);
}

.chat-search {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 0.8rem;
  min-height: 72px;
  padding: 0.6rem 1rem 0.6rem 1.35rem;
  border-color: oklch(56% 0.078 238 / 0.65);
  box-shadow: 0 16px 38px oklch(32.8% 0.068 257.3 / 0.08);
}

.search-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.field-block input,
.field-main input {
  font-size: 1rem;
}

.field-block input::placeholder {
  color: var(--text-muted);
}

.search-tool {
  display: inline-grid;
  width: 2rem;
  height: 2.5rem;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.search-tool svg {
  width: 1.4rem;
  height: 1.4rem;
}

.search-feedback {
  display: none;
}

.proof-section {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.section-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 3.2rem;
  align-items: start;
}

.how-it-works {
  gap: 0.7rem;
  padding: 1.5rem 0.75rem 0;
}

.how-it-works > h2 {
  max-width: none;
  margin-left: 2.9rem;
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-item {
  display: block;
  min-height: 230px;
  padding: 1.35rem 1.1rem 1.15rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.08);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 8px 20px oklch(32.8% 0.068 257.3 / 0.06);
  text-align: center;
}

.step-symbol {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  background: oklch(85.4% 0.052 199.3 / 0.32);
}

.step-symbol.is-floral {
  background: oklch(61.2% 0.208 22.2 / 0.12);
}

.step-item h3,
.step-item p {
  display: block;
}

.step-item h3 {
  margin-bottom: 0.55rem;
  font-size: 0.87rem;
}

.step-item p {
  font-size: 0.75rem;
  line-height: 1.55;
}

.conversation-card {
  min-height: 420px;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: 1.5rem;
  background: var(--surface);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-card);
}

.conversation-header {
  display: none;
}

.message {
  max-width: 100%;
  margin-top: 0;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
}

.user-message {
  position: relative;
  max-width: 88%;
  padding-right: 5.2rem;
  background: oklch(91% 0.035 230);
}

.conversation-time,
.message-check {
  position: absolute;
  right: 2.9rem;
  bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.message-check {
  right: 1rem;
  color: var(--blue);
}

.ai-message {
  margin-top: 0.65rem;
  padding: 0 0.1rem;
  font-size: 0.78rem;
}

.result-list {
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.doctor-result {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  min-height: 112px;
  padding: 0.8rem;
  border-radius: 1.15rem;
  background: var(--surface);
}

.avatar {
  width: 3.55rem;
  height: 3.55rem;
  background: linear-gradient(135deg, oklch(87% 0.035 50), oklch(72% 0.075 30));
  color: var(--navy);
}

.avatar-photo {
  display: block;
  flex: 0 0 3.55rem;
  object-fit: cover;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.08);
}

.doctor-topline h3 {
  font-size: 1rem;
}

.doctor-info p {
  font-size: 0.72rem;
}

.doctor-action {
  min-width: 7.7rem;
  min-height: 38px;
  border-radius: 0.7rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.72rem;
}

.doctor-action.secondary {
  background: transparent;
  color: var(--navy);
}

.more-results {
  display: flex;
  width: 12rem;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 0.85rem auto 0;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 0.75rem;
  cursor: pointer;
}

.local-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.3rem 0 0.75rem;
}

.local-illustration {
  display: block;
  color: var(--blue);
}

.local-illustration svg {
  width: min(100%, 340px);
  margin: 0 auto;
  stroke: currentColor;
  stroke-width: 2;
}

.local-illustration .flower {
  color: var(--red);
  fill: var(--red);
  stroke: var(--red);
}

.local-copy {
  text-align: left;
}

.local-copy h2 {
  font-size: 1.8rem;
}

.local-copy p:last-child {
  margin: 0.35rem 0 0;
  font-size: 1rem;
}

@media (max-width: 760px) {
  /* Final mobile overrides: the home composition is declared later in this file. */
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .how-it-works {
    padding: 0;
  }

  .conversation-card {
    min-height: 0;
  }

  .chat-search {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .search-tool {
    display: none;
  }

  .how-it-works > h2 {
    margin-left: 0;
  }

  .chat-search {
    min-height: 68px;
    padding-left: 1rem;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-item {
    min-height: 0;
  }

  .local-section {
    grid-template-columns: 1fr;
  }

  .local-copy {
    text-align: center;
  }

  .doctor-result {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .doctor-action {
    grid-column: 2;
    justify-self: start;
  }
}

/* ============================================================
   Novos componentes — páginas internas (diretório, perfil, sou-médico, pro)
   ============================================================ */

/* Página genérica — mdr-section já existe, reutilizada */

/* --- Diretório: /medicos/joinville.html --- */

.directory-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.directory-hero h1 {
  margin-bottom: 0.5rem;
}

.directory-subtitle {
  max-width: 56ch;
  margin: 0 auto clamp(1.2rem, 3vw, 2rem);
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}

.directory-search {
  width: min(100%, 720px);
  margin: 0 auto;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.14);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 580;
  cursor: pointer;
  transition: border-color 160ms var(--ease-out), background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.filter-chip:not([aria-pressed="true"]):not(.is-active):hover {
  border-color: var(--blue);
  color: var(--blue);
}

.filter-chip[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.results-section {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.results-header {
  margin-bottom: 1.2rem;
}

.results-count {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 580;
}

.doctor-card-list {
  display: grid;
  gap: 1rem;
}

.doctor-card-full {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(32.8% 0.068 257.3 / 0.04);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.doctor-card-full:hover {
  transform: translateY(-2px);
  border-color: oklch(56% 0.078 238 / 0.3);
  box-shadow: 0 12px 32px oklch(32.8% 0.068 257.3 / 0.08);
}

.doctor-card-full.is-sponsored {
  border-color: var(--sponsored-border);
}

.sponsored-label {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--sponsored-bg);
  color: var(--sponsored-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doctor-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.doctor-card-info {
  min-width: 0;
}

.doctor-card-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
}

.doctor-card-topline h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doctor-specialty,
.doctor-location,
.doctor-care,
.doctor-insurance {
  margin: 0.15rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.doctor-specialty {
  color: var(--text-strong);
  font-weight: 520;
}

.avatar-initials {
  display: grid;
  width: 3.55rem;
  height: 3.55rem;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, oklch(85.4% 0.052 199.3 / 0.4), oklch(56% 0.078 238 / 0.2));
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.doctor-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-left: calc(3.55rem + 1rem);
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.card-action svg {
  width: 1.1rem;
  height: 1.1rem;
}

.card-action.whatsapp {
  background: var(--success-soft);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.card-action.call {
  background: transparent;
  color: var(--blue);
  border: 1px solid oklch(56% 0.078 238 / 0.2);
}

.card-action.view-profile {
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--navy);
}

.card-action:hover {
  transform: translateY(-1px);
}

.card-action.view-profile:hover {
  box-shadow: 0 8px 20px oklch(32.8% 0.068 257.3 / 0.18);
}

.doctor-update-link {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.doctor-update-link a {
  color: var(--blue);
  font-weight: 580;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ */
.directory-faq {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.directory-faq h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem 1.2rem;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 0.95rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.faq-item a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Aviso médico — reutilizável (see .mdr-disclaimer for shared styles) */

/* --- Perfil: /medicos/mariana-andrade.html --- */

.mdr-doctor-hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 580;
  text-decoration: none;
}

.breadcrumb:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doctor-hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
}

.doctor-hero-photo {
  width: clamp(5rem, 12vw, 7rem);
  height: clamp(5rem, 12vw, 7rem);
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid oklch(85.4% 0.052 199.3 / 0.5);
}

.doctor-hero-info h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.doctor-hero-credentials {
  margin: 0.2rem 0;
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 520;
}

.doctor-hero-location,
.doctor-hero-care {
  margin: 0.15rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Trust strip */
.mdr-trust-strip {
  padding-block: clamp(0.8rem, 2vw, 1.2rem);
}

.trust-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-badge-large {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Contact actions */
.mdr-contact-actions {
  padding-block: clamp(0.8rem, 2vw, 1.2rem);
}

.contact-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.2rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.contact-action svg {
  width: 1.2rem;
  height: 1.2rem;
}

.contact-action.whatsapp {
  background: var(--success-soft);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}

.contact-action.call {
  background: linear-gradient(180deg, oklch(36% 0.074 257.3), var(--navy));
  color: var(--paper);
  box-shadow: 0 6px 18px oklch(32.8% 0.068 257.3 / 0.15);
}

.contact-action.website {
  background: transparent;
  color: var(--blue);
  border: 1px solid oklch(56% 0.078 238 / 0.25);
}

.contact-action.map {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--rule-strong);
}

.contact-action:hover {
  transform: translateY(-2px);
}

.contact-action.call:hover {
  box-shadow: 0 12px 28px oklch(32.8% 0.068 257.3 / 0.22);
}

/* Location card */
.mdr-location-card {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mdr-location-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

.location-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(32.8% 0.068 257.3 / 0.04);
}

.location-info p {
  margin: 0.2rem 0;
}

.location-name {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1rem;
}

.location-address {
  color: var(--text-default);
  font-size: 0.92rem;
}

.location-city {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.location-hours {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.location-map svg {
  width: 100%;
  height: auto;
  max-height: 200px;
}

/* Clinical focus */
.mdr-clinical-focus {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mdr-clinical-focus h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.clinical-focus-bio {
  max-width: 65ch;
  margin-bottom: 1rem;
  color: var(--text-default);
  font-size: 0.95rem;
  line-height: 1.6;
}

.clinical-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinical-focus-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 520;
}

/* Credentials */
.mdr-credential-list {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mdr-credential-list h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 1rem;
}

.credential-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.credential-item {
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.credential-item:last-child {
  border-bottom: none;
}

.credential-item dt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.credential-item dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.92rem;
}

/* SEO section */
.mdr-seo-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mdr-seo-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.mdr-seo-section p {
  max-width: 70ch;
  margin-bottom: 0.8rem;
  color: var(--text-default);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Insurance */
.mdr-insurance {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.mdr-insurance h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0.8rem;
}

.insurance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
}

.insurance-list li {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid oklch(56% 0.078 238 / 0.2);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 520;
}

.insurance-note {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Disclaimer */
.mdr-disclaimer,
.medical-notice {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: 1.2rem 1.4rem;
  border: 1px solid oklch(85.4% 0.052 199.3 / 0.4);
  border-radius: var(--radius-md);
  background: var(--aqua-soft);
}

.mdr-disclaimer p,
.medical-notice p {
  margin: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.mdr-disclaimer .disclaimer-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Claim CTA */
.profile-claim-cta {
  padding-top: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.claim-text {
  margin-bottom: 1rem;
  color: var(--text-default);
  font-size: 0.92rem;
}

/* --- Sou médico: /sou-medico.html --- */

.sou-medico-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.sou-medico-hero h1 {
  max-width: 18ch;
  margin: 0.5rem auto 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.sou-medico-subtitle {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.sou-medico-blocks {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.benefit-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
}

.benefit-block {
  display: grid;
  gap: 0.6rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(32.8% 0.068 257.3 / 0.04);
}

.benefit-number {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.benefit-block h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.benefit-block p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sou-medico-cta {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.doctor-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

/* --- Medário Pro: /medario-pro.html --- */

.pro-hero {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.pro-hero h1 {
  max-width: 20ch;
  margin: 0.5rem auto 0.8rem;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.pro-subtitle {
  max-width: 58ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.pro-plans {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.2rem;
}

.plan-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.6rem 1.4rem;
  border: 1px solid oklch(32.8% 0.068 257.3 / 0.1);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 4px 20px oklch(32.8% 0.068 257.3 / 0.04);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px oklch(32.8% 0.068 257.3 / 0.08);
}

.plan-featured {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: 0 8px 28px oklch(56% 0.078 238 / 0.12);
}

.plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}

.plan-price {
  margin: 0;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
}

.plan-features {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
  padding: 0;
  list-style: none;
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.plan-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: var(--success);
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 0.8rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.plan-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px oklch(32.8% 0.068 257.3 / 0.2);
}

/* Diagnóstico gratuito */
.pro-diagnostic {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.pro-diagnostic h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}

.pro-diagnostic p {
  max-width: 56ch;
  margin: 0 auto 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* --- Responsivo: páginas internas --- */

@media (max-width: 760px) {
  .doctor-card-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .doctor-card-actions {
    padding-left: 0;
  }

  .location-card-body {
    grid-template-columns: 1fr;
  }

  .credential-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .doctor-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .doctor-hero-info {
    text-align: center;
  }

  .contact-actions-row {
    flex-direction: column;
  }

  .contact-action {
    justify-content: center;
  }

  .doctor-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .doctor-cta-row .button-primary,
  .doctor-cta-row .button-secondary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .filter-chips {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-chip {
    justify-content: center;
  }

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

/* ============================================================
   New components: user menu, modal, consent banner, toast
   ============================================================ */

/* ---------- User avatar / dropdown ---------- */
.nav-user {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, oklch(36% 0.074 257.3), var(--navy));
  color: var(--paper);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.user-avatar-btn:active {
  transform: scale(0.96);
}

.user-avatar-initial {
  line-height: 1;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: var(--aqua-soft);
  color: var(--blue);
}

/* ---------- Modal overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-page);
  background: oklch(32.8% 0.068 257.3 / 0.45);
  backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px oklch(32.8% 0.068 257.3 / 0.22);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}

.modal-close:hover {
  background: var(--aqua-soft);
  color: var(--text-strong);
}

.modal-step[hidden] {
  display: none;
}

.modal-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--text-strong);
}

/* ---------- Bifurcation choices ---------- */
.modal-bifurcation {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-choice {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  background: var(--surface-warm);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.modal-choice strong {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-strong);
}

.modal-choice span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-choice:hover {
  transform: translateY(-2px);
  border-color: oklch(56% 0.078 238 / 0.34);
  box-shadow: 0 12px 28px oklch(32.8% 0.068 257.3 / 0.1);
}

/* ---------- Auth form fields ---------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-default);
}

.field-row input,
.field-row select {
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.field-row input:focus,
.field-row select:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus);
}

.field-check {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.field-check input {
  width: 18px;
  height: 18px;
}

.modal-submit {
  margin-top: 0.4rem;
  width: 100%;
}

.modal-message {
  margin: 0 0 0.8rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success-text);
  font-size: 0.85rem;
  font-weight: 580;
}

.modal-message[data-error="true"] {
  background: oklch(61.2% 0.208 22.2 / 0.1);
  border-color: oklch(61.2% 0.208 22.2 / 0.3);
  color: oklch(45% 0.18 22.2);
}

.modal-switch {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-switch a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Consent banner ---------- */
.consent-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-md);
  background: var(--surface-blue);
  width: min(var(--max), calc(100% - var(--space-page) * 2));
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-default);
}

.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.consent-accept,
.consent-decline {
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid var(--rule-soft);
  border-radius: 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.consent-accept {
  background: linear-gradient(180deg, oklch(36% 0.074 257.3), var(--navy));
  color: var(--paper);
  border-color: transparent;
}

.consent-accept:hover {
  transform: translateY(-1px);
}

.consent-decline {
  background: var(--surface);
  color: var(--text-default);
}

.consent-decline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 520;
  box-shadow: 0 18px 40px oklch(32.8% 0.068 257.3 / 0.25);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.is-error {
  background: var(--red);
  color: var(--paper);
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 760px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-actions {
    flex-direction: column;
  }

  .consent-accept,
  .consent-decline {
    width: 100%;
  }
}

/* ============================================================
   Account page (conta.html) — preferences form, interests, danger zone
   ============================================================ */

.conta-hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.conta-hero h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.conta-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.conta-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.conta-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
}

.conta-help {
  max-width: 60ch;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Preferences form fields (full-width, stacked) */
.conta-form {
  display: grid;
  gap: 1.1rem;
  max-width: 520px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-default);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rule-soft);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text-strong);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.form-input:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--focus);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-default);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

.conta-form .button-primary {
  margin-top: 0.4rem;
  min-height: 48px;
}

/* Interests list — pills like clinical-focus-list */
.interests-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.interests-empty {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.interest-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: var(--aqua-soft);
  color: var(--navy);
  font-size: 0.82rem;
}

.interest-pill-label {
  font-weight: 650;
  text-transform: capitalize;
}

.interest-pill-count {
  font-size: 0.74rem;
  font-weight: 580;
  color: var(--blue);
}

.interest-pill-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Privacy action buttons */
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

/* Danger zone — red-bordered box */
.danger-zone {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 2px solid var(--red);
  border-radius: var(--radius-md);
  background: oklch(61.2% 0.208 22.2 / 0.06);
}

.danger-zone h3 {
  margin: 0 0 0.5rem;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 650;
}

.danger-zone p {
  margin: 0 0 1rem;
  max-width: 60ch;
  color: var(--text-default);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Danger button — red, used for account deletion */
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}

.button-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px oklch(61.2% 0.208 22.2 / 0.28);
}

.button-danger:active {
  transform: translateY(1px) scale(0.99);
}

/* Modal actions row inside confirmation dialog */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.modal-actions .button-danger {
  flex: 1 1 auto;
}

/* ============================================================
   Legal pages (privacidade.html, termos.html)
   ============================================================ */

.legal-article {
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.legal-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.legal-header h1 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Aviso box — styled like medical-notice / mdr-disclaimer */
.legal-aviso {
  margin-bottom: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid oklch(85.4% 0.052 199.3 / 0.4);
  border-radius: var(--radius-md);
  background: var(--aqua-soft);
}

.legal-aviso p {
  margin: 0;
  color: var(--text-default);
  font-size: 0.85rem;
  line-height: 1.55;
}

.legal-aviso strong {
  color: var(--navy);
  letter-spacing: 0.03em;
}

.legal-section {
  margin-top: 1.5rem;
}

.legal-section:first-of-type {
  margin-top: 0;
}

.legal-section h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.legal-section h3 {
  margin: 1rem 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
}

.legal-section p {
  margin-bottom: 0.7rem;
  color: var(--text-default);
  font-size: 0.92rem;
  line-height: 1.65;
}

.legal-section a {
  color: var(--blue);
  font-weight: 580;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--navy);
}

/* ============================================================
   Responsive — account page
   ============================================================ */

@media (max-width: 760px) {
  .conta-form {
    max-width: 100%;
  }

  .interest-pill {
    flex-direction: column;
    gap: 0.2rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button-danger {
    width: 100%;
  }
}
