/* ==============================================================
   THE TEASER

   Same tower, fewer rooms. Every colour, font and component here
   is the dashboard's — the mana pips are literally the same
   `.mana-pip` from app.css — so the page a buyer sees before
   launch and the one they see after are recognisably one place.
============================================================== */

.teaser {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
}

/* --------------------------------------------------------------
   HERO
-------------------------------------------------------------- */

.teaser-hero {
  text-align: center;
  padding: 20px 0 52px;
}

.teaser-crest {
  font-size: 30px;
  line-height: 1;
  color: var(--gold);

  margin-bottom: 22px;

  /* A slow pulse, not a spinner. The page should feel like it is
     waiting, not loading. */
  animation: crest-breathe 4s ease-in-out infinite;
}

@keyframes crest-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

.teaser-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);

  margin-bottom: 16px;
}

.teaser-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 700;
  line-height: 1.12;

  margin-bottom: 22px;
}

.teaser-store {
  color: var(--text);
}

/* The one place the six colours appear together as a gradient —
   the name of the tower itself. Everywhere else a colour means a
   specific mana, and mixing them would be noise. */
.teaser-brand {
  display: inline-block;

  background: linear-gradient(
    100deg,
    var(--mana-white) 0%,
    var(--mana-blue) 22%,
    var(--mana-black) 40%,
    var(--mana-red) 60%,
    var(--mana-green) 80%,
    var(--gold) 100%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.teaser-lede {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--text-soft);

  max-width: 40ch;
  margin: 0 auto 40px;
}

.teaser-lede strong {
  color: var(--text);
  font-weight: 700;
}

/* --------------------------------------------------------------
   THE SIX POOLS

   Drawn exactly as the dashboard draws them, and charging — which
   is the honest picture of what is happening: the mana is real and
   accumulating, it just cannot be spent yet.
-------------------------------------------------------------- */

.teaser-pools {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;

  max-width: 520px;
  margin: 0 auto 16px;
}

.teaser-pool {
  display: grid;
  place-items: center;
  gap: 9px;

  padding: 16px 6px 14px;

  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
}

.teaser-pool .mana-pip {
  animation: pool-charge 3.2s ease-in-out infinite;
}

.teaser-pool:nth-child(2) .mana-pip { animation-delay: 0.25s; }
.teaser-pool:nth-child(3) .mana-pip { animation-delay: 0.5s; }
.teaser-pool:nth-child(4) .mana-pip { animation-delay: 0.75s; }
.teaser-pool:nth-child(5) .mana-pip { animation-delay: 1s; }
.teaser-pool:nth-child(6) .mana-pip { animation-delay: 1.25s; }

@keyframes pool-charge {
  0%, 100% { transform: translateY(0);    filter: brightness(1); }
  50%      { transform: translateY(-4px); filter: brightness(1.35); }
}

/* A bar that fills and holds, per colour — the pool filling up
   while the gate stays shut. */
.teaser-pool-bar {
  width: 100%;
  height: 3px;

  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.teaser-pool-fill {
  height: 100%;
  width: 0;

  background: var(--pip);
  border-radius: 999px;

  animation: pool-fill 3.2s ease-in-out infinite;
}

.teaser-pool:nth-child(2) .teaser-pool-fill { animation-delay: 0.25s; }
.teaser-pool:nth-child(3) .teaser-pool-fill { animation-delay: 0.5s; }
.teaser-pool:nth-child(4) .teaser-pool-fill { animation-delay: 0.75s; }
.teaser-pool:nth-child(5) .teaser-pool-fill { animation-delay: 1s; }
.teaser-pool:nth-child(6) .teaser-pool-fill { animation-delay: 1.25s; }

@keyframes pool-fill {
  0%        { width: 12%; }
  45%, 60%  { width: 82%; }
  100%      { width: 12%; }
}

.teaser-pool-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .teaser-crest,
  .teaser-pool .mana-pip,
  .teaser-pool-fill {
    animation: none;
  }
  .teaser-pool-fill { width: 60%; }
}

.teaser-pools-note {
  font-size: 12.5px;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------
   SECTIONS
-------------------------------------------------------------- */

.teaser-section {
  padding: 46px 0;
  border-top: 1px solid var(--border);
}

.teaser-h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  text-align: center;
  color: var(--text);

  margin-bottom: 30px;
}

.teaser-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.teaser-step {
  padding: 24px 22px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);

  transition: border-color 0.2s ease, transform 0.2s ease;
}

.teaser-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.teaser-step-n {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  margin-bottom: 14px;

  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);

  background: rgba(213, 178, 100, 0.1);
  border: 1px solid rgba(213, 178, 100, 0.3);
  border-radius: 50%;
}

.teaser-step h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.teaser-step p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-soft);
}

.teaser-step strong {
  color: var(--gold-light);
}

/* --------------------------------------------------------------
   THE RETROACTIVE PANEL

   Given its own gold frame because it is the reason a past
   customer keeps reading.
-------------------------------------------------------------- */

.teaser-keep {
  text-align: center;

  padding: 38px 30px;
  margin-bottom: 34px;

  background: rgba(213, 178, 100, 0.06);
  border: 1px solid rgba(213, 178, 100, 0.26);
  border-radius: var(--radius-large);
}

.teaser-keep-mark {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 12px;
}

.teaser-keep h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 25px);
  font-weight: 600;
  color: var(--gold-light);

  margin-bottom: 12px;
}

.teaser-keep p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-soft);

  max-width: 48ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------
   SIGNUP
-------------------------------------------------------------- */

.teaser-signup {
  padding: 34px 30px;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

/* Only appears for someone holding a card, and it should feel like
   the app already knows them. */
.teaser-order {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 13px 16px;
  margin-bottom: 22px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-left: 2px solid var(--pip, var(--gold));
  border-radius: 12px;
}

.teaser-order-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.teaser-order-text strong {
  color: var(--text);
}

.teaser-label {
  display: block;

  font-size: 14px;
  text-align: center;
  color: var(--text-soft);

  margin-bottom: 16px;
}

.teaser-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.teaser-input {
  flex: 1;
  min-width: 200px;

  padding: 14px 16px;

  font: inherit;
  font-size: 15px;
  color: var(--text);

  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;

  transition: border-color 0.16s ease, background 0.16s ease;
}

.teaser-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.teaser-input::placeholder {
  color: var(--text-muted);
}

.teaser-button {
  padding: 14px 30px;

  font: inherit;
  font-size: 15px;
  font-weight: 700;

  color: #141414;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 999px;

  cursor: pointer;

  transition: transform 0.15s ease, filter 0.15s ease;
}

.teaser-button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.teaser-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.teaser-consent {
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-muted);

  margin-top: 14px;
}

.teaser-message {
  margin-top: 14px;
  padding: 11px 14px;

  font-size: 13px;
  text-align: center;
  border-radius: 12px;

  color: #ffc9bd;
  background: rgba(207, 53, 32, 0.14);
  border: 1px solid rgba(207, 53, 32, 0.34);
}

.teaser-done {
  text-align: center;
  padding: 12px 0;
}

.teaser-done-mark {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 12px;

  animation: crest-breathe 4s ease-in-out infinite;
}

.teaser-done h3 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);

  margin-bottom: 10px;
}

.teaser-done p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-soft);

  max-width: 42ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------
   FOOTER
-------------------------------------------------------------- */

.teaser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;

  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--border);

  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.teaser-footer a {
  letter-spacing: normal;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
}

.teaser-footer a:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------
   NARROW
-------------------------------------------------------------- */

@media (max-width: 560px) {
  .teaser { padding: 26px 0 44px; }

  .teaser-pools {
    grid-template-columns: repeat(3, 1fr);
    max-width: 300px;
  }

  .teaser-signup { padding: 24px 18px; }
  .teaser-keep { padding: 30px 20px; }

  .teaser-button { width: 100%; }

  .teaser-footer { justify-content: center; text-align: center; }
}
