@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;1,300&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sage: #3D6B5A;
  --sage-lt: #EAF2EE;
  --sage-md: #C2D9CF;
  --slate: #2C3E50;
  --mist: #F5F7F6;
  --fog: #E8EDEB;
  --white: #FFFFFF;
  --ink: #1A2B22;
  --muted: #6B8078;
  --rule: #D4DDD9;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--mist);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

nav {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  min-width: 220px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 400;
}

.nav-dropdown-item:hover {
  background: var(--fog);
}

.nav-dropdown > .nav-link::after {
  content: ' ↓';
  font-size: 10px;
  opacity: 0.5;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--sage);
  text-decoration: none;
}

.logo span { color: var(--ink); }

.nav-right { display: flex; gap: 10px; align-items: center; }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--sage);
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.nav-cta:hover { background: var(--ink); }

.hero-chat { background: var(--white); border-bottom: 1px solid var(--rule); }

.hero-left {
  padding: 52px 32px 28px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.hero-left h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 14px;
}

.hero-left h1 em { font-style: italic; color: var(--sage); }

.hero-left p {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-right {
  padding: 24px 32px 32px;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
}

.chat-window {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-lt);
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: white;
  font-weight: 300;
  flex-shrink: 0;
}

.ai-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ai-status {
  font-size: 11px;
  color: var(--sage);
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-block;
  margin-right: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-steps-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--mist);
}

.hero-step-cell {
  padding: 12px 20px;
  border-right: 1px solid var(--rule);
}

.hero-step-cell-last {
  border-right: none;
}

.hero-step-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.hero-step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.chat-messages {
  padding: 20px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg { display: flex; gap: 10px; animation: fadeIn 0.3s ease; }
.msg.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fog);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.msg.ai .msg-avatar { background: var(--sage); color: white; }

.msg-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.msg.ai .msg-bubble { background: var(--fog); border-bottom-left-radius: 4px; }
.msg.user .msg-bubble { background: var(--sage); color: white; border-bottom-right-radius: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }

.chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--sage-md);
  color: var(--sage);
  background: var(--sage-lt);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.chip:hover { background: var(--sage); color: white; }

.nuvi-language-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.nuvi-language-select {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font: inherit;
}

.nuvi-loading {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  margin-right: 6px;
}

.nuvi-loading span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: nuviBounce 1.2s infinite ease-in-out;
}

.nuvi-loading span:nth-child(2) { animation-delay: 0.15s; }
.nuvi-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes nuviBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.nuvi-doctor-cards-wrap { align-items: flex-start; }
.nuvi-doctor-cards { display: flex; flex-direction: column; gap: 10px; max-width: 92%; }

.nuvi-doctor-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nuvi-doctor-card:hover {
  border-color: var(--sage);
  box-shadow: 0 2px 12px rgba(61, 107, 90, 0.12);
}

.nuvi-doctor-card.recommended { border-color: var(--sage); background: var(--sage-lt); }

.nuvi-rec-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  margin-bottom: 8px;
}

.nuvi-doctor-card-top { display: flex; gap: 12px; align-items: flex-start; }

.nuvi-doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.nuvi-doctor-name { font-size: 14px; font-weight: 600; }
.nuvi-doctor-spec { font-size: 12px; color: var(--muted); }
.nuvi-doctor-loc { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nuvi-match-score { text-align: center; margin-left: auto; flex-shrink: 0; }
.nuvi-match-num { font-size: 18px; font-weight: 600; color: var(--sage); }
.nuvi-match-label { font-size: 9px; text-transform: uppercase; color: var(--muted); }

.nuvi-doctor-reason { font-size: 12px; font-style: italic; color: var(--muted); margin-top: 8px; }
.nuvi-doctor-tag { font-size: 11px; color: var(--sage); margin-top: 6px; font-weight: 500; }

.nuvi-phone-link {
  display: inline-block;
  padding: 10px 16px;
  background: var(--sage);
  color: white !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin-top: 4px;
}

.nuvi-phone-link:hover { background: #2f5648; }

.nuvi-office-hours { font-size: 12px; color: var(--muted); margin-top: 8px; }

.chat-input-area {
  padding: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: var(--white);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
  background: var(--mist);
  min-height: 42px;
  max-height: 120px;
}

.chat-input:focus { border-color: var(--sage); background: white; }
.chat-input::placeholder { color: var(--muted); }

.send-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sage);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.send-btn:hover { background: var(--ink); }

.send-btn:disabled { background: var(--fog); cursor: not-allowed; }
.send-btn svg { width: 18px; height: 18px; fill: white; }

.disclaimer {
  padding: 8px 32px 0;
  font-size: 11px;
  color: var(--muted);
}

.disclaimer-banner {
  background: #FFF8E7;
  border: 1px solid #F0D080;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12px;
  color: #7D5A00;
  line-height: 1.5;
  margin: 8px 32px 0;
}

.main {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 20px 60px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
}

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.card h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}

.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

.field-input, .field-select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  color: var(--ink);
  background: var(--mist);
}

.field-input:focus, .field-select:focus {
  border-color: var(--sage);
  background: white;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 10px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-bottom: 10px;
}

.btn-primary:hover { background: var(--ink); }

.btn-secondary {
  width: 100%;
  padding: 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.btn-back:hover { color: var(--ink); }

.provider-list { display: flex; flex-direction: column; gap: 14px; }

.provider-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.provider-card.recommended { border-color: var(--sage); border-width: 2px; }

.rec-badge {
  position: absolute;
  top: -1px;
  left: 20px;
  background: var(--sage);
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
}

.provider-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.provider-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  background: var(--sage-lt);
  color: var(--sage);
  flex-shrink: 0;
}

.provider-info { flex: 1; }

.provider-name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 2px;
}

.provider-spec { font-size: 13px; color: var(--sage); font-weight: 500; margin-bottom: 6px; }
.provider-meta { font-size: 12px; color: var(--muted); }

.match-score { text-align: center; flex-shrink: 0; }
.match-num { font-size: 22px; font-weight: 600; color: var(--sage); }
.match-label { font-size: 9px; color: var(--muted); text-transform: uppercase; }

.provider-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--fog);
}

.cost-tag {
  background: var(--sage-lt);
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

.rating-tag { font-size: 12px; color: var(--muted); }

/* ── Review form ── */
.provider-review {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--fog);
}

.review-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.review-toggle:hover,
.review-toggle.is-active {
  background: var(--sage-lt);
  border-color: var(--sage-md);
  color: var(--ink);
}

.review-toggle-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.review-panel {
  margin-top: 14px;
  padding: 18px;
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 12px;
}

.review-panel-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.review-panel-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.review-field {
  margin-bottom: 14px;
}

.review-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.review-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.review-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(61, 107, 90, 0.12);
}

.review-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B8078' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.review-textarea {
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}

.review-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-review-submit {
  flex: 1;
  min-width: 140px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: var(--sage);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-review-submit:hover:not(:disabled) {
  background: var(--ink);
}

.btn-review-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-review-cancel {
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-review-cancel:hover {
  color: var(--ink);
  border-color: var(--sage-md);
}

.review-msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.review-msg-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.review-msg-success {
  background: #e8f5ee;
  color: #1f5c41;
  border: 1px solid #b8dcc8;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}

.modal p { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }

.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-actions { display: flex; gap: 10px; margin-top: 16px; }

.modal-actions .btn-primary,
.modal-actions .btn-secondary { margin: 0; }

.alert-error {
  background: #FEF3F2;
  border: 1px solid #FECDCA;
  color: #B42318;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

.auth-card .alert-error,
.register-form-error {
  display: block;
}

.register-form-error {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

footer.site-footer {
  background: #0A1628;
  color: rgba(255, 255, 255, 0.3);
  padding: 28px 32px;
  font-size: 12px;
}

.site-footer-rich .site-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-brand {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

.site-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
}

/* ── Homepage marketing sections ── */
.hp-stats {
  background: #0A1628;
  padding: 36px 32px;
}

.hp-stats-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.hp-stat {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hp-stat:last-child {
  border-right: none;
}

.hp-stat-num {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 300;
  color: #7FB3F0;
  margin-bottom: 6px;
}

.hp-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
}

.hp-insurance-bar {
  background: var(--white);
  padding: 40px 32px;
  border-bottom: 1px solid var(--rule);
}

.hp-insurance-inner {
  max-width: 1040px;
  margin: 0 auto;
  text-align: center;
}

.hp-insurance-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hp-insurance-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hp-ins-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 32px;
  border-radius: 6px;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hp-ins-aetna { background: #0066CC; font-size: 11px; }
.hp-ins-cigna { background: #006DB7; }
.hp-ins-united { background: #196ECF; }
.hp-ins-bcbs { background: #2E5EAA; font-size: 9px; }
.hp-ins-medicare { background: #1464A0; }
.hp-ins-humana { background: #00A94F; }
.hp-ins-more { font-size: 13px; color: var(--sage); font-weight: 500; }

.hp-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.hp-section {
  padding: 80px 32px;
}

.hp-section-white { background: var(--white); }
.hp-section-mist { background: var(--mist); }

.hp-container {
  max-width: 1040px;
  margin: 0 auto;
}

.hp-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}

.section-h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-h2 em {
  font-style: italic;
  color: var(--sage);
}

.section-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.hp-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hp-why-card {
  padding: 32px;
  background: var(--fog);
  border-radius: 16px;
  border: 1px solid var(--rule);
}

.hp-why-featured {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-why-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.hp-why-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 10px;
}

.hp-why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hp-reasons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hp-reason-btn {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.15s;
}

.hp-reason-btn:hover {
  border-color: var(--sage);
  background: var(--sage-lt);
}

.hp-reason-btn-accent {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-reason-btn-accent span:last-child {
  color: var(--sage);
  font-weight: 500;
}

.hp-reason-emoji {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.hp-reason-btn span:last-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.hp-reasons-link-wrap {
  text-align: center;
  margin-top: 24px;
}

.hp-text-link {
  font-size: 14px;
  color: var(--sage);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--sage-md);
  padding-bottom: 2px;
}

.hp-specialties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hp-specialty-tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hp-specialty-tag {
  background: var(--mist);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.hp-specialty-more {
  background: var(--sage-lt);
  border: 1px solid var(--sage-md);
  color: var(--sage);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left;
}

.hp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hp-testimonial {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--rule);
  margin: 0;
}

.hp-testimonial-featured {
  background: var(--sage-lt);
  border-color: var(--sage-md);
}

.hp-stars {
  font-size: 20px;
  color: var(--sage);
  margin-bottom: 16px;
}

.hp-testimonial p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.hp-testimonial footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hp-testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  color: white;
  font-size: 14px;
  flex-shrink: 0;
}

.hp-testimonial footer div {
  display: flex;
  flex-direction: column;
}

.hp-testimonial footer strong {
  font-size: 13px;
  color: var(--ink);
}

.hp-testimonial footer span {
  font-size: 11px;
  color: var(--muted);
}

.hp-steps-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
}

.hp-step-panel-item {
  padding: 36px 28px;
  border-right: 1px solid var(--rule);
}

.hp-step-panel-item:last-child {
  border-right: none;
}

.hp-step-panel-num {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--sage-md);
  line-height: 1;
  margin-bottom: 20px;
}

.hp-step-panel-item h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.hp-step-panel-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hp-cta {
  background: #0A1628;
  padding: 96px 32px;
  text-align: center;
}

.hp-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hp-cta-eyebrow {
  color: var(--sage-md);
  margin-bottom: 20px;
}

.hp-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: white;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hp-cta h2 em {
  color: #7FB3F0;
  font-style: italic;
}

.hp-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hp-cta-btn {
  background: var(--sage);
  color: white;
  border: none;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: block;
  margin: 0 auto 16px;
}

.hp-cta-btn:hover {
  background: var(--ink);
}

.hp-cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
}

.hp-browse {
  background: #0F1F35;
  padding: 60px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.hp-browse-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.hp-browse-grid a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 8px;
}

.hp-browse-grid a:hover {
  color: var(--sage-md);
}

.hp-browse-more {
  margin-top: 4px;
}

.hp-browse-accent {
  color: var(--sage-md) !important;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  nav { padding: 0 20px; }
  .hero-steps-strip { grid-template-columns: 1fr 1fr; }
  .hero-step-cell:nth-child(2) { border-right: none; }
  .hero-step-cell { border-bottom: 1px solid var(--rule); }
  .hero-step-cell-last { border-bottom: none; }
  .hp-stats-inner { grid-template-columns: 1fr 1fr; }
  .hp-stat:nth-child(2) { border-right: none; }
  .hp-stat { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 16px; }
  .hp-why-grid,
  .hp-testimonials-grid,
  .hp-steps-panel,
  .hp-specialties-grid,
  .hp-browse-grid { grid-template-columns: 1fr; }
  .hp-reasons-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-step-panel-item { border-right: none; border-bottom: 1px solid var(--rule); }
  .hp-step-panel-item:last-child { border-bottom: none; }
  .site-footer-rich .site-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .option-grid { grid-template-columns: 1fr; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--sage-lt);
}

.nav-register {
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--sage);
  background: transparent;
}

.nav-register:hover {
  color: var(--white);
  background: var(--sage);
}

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(26, 43, 34, 0.06);
}

.auth-card-wide {
  max-width: 520px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-footer-link {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.auth-footer-link a {
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-card h1 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-card .form-group {
  margin-bottom: 16px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.profile-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.profile-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 16px;
  font-size: 14px;
}

.profile-dl dt {
  color: var(--muted);
  font-weight: 500;
}

.profile-dl dd {
  margin: 0;
}

.profile-list {
  list-style: none;
  padding: 0;
}

.profile-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.profile-list li:last-child {
  border-bottom: none;
}

.profile-list-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.profile-list-note {
  margin-top: 6px;
  color: var(--muted);
  font-style: italic;
}

.profile-empty {
  color: var(--muted);
  font-size: 14px;
}

.profile-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-tagline {
  margin-top: 16px;
  font-style: italic;
  color: var(--muted);
}

.profile-card-top,
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.profile-header-main {
  flex: 1;
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}

.btn-secondary {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--sage);
  background: var(--white);
  border: 1.5px solid var(--sage);
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--sage-lt);
}

.alert-success {
  background: #e8f5ee;
  color: #1f5c41;
  border: 1px solid #b8dcc8;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-warning {
  background: #fff8e6;
  color: #7a5a00;
  border: 1px solid #f0d88a;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}

.profile-completion-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff8e6;
  color: #7a5a00;
  border: 1px solid #f0d88a;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.profile-completion-banner-body {
  flex: 1;
  min-width: 220px;
}

.profile-completion-banner-text strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.profile-completion-banner-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.profile-completion-banner-bar {
  margin-top: 12px;
  height: 6px;
  background: rgba(122, 90, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.profile-completion-banner-bar-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.profile-completion-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 11px 18px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.profile-completion-banner-btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.profile-completion-pill {
  display: inline-block;
  background: var(--sage-lt);
  color: var(--sage);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.auth-card .hint,
.profile-page .hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.role-picker {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.role-picker-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  text-align: left;
}

.role-picker-btn-primary:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 16px rgba(26, 43, 34, 0.08);
}

.role-picker-btn-muted {
  opacity: 0.75;
  cursor: pointer;
}

.role-picker-icon {
  font-size: 24px;
}

.role-picker-label {
  font-size: 17px;
  font-weight: 600;
}

.role-picker-hint {
  font-size: 13px;
  color: var(--muted);
}

.onboarding-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.onboarding-page {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.onboarding-header {
  margin-bottom: 20px;
}

.onboarding-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
}

.onboarding-header p {
  color: var(--muted);
  font-size: 15px;
}

.onboarding-progress {
  margin-top: 16px;
  background: var(--cream);
  border-radius: 999px;
  height: 8px;
  position: relative;
  overflow: hidden;
}

.onboarding-progress-bar {
  height: 100%;
  background: var(--sage);
  border-radius: 999px;
  width: 0;
  transition: width 0.3s ease;
}

.onboarding-progress-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.onboarding-chat .chat-window {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.onboarding-chat .chat-messages {
  flex: 1;
  min-height: 320px;
}
