/* =================================================================
   Handyum — Atelier Indigo v5 design system
   Tokens + base + components, single bundle.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Atelier Indigo v5 — light premium, mono-indigo accent */
  --paper:        #FBFAF6;
  --paper-deep:   #F3F1EB;
  --indigo-wash:  #EEF0F8;
  --indigo:       #5E6AD2;
  --indigo-dark:  #4D58B8;
  --ink:          #1C1C1A;
  --slate:        #5C5A55;
  --hairline:     #C5BFB0;
  --hairline-soft:#E5E1D8;
  --white:        #FFFFFF;
  --success:      #1F6249;
  --warning:      #A07338;
  --error:        #7E3232;

  /* Type */
  --ff-display: 'Fraunces', serif;
  --ff-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
input, textarea, select { font: inherit; }

/* Typography — premium editorial pairing */
h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--ink);
}
h3 {
  font-family: var(--ff-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.tabular { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
}

/* Visually-hidden (screen reader only) */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.hd-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.hd-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
}
.logo {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  margin-right: auto;
}
.logo-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--indigo);
  border-radius: 50%;
  margin: 0 1px;
  box-shadow: 0 0 0 2px rgba(94, 106, 210, 0.22);
}
.hd-nav { display: flex; gap: 4px; }
.nav-link {
  font-size: 14px;
  color: var(--slate);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { color: var(--ink); background: var(--paper-deep); }
.hd-spacer { display: none; }
.cta-pill {
  background: var(--indigo);
  color: var(--white);
  border: 0;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
  min-height: 44px;
}
.cta-pill:hover { background: var(--indigo-dark); }
.cta-pulse {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  font-size: 13px;
  color: var(--slate);
  padding: 18px 0 6px;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--ink); }
.bc-sep { color: var(--hairline); margin: 0 4px; }

/* ============ HERO ============ */
.hero { padding: 32px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  right: -200px;
  bottom: -300px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(94, 106, 210, 0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 20px;
}
.hero .sub {
  font-size: 18px;
  color: var(--slate);
  margin-bottom: 28px;
  max-width: 580px;
}
.price-line {
  font-size: 14px;
  color: var(--slate);
  margin-top: 20px;
}
.price-line b { color: var(--ink); font-weight: 600; }

/* Chat input shell (placeholder for AI chat in Phase 1a — opens lead modal) */
.chat-input-shell {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(28, 28, 26, 0.05), 0 8px 24px rgba(28, 28, 26, 0.07);
  max-width: 580px;
}
.chat-prompt {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 10px;
  font-weight: 500;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.chat-input-row input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 48px;
}
.chat-input-row input:focus { border-color: var(--indigo); background: var(--white); }
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border: 0;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
  min-height: 48px;
}
.btn-primary:hover { background: var(--indigo-dark); }
.btn-block { width: 100%; }

/* Hero right (answer card mock) */
.hero-right {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(28, 28, 26, 0.05), 0 6px 20px rgba(28, 28, 26, 0.06);
}
.hero-right-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 14px;
  font-weight: 600;
}
.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 10px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.5;
}
.bubble.user {
  background: var(--indigo-wash);
  color: var(--ink);
  margin-left: auto;
  border-bottom-right-radius: 4px;
  border: 1px solid #D8DBEC;
}
.bubble.ai {
  background: var(--paper-deep);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--hairline);
}
.bubble.ai b { color: var(--indigo-dark); font-weight: 600; }

/* ============ SECTIONS ============ */
section.block {
  padding: 56px 0;
  border-top: 1px solid var(--hairline-soft);
}
section.block.alt { background: var(--paper-deep); }
section.block h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 18px; }
section.block p {
  color: var(--slate);
  margin-bottom: 12px;
  max-width: 820px;
}
section.block p b { color: var(--ink); font-weight: 600; }

/* ============ STEPS (How it works) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.step {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0; }

/* ============ PRICE TIERS ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px;
}
.price-card.standard { border-color: var(--indigo); border-width: 2px; }
.price-card .tier-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 4px;
}
.price-card .amount {
  font-family: var(--ff-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.price-card ul { list-style: none; }
.price-card li {
  font-size: 14px;
  color: var(--slate);
  padding: 4px 0;
}
.price-card li::before { content: "— "; color: var(--indigo); margin-right: 4px; }

/* ============ SYMPTOM LIST ============ */
.symptoms { list-style: none; margin-top: 20px; max-width: 820px; }
.symptoms li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 16px;
  color: var(--slate);
}
.symptoms li b {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 600;
}
.symptoms li:last-child { border-bottom: none; }

/* ============ NEIGHBORHOODS (plain text, never links to non-existent pages) ============ */
.neighborhoods-list {
  column-count: 2;
  column-gap: 24px;
  margin-top: 18px;
  max-width: 820px;
}
.neighborhoods-list span {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink);
  break-inside: avoid;
}
.neighborhoods-note {
  font-size: 13px;
  color: var(--slate);
  margin-top: 16px;
  font-style: italic;
}

/* ============ PRO CARDS ============ */
.pros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.pro {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px;
}
.pro-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--indigo-wash);
  color: var(--indigo);
  border: 1px solid #D8DBEC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.pro-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.pro-meta { font-size: 13px; color: var(--slate); }
.pro-desc {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
  margin: 12px 0;
  font-style: italic;
}
.pro-desc::before { content: "“"; color: var(--indigo-dark); margin-right: 2px; }
.pro-desc::after  { content: "”"; color: var(--indigo-dark); margin-left: 2px; }
.pro-areas {
  font-size: 12px;
  color: var(--slate);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 12px;
}
.pro-areas b { color: var(--ink); font-weight: 600; }
.pro-response {
  color: var(--success);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.pro-response::before { content: "●"; }

/* Empty state for pros */
.empty-state {
  background: var(--paper-deep);
  border: 1px dashed var(--hairline);
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  margin-top: 26px;
  max-width: 720px;
}
.empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.empty-state p { color: var(--slate); margin: 0; }

/* ============ FAQ ============ */
.faqs { max-width: 820px; }
.faq {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--ff-body);
  color: var(--ink);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--indigo); font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p {
  font-size: 15px;
  color: var(--slate);
  line-height: 1.6;
  padding: 0 22px 18px;
  margin: 0;
}

/* ============ RELATED ============ */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 22px;
}
.related-grid h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 12px;
  font-family: var(--ff-body);
  font-weight: 600;
}
.related-grid ul { list-style: none; }
.related-grid li { padding: 6px 0; }
.related-grid li a {
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.related-grid li a:hover { border-bottom-color: var(--indigo); }

/* ============ FINAL CTA ============ */
.final {
  background: var(--paper-deep);
  color: var(--ink);
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.final h2 { color: var(--ink); font-size: clamp(26px, 4vw, 32px); margin-bottom: 12px; }
.final p {
  color: var(--slate);
  margin-bottom: 24px;
  font-size: 17px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.final button {
  background: var(--indigo);
  color: var(--white);
  border: 0;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.final button:hover { background: var(--indigo-dark); }
.final .disclaimer {
  margin-top: 28px;
  font-size: 13px;
  color: var(--slate);
  font-style: italic;
}

/* ============ FOOTER ============ */
.ft {
  background: var(--paper-deep);
  padding: 40px 0 28px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--slate);
}
.ft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}
.ft h4 {
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: var(--ff-body);
  font-weight: 600;
}
.ft ul { list-style: none; }
.ft li { padding: 4px 0; }
.ft a { color: var(--slate); }
.ft a:hover { color: var(--ink); }
.ft-disclaimer {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.6;
}

/* ============ SERVICE CHIP GRID ============ */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.chip-grid a, .chip-grid span {
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s;
}
.chip-grid a:hover { background: var(--indigo-wash); }

/* ============ MOBILE STICKY CTA BAR ============ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: 12px 16px env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(28, 28, 26, 0.08);
}

/* ============ CHAT MODAL ============ */
.chat-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 520px;
  width: calc(100% - 32px);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(28, 28, 26, 0.25);
}
.chat-modal::backdrop { background: rgba(28, 28, 26, 0.45); }
.chat-modal-form, .chat-modal-thanks { padding: 28px; position: relative; }
.chat-modal h2 { font-size: 22px; margin-bottom: 8px; }
.chat-modal-sub { color: var(--slate); font-size: 15px; margin-bottom: 18px; }
.chat-modal input, .chat-modal textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  font-size: 16px;
  background: var(--paper);
}
.chat-modal input:focus, .chat-modal textarea:focus {
  outline: none; border-color: var(--indigo); background: var(--white);
}
.chat-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--slate);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  line-height: 1;
}
.chat-modal-close:hover { background: var(--paper-deep); color: var(--ink); }
.chat-modal-footnote {
  margin-top: 14px;
  font-size: 12px;
  color: var(--slate);
  font-style: italic;
  text-align: center;
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .hd-inner { padding: 12px 18px; gap: 12px; }
  .nav-link--hide-sm { display: none; }
  .hd-nav { gap: 0; }
  .nav-link { padding: 8px 8px; }

  .hero { padding: 24px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(28px, 8vw, 34px); }

  .neighborhoods-list { column-count: 1; }

  .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .mobile-cta-bar { display: block; }
  body { padding-bottom: 76px; }

  .chat-input-row { flex-direction: column; }
  .chat-input-row input, .chat-input-row button { width: 100%; }
}

@media (min-width: 769px) {
  .hd-spacer { display: block; flex: 1; }
}
