/* ============================================================
   DEMO ONLY — Sunburst Studio pitch layer
   Delete this file before client handoff.
   Uses the host site's existing tokens from styles.css.
   ============================================================ */

/* ── FLOATING "SEE PROPOSAL" BUTTON ──────────────────────── */
.demo-fab {
  position: fixed;
  bottom: calc(var(--frame) + 22px);
  left:   calc(var(--frame) + 22px);
  z-index: 760;                     /* above content, below modals (800) */

  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;

  border-radius: 13px;              /* rectangular, softly rounded */
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(18,22,25,.62);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);

  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  cursor: pointer;

  box-shadow:
    0 0 22px 2px rgba(95,227,227,.30),
    0 0 38px 6px rgba(232,197,71,.18),
    0 0 54px 10px rgba(71,108,155,.20),
    0 10px 30px rgba(0,0,0,.45);

  animation: fabGlow 7s ease-in-out infinite;
  transition: transform .25s var(--ease-spring),
              border-color .25s var(--ease),
              background .25s var(--ease);
}

.demo-fab:hover {
  transform: translateY(-3px);
  border-color: rgba(95,227,227,.45);
  background: rgba(18,22,25,.78);
}

.demo-fab svg { width: 17px; height: 17px; flex-shrink: 0; }

@keyframes fabGlow {
  0%, 100% {
    box-shadow:
      0 0 22px 2px rgba(95,227,227,.30),
      0 0 38px 6px rgba(232,197,71,.18),
      0 0 54px 10px rgba(71,108,155,.20),
      0 10px 30px rgba(0,0,0,.45);
  }
  33% {
    box-shadow:
      0 0 24px 3px rgba(232,197,71,.32),
      0 0 40px 7px rgba(152,68,71,.20),
      0 0 56px 11px rgba(95,227,227,.18),
      0 10px 30px rgba(0,0,0,.45);
  }
  66% {
    box-shadow:
      0 0 24px 3px rgba(71,108,155,.34),
      0 0 40px 7px rgba(95,227,227,.22),
      0 0 56px 11px rgba(232,197,71,.16),
      0 10px 30px rgba(0,0,0,.45);
  }
}

/* Keep the menu page's sold-out card clear of the FAB.
   Demo-only override — removing demo.css restores the original position. */
.sold-out { bottom: calc(var(--frame) + 96px); }

/* ── LANDING PAGE ────────────────────────────────────────── */
.landing-body { overflow: hidden; }

.landing-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vh, 20px);
  padding: clamp(14px, 2.4vh, 28px) clamp(20px, 4vw, 56px);
  text-align: center;
  overflow: hidden;
}

.landing-brand {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 100%;
}
.landing-brand::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: min(660px, 86%);
  height: 190px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(255,255,255,.20) 0%, rgba(255,255,255,.06) 40%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.landing-brand img {
  position: relative;
  height: clamp(70px, 11vh, 112px);
  width: auto;
  filter: drop-shadow(0 0 16px rgba(95,227,227,.25));
}

.landing-kicker {
  flex-shrink: 0;
  font-size: clamp(10px, 1.25vh, 12px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.landing-h1 {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vh, 50px);
  line-height: 1.06;
  color: #fff;
  letter-spacing: .01em;
}

.landing-sub {
  flex-shrink: 0;
  max-width: 60ch;
  font-size: clamp(12.5px, 1.7vh, 15px);
  line-height: 1.65;
  color: var(--text-muted);
}
.landing-sub strong { color: var(--gold); font-weight: 700; }

/* browser-window frame around the real screenshot */
.browser-frame {
  flex: 0 1 auto;
  min-height: 0;
  width: min(760px, 100%);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #1b2026;
  box-shadow: 0 20px 54px rgba(0,0,0,.6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.browser-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(95,227,227,.4);
  box-shadow: 0 26px 64px rgba(0,0,0,.68), 0 0 32px rgba(95,227,227,.16);
}
.browser-bar {
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  background: #262c33;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.browser-dot { width: 9px; height: 9px; border-radius: 50%; }
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.landing-cta { flex-shrink: 0; }

/* Shorter viewports: trim aggressively so nothing clips */
@media (max-height: 760px) {
  .landing-shell { gap: 9px; padding: 12px 24px; }
  .landing-brand img { height: 62px; }
  .landing-brand::before { height: 130px; }
  .landing-h1 { font-size: 27px; }
  .landing-sub { font-size: 12.5px; }
  .browser-frame { width: min(620px, 100%); }
  .landing-cta.btn { padding: 11px 26px; font-size: 13px; }
}
@media (max-height: 640px) {
  .landing-kicker { display: none; }
  .landing-brand img { height: 52px; }
  .browser-frame { width: min(540px, 100%); }
}

/* ── PROPOSAL PAGE ───────────────────────────────────────── */
.prop-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.prop-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vh, 60px) clamp(22px, 4.5vw, 52px) 90px;
}

.prop-pill {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 14px;
  border-radius: var(--r-full);
  background: var(--cyan-dim);
  border: 1px solid rgba(95,227,227,.32);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.prop-pill.gold {
  background: var(--gold-dim);
  border-color: rgba(232,197,71,.32);
  color: var(--gold);
}

.prop-h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 56px);
  color: #fff;
  line-height: 1.04;
  margin-bottom: 22px;
  letter-spacing: .01em;
}
.prop-h2 {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 34px);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: .01em;
}

.prop-p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.prop-p strong { color: var(--text); font-weight: 600; }
.prop-p.lead { font-size: 16px; color: var(--text); }

.prop-section { margin-top: 58px; }

.prop-card {
  padding: clamp(22px, 3.4vw, 34px);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.prop-note {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
}
.prop-note h3 {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.prop-note p { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.benefit {
  padding: 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.benefit:hover { border-color: rgba(95,227,227,.35); transform: translateY(-2px); }
.benefit .ico { font-size: 22px; display: block; margin-bottom: 10px; }
.benefit h3 { font-size: 14.5px; color: #fff; margin-bottom: 6px; line-height: 1.3; }
.benefit p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

.prop-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.prop-center { text-align: center; margin-top: 34px; }

/* ── COSTS GRID ──────────────────────────────────────────── */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.cost-box {
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.cost-box h3 {
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cost-price {
  font-family: var(--font-display);
  font-size: 27px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.cost-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.55;
}
.cost-list { list-style: none; margin-top: 14px; }
.cost-list li {
  position: relative;
  padding-left: 17px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 5px;
}
.cost-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Dream Big sits below, aligned under the first column */
.dream-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

/* ── DREAM BIG EXPANDING BOX ─────────────────────────────── */
.dream {
  grid-column: 1 / 2;          /* collapsed: under the first box */
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
  border-radius: var(--r-md);
  border: 1px solid rgba(232,197,71,.42);
  background: #0a0f1a;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: grid-column .01s, border-color .3s var(--ease),
              box-shadow .45s var(--ease);
  box-shadow: 0 0 0 rgba(232,197,71,0);
}
.dream:hover { border-color: rgba(232,197,71,.75); }
.dream.open {
  grid-column: 1 / -1;         /* expanded: full row width */
  border-color: var(--gold);
  box-shadow: 0 0 34px rgba(232,197,71,.16);
}

/* night sky */
.dream-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(71,108,155,.34) 0%, transparent 58%),
    radial-gradient(ellipse at 22% 78%, rgba(152,68,71,.22) 0%, transparent 55%),
    linear-gradient(165deg, #0d1424 0%, #0a0f1a 52%, #080b12 100%);
}
.dream-stars {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 28% 62%, rgba(255,255,255,.62) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 16%, rgba(255,255,255,.80) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 58% 74%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 71% 34%, rgba(255,255,255,.78) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 86% 60%, rgba(255,255,255,.62) 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 92% 24%, rgba(255,255,255,.70) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 36% 88%, rgba(255,255,255,.50) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 64% 48%, rgba(255,255,255,.66) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 52%, rgba(255,255,255,.58) 50%, transparent 51%);
  animation: twinkle 4.2s ease-in-out infinite;
}
@keyframes twinkle { 0%,100% { opacity:.75 } 50% { opacity:1 } }

/* Shooting star.
   Travel vector is translate(260px, 102px) -> atan2(102,260) = 21.4deg
   below horizontal. The trail extends BACKWARD from the head, so it must
   be rotated +21.4deg (clockwise) to lie along the path behind the star.
   Linear timing keeps the motion even instead of lurching. */
.shooting-star {
  position: absolute;
  top: 8%; left: -40px;
  z-index: 2;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.95);
  opacity: 0;
  animation: shoot 7s linear infinite;
  pointer-events: none;
}
.shooting-star::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1px;                      /* trail meets the star head */
  width: 88px;
  height: 1.7px;
  border-radius: 2px;
  background: linear-gradient(to left, rgba(255,255,255,.9), transparent);
  transform-origin: 100% 50%;      /* pivot at the head */
  transform: translateY(-50%) rotate(21.4deg);
}

/* second star, offset in space and time so the sky feels alive */
.shooting-star.two {
  top: 42%; left: 18%;
  animation-duration: 9s;
  animation-delay: 3.2s;
  transform: scale(.8);
}
.shooting-star.two::after { width: 64px; }

@keyframes shoot {
  0%   { transform: translate(0, 0);         opacity: 0; }
  3%   { opacity: 1; }
  24%  { opacity: 1; }
  30%  { transform: translate(260px, 102px); opacity: 0; }
  100% { transform: translate(260px, 102px); opacity: 0; }
}

.dream-content { position: relative; z-index: 3; }

.dream-badge {
  display: inline-block;            /* in normal flow — avoids collision */
  margin-bottom: 12px;
  padding: 5px 13px;
  border-radius: var(--r-full);
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dream-sub {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.dream-price {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--gold);
  line-height: 1.05;
}
.dream-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.55;
}
.dream-hint {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .04em;
}

/* grid-template-rows 0fr -> 1fr animates to natural content height */
.dream-reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease);
}
.dream.open .dream-reveal { grid-template-rows: 1fr; }
.dream-reveal > div { overflow: hidden; }

.dream-details { padding-top: 20px; }
.dream-details h4 {
  font-size: 14px;
  color: #fff;
  margin: 18px 0 9px;
  letter-spacing: .01em;
}
.dream-details h4:first-child { margin-top: 0; }
.dream-details p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}
.dream-details ul { list-style: none; margin: 0 0 12px; }
.dream-details li {
  position: relative;
  padding-left: 19px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}
.dream-details li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.dream-details strong { color: var(--gold); font-weight: 700; }
.dream-details a { color: var(--cyan); text-decoration: underline; font-weight: 600; }

/* ── PROCESS FLOWCHART MODAL ─────────────────────────────── */
.process { position: relative; padding: 4px 0 4px 4px; }
.process::before {
  content: '';
  position: absolute;
  left: 20px; top: 26px; bottom: 26px;
  width: 2px;
  background: linear-gradient(to bottom,
    var(--cyan) 0%, var(--steel) 55%, rgba(71,108,155,.25) 100%);
}
.pstep {
  position: relative;
  display: flex;
  gap: 17px;
  padding-bottom: 22px;
}
.pstep:last-child { padding-bottom: 0; }
.pnum {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--steel);
  border: 2px solid var(--panel);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
}
.pstep:last-child .pnum { background: var(--gold); color: var(--ink); }
.pbody { padding-top: 4px; }
.pbody h4 { font-size: 14.5px; color: #fff; margin-bottom: 4px; line-height: 1.35; }
.pbody p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 780px) {
  .cost-grid, .dream-row { grid-template-columns: 1fr; }
  .dream, .dream.open { grid-column: 1 / -1; }
  .demo-fab { padding: 11px 16px; font-size: 13px; }
  .benefit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .landing-body { overflow: auto; }
  .landing-shell { height: auto; min-height: 100%; padding: 26px 20px 40px; }
}

/* ── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .demo-fab { animation: none; }
  .shooting-star, .dream-stars { animation: none; }
  .shooting-star { opacity: 0; }
  .dream-reveal { transition: none; }
}
