/* Get Started (the nine-step host questionnaire), site-B stream.
   Loaded after tokens.css, components.css and ospito-site.css. Tokens only: no literal colours, no font names.
   The class names that the page script uses (step-container, active, step-nav-item, snav-num, conditional, visible,
   btn-next/back/submit, success-screen, preview-thumb, drag-over ...) are the live page's names, so the logic did not change. */

.st { padding: 28px 0 0; }
@media (min-width: 960px) { .st { padding-top: 44px; } }

.st-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .st-layout { grid-template-columns: 268px minmax(0, 1fr); gap: 44px; align-items: start; } }
.st-main { min-width: 0; max-width: 46rem; }
.st-layout.is-done { grid-template-columns: minmax(0, 1fr); }
.st-layout.is-done .st-side, .st-layout.is-done .progress-bar-wrap { display: none; }
.st-layout.is-done .st-main { max-width: none; }

/* ------------------------------------------------------------- side list (desktop only) */
.st-side { display: none; }
@media (min-width: 960px) {
  .st-side { display: block; position: sticky; top: 112px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 14px 20px; }
}
.steps-nav-title { margin: 0 10px 12px; font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.step-nav-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 10px; margin: 0;
  background: none; border: 0; border-radius: var(--radius-sm); text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.step-nav-item:hover { background: var(--sand); }
.snav-num {
  flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sand); color: var(--ink-2); font-weight: 600; font-size: 13px;
}
.snav-content { display: block; min-width: 0; }
.snav-label { display: block; font-weight: 600; font-size: var(--text-sm); line-height: 1.25; color: var(--ink-2); }
.snav-desc { display: block; margin-top: 1px; font-size: var(--text-xs); line-height: 1.3; color: var(--ink-3); }
.snav-connector { display: block; width: 1px; height: 8px; margin: 0 0 0 25px; background: var(--line); }
.st-done { display: none; }

.step-nav-item.active { background: var(--sage); }
.step-nav-item.active .snav-num { background: var(--accent); color: var(--accent-ink); }
.step-nav-item.active .snav-label { color: var(--ink); }
.step-nav-item.active .snav-desc { color: var(--ink-2); }

/* a finished step: the number is replaced by a tick, and a hidden "Done:" tells screen readers */
.step-nav-item.completed .snav-num { background: var(--sage); color: var(--accent); font-size: 0; }
.step-nav-item.completed .snav-num::after {
  content: ""; width: 6px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.step-nav-item.completed .snav-label { color: var(--ink); }
.step-nav-item.completed .st-done { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step-nav-item.disabled { cursor: default; }
.step-nav-item.disabled:hover { background: none; }

.st-side__foot { margin-top: 18px; padding: 16px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.st-side__foot p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* ------------------------------------------------------------- progress bar */
.progress-bar-wrap { height: 6px; margin-bottom: 28px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress-bar-fill { width: 11%; height: 100%; border-radius: 999px; background: var(--accent); transition: width .35s var(--ease); }

/* ------------------------------------------------------------- one step */
.step-container { display: none; }
.step-container.active { display: block; animation: st-in .3s var(--ease); }
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .step-container.active { animation: none; }
  .progress-bar-fill { transition: none; }
}

.step-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.step-eyebrow-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink-2);
  font-family: var(--font-display); font-style: italic; font-size: 13px; font-weight: 400; letter-spacing: 0;
}
.step-title, .success-title {
  margin: 14px 0 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 6vw, 44px); line-height: 1.07; letter-spacing: -.025em; text-wrap: balance;
}
.step-title em, .success-title em { font-style: italic; }
.step-title:focus, .success-title:focus { outline: none; }
.step-sub { margin: 14px 0 0; max-width: 38rem; color: var(--ink-2); font-size: var(--text); text-wrap: pretty; }
.homie-italic { font-family: var(--font-display); font-style: italic; }

.field-group { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }

/* ------------------------------------------------------------- fields */
.st .field { min-width: 0; align-content: start; }
.field-label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.req { color: var(--accent); margin-left: 2px; }
.field-hint { font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* Homie tags: what Homie does with each answer. The page is written by backend/scripts/ops/build-questionnaire-tags.js from the tiers file.
   The words carry the meaning; the fill and the border only help. Not a tab stop (a plain span), and it wraps inside narrow columns. */
.tier-legend { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.st-layout.is-done .tier-legend { display: none; }
.tier-tag {
  display: inline-block; max-width: 100%; margin: 2px 0 0 6px; padding: 1px 8px; vertical-align: 1px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2);
  font-size: var(--text-xs); line-height: 1.45; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: normal; overflow-wrap: anywhere;
}
.tier-tag[data-tier="answer"] { background: var(--sage); border-color: var(--sage); color: var(--accent); }
.tier-tag[data-tier="stay"] { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.tier-tag[data-tier="draft"] { background: var(--paper); border-style: dashed; color: var(--ink); }
.tier-tag[data-tier="quote"] { background: var(--paper); border-style: dashed; color: var(--ink); }
.tier-tag[data-tier="never"] { background: transparent; border-style: dotted; color: var(--ink-2); }
.field-row, .field-row-3 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 700px) { .field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field-label + .field-row, .field-label + .field-row-3 { margin-top: 2px; }
.field-section-title {
  margin: 12px 0 0; padding: 0 0 10px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.015em; color: var(--ink);
}
.field > .field-section-title { margin-top: 10px; }

.select-wrap { position: relative; display: block; }
.select-wrap .select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap::after {
  content: ""; position: absolute; right: 17px; top: 50%; width: 7px; height: 7px; pointer-events: none;
  border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-70%) rotate(45deg);
}
.money { position: relative; }
.money__sym { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-weight: 600; pointer-events: none; }
.money__in { padding-left: 30px; }
.st .textarea { min-height: 112px; }

/* ------------------------------------------------------------- choices: pills, yes/no, cards */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option, .yn-option, .card-option { position: relative; }
.pill-option { display: inline-flex; }
.pill-option input, .yn-option input, .card-option input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.pill-option label {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border: 1.5px solid var(--field-line); border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: var(--text-sm); cursor: pointer;
}
.pill-option input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill-option input:checked + label::before {
  content: ""; width: 5px; height: 9px; margin: -2px 10px 0 -2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pill-option input:focus-visible + label, .yn-option input:focus-visible + label, .card-option input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }

.yn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.yn-option label {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border: 1.5px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink-2); font-weight: 600; font-size: var(--text-sm); cursor: pointer;
}
.yn-option.yes input:checked + label { background: var(--sage); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); }
.yn-option.no input:checked + label { background: var(--clay); border-color: var(--terra); color: var(--ink); box-shadow: 0 0 0 1px var(--terra); }

.card-option-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) {
  .card-option-grid[data-cols="6"], .card-option-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-option-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card-option label {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; min-height: var(--tap); padding: 16px 18px;
  border: 1.5px solid var(--field-line); border-radius: var(--radius); background: var(--paper); cursor: pointer;
}
.card-option-label { font-family: var(--font-display); font-size: 19px; line-height: 1.2; color: var(--ink); }
.card-option-sub { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.card-option input:checked + label { background: var(--sage); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card-option input:checked + label::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ------------------------------------------------------------- shown only after an answer */
.conditional { display: none; margin-left: 12px; padding: 4px 0 2px 20px; border-left: 2px solid var(--sage); }
.conditional.visible { display: flex; flex-direction: column; gap: 20px; }

/* ------------------------------------------------------------- callouts */
.info-callout { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--sage); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.6; }
.info-callout-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent); }
.info-callout-text { min-width: 0; }
.info-callout-text strong, .st-fine strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- photos and videos */
.room-upload-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .room-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.room-upload-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.room-upload-card.is-key { background: var(--sage); border-color: var(--accent); }
.room-card-label { font-family: var(--font-display); font-size: 19px; line-height: 1.25; color: var(--ink); }
.room-card-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.upload-zone {
  position: relative; margin-top: 14px; padding: 20px 12px; border: 1.5px dashed var(--field-line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink-2); text-align: center;
}
.upload-zone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.upload-zone:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload-zone.drag-over { border-color: var(--accent); background: var(--sage); }
.upload-icon { display: flex; justify-content: center; color: var(--accent); }
.upload-label { margin-top: 6px; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.upload-hint { margin-top: 2px; font-size: var(--text-xs); }
.preview-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preview-grid:empty { display: none; }
.preview-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.preview-vid { width: 64px; height: 64px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--sand); color: var(--ink); font-size: var(--text-xs); font-weight: 600; }
.preview-count { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.preview-count:empty { display: none; }

/* ------------------------------------------------------------- guest FAQ */
.faq-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 760px) { .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq-pre-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-pre-header { display: flex; align-items: flex-start; gap: 12px; }
.faq-dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); }
.faq-pre-q-text { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }
.faq-pre-q-sub { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.faq-pre-body { min-width: 0; }

/* ------------------------------------------------------------- review and submit */
.st-card { padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.st-card__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.st-summary { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) { .st-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-tile { padding: 14px 18px; border-radius: var(--radius-sm); background: var(--sage); }
.st-tile__k { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.st-tile__v { margin-top: 4px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.st-cap { text-transform: capitalize; }
.st-fine { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.st-checks { display: flex; flex-direction: column; gap: 6px; }
.st-check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--tap); padding: 6px 0; font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.st-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.st-check input[aria-invalid="true"] { outline: 2px solid var(--bad); outline-offset: 2px; }
.st-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.submit-error {
  display: none; align-items: center; gap: 10px; padding: 14px 18px; border: 1.5px solid var(--bad); border-radius: var(--radius-sm);
  background: var(--bad-soft); color: var(--ink); font-size: var(--text-sm); font-weight: 500;
}
.submit-error svg { flex: none; color: var(--bad); }

/* ------------------------------------------------------------- back / next */
.step-footer { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; }
.step-footer__right { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; }
.step-counter { font-size: 13px; color: var(--ink-2); }
.step-counter strong { color: var(--ink); font-weight: 600; }
@media (max-width: 599px) {
  .step-footer { flex-direction: column-reverse; align-items: stretch; }
  .step-footer__right { flex-direction: column; align-items: stretch; }
  .step-footer .step-counter { text-align: center; }
  .step-footer .btn { width: 100%; }
}

/* ------------------------------------------------------------- done */
.success-screen { display: none; max-width: 40rem; margin: 0 auto; text-align: center; }
.success-screen.active { display: block; animation: st-in .3s var(--ease); }
@media (prefers-reduced-motion: reduce) { .success-screen.active { animation: none; } }
.success-homie { --tile: 150px; margin-inline: auto; }
.success-homie img { width: 126px; height: 126px; }
.success-title { margin-top: 20px; font-size: clamp(36px, 7vw, 52px); }
.success-sub { margin: 14px auto 0; max-width: 32rem; color: var(--ink-2); }
.success-timeline { margin-top: 28px; padding: 24px 26px 12px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-row:first-child { border-top: 0; }
.tl-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--ink-2); font-family: var(--font-display); font-style: italic; font-size: 16px; }
.tl-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.tl-sub { margin-top: 2px; font-size: var(--text-sm); color: var(--ink-2); }
.success-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
