:root {
  --ink: #101416;
  --graphite: #1e2425;
  --porcelain: #f7f5ef;
  --chalk: #ece8de;
  --mineral: #3d5c50;
  --mineral-dark: #263b35;
  --brass: #b98a47;
  --brass-dark: #7f5c2e;
  --mist: #dde6e1;
  --white: #ffffff;
  --muted: #626b66;
  --line: rgba(16, 20, 22, .14);
  --line-soft: rgba(16, 20, 22, .08);
  --error: #a13d33;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max-w: 500px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 138, 71, .26), transparent 30%),
    linear-gradient(135deg, #0f1415 0%, #263b35 58%, #111617 100%);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img,
svg {
  display: block;
}

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

#app {
  position: relative;
  width: 100%;
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--porcelain);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(180deg, rgba(247, 245, 239, .98), rgba(236, 232, 222, .92)),
    var(--porcelain);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(28px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s .35s;
}

.screen.active {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(0);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s 0s;
}

.screen.exit-left {
  z-index: 4;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transform: translateX(-28px);
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s .35s;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 10px;
  background: rgba(247, 245, 239, .82);
  border-bottom: 1px solid rgba(16, 20, 22, .06);
  backdrop-filter: blur(18px);
}

.top-logo {
  width: 138px;
  height: auto;
  object-fit: contain;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.icon-btn:hover {
  background: var(--white);
  border-color: rgba(16, 20, 22, .26);
}

.icon-btn:active {
  transform: scale(.96);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.progress-wrap {
  padding: 12px 22px 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
}

.progress-meta .step-label {
  color: var(--ink);
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(16, 20, 22, .12);
}

.progress-fill {
  height: 100%;
  background: var(--brass);
}

.content,
.lead-content,
.nutrition-content,
.thankyou-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 18px 22px 24px;
}

.content {
  align-items: center;
}

.section-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brass-dark);
  background: var(--mist);
  border: 1px solid rgba(61, 92, 80, .22);
  border-radius: 8px;
}

.section-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.question,
.intro-title,
.nutrition-title,
.lead-form-title,
.thankyou-title {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0;
  line-height: .98;
  text-align: center;
  text-wrap: balance;
}

.question {
  max-width: 410px;
  margin-bottom: 22px;
  font-size: clamp(30px, 8vw, 42px);
}

.question-sub,
.intro-desc,
.nutrition-text,
.lead-form-sub,
.thankyou-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.options {
  width: 100%;
  display: grid;
  gap: 10px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.option-card:hover {
  transform: translateY(-1px);
  background: var(--white);
  border-color: rgba(16, 20, 22, .28);
}

.option-card.selected {
  color: var(--porcelain);
  background: var(--mineral-dark);
  border-color: var(--mineral-dark);
}

.option-radio {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 1.5px solid rgba(16, 20, 22, .34);
  border-radius: 50%;
  background: transparent;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.option-card.selected .option-radio {
  border-color: var(--brass);
  background: var(--brass);
  box-shadow: inset 0 0 0 5px var(--mineral-dark);
}

.option-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.option-label {
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.22;
}

.option-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.option-card.selected .option-sub {
  color: rgba(247, 245, 239, .72);
}

.option-card.visual {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.option-card.visual .img-slot {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0;
}

.option-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(16, 20, 22, .18);
}

.dot.filled {
  background: rgba(185, 138, 71, .5);
}

.dot.active {
  width: 26px;
  border-radius: 999px;
  background: var(--brass);
}

.bottom {
  position: sticky;
  bottom: 0;
  z-index: 7;
  padding: 14px 22px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--porcelain) 72%, rgba(247, 245, 239, 0));
}

.continue-btn,
.text-btn,
.help-btn {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  color: var(--porcelain);
  background: var(--ink);
  border-radius: 7px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  opacity: .38;
  pointer-events: none;
  transition: transform .18s var(--ease), opacity .18s var(--ease), background .18s var(--ease);
}

.continue-btn.active,
.text-btn,
.help-btn {
  opacity: 1;
  pointer-events: all;
}

.continue-btn.active:hover,
.text-btn:hover,
.help-btn:hover {
  transform: translateY(-1px);
}

.continue-btn.sending::before {
  content: "Saving...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: inherit;
}

.intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 22px;
  text-align: center;
}

.intro-logo {
  width: min(184px, 48vw);
  margin-bottom: 14px;
}

.intro-hero-slot {
  width: 100%;
  margin-bottom: 14px;
}

.intro-hero-slot .img-slot {
  height: clamp(154px, 27vh, 224px);
  border-radius: 10px;
}

.intro-hero-slot img {
  object-position: center 36%;
}

.intro-eyebrow {
  margin-bottom: 12px;
  color: var(--brass-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
}

.intro-title {
  max-width: 420px;
  margin-bottom: 10px;
  font-size: clamp(32px, 8.4vw, 46px);
}

.intro-desc {
  max-width: 380px;
  margin-bottom: 16px;
}

.intro-desc strong {
  color: var(--ink);
}

.intro-q1-title {
  width: 100%;
  margin: 4px 0 12px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.05;
  text-align: left;
}

.intro-options {
  text-align: left;
}

.intro-tooltip {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(61, 92, 80, .1);
  border: 1px solid rgba(61, 92, 80, .18);
  border-radius: 8px;
}

.intro-tooltip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  color: #45514b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
}

.intro-tooltip-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--brass-dark);
  stroke-width: 2.5;
}

.trust-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 12px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.trust-item {
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px;
  background: rgba(255, 255, 255, .45);
}

.trust-stars {
  color: var(--brass-dark);
  font-size: 12px;
  font-weight: 900;
}

.trust-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.trust-divider {
  display: none;
}

.nutrition-content {
  gap: 16px;
}

.nutrition-card,
.offer-card,
.reservation-card {
  width: 100%;
  padding: 24px;
  color: var(--porcelain);
  background:
    linear-gradient(135deg, rgba(61, 92, 80, .88), rgba(16, 20, 22, .96)),
    var(--ink);
  border: 1px solid rgba(247, 245, 239, .12);
  border-radius: 10px;
}

.nutrition-badge,
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--brass);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
}

.nutrition-badge svg,
.offer-badge svg,
.nf-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.nutrition-title {
  color: var(--porcelain);
  font-size: clamp(31px, 8vw, 42px);
}

.nutrition-text {
  margin-top: 12px;
  color: rgba(247, 245, 239, .72);
}

.nutrition-facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.nutrition-fact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  color: rgba(247, 245, 239, .9);
  border-top: 1px solid rgba(247, 245, 239, .12);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.42;
}

.nf-icon {
  flex: 0 0 auto;
  color: var(--brass);
  margin-top: 2px;
}

.nutrition-photo-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
}

.nutrition-photo-slot .img-slot {
  aspect-ratio: 3 / 2;
  border-radius: 10px;
}

.img-slot {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--chalk);
  border: 1px solid var(--line);
}

.img-slot::before {
  content: attr(data-name);
  z-index: 1;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(247, 245, 239, .86);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.img-slot img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-content {
  align-items: center;
}

.lead-form-title {
  margin-top: 8px;
  font-size: clamp(32px, 8vw, 44px);
}

.lead-form-sub {
  max-width: 360px;
  margin-top: 10px;
}

.lead-features {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 14px;
  background: rgba(61, 92, 80, .1);
  border: 1px solid rgba(61, 92, 80, .16);
  border-radius: 8px;
}

.lead-feature {
  display: flex;
  gap: 9px;
  color: #45514b;
  font-size: 12px;
  font-weight: 800;
}

.lead-feature-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 6px;
  background: var(--brass);
}

.input-group,
.zip-input-wrap {
  width: 100%;
}

.input-group {
  margin-bottom: 12px;
}

.input-label {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.input-field,
.zip-big-input {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.input-field {
  height: 54px;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 750;
}

.zip-big-input {
  height: 76px;
  padding: 0 18px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.input-field:focus,
.zip-big-input:focus {
  background: var(--white);
  border-color: var(--mineral);
}

.zip-hint,
.zip-error,
.privacy-note {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}

.zip-error {
  color: var(--error);
  min-height: 18px;
}

.privacy-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.privacy-note svg,
.text-btn svg,
.help-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.thankyou-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 24px;
}

.thankyou-check {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--porcelain);
  background: var(--mineral);
  border-radius: 50%;
}

.thankyou-check svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.thankyou-title {
  font-size: clamp(42px, 12vw, 64px);
}

.thankyou-text {
  max-width: 360px;
  margin: 14px 0 0;
}

.reservation-card {
  margin: 24px 0;
  text-align: left;
}

.reservation-card .label {
  color: var(--brass);
  font-size: 12px;
  font-weight: 900;
}

.reservation-card .value {
  margin-top: 10px;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.05;
}

.reservation-card .expires {
  margin-top: 14px;
  color: rgba(247, 245, 239, .72);
  font-size: 12px;
}

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 20, 22, .62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), visibility 0s .2s;
}

.help-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity .2s var(--ease), visibility 0s 0s;
}

.help-popup {
  width: min(360px, 100%);
  position: relative;
  padding: 26px;
  background: var(--porcelain);
  border-radius: 10px;
}

.help-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  font-size: 24px;
}

.help-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--brass-dark);
  background: var(--mist);
  border-radius: 8px;
}

.help-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.help-title {
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.help-text {
  margin: 10px 0 18px;
  color: var(--muted);
}

.help-btn {
  margin-top: 10px;
}

.help-overlay:not(.open) .help-btn {
  pointer-events: none;
}

.help-btn.secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

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

.mobile-close-btn {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 20, 22, .55);
  color: var(--porcelain);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
  .mobile-close-btn {
    display: flex;
  }
  .icon-btn[aria-label="Help"] {
    visibility: hidden;
    pointer-events: none;
  }
}

body.in-iframe .mobile-close-btn {
  display: none;
}

@media (min-width: 700px) {
  #app {
    height: min(920px, 94vh);
    margin-top: 3vh;
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .content,
  .lead-content,
  .nutrition-content,
  .intro-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .question {
    font-size: 29px;
  }

  .intro-title {
    font-size: 38px;
  }
}

/* ── New flow elements ─────────────────────────── */

.condo-note {
  display: none;
  width: 100%;
  margin-top: 12px;
  padding: 10px 14px;
  color: #45514b;
  background: rgba(61, 92, 80, .1);
  border: 1px solid rgba(61, 92, 80, .18);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}
.condo-note.visible { display: block; }

.avail-check {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--porcelain);
  background: var(--mineral);
  border-radius: 50%;
}
.avail-check svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.avail-title {
  max-width: 380px;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.0;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.avail-sub {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.skip-link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: color .18s var(--ease);
}
.skip-link:hover { color: var(--ink); }

.casl-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.casl-note a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-local-line {
  margin-top: 4px;
  color: var(--brass-dark);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

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