/* HowieKnows.ai — actual Home shell, Plan Board host, and founder signature marquee.
   Quiet -> real pending split flap -> earned illuminated plan. No idle chase before a plan exists.
   No second plan store, no synthetic recommendations, no hidden routing semantics. */

.home-signature-shell {
  position: relative;
  min-width: 0;
  width: 100%;
  min-height: min(760px, calc(100svh - 56px));
  display: grid;
  place-items: center;
  padding: clamp(30px, 6vw, 84px) clamp(14px, 4vw, 54px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(184,132,54,.10), transparent 32%),
    linear-gradient(180deg, #0b0c0e 0%, #050506 100%);
}

.home-signature {
  --hs-metal: #9b7a42;
  --hs-warm: #ffd88c;
  --hs-paper: #f7f3e9;
  position: relative;
  isolation: isolate;
  width: min(980px, 100%);
  padding: clamp(24px, 4vw, 44px);
}

.hs-frame {
  position: relative;
  z-index: 2;
  min-height: clamp(430px, 56vw, 570px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(42px, 7vw, 82px) clamp(24px, 7vw, 84px);
  border: 1px solid rgba(231,210,164,.42);
  border-radius: 9px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.035), transparent 24%, rgba(255,214,132,.025) 52%, transparent 76%),
    #101113;
  box-shadow:
    0 34px 90px rgba(0,0,0,.52),
    inset 0 0 0 7px #090a0b,
    inset 0 0 0 8px rgba(221,187,121,.24),
    inset 0 0 54px rgba(0,0,0,.58);
  text-align: center;
}

.hs-frame::before,
.hs-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.hs-frame::before {
  inset: 13px;
  border: 1px solid rgba(255,228,173,.15);
  border-radius: 4px;
}
.hs-frame::after {
  left: 12%; right: 12%; top: 16px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,239,205,.25), transparent);
}

.hs-brand,
.hsp-brand {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  letter-spacing: .045em;
  line-height: .92;
  color: var(--hs-paper, #f7f3e9);
  text-transform: uppercase;
}
.hs-brand { font-size: clamp(42px, 8vw, 84px); }
.hs-brand span,
.hsp-brand span { color: var(--hs-warm, #ffd88c); }

.hs-rule {
  width: min(180px, 34%);
  height: 1px;
  margin: clamp(20px, 3vw, 30px) 0;
  background: linear-gradient(90deg, transparent, rgba(255,216,140,.72), transparent);
}

.hs-kicker {
  margin: 0 0 10px;
  font: 600 11px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .23em;
  color: rgba(247,243,233,.58);
}
.hs-title {
  max-width: 820px;
  margin: 0;
  font: 400 clamp(42px, 6.6vw, 74px)/.98 Anton, Impact, sans-serif;
  letter-spacing: .01em;
  color: #fffdf7;
  text-wrap: balance;
}
.hs-sub {
  max-width: 650px;
  margin: 17px auto 0;
  font: 500 clamp(14px, 1.7vw, 17px)/1.55 Inter, system-ui, sans-serif;
  color: rgba(247,243,233,.62);
  text-wrap: balance;
}

.home-signature .ask {
  width: min(660px, 100%);
  margin: clamp(26px, 4vw, 38px) auto 0;
  min-height: 62px;
  border: 1px solid rgba(247,243,233,.28);
  border-radius: 3px;
  background: rgba(3,4,5,.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.home-signature .ask:focus-within {
  border-color: rgba(255,216,140,.88);
  box-shadow: 0 0 0 3px rgba(255,216,140,.11), inset 0 1px 0 rgba(255,255,255,.04);
}
.home-signature .ask input {
  min-height: 60px;
  padding-left: 20px;
  color: #fffdf7;
  background: transparent;
  font: 500 17px/1.2 Inter, system-ui, sans-serif;
}
.home-signature .ask input::placeholder { color: rgba(247,243,233,.36); }
.home-signature .go {
  min-width: 56px;
  min-height: 56px;
  color: #fffdf7;
}

.hs-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 20px;
  margin-top: 10px;
}
.hs-example {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(247,243,233,.40);
  font: 500 12px/1.3 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.hs-example:hover,
.hs-example:focus-visible { color: rgba(247,243,233,.78); }
.hs-example:focus-visible {
  outline: 2px solid rgba(255,216,140,.8);
  outline-offset: 3px;
}

/* Physical bulb rails exist in every state, but quiet/miss states are intentionally dormant. */
.hs-bulbs {
  position: absolute;
  z-index: 4;
  display: flex;
  pointer-events: none;
}
.hs-bulbs-top,
.hs-bulbs-bottom {
  left: clamp(28px, 5vw, 54px);
  right: clamp(28px, 5vw, 54px);
  justify-content: space-between;
}
.hs-bulbs-top { top: 9px; }
.hs-bulbs-bottom { bottom: 9px; transform: rotate(180deg); }
.hs-bulbs-left,
.hs-bulbs-right {
  top: clamp(28px, 5vw, 54px);
  bottom: clamp(28px, 5vw, 54px);
  flex-direction: column;
  justify-content: space-between;
}
.hs-bulbs-left { left: 9px; }
.hs-bulbs-right { right: 9px; }
.hs-bulb {
  width: clamp(9px, 1.4vw, 15px);
  height: clamp(9px, 1.4vw, 15px);
  border-radius: 50%;
  border: 1px solid rgba(238,205,141,.30);
  background: radial-gradient(circle at 42% 34%, #f3e5c4 0 12%, #ad8446 29%, #3b2a15 58%, #17120c 76%);
  opacity: .28;
  filter: saturate(.55) brightness(.62);
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.12), inset -2px -2px 3px rgba(0,0,0,.64);
}

.home-signature.is-lit .hs-frame {
  border-color: rgba(255,223,158,.70);
  box-shadow:
    0 40px 110px rgba(0,0,0,.60),
    0 0 54px rgba(255,187,69,.10),
    inset 0 0 0 7px #090a0b,
    inset 0 0 0 8px rgba(255,217,141,.48),
    inset 0 0 74px rgba(255,186,62,.055);
}
.home-signature.is-lit .hs-bulb {
  opacity: 1;
  background: radial-gradient(circle at 40% 32%, #fffdf1 0 18%, #ffe2a2 27%, #d98b24 49%, #5f370d 68%, #241509 82%);
  box-shadow:
    0 0 5px 1px rgba(255,245,213,.96),
    0 0 14px 4px rgba(255,194,82,.66),
    0 0 30px 9px rgba(255,164,42,.20),
    inset 1px 1px 2px rgba(255,255,255,.92),
    inset -2px -2px 3px rgba(99,48,3,.50);
  animation: hs-chase 2.35s linear infinite;
  animation-delay: calc(var(--hs-i) * -72ms);
}
.home-signature.is-igniting .hs-frame { animation: hs-frame-ignite 920ms cubic-bezier(.2,.75,.18,1) both; }
.home-signature.is-igniting .hs-title,
.home-signature.is-igniting .hs-plan-meta,
.home-signature.is-igniting .hs-asked,
.home-signature.is-igniting .hs-setlist-cue { animation: hs-plan-reveal 720ms 260ms cubic-bezier(.2,.7,.2,1) both; }

@keyframes hs-chase {
  0%, 52%, 100% { filter: brightness(.72) saturate(.9); transform: scale(.94); }
  8%, 19% { filter: brightness(1.38) saturate(1.12); transform: scale(1.08); }
  28% { filter: brightness(1.02) saturate(1); transform: scale(1); }
}
@keyframes hs-frame-ignite {
  0% { filter: brightness(.78); transform: scale(.992); }
  45% { filter: brightness(1.12); }
  100% { filter: brightness(1); transform: scale(1); }
}
@keyframes hs-plan-reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hs-kicker-complete { color: rgba(255,216,140,.76); }
.hs-plan-title { font-size: clamp(40px, 6.1vw, 70px); }
.hs-plan-meta {
  margin: 16px 0 0;
  font: 600 clamp(13px, 1.7vw, 16px)/1.45 Inter, system-ui, sans-serif;
  color: rgba(247,243,233,.72);
}
.hs-asked {
  max-width: 660px;
  margin: 24px auto 0;
  font: 500 13px/1.5 Inter, system-ui, sans-serif;
  color: rgba(247,243,233,.46);
}
.hs-setlist-cue {
  margin: 14px 0 0;
  font: 600 11px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,216,140,.72);
}

/* Dark-stage location control. `.loc` is the lit-house chip; on the cinematic
   signature it must not inherit that cream bar. */
.home-signature .hs-location-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  width: 100%;
  margin: 18px 0 0;
  padding: 8px 12px;
  min-height: var(--tap, 44px);
  background: rgba(3, 4, 5, .42);
  border: 1px solid rgba(247, 243, 233, .22);
  border-radius: 8px;
  color: rgba(247, 243, 233, .68);
  font: 500 13px/1.3 Inter, system-ui, sans-serif;
}
.home-signature .hs-location-entry button {
  margin-left: 0;
  min-height: var(--tap, 44px);
  padding: 0 8px;
  color: #ffd88c;
  font: 600 13px/1 Inter, system-ui, sans-serif;
}

/* Real-pending overlay. planning-moment.js owns its lifetime; the visual never implies a fake
   percent or invented search steps. */
.home-signature-pending {
  background: rgba(4,5,6,.98);
  backdrop-filter: blur(10px);
}
.hsp-inner {
  width: min(610px, calc(100vw - 28px));
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(231,210,164,.30);
  border-radius: 5px;
  background: #090a0b;
  box-shadow: 0 34px 100px rgba(0,0,0,.64), inset 0 0 0 1px rgba(255,216,140,.035);
  text-align: center;
}
.hsp-brand { margin-bottom: 22px; font-size: clamp(24px, 5vw, 38px); }
.hsp-flaps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(3px, .8vw, 7px);
  margin: 0 auto 18px;
  perspective: 900px;
}
.hs-flap {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: .72;
  overflow: hidden;
  border: 1px solid rgba(247,243,233,.20);
  background: #151618;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.86), 0 8px 22px rgba(0,0,0,.26);
}
.hs-flap::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid rgba(0,0,0,.86);
  box-shadow: 0 1px 0 rgba(247,243,233,.06);
}
.hs-flap > span {
  display: grid;
  place-items: center;
  width: 100%; height: 100%;
  color: #fffdf7;
  font: 600 clamp(18px, 5vw, 38px)/1 "IBM Plex Mono", ui-monospace, monospace;
  transform-origin: 50% 50%;
  animation: hs-flip 580ms cubic-bezier(.22,.78,.2,1) both;
  animation-delay: calc(var(--hs-flap-i) * 54ms);
}
.home-signature-pending .pm-line {
  margin: 0;
  font: 500 13px/1.45 Inter, system-ui, sans-serif;
  letter-spacing: .015em;
  color: rgba(247,243,233,.62);
}
@keyframes hs-flip {
  0% { opacity: .15; transform: rotateX(-88deg) translateY(-6px); }
  64% { opacity: 1; transform: rotateX(7deg) translateY(0); }
  100% { opacity: 1; transform: rotateX(0) translateY(0); }
}

.home-plan-board {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(22px, 4vw, 48px) 16px 28px;
  overflow-x: hidden;
  background: #08090a;
}
.home-plan-board[hidden] { display: none !important; }

/* Before intent the lit billboard hero and the empty-state block stay out of the first-use
   hierarchy (lights are earned by a plan), and while the plan board is the active result every
   discovery rail yields to THE SET LIST. FD-068 (2026-09-08): the Worth-the-trip rail is THE
   MARQUEE — "a place to see what else is going on besides the 1 night you know you want" — so
   it is no longer hidden in the calm pre-intent state; it renders beneath the signature, calm,
   with no motion (verify-home-marquee-pre-intent.js). After an honest miss the ask stays closed
   and the rail stays hidden, unchanged. */
.home-stage.home-pre-intent ~ .billboard,
.home-stage.home-pre-intent ~ .nores,
.home-stage.home-ask-closed ~ .billboard,
.home-stage.home-ask-closed ~ .nores,
.home-stage.home-ask-closed ~ .trip-radar,
.home-plan-board:not([hidden]) ~ .billboard,
.home-plan-board:not([hidden]) ~ .nores,
.home-plan-board:not([hidden]) ~ .trip-radar { display: none; }

.home-ask-miss {
  width: min(660px, 100%);
  margin: 18px auto 0;
  padding: 14px 16px;
  border-left: 2px solid rgba(255,216,140,.56);
  color: rgba(247,243,233,.74);
  text-align: left;
}
.home-ask-miss p { margin: 0 0 7px; font-size: 14px; line-height: 1.5; }
.home-ask-miss p:last-child { margin-bottom: 0; color: rgba(247,243,233,.46); }

body:has(.home-plan-board:not([hidden])) #planbar { display: none !important; }
body.has-plan:has(.home-plan-board:not([hidden])) { padding-bottom: 96px; }
@media (min-width: 900px) {
  body.has-plan:has(.home-plan-board:not([hidden])) { padding-bottom: 40px; }
}
.home-plan-board .plan-board { width: 100%; max-width: 100%; padding-top: 8px; }
.home-plan-board .pb-share,
.home-plan-board .js-share { min-width: 44px; min-height: 44px; }

.hs-planning-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(247, 243, 233, .28);
  background: transparent;
  color: rgba(247, 243, 233, .78);
  font: 600 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.hs-planning-cancel:focus-visible {
  outline: 2px solid rgba(255, 216, 140, .85);
  outline-offset: 3px;
}

.sl-user-tools {
  padding: 0 16px 8px;
}
.sl-user-tools .js-plan-title,
.sl-user-tools #planTitle {
  display: block;
  width: 100%;
  min-height: var(--tap, 44px);
  margin: 8px 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line, #d8d2c8);
  border-radius: 10px;
  background: var(--surf-1, #fff);
  color: var(--text-1, #1b1916);
  font: 500 16px/1.3 Inter, system-ui, sans-serif;
}
.sl-user-tools .js-save {
  min-height: var(--tap, 44px);
}

@media (max-width: 600px) {
  .home-signature-shell {
    min-height: calc(100svh - 54px);
    padding: 20px 8px 34px;
  }
  .home-signature { padding: 22px 13px; }
  .hs-frame {
    min-height: min(620px, calc(100svh - 88px));
    justify-content: center;
    padding: 48px 22px 42px;
    border-radius: 6px;
    box-shadow: 0 24px 64px rgba(0,0,0,.56), inset 0 0 0 5px #090a0b, inset 0 0 0 6px rgba(221,187,121,.22);
  }
  .hs-brand { font-size: clamp(43px, 14vw, 64px); letter-spacing: .028em; }
  .hs-title { font-size: clamp(40px, 12vw, 58px); }
  .hs-plan-title { font-size: clamp(36px, 10.8vw, 52px); }
  .hs-sub { font-size: 14px; }
  .home-signature .ask { min-height: 58px; margin-top: 24px; }
  .home-signature .ask input { min-height: 56px; padding-left: 14px; font-size: 16px; }
  .home-signature .go { min-width: 50px; min-height: 50px; }
  .hs-examples { display: grid; gap: 0; margin-top: 7px; }
  .hs-example { min-height: 44px; font-size: 13px; }
  .home-signature .hs-location-entry {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    margin-top: 14px;
  }
  .home-signature .hs-location-entry button { width: 100%; }
  .hs-bulbs-top, .hs-bulbs-bottom { left: 17px; right: 17px; }
  .hs-bulbs-left, .hs-bulbs-right { top: 27px; bottom: 27px; }
  .hs-bulbs-top { top: 6px; }
  .hs-bulbs-bottom { bottom: 6px; }
  .hs-bulbs-left { left: 5px; }
  .hs-bulbs-right { right: 5px; }
  .hs-bulb { width: 9px; height: 9px; }
  .hs-bulbs-top .hs-bulb:nth-child(even),
  .hs-bulbs-bottom .hs-bulb:nth-child(even) { display: none; }
  .home-plan-board { padding: 24px 12px 38px; }
  .home-plan-board .pb-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .home-plan-board .pb-stage-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    padding: 14px 16px 4px;
  }
  .home-plan-board .pb-stop,
  .home-plan-board .pb-open { min-width: 0; }
  .hsp-inner { padding: 24px 14px; }
  .hsp-flaps { gap: 3px; }
}

@media (max-width: 430px) {
  .home-signature { padding-left: 10px; padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-signature.is-lit .hs-bulb,
  .home-signature.is-igniting .hs-frame,
  .home-signature.is-igniting .hs-title,
  .home-signature.is-igniting .hs-plan-meta,
  .home-signature.is-igniting .hs-asked,
  .home-signature.is-igniting .hs-setlist-cue,
  .hs-flap > span { animation: none !important; transform: none !important; }
  .home-signature.is-lit .hs-bulb { filter: brightness(1.12) saturate(1); }
  .home-signature-pending { backdrop-filter: none; }
  .home-plan-board,
  .home-plan-board * { scroll-behavior: auto !important; }
}

/* FD-068 THE MARQUEE label above the calm Worth-the-trip rail in the pre-intent state. Vocabulary
   is binding (FD-003). Calm: no bulbs, no animation, same dark shell as the signature. */
.home-marquee-label {
  margin: 22px 16px 0;
  font: 600 12px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-hot, #f5a623);
}
.home-marquee-label span { color: var(--muted, rgba(20,18,16,.62)); letter-spacing: .08em; text-transform: none; font-weight: 400; margin-left: 10px; }
.home-stage.home-pre-intent ~ .home-marquee { margin-top: 10px; }
@media (min-width: 900px) { .home-marquee-label { margin: 28px 24px 0; } }
