/* Home cinematic + visit wizard */

/* ========== Cinematic hero ========== */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-9);
  color: var(--surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(15, 28, 22, 0.82) 0%,
      rgba(20, 40, 32, 0.55) 48%,
      rgba(20, 40, 32, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(15, 28, 22, 0.35) 0%,
      transparent 35%,
      rgba(15, 28, 22, 0.55) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: end;
}

.hero-copy {
  max-width: 38rem;
}

.hero-cinematic .kicker {
  color: rgba(243, 239, 230, 0.8);
  animation: hero-rise 0.5s var(--ease-out) both;
}

.hero-cinematic .kicker::before {
  background:
    linear-gradient(var(--rose-soft), var(--rose-soft)) 0 100% / 14px 2.5px no-repeat,
    linear-gradient(var(--rose-soft), var(--rose-soft)) 1.5px 70% / 11px 2.5px no-repeat,
    linear-gradient(var(--rose-soft), var(--rose-soft)) 3px 40% / 8px 2.5px no-repeat,
    linear-gradient(var(--rose-soft), var(--rose-soft)) 4.5px 10% / 5px 2.5px no-repeat;
}

.hero-cinematic h1 {
  color: var(--surface);
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 450;
  margin-bottom: var(--space-4);
  animation: hero-rise 0.55s var(--ease-out) 0.05s both;
  text-wrap: balance;
}

.hero-cinematic .lede {
  color: rgba(243, 239, 230, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  animation: hero-rise 0.55s var(--ease-out) 0.1s both;
}

.hero-cinematic .hero-ctas {
  animation: hero-rise 0.55s var(--ease-out) 0.15s both;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  animation: hero-rise 0.55s var(--ease-out) 0.2s both;
}

.trust-chips li {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(252, 250, 246, 0.28);
  border-radius: var(--radius-pill);
  color: rgba(243, 239, 230, 0.85);
  background: rgba(15, 28, 22, 0.25);
  backdrop-filter: blur(6px);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pink tower corner motif */
.tower-corner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 5px;
  padding-bottom: var(--space-2);
  opacity: 0.9;
}

.tower-corner i {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e8b4ba, var(--rose));
  box-shadow: 0 2px 8px rgba(201, 132, 140, 0.35);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
}

.tower-corner i:nth-child(1) { width: 56px; }
.tower-corner i:nth-child(2) { width: 46px; }
.tower-corner i:nth-child(3) { width: 36px; }
.tower-corner i:nth-child(4) { width: 26px; }
.tower-corner i:nth-child(5) { width: 16px; }

.tower-corner.is-built i {
  animation: tower-step 0.45s var(--ease-out) forwards;
}

.tower-corner.is-built i:nth-child(1) { animation-delay: 0.15s; }
.tower-corner.is-built i:nth-child(2) { animation-delay: 0.28s; }
.tower-corner.is-built i:nth-child(3) { animation-delay: 0.41s; }
.tower-corner.is-built i:nth-child(4) { animation-delay: 0.54s; }
.tower-corner.is-built i:nth-child(5) { animation-delay: 0.67s; }

@keyframes tower-step {
  from {
    opacity: 0;
    transform: scaleX(0) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scaleX(1) translateY(0);
  }
}

@media (max-width: 700px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .tower-corner {
    display: none;
  }
  .hero-cinematic {
    min-height: 92vh;
    align-items: center;
    padding-bottom: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinematic .kicker,
  .hero-cinematic h1,
  .hero-cinematic .lede,
  .hero-cinematic .hero-ctas,
  .trust-chips {
    animation: none;
  }
  .tower-corner i {
    transform: none;
    opacity: 1;
    animation: none !important;
  }
}

/* ========== Stats impact band ========== */
.stats-impact {
  background: var(--forest);
  padding: var(--space-7) 0;
  border-top: 1px solid rgba(243, 239, 230, 0.06);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--surface);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat span {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.62);
  max-width: 12em;
  margin-inline: auto;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }
}

@media (max-width: 400px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* ========== Visit wizard ========== */
.wiz-wrap {
  max-width: 560px;
}

.wiz-head {
  margin-bottom: var(--space-6);
}

.wiz-head h1 {
  margin-bottom: var(--space-3);
}

.wiz-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}

.wiz-dot {
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background 0.3s var(--ease-out);
}

.wiz-dot.now {
  background: var(--cypress);
}

.wiz-dot.done {
  background: var(--gold);
}

#visit-wizard {
  position: relative;
}

.steps {
  position: relative;
  min-height: 420px;
}

.step {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  position: relative;
}

.step legend {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-5);
  padding: 0;
}

.wiz-q {
  margin-bottom: var(--space-5);
}

.wiz-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.choice-col {
  grid-template-columns: 1fr;
}

.choice {
  display: block;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0.7rem 1rem;
  font-weight: 500;
  text-align: center;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    transform 0.2s;
}

.choice label:hover {
  border-color: var(--cypress);
  color: var(--cypress);
}

.choice input:focus-visible + label {
  box-shadow: var(--focus);
}

.choice input:checked + label {
  border-color: var(--cypress);
  background: rgba(42, 86, 64, 0.08);
  color: var(--forest);
  font-weight: 600;
}

.wiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.field-error {
  display: none;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: #a33;
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.field.has-error .field-error,
.wiz-q.has-error .field-error,
.consent-row.has-error .field-error {
  display: block;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #a33;
}

.consent-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem 0.75rem;
  align-items: start;
  margin: var(--space-5) 0;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--cypress);
}

.consent-row label {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

.consent-row .field-error {
  grid-column: 1 / -1;
}

.review {
  margin: 0 0 var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.review > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-3);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.review > div:last-child {
  border-bottom: none;
}

.review dt {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.review dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-sm);
}

.wiz-success {
  text-align: center;
  padding: var(--space-6) var(--space-4);
}

.wiz-success h2 {
  margin-bottom: var(--space-3);
}

.motif-squares {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: var(--space-5);
  height: 28px;
}

.motif-squares i {
  display: block;
  width: 14px;
  background: var(--rose);
  border-radius: 2px;
}

.motif-squares i:nth-child(1) { height: 10px; opacity: 0.5; }
.motif-squares i:nth-child(2) { height: 18px; opacity: 0.75; }
.motif-squares i:nth-child(3) { height: 26px; }

.cal-placeholder {
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: left;
}

.cal-placeholder p {
  margin: 0;
  font-size: var(--text-sm);
}

.wiz-status {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--cypress);
  min-height: 1.25em;
  margin-top: var(--space-3);
}

@media (max-width: 480px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .review > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .step {
    transition: opacity 0.01ms;
    transform: none;
  }
}
