/* ============ tokens ============ */
:root {
  --void: #faf5ec;          /* cream stage */
  --panel: #ffffff;         /* cards */
  --beam: #f2766b;          /* coral */
  --beam-dim: #f3ddd0;      /* pale coral line */
  --mist: #9b8a7e;          /* warm gray-brown */
  --paper: #46372f;         /* warm ink */
  --mint: #6fc7b4;
  --butter: #f3c24f;
  --display: 'Clash Display', sans-serif;
  --body: 'Satoshi', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --hud-pad: clamp(16px, 3vw, 32px);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--void);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--beam); color: var(--void); }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============ loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--void);
  display: grid; place-items: center;
  transition: opacity 0.6s ease;
}
.loader.done { opacity: 0; pointer-events: none; }
.loader-inner { display: grid; gap: 14px; justify-items: center; color: var(--mist); }
.loader-bar { width: 220px; height: 1px; background: var(--beam-dim); }
.loader-fill { width: 0%; height: 100%; background: var(--beam); transition: width 0.2s ease; }

/* ============ film canvas ============ */
#film {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
}

/* ============ HUD ============ */
.hud { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.hud-corner {
  position: absolute; width: 18px; height: 18px;
  border: 1px solid rgba(70, 55, 47, 0.35);
}
.hud-corner.tl { top: var(--hud-pad); left: var(--hud-pad); border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: var(--hud-pad); right: var(--hud-pad); border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: var(--hud-pad); left: var(--hud-pad); border-right: 0; border-top: 0; }
.hud-corner.br { bottom: var(--hud-pad); right: var(--hud-pad); border-left: 0; border-top: 0; }
.hud-item { position: absolute; color: var(--mist); }
.hud-item.hud-tl { top: calc(var(--hud-pad) + 2px); left: calc(var(--hud-pad) + 28px); color: var(--paper); }
.hud-item.hud-tr { top: calc(var(--hud-pad) + 2px); right: calc(var(--hud-pad) + 28px); }
.hud-item.hud-bl { bottom: calc(var(--hud-pad) + 2px); left: calc(var(--hud-pad) + 28px); }
.hud-item.hud-br { bottom: calc(var(--hud-pad) + 2px); right: calc(var(--hud-pad) + 28px); }
.hud-dim { color: var(--mist); }
.rec-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--beam); margin-right: 8px; vertical-align: 1px;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

/* brand logo (top-left) */
.hud-item.logo { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  color: var(--void); background: var(--beam);
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(242, 118, 107, 0.32);
}
.logo-word {
  font-family: var(--display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.06em; line-height: 1;
  color: var(--paper);
}
.logo-word b { font-weight: 500; color: var(--mist); margin-left: 0.45em; }

/* scroll hint (bottom-center, prominent) */
.hud-item.hud-bc {
  left: 50%; bottom: calc(var(--hud-pad) + 6px);
  transform: translateX(-50%);
  color: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: 0.24em;
  padding: 10px 20px;
  border: 1px solid rgba(70, 55, 47, 0.28);
  border-radius: 999px;
  background: rgba(250, 245, 236, 0.62);
  backdrop-filter: blur(5px);
  animation: hint-bob 2.2s ease-in-out infinite;
}
@keyframes hint-bob { 50% { transform: translateX(-50%) translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hud-item.hud-bc { animation: none; } }

/* ============ hero ============ */
main { position: relative; z-index: 10; }

.hero {
  min-height: 100vh;
  display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 22px;
  padding: 0 24px;
}
.eyebrow { color: var(--beam); }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--beam); }
.hero-sub {
  color: var(--paper);
  max-width: 44ch;
  text-shadow: 0 0 6px rgba(250,245,236,0.95), 0 0 18px rgba(250,245,236,0.9);
}

/* ============ scenes & beats ============ */
.scene { height: 300vh; position: relative; }

.beat {
  position: fixed; inset: 0;
  display: grid; place-content: center; justify-items: center;
  text-align: center; gap: 16px;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}
.beat-eyebrow { color: var(--beam); }
.beat-line {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
  text-shadow: 0 2px 30px rgba(250, 245, 236, 0.9);
}
.beat-steps { line-height: 1.25; }
.accent { color: var(--beam); }

/* ============ panels (pricing / cta) ============ */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(250,245,236,0) 0%, rgba(250,245,236,0.97) 8%, rgba(250,245,236,0.97) 92%, rgba(250,245,236,0) 100%);
  padding: 18vh 24px;
  display: grid; justify-items: center; gap: 18px;
  text-align: center;
}
.panel h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -0.015em;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1080px;
  width: 100%;
  margin-top: 28px;
  text-align: left;
}
.tier {
  background: var(--panel);
  border: 1px solid rgba(70, 55, 47, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(70, 55, 47, 0.06);
  padding: 34px 30px;
  display: grid; gap: 16px;
  align-content: start;
  position: relative;
}
.tier-featured {
  border-color: var(--beam);
  box-shadow: 0 14px 50px rgba(242, 118, 107, 0.22);
}
.tier-badge {
  position: absolute; top: -9px; left: 30px;
  background: var(--beam); color: var(--void);
  padding: 3px 10px;
}
.tier h3 { font-family: var(--display); font-weight: 600; font-size: 24px; }
.price { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; }
.price span { font-size: 18px; font-weight: 500; color: var(--mist); }
.price-note { color: var(--mist); }
.tier ul { list-style: none; display: grid; gap: 9px; color: var(--mist); }
.tier li { padding-left: 28px; position: relative; }
.tier li::before { content: '—'; position: absolute; left: 0; color: var(--beam); }

/* ============ buttons ============ */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid rgba(70, 55, 47, 0.3);
  border-radius: 999px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  justify-self: center;
}
.tier .btn { justify-self: stretch; text-align: center; }
.btn:hover { border-color: var(--beam); color: var(--beam); }
.btn-solid { background: var(--beam); border-color: var(--beam); color: var(--void); }
.btn-solid:hover { background: transparent; color: var(--beam); }
.btn:focus-visible { outline: 2px solid var(--beam); outline-offset: 3px; }

/* ============ cta form ============ */
.panel-cta { min-height: 100vh; align-content: center; }
.cta-sub { color: var(--mist); }
#ctaForm {
  display: grid; gap: 18px;
  width: min(420px, 100%);
  margin-top: 16px;
  text-align: left;
}
#ctaForm label { display: grid; gap: 7px; color: var(--mist); }
#ctaForm input {
  background: var(--panel);
  border: 1px solid rgba(70, 55, 47, 0.2);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  padding: 13px 15px;
}
#ctaForm input:focus-visible { outline: none; border-color: var(--beam); }
.form-done { color: var(--beam); text-align: center; }
.form-err { color: var(--beam); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ============ reduced motion / no-js fallback ============ */
body.static-mode #film, body.static-mode .hud { display: none; }
body.static-mode .scene { height: auto; padding: 12vh 24px; }
body.static-mode .beat { position: static; opacity: 1; pointer-events: auto; }
body.static-mode .scene img.poster {
  display: block; width: min(900px, 100%); margin: 32px auto 0;
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; }
  .scene { height: 260vh; }
  .hud-item.hud-bl, .hud-corner.bl { display: none; }
}

@media (max-width: 640px) {
  .hud-dim { display: none; }
  .hud-item { font-size: 10px; letter-spacing: 0.1em; }
}
