:root {
  --ink: #171717;
  --ink-2: #292231;
  --muted: #66707f;
  --muted-2: #8a7583;
  --paper: #ffffff;
  --paper-warm: #fff9fb;
  --field: #f7f2f5;
  --field-2: #f0e8f1;
  --line: rgba(26, 21, 34, 0.10);
  --line-strong: rgba(26, 21, 34, 0.16);
  --brand-primary: #dc1e37;
  --brand-primary-hot: #f8204e;
  --brand-secondary: #2953ea;
  --brand-plum: #4a325a;
  --green: #148762;
  --green-soft: #edf9f4;
  --amber: #f4a61d;
  --surface: #f3f4f7;
  --shadow-soft: 0 24px 80px rgba(35, 23, 41, 0.11);
  --shadow-card: 0 14px 36px rgba(35, 23, 41, 0.08);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 2%, rgba(220, 30, 55, 0.10), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(41, 83, 234, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f4f6 28%, var(--surface) 100%);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.altored-search-app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 24px 18px 42px;
}

.ambient-glow {
  position: fixed;
  inset: auto -18vw -26vw auto;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 30, 55, 0.15), transparent 68%);
  pointer-events: none;
}

.search-experience {
  position: relative;
  z-index: 1;
  width: min(930px, 100%);
  margin: 0 auto;
}

.dashboard-hero {
  position: relative;
  overflow: visible;
  padding: clamp(22px, 4vw, 34px);
  border-radius: clamp(30px, 5vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.22), transparent 28%),
    radial-gradient(circle at 90% 18%, rgba(255,255,255,0.16), transparent 30%),
    linear-gradient(150deg, #3d162e 0%, #971d42 44%, var(--brand-primary) 100%);
  box-shadow: 0 30px 80px rgba(102, 17, 47, 0.20);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% 50%;
  height: 260px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  transform: rotate(-9deg);
  pointer-events: none;
}

.dashboard-hero > * { position: relative; z-index: 1; }
.experience-nav { display: flex; align-items: center; justify-content: center; margin-bottom: clamp(22px, 4.2vw, 38px); }
.brand-lockup { width: min(210px, 64vw); }

.choice-heading span,
.stage-header span,
.detail-heading span,
.detail-card > span,
.services-card h3 {
  color: var(--muted-2);
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy { width: min(780px, 100%); margin: 0 auto 22px; text-align: center; }
.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-family: "Archivo", "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2.55rem, 6vw, 5rem);
  line-height: 0.88;
  letter-spacing: -0.052em;
  word-spacing: 0.08em;
}
.hero-copy p {
  max-width: 690px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.98rem, 1.25vw, 1.14rem);
  font-weight: 750;
  line-height: 1.52;
  letter-spacing: -0.025em;
}

.search-card { position: relative; z-index: 5; width: min(800px, 100%); margin: 0 auto; }
.search-trigger {
  appearance: none;
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.54);
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 22px 56px rgba(58, 10, 29, 0.22), inset 0 1px 0 rgba(255,255,255,0.78);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}
.search-trigger:hover,
.search-trigger:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.86);
  box-shadow: 0 28px 70px rgba(58, 10, 29, 0.28), 0 0 0 5px rgba(255,255,255,0.16);
}
.search-lens { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hot)); box-shadow: 0 14px 30px rgba(220,30,55,0.24); position: relative; }
.search-lens::before { content: ""; position: absolute; width: 16px; height: 16px; left: 15px; top: 14px; border: 3px solid #fff; border-radius: 50%; }
.search-lens::after { content: ""; position: absolute; width: 13px; height: 3px; right: 13px; bottom: 15px; border-radius: 999px; background: #fff; transform: rotate(45deg); }
.search-copy { min-width: 0; color: var(--ink-2); font-size: clamp(1.08rem, 2vw, 1.42rem); font-weight: 900; letter-spacing: -0.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-placeholder { color: #8b7d8a; }
.typewriter-text { color: var(--ink-2); }
.type-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; border-radius: 999px; background: var(--brand-primary); vertical-align: -0.16em; opacity: 0; }
[data-app-stage="searching"] .type-caret { opacity: 1; animation: caretBlink 900ms steps(2, start) infinite; }
@keyframes caretBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.search-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; color: #fff; background: #171717; font-size: 0.84rem; font-weight: 950; }

.choice-sheet {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  top: calc(100% + 12px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(35,23,41,0.18);
  animation: sheetIn 190ms ease both;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.choice-heading { display: flex; justify-content: space-between; gap: 14px; margin: 2px 4px 13px; }
.choice-heading strong { color: var(--ink-2); font-size: 0.98rem; letter-spacing: -0.02em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-option { appearance: none; min-height: 84px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink-2); text-align: left; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.choice-option:hover,
.choice-option:focus-visible { outline: 0; transform: translateY(-1px); border-color: rgba(220,30,55,0.36); box-shadow: 0 16px 34px rgba(35,23,41,0.10); }
.choice-option span { display: block; font-size: 1rem; font-weight: 950; letter-spacing: -0.025em; }
.choice-option small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.choice-option.is-selected { border-color: rgba(20,135,98,0.38); background: var(--green-soft); }

.stage-card { width: min(800px, 100%); margin: 18px auto 0; animation: cardIn 260ms ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.search-stage { padding: 18px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,0.92); box-shadow: var(--shadow-soft); backdrop-filter: blur(18px); }
.stage-header { display: flex; justify-content: space-between; gap: 16px; padding: 4px 4px 16px; }
.stage-header strong { color: var(--brand-plum); font-size: 1.02rem; letter-spacing: -0.02em; }
.progress-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.progress-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 62px; padding: 12px; border: 1px solid var(--line); border-radius: 19px; color: var(--muted); background: #fff; font-size: 0.80rem; font-weight: 900; }
.progress-step i { width: 34px; height: 34px; border-radius: 50%; background: #f1eaf2; }
.progress-step.is-active { color: var(--ink-2); border-color: rgba(220,30,55,0.24); }
.progress-step.is-active i { background: radial-gradient(circle, #fff 0 27%, transparent 29%), conic-gradient(from 0deg, var(--brand-primary), var(--brand-primary-hot), var(--brand-primary)); animation: searchPulse 1s linear infinite; }
.progress-step.is-done { color: var(--green); }
.progress-step.is-done i { display: grid; place-items: center; color: #fff; background: var(--green); }
.progress-step.is-done i::before { content: "✓"; font-size: 0.8rem; font-weight: 950; }
@keyframes searchPulse { to { transform: rotate(1turn); } }

.results-stage.dashboard-stack { display: grid; gap: 10px; width: min(720px, 100%); }
.answer-card,
.provider-card,
.detail-card,
.detail-heading,
.pricing-tabs,
.detail-actions,
.schedule-action {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-card);
}
.answer-card {
  --typical-position: 35%;
  display: grid;
  gap: 14px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(220,30,55,0.06), transparent 34%),
    #fff;
}
.answer-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.result-title-row { min-width: 0; }
.result-title-row h2,
.detail-heading h2 { margin: 0; color: var(--ink-2); font-family: "Archivo", "Manrope", sans-serif; font-size: clamp(1.82rem, 3.2vw, 2.85rem); line-height: 0.95; letter-spacing: -0.047em; }
.result-title-row h2 { display: block; }
.result-title-row [data-result-title] { color: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.result-subtitle,
.detail-heading p { margin: 0; color: var(--muted); font-size: 0.90rem; font-weight: 750; line-height: 1.36; }
.result-subtitle { display: block; }
.verified-check { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--green); font-style: normal; font-weight: 950; }
.verified-check--title { display: inline-grid; width: 22px; height: 22px; margin-left: 10px; font-size: 0.78rem; vertical-align: 0.15em; box-shadow: 0 0 0 0 rgba(20,135,98,0.24); animation: checkPop 700ms cubic-bezier(.2,.8,.2,1) both; }
.verified-check--title::after { content: ""; position: absolute; inset: -4px; border: 1px solid rgba(20,135,98,0.22); border-radius: inherit; animation: checkRing 900ms ease-out both; }
@keyframes checkPop { 0% { opacity: 0; transform: scale(0.72); } 55% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
@keyframes checkRing { 0% { opacity: 0.8; transform: scale(0.72); } 100% { opacity: 0; transform: scale(1.34); } }
.answer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(20,135,98,0.13);
  border-radius: 24px;
  background: #f6faf8;
}
.answer-price-block { min-width: 0; }
.answer-price-block > span,
.micro-context-copy span,
.provider-list-header span,
.detail-heading span,
.detail-card > span,
.services-card h3 {
  color: var(--muted-2);
  font-size: 0.70rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.answer-price-block strong { display: block; margin-top: 5px; color: var(--green); font-family: "Archivo", "Manrope", sans-serif; font-size: clamp(2.45rem, 6vw, 4.05rem); line-height: 0.9; letter-spacing: -0.058em; }
.answer-price-block p { display: flex; flex-wrap: wrap; gap: 5px 9px; margin: 8px 0 0; color: #51685f; font-size: 0.86rem; font-weight: 850; line-height: 1.32; }
.answer-price-block b { color: var(--ink-2); }
.answer-price-block small { color: #557168; font: inherit; }
.secondary-action,
.back-action,
.mode-button,
.pricing-tab,
.primary-detail-action { appearance: none; border: 0; cursor: pointer; }
.secondary-action,
.back-action { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand-plum); font-size: 0.76rem; font-weight: 950; }
.primary-detail-action { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 950; min-height: 44px; padding: 0 18px; font-size: 0.78rem; }
.provider-detail-link { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0; color: var(--muted-2); background: transparent; font-size: 1.35rem; line-height: 1; font-weight: 950; pointer-events: none; }
.micro-context { display: grid; gap: 8px; padding-top: 2px; }
.micro-context-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.micro-context-copy b { color: var(--ink-2); font-size: 0.93rem; font-weight: 950; }
.range-rail { position: relative; height: 14px; margin: 0 6px; }
.range-fill { position: absolute; left: 0; right: 0; top: 50%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--green), rgba(220,30,55,0.52) 58%, var(--brand-plum)); transform: translateY(-50%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.36); }
.range-dot { position: absolute; top: 50%; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--brand-plum); box-shadow: 0 7px 16px rgba(35,23,41,0.16); transform: translate(-50%, -50%); }
.range-dot-low { left: 0; background: var(--green); }
.range-dot-typical { left: var(--typical-position); background: var(--brand-primary); }
.range-dot-high { left: 100%; }
.micro-context p { margin: 0; color: var(--ink-2); font-size: 0.88rem; font-weight: 850; letter-spacing: -0.018em; }
.provider-list-header { display: flex; align-items: center; justify-content: flex-start; gap: 12px; margin: 3px 5px 0; }
.provider-list-header b { flex: 0 0 auto; color: var(--muted); font-size: 0.75rem; font-weight: 900; }
.provider-list { display: grid; gap: 8px; }
.provider-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.provider-card:hover,
.provider-card:focus-within,
.provider-card:focus-visible { transform: translateY(-1px); border-color: rgba(220,30,55,0.22); box-shadow: 0 18px 48px rgba(35,23,41,0.11); }
.provider-card:focus-visible { outline: 3px solid rgba(20,135,98,0.22); outline-offset: 3px; }
.provider-card.is-selected { border-color: rgba(20,135,98,0.35); }
.provider-copy strong { display: block; color: var(--ink-2); font-size: 0.98rem; font-weight: 950; letter-spacing: -0.02em; }
.provider-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.provider-copy em { display: none; }
.provider-summary { display: flex; align-items: center; gap: 14px; }
.provider-price { min-width: 82px; text-align: right; }
.provider-price b { display: block; color: var(--ink-2); font-family: "Archivo", "Manrope", sans-serif; font-size: 1.36rem; line-height: 1; letter-spacing: -0.04em; }
.provider-delta { display: block; margin-top: 4px; color: var(--green); font-size: 0.68rem; font-weight: 900; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; }
.provider-delta.is-above { color: var(--brand-primary); }
.provider-detail { width: min(760px, 100%); padding: 0; }
.back-action { margin: 0 0 12px; }
.detail-shell { display: grid; grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr); gap: 12px; }
.detail-heading { padding: 20px; }
.detail-heading b { display: inline-flex; margin-top: 16px; padding: 8px 10px; border-radius: 999px; color: var(--brand-plum); background: #f5eef5; font-size: 0.74rem; }
.pricing-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.pricing-tab { min-height: 40px; border-radius: 14px; color: #696274; background: transparent; font-size: 0.74rem; font-weight: 950; }
.pricing-tab.is-selected { color: #fff; background: var(--brand-primary); box-shadow: 0 11px 22px rgba(220,30,55,0.17); }
.detail-card { padding: 18px; }
.price-summary > strong { display: block; margin-top: 8px; color: var(--green); font-family: "Archivo", "Manrope", sans-serif; font-size: 2.4rem; line-height: 0.95; letter-spacing: -0.045em; }
.price-summary p { margin: 7px 0 0; color: var(--muted); font-size: 0.84rem; font-weight: 800; }
.mini-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.mini-price-grid div { min-width: 0; padding: 10px; border-radius: 16px; background: #f7f2f6; }
.mini-price-grid span { display: block; color: var(--muted); font-size: 0.62rem; font-weight: 900; }
.mini-price-grid b { display: block; margin-top: 4px; color: var(--ink-2); font-size: 0.80rem; font-weight: 950; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.services-card h3 { margin: 0 0 12px; }
.service-line { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.84rem; }
.service-line span { font-weight: 850; }
.service-line b { color: var(--muted); font-weight: 850; text-align: right; }
.services-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 0.74rem; font-weight: 700; line-height: 1.35; }
.detail-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.detail-actions a { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 16px; background: #f7f2f6; color: var(--brand-plum); font-size: 0.78rem; font-weight: 950; }
.schedule-action { display: flex; align-items: center; justify-content: center; min-height: 50px; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hot)); font-size: 0.88rem; font-weight: 950; }
.detail-shell > :not(.detail-heading) { grid-column: 2; }
.detail-shell .detail-heading { grid-row: span 5; }

.demo-note { max-width: 720px; margin: 18px auto 0; color: var(--muted); text-align: center; font-size: 0.76rem; font-weight: 700; line-height: 1.45; }

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

@media (max-width: 900px) {
  .search-experience { width: min(760px, 100%); }
  .experience-nav { justify-content: center; margin-bottom: 26px; }
  .detail-shell { grid-template-columns: 1fr; }
  .detail-shell > :not(.detail-heading), .detail-shell .detail-heading { grid-column: auto; grid-row: auto; }
  .pricing-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .altored-search-app { padding: 14px 12px 32px; }
  .dashboard-hero { padding: 18px 14px 16px; border-radius: 30px; }
  .experience-nav { margin-bottom: 20px; }
  .brand-lockup { width: min(188px, 62vw); }
  .hero-copy { margin-bottom: 15px; text-align: left; }
  .hero-copy h1 { font-size: clamp(2.04rem, 10vw, 3.12rem); line-height: 0.92; }
  .hero-copy p { margin-top: 12px; font-size: 0.92rem; line-height: 1.44; }
  .search-trigger { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; border-radius: 28px; min-height: 72px; padding: 12px; }
  .search-lens { width: 44px; height: 44px; }
  .search-lens::before { width: 13px; height: 13px; left: 13px; top: 12px; }
  .search-lens::after { right: 11px; bottom: 13px; }
  .search-copy { font-size: clamp(1rem, 5.2vw, 1.18rem); }
  .search-cta { grid-column: 1 / -1; width: 100%; min-height: 42px; }
  .choice-sheet { position: static; left: auto; right: auto; margin-top: 12px; padding: 13px; border-radius: 24px; }
  .choice-heading { margin: 0 2px 12px; }
  .choice-heading span { display: none; }
  .choice-option { min-height: 74px; padding: 13px; border-radius: 18px; }
  .choice-option span { font-size: 0.92rem; }
  .choice-option small { margin-top: 5px; font-size: 0.70rem; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stage-card { margin-top: 14px; }
  .progress-track, .mini-price-grid, .detail-actions { grid-template-columns: 1fr; }
  .stage-header { flex-direction: column; align-items: stretch; }
  .results-stage.dashboard-stack { gap: 10px; }
  [data-app-stage="results"] .dashboard-hero,
  [data-app-stage="details"] .dashboard-hero {
    padding: 10px;
    border-radius: 28px;
  }
  [data-app-stage="results"] .dashboard-hero::after,
  [data-app-stage="details"] .dashboard-hero::after { display: none; }
  [data-app-stage="results"] .experience-nav,
  [data-app-stage="details"] .experience-nav { display: none; }
  [data-app-stage="results"] .search-trigger,
  [data-app-stage="details"] .search-trigger {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 10px;
    border-radius: 24px;
  }
  [data-app-stage="results"] .search-lens,
  [data-app-stage="details"] .search-lens { width: 38px; height: 38px; }
  [data-app-stage="results"] .search-lens::before,
  [data-app-stage="details"] .search-lens::before { width: 11px; height: 11px; left: 11px; top: 10px; }
  [data-app-stage="results"] .search-lens::after,
  [data-app-stage="details"] .search-lens::after { right: 10px; bottom: 11px; width: 11px; }
  [data-app-stage="results"] .search-copy,
  [data-app-stage="details"] .search-copy { font-size: 0.98rem; }
  [data-app-stage="results"] .search-cta,
  [data-app-stage="details"] .search-cta {
    grid-column: auto;
    width: auto;
    min-height: 38px;
    padding: 0 14px;
  }
  .answer-card { padding: 14px; border-radius: 24px; gap: 10px; }
  .answer-topline { gap: 10px; }
  .answer-topline .secondary-action { display: none; }
  .result-title-row h2,
  .detail-heading h2 { font-size: clamp(1.44rem, 6.4vw, 2rem); line-height: 0.98; }
  .result-subtitle { font-size: 0.78rem; line-height: 1.26; }
  .verified-check--title { width: 20px; height: 20px; margin-left: 7px; font-size: 0.70rem; vertical-align: 0.12em; }
  .answer-main { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-radius: 20px; }
  .answer-price-block > span { font-size: 0.62rem; letter-spacing: 0.09em; }
  .answer-price-block strong { font-size: clamp(2rem, 10vw, 2.7rem); }
  .answer-price-block p { display: block; margin-top: 5px; font-size: 0.76rem; }
  .answer-price-block small { display: block; margin-top: 2px; }
  .primary-detail-action { min-height: 38px; padding: 0 13px; font-size: 0.70rem; }
  .micro-context { gap: 6px; }
  .micro-context-copy { gap: 4px 6px; }
  .micro-context-copy span { font-size: 0.60rem; letter-spacing: 0.08em; }
  .micro-context-copy b { font-size: 0.82rem; }
  .range-rail { height: 12px; margin: -1px 5px; }
  .range-fill { height: 5px; }
  .range-dot { width: 12px; height: 12px; }
  .micro-context p { font-size: 0.78rem; line-height: 1.25; }
  .provider-list-header { margin-top: 0; }
  .provider-list {
    max-height: min(34svh, 318px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 2px;
    padding-bottom: 4px;
    scrollbar-width: thin;
    mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
  }
  .provider-card { gap: 10px; padding: 11px 12px; border-radius: 20px; }
  .provider-copy strong { font-size: 0.91rem; line-height: 1.14; }
  .provider-copy span { font-size: 0.68rem; }
  .provider-summary { gap: 9px; }
  .provider-price { min-width: 62px; }
  .provider-price b { font-size: 1.16rem; }
  .provider-delta { margin-top: 3px; font-size: 0.58rem; }
  .micro-context p { display: none; }
  .provider-detail-link { min-height: 28px; font-size: 1.28rem; }
}

@media (max-width: 360px) { .choice-grid { grid-template-columns: 1fr; } }


/* Mockapp 3 — clinic comparison variant */
.altored-search-app[data-variant="clinic-comparison"] .results-stage.dashboard-stack { width: min(760px, 100%); gap: 12px; }
.altored-search-app[data-variant="clinic-comparison"] .comparison-hero-card { border-radius: 34px; background: linear-gradient(180deg, #fff 0%, #fbf8fa 100%); }
.altored-search-app[data-variant="clinic-comparison"] .answer-main { background: #ffffff; border-color: var(--line); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8); }
.decision-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.decision-strip div { min-width: 0; padding: 11px 12px; border-radius: 18px; background: #f6f2f5; }
.decision-strip span { display: block; color: var(--muted); font-size: 0.62rem; font-weight: 950; letter-spacing: 0.10em; text-transform: uppercase; }
.decision-strip b { display: block; margin-top: 4px; color: var(--ink-2); font-family: "Archivo", "Manrope", sans-serif; font-size: clamp(1.12rem, 3vw, 1.6rem); line-height: 1; letter-spacing: -0.04em; }
.decision-strip div:first-child b { color: var(--green); }
.clinic-comparison-list { border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,0.97); box-shadow: var(--shadow-card); padding: 12px; }
.clinic-comparison-list .provider-list-header { margin: 1px 3px 10px; }
.clinic-comparison-list .provider-card { border-radius: 20px; box-shadow: none; }
.altored-search-app[data-variant="clinic-comparison"] .provider-detail-link { color: var(--brand-primary); }
@media (max-width: 760px) {
  .decision-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .decision-strip div { padding: 9px 8px; border-radius: 15px; }
  .decision-strip b { font-size: 1rem; }
}


/* Mockapp 4 — option 3A compact clinic deck */
.altored-search-app[data-variant="clinic-deck"] .results-stage.dashboard-stack {
  width: min(900px, 100%);
  gap: 12px;
}
.altored-search-app[data-variant="clinic-deck"] .comparison-hero-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.72fr);
  align-items: stretch;
  border-radius: 34px;
  background:
    radial-gradient(circle at 94% 12%, rgba(20,135,98,0.08), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbf8fa 100%);
}
.altored-search-app[data-variant="clinic-deck"] .answer-topline,
.altored-search-app[data-variant="clinic-deck"] .result-subtitle {
  grid-column: 1 / -1;
}
.altored-search-app[data-variant="clinic-deck"] .answer-main {
  min-height: 168px;
  background: #fff;
  border-color: rgba(20,135,98,0.16);
}
.altored-search-app[data-variant="clinic-deck"] .decision-strip {
  align-self: stretch;
  grid-template-columns: 1fr;
}
.altored-search-app[data-variant="clinic-deck"] .decision-strip div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
}
.altored-search-app[data-variant="clinic-deck"] .decision-strip b { margin-top: 0; }
.altored-search-app[data-variant="clinic-deck"] .micro-context {
  grid-column: 1 / -1;
  padding: 14px 16px 4px;
  border-top: 1px solid var(--line);
}
.altored-search-app[data-variant="clinic-deck"] .clinic-comparison-list {
  border-radius: 32px;
  padding: 14px;
}
.altored-search-app[data-variant="clinic-deck"] .provider-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.altored-search-app[data-variant="clinic-deck"] .provider-card {
  min-height: 98px;
  align-items: start;
  box-shadow: none;
}
.altored-search-app[data-variant="clinic-deck"] .provider-summary {
  align-self: stretch;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
@media (max-width: 760px) {
  .altored-search-app[data-variant="clinic-deck"] .comparison-hero-card,
  .altored-search-app[data-variant="clinic-deck"] .provider-list { grid-template-columns: 1fr; }
  .altored-search-app[data-variant="clinic-deck"] .answer-topline,
  .altored-search-app[data-variant="clinic-deck"] .result-subtitle,
  .altored-search-app[data-variant="clinic-deck"] .micro-context { grid-column: auto; }
  .altored-search-app[data-variant="clinic-deck"] .decision-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .altored-search-app[data-variant="clinic-deck"] .decision-strip div { display: block; padding: 9px 8px; }
  .altored-search-app[data-variant="clinic-deck"] .decision-strip b { margin-top: 4px; }
  .altored-search-app[data-variant="clinic-deck"] .provider-summary { flex-direction: row; align-items: center; }
}

/* Explicit layout hook for static validation */
.clinic-deck-layout { container-type: inline-size; }


/* Phone iframe embed mode used by /mock3. The same mockapp4 runs inside the landing-page phone, but the chrome is compacted so it reads like an app screen instead of a full standalone page. */
html[data-embed="phone"],
html[data-embed="phone"] body {
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
}

html[data-embed="phone"] body {
  overscroll-behavior: contain;
}

html[data-embed="phone"] .altored-search-app {
  height: 100svh;
  min-height: 0;
  padding: 0 12px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-embed="phone"] .altored-search-app::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html[data-embed="phone"] .ambient-glow { display: none; }

html[data-embed="phone"] .search-experience {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

html[data-embed="phone"] .dashboard-hero {
  margin: 0 -12px;
  padding: 32px 14px 16px;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(180deg, rgba(74, 50, 90, 0.08), rgba(74, 50, 90, 0) 42%),
    var(--brand-primary);
  box-shadow: 0 22px 46px rgba(102, 17, 47, 0.14);
}

html[data-embed="phone"] .dashboard-hero::after {
  display: none;
}

html[data-embed="phone"] .experience-nav {
  margin-bottom: 16px;
}

html[data-embed="phone"] .brand-lockup {
  width: 132px;
}

html[data-embed="phone"] .search-card {
  width: min(314px, calc(100% - 18px));
}

html[data-embed="phone"] .search-trigger,
html[data-embed="phone"] [data-app-stage="results"] .search-trigger,
html[data-embed="phone"] [data-app-stage="details"] .search-trigger {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 62px;
  padding: 9px;
  border-radius: 22px;
}

html[data-embed="phone"] .search-lens,
html[data-embed="phone"] [data-app-stage="results"] .search-lens,
html[data-embed="phone"] [data-app-stage="details"] .search-lens {
  width: 34px;
  height: 34px;
}

html[data-embed="phone"] .search-lens::before,
html[data-embed="phone"] [data-app-stage="results"] .search-lens::before,
html[data-embed="phone"] [data-app-stage="details"] .search-lens::before {
  width: 10px;
  height: 10px;
  left: 10px;
  top: 9px;
  border-width: 2px;
}

html[data-embed="phone"] .search-lens::after,
html[data-embed="phone"] [data-app-stage="results"] .search-lens::after,
html[data-embed="phone"] [data-app-stage="details"] .search-lens::after {
  width: 10px;
  height: 2px;
  right: 9px;
  bottom: 10px;
}

html[data-embed="phone"] .search-copy,
html[data-embed="phone"] [data-app-stage="results"] .search-copy,
html[data-embed="phone"] [data-app-stage="details"] .search-copy {
  font-size: 0.88rem;
  letter-spacing: -0.035em;
}

html[data-embed="phone"] .search-cta,
html[data-embed="phone"] [data-app-stage="results"] .search-cta,
html[data-embed="phone"] [data-app-stage="details"] .search-cta {
  grid-column: auto;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.66rem;
}

html[data-embed="phone"] .choice-sheet {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  width: min(314px, calc(100% - 18px));
  margin: 10px auto 0;
  padding: 11px;
  border-radius: 23px;
  box-shadow: 0 18px 40px rgba(35,23,41,0.16);
}

html[data-embed="phone"] .choice-heading {
  margin: 0 2px 9px;
}

html[data-embed="phone"] .choice-heading strong {
  font-size: 0.84rem;
}

html[data-embed="phone"] .choice-grid {
  grid-template-columns: 1fr;
  gap: 7px;
}

html[data-embed="phone"] .choice-option {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 17px;
}

html[data-embed="phone"] .choice-option span {
  font-size: 0.80rem;
}

html[data-embed="phone"] .choice-option small {
  margin-top: 3px;
  font-size: 0.62rem;
}

html[data-embed="phone"] [data-app-stage="results"] .dashboard-hero,
html[data-embed="phone"] [data-app-stage="details"] .dashboard-hero {
  margin: 0 -12px;
  padding: 12px 12px;
  border-radius: 0 0 26px 26px;
}

html[data-embed="phone"] [data-app-stage="results"] .experience-nav,
html[data-embed="phone"] [data-app-stage="details"] .experience-nav {
  display: none;
}

html[data-embed="phone"] .stage-card {
  margin-top: 10px;
}

html[data-embed="phone"] .search-stage {
  padding: 12px;
  border-radius: 24px;
}

html[data-embed="phone"] .stage-header {
  padding-bottom: 10px;
}

html[data-embed="phone"] .progress-track {
  grid-template-columns: 1fr;
  gap: 7px;
}

html[data-embed="phone"] .progress-step {
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 9px;
  border-radius: 16px;
  font-size: 0.72rem;
}

html[data-embed="phone"] .progress-step i {
  width: 28px;
  height: 28px;
}

html[data-embed="phone"] .results-stage.dashboard-stack,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .results-stage.dashboard-stack {
  width: 100%;
  gap: 9px;
}

html[data-embed="phone"] .answer-card,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .comparison-hero-card {
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 13px;
  border-radius: 25px;
}

html[data-embed="phone"] .answer-topline {
  gap: 8px;
}

html[data-embed="phone"] .result-title-row h2,
html[data-embed="phone"] .detail-heading h2 {
  font-size: 1.42rem;
  line-height: 0.98;
}

html[data-embed="phone"] .verified-check--title {
  width: 19px;
  height: 19px;
  margin-left: 6px;
  font-size: 0.66rem;
}

html[data-embed="phone"] .result-subtitle {
  font-size: 0.76rem;
  line-height: 1.24;
}

html[data-embed="phone"] .answer-main,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .answer-main {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  padding: 11px;
  border-radius: 19px;
}

html[data-embed="phone"] .answer-price-block > span {
  font-size: 0.60rem;
}

html[data-embed="phone"] .answer-price-block strong {
  font-size: 2.05rem;
}

html[data-embed="phone"] .answer-price-block p {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
}

html[data-embed="phone"] .answer-price-block small {
  display: block;
  margin-top: 2px;
}

html[data-embed="phone"] .primary-detail-action {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.66rem;
}

html[data-embed="phone"] .decision-strip,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .decision-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

html[data-embed="phone"] .decision-strip div,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .decision-strip div {
  display: block;
  padding: 8px;
  border-radius: 14px;
}

html[data-embed="phone"] .decision-strip span {
  font-size: 0.54rem;
}

html[data-embed="phone"] .decision-strip b,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .decision-strip b {
  margin-top: 4px;
  font-size: 0.98rem;
}

html[data-embed="phone"] .clinic-comparison-list,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .clinic-comparison-list {
  padding: 10px;
  border-radius: 24px;
}

html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .provider-list {
  grid-template-columns: 1fr;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0;
  mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent 100%);
}

html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .provider-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html[data-embed="phone"] .provider-card,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .provider-card {
  min-height: 78px;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 18px;
}

html[data-embed="phone"] .provider-copy strong {
  font-size: 0.88rem;
  line-height: 1.14;
}

html[data-embed="phone"] .provider-copy span {
  font-size: 0.66rem;
}

html[data-embed="phone"] .provider-summary,
html[data-embed="phone"] .altored-search-app[data-variant="clinic-deck"] .provider-summary {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

html[data-embed="phone"] .provider-price {
  min-width: 60px;
}

html[data-embed="phone"] .provider-price b {
  font-size: 1.12rem;
}

html[data-embed="phone"] .provider-delta {
  font-size: 0.56rem;
}

html[data-embed="phone"] .provider-detail {
  width: 100%;
}

html[data-embed="phone"] .back-action {
  margin: 0 0 9px;
}

html[data-embed="phone"] .detail-shell {
  grid-template-columns: 1fr;
  gap: 9px;
}

html[data-embed="phone"] .detail-shell > :not(.detail-heading),
html[data-embed="phone"] .detail-shell .detail-heading {
  grid-column: auto;
  grid-row: auto;
}

html[data-embed="phone"] .detail-heading,
html[data-embed="phone"] .detail-card {
  padding: 14px;
  border-radius: 22px;
}

html[data-embed="phone"] .pricing-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-embed="phone"] .mini-price-grid,
html[data-embed="phone"] .detail-actions {
  grid-template-columns: 1fr;
}
