/* Generated by scripts/build-site.mjs from assets/css/site/{home,waitlist}.css. Edit those files, not this one. */

/* ===== home.css ===== */
/* Home page: hero, stats, how to play, rules video, action cards, story splits, quotes, play banner, FAQ. */

.h2-sm {
  font-size: var(--fs-h2-sm);
  letter-spacing: -0.045em;
}



/* ---------- Stats: a compact row of facts in How to play, above the tabs ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-4);
}

.stats__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--c-rule-strong);
  border-radius: 999px;
  background: var(--c-surface-raised);
  font-size: 14px;
}
.stats__item img { width: auto; height: 15px; margin-right: 8px; vertical-align: -2px; }

/* dd before dt reads "2 to 8 players" while keeping the term/value pair */
.stats dd {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats dt {
  color: var(--c-muted);
  order: 1;
}

/* ---------- How to play ---------- */
.how {
  padding-top: var(--s-14);
}

.how__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1fr);
  gap: var(--s-6) var(--s-14);
  align-items: start;
}

.how__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  padding: var(--s-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.03);
}

.how__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 82px;
  padding: var(--s-3) var(--s-2);
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--c-muted);
  font-size: 13px;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.how__tab img {
  width: 34px;
  height: 23px;
  object-fit: contain;
  opacity: 0.7;
}

.how__tab:hover {
  color: var(--c-ink);
  background: rgba(255, 255, 255, 0.04);
}

.how__tab[aria-selected="true"] {
  border-color: var(--c-accent);
  background: var(--c-accent-strong);
  color: #0b0b0c;
  box-shadow: 0 5px 18px rgba(249, 220, 53, 0.1);
}

.how__tab[aria-selected="true"] img {
  opacity: 1;
  filter: brightness(0);
}

/* All three panels share one grid cell, so the box is always as tall as the longest step and never jumps */
.how__panels {
  display: grid;
}

.how__panel[hidden] {
  display: block;
  visibility: hidden;
}

.how__panel {
  grid-area: 1 / 1;
  padding: var(--s-8);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-xl);
  background: var(--panel-glass);
}

.how__panel h3 {
  margin: 10px 0 var(--s-5);
  font-size: var(--fs-h3);
  letter-spacing: -0.015em;
}

.how__panel ul {
  list-style: none;
}

.how__panel li {
  position: relative;
  margin-bottom: var(--s-2);
  padding-left: 28px;
  color: #a5a4ad;
  font-size: 17px;
}

.how__panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  background: var(--c-accent-strong);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.how__note {
  padding-top: var(--s-5);
  color: var(--c-accent-strong);
  font-size: 13px;
}

.rules {
  display: grid;
  justify-items: center;
  margin-top: var(--s-8);
}

.rules__picker {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  background: #151518;
}

.rules__lang {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 var(--s-3) 0 var(--s-4);
  border-radius: var(--r-pill);
  color: var(--c-muted);
  cursor: pointer;
}

.rules__lang:hover {
  background: rgba(255, 255, 255, 0.05);
}

.rules__lang:focus-within {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.rules__flag {
  width: 25px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.rules__lang select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

/* ---------- Rules video ---------- */
.video__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1fr);
  gap: var(--s-10);
  align-items: center;
}

.video__copy p {
  margin: var(--s-4) 0 var(--s-6);
  color: #b5b4bd;
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.video__frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: #09090b;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Action cards (matches the approved template exactly) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.card {
  --card-glow: rgba(205, 212, 215, 0.78);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 326px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-lg);
  background: #211a1d;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: #251d20;
}

/* The whole tile lifts a little when pointed at (mouse and trackpad only) */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: border-color 0.22s ease, background-color 0.22s ease; }
  .card:hover { transform: none; }
}

.card--ghosted { --card-glow: rgba(205, 212, 215, 0.78); }
.card--canceled { --card-glow: rgba(255, 190, 48, 0.78); }
.card--plot-twist { --card-glow: rgba(238, 76, 91, 0.78); }
.card--seen { --card-glow: rgba(142, 202, 62, 0.78); }
.card--swap { --card-glow: rgba(35, 190, 211, 0.78); }
.card--throwback { --card-glow: rgba(181, 104, 205, 0.78); }

.card h3 {
  position: relative;
  z-index: 2;
  max-width: 64%;
  margin: 0 0 9px;
  color: #f7f5f3;
  font-size: clamp(21px, 1.75vw, 30px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.card > p:not(.card__tag) {
  position: relative;
  z-index: 2;
  max-width: 61%;
  margin: 0;
  color: #aaa5ab;
  font-size: 16px;
  line-height: 1.55;
}

.card__tag {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  margin: 0;
  color: #ffdf24;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.card img {
  position: absolute;
  z-index: 1;
  right: -12px;
  bottom: -52px;
  width: 47%;
  height: 82%;
  object-fit: contain;
  transform: rotate(5deg);
  filter: drop-shadow(0 0 40px var(--card-glow));
  transition: filter 0.25s ease;
}

.card:hover img {
  filter: drop-shadow(0 0 44px var(--card-glow));
}

@media (max-width: 1300px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .cards { gap: 16px; }
  .card { min-height: 310px; }
  .card h3 { font-size: clamp(21px, 2.7vw, 28px); }
  .card > p:not(.card__tag) { font-size: 15px; }
  .card__tag { left: 23px; bottom: 23px; }
}

@media (max-width: 800px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .cards { gap: 14px; }
  .card { min-height: 280px; }
  .card h3 { max-width: 65%; font-size: 25px; }
  .card > p:not(.card__tag) { max-width: 63%; }
  .card img { width: 43%; height: 80%; right: -8px; bottom: -44px; }
}

/* ---------- Image + text splits ---------- */
.split__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-10);
  align-items: center;
}

.split__copy h2 {
  margin-bottom: var(--s-4);
}

.split__copy > p {
  max-width: 60ch;
  margin-bottom: 14px;
  color: #aaa9b2;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.split__copy .btn {
  margin-top: var(--s-4);
}

.split__image {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #303036;
  border-radius: var(--r-lg);
  background: #17171b;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 18px 0;
  font-size: 13px;
}

.author > img {
  width: 48px;
  height: 48px;
  border: 2px solid var(--c-accent-strong);
  border-radius: 50%;
  object-fit: cover;
}

.author__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.author__role {
  margin-top: 3px;
  color: #aaa9b2;
}

.points {
  list-style: none;
  margin: 14px 0 18px;
}

.points li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 18px;
  color: #d4d3d8;
  font-size: 13px;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 9px;
  height: 9px;
  background: var(--c-accent-strong);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Quotes ---------- */
.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--s-10);
}

.quotes__stack {
  display: grid;
  gap: var(--s-5);
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 22px var(--s-6);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-xl);
  background: var(--panel-glass);
}

.quote blockquote {
  margin: 0;
  color: #f3f2ee;
  font-size: 17px;
  line-height: 1.45;
}

.quote--feature {
  justify-content: space-between;
  gap: var(--s-12);
  min-height: 460px;
  padding: var(--s-10);
  border: 0;
  background: var(--c-accent);
  color: #111;
}

.quote--feature blockquote {
  color: #111;
  font-family: var(--font-display);
  font-size: var(--fs-h2-sm);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.person > img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.person > span {
  display: grid;
}

.person__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.person__tick {
  color: var(--c-verified);
}

.person__meta,
.person a {
  color: var(--c-link);
}

.quote--feature .person__meta {
  color: #111;
}

.quote--feature .person__meta a {
  color: #1b5fc1;
}

.person a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Play online ---------- */
.play {
  padding-block: var(--s-10);
}

.play__banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-10);
  padding: var(--s-10);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.086);
  border-radius: var(--r-xl);
  /* The app's own home: deep blue-slate with a warm glow behind the tiles */
  background:
    radial-gradient(ellipse 45% 70% at 76% 50%, rgba(255, 207, 33, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 80% at 92% 60%, rgba(15, 187, 255, 0.12), transparent 70%),
    linear-gradient(160deg, #1d2833, #14181f 60%, #141210);
}

.play__copy p {
  max-width: 30rem;
  margin-top: var(--s-3);
  color: #b6b4bd;
  font-size: var(--fs-sm);
}

.play__facts {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  gap: 8px;
  margin: var(--s-6) 0 var(--s-8);
  padding: 0;
  list-style: none;
}
/* Phones: "Free to play" starts its own row; on wider screens all three share one line */
@media (max-width: 760px) {
  .play__facts::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .play__facts .play__facts-row { order: 2; }
}

.play__facts li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e9e7ee;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

/* ----- The two tiles from the game's own home screen, same art and type ----- */
.play__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 200px));
  justify-content: center;
  gap: var(--s-4);
}

.etile {
  position: relative;
  display: block;
  aspect-ratio: 140 / 200;
  container-type: inline-size;
  border-radius: 24px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1));
}
.etart { position: absolute; inset: 0; pointer-events: none; }
.etart img { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; max-width: none; }
.etart img.on { left: -21.43%; top: -11%; width: 142.86%; height: 127%; opacity: 0; transition: opacity 220ms ease; }
.ett {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5.7cqw;
  font: 800 12.86cqw/1.2 var(--font-display);
  letter-spacing: -0.02em;
}
.ett .big { font-size: 20cqw; line-height: 1; }
.etile--lobby .ett .big { color: #ffcf21; }
.etile--bot .ett .big { color: #0fbbff; }
.etile small {
  position: absolute;
  left: 5.7cqw;
  right: 5.7cqw;
  bottom: 9cqw;
  font: 400 8.57cqw/1.05 var(--font-body);
}
.etile--lobby small { color: #b1b1b1; }
.etile--bot small { color: #e4d8d8; }

@media (hover: hover) and (pointer: fine) {
  .etile:hover { z-index: 1; transform: translateY(-4px); }
  .etile:hover .etart img.on { opacity: 1; }
}
.etile:active { transform: scale(0.97); }
.etile:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.etile:focus-visible .etart img.on { opacity: 1; }

/* ----- The section's dealt moment: when it first scrolls into view the tiles are dealt in,
   then each one lights up once, as it does on hover, to show it can be picked ----- */
.play.is-armed .etile { opacity: 0; transform: translateY(40px) rotate(var(--deal-r, 0deg)); }
.etile--lobby { --deal-r: -6deg; --deal-d: 0ms; }
.etile--bot { --deal-r: 6deg; --deal-d: 110ms; }
.play.is-in .etile {
  animation: play-deal 700ms var(--ease-out, cubic-bezier(0.23, 1, 0.32, 1)) var(--deal-d) both;
}
.play.is-in .etile .etart img.on {
  animation: play-lightup 1100ms ease-in-out calc(var(--deal-d) * 3 + 750ms) both;
}
@keyframes play-deal {
  from { opacity: 0; transform: translateY(40px) rotate(var(--deal-r)); }
  to { opacity: 1; transform: none; }
}
@keyframes play-lightup {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .play.is-armed .etile { opacity: 1; transform: none; }
  .play.is-in .etile,
  .play.is-in .etile .etart img.on { animation: none; }
  .etile { transition: none; }
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.54fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: start;
}

.faq__intro {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}

.faq__intro .btn {
  margin-top: var(--s-2);
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--c-line);
  border-radius: var(--r);
  background: #15151a;
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding: 18px var(--s-5);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--c-accent);
  font-size: 20px;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq__item p {
  padding: 0 var(--s-5) 18px;
  color: #b4b3bc;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .how__grid,
  .video__grid,
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote--feature {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: var(--s-14);
  }



  .split__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__image {
    order: 2;
  }


  .play__banner {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-8) var(--s-6);
    text-align: center;
  }
  .play__copy p { margin-inline: auto; }
  .play__facts { justify-content: center; }
  .play__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .quote--feature {
    padding: var(--s-8) var(--s-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .how__tab {
    transition: none;
  }
}

/* ---------- Hero ----------
   Copy on the left; on the right the box and an iPhone showing the online game, side by side at their
   real sizes (box 115 mm tall, iPhone 18 Pro 150 x 71.9 mm), the phone slightly over the box.
   On load the box arrives, then the phone is dealt out from behind it and swings into place
   (the page's one dealt moment). After that nothing moves on its own. */
.hero {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: grid;
  align-items: center;
  min-height: var(--hero-h, auto);
  /* The phone: titanium frame, glass, lens */
  --phone-frame: #3a3a3f;
  --phone-frame-hi: #6b6b72;
  --phone-frame-lo: #1b1b1f;
  --phone-glass: #050506;
  --phone-shadow: rgba(0, 0, 0, 0.55);
  --phone-sheen: rgba(255, 255, 255, 0.1);
  padding-block: clamp(56px, 9vh, 112px) clamp(32px, 6vh, 72px);
  /* No clip here: Safari cut the buttons at the hero's bottom edge; html and body already stop sideways scroll */
  background:
    radial-gradient(ellipse 38% 55% at 72% 46%, rgba(249, 220, 53, 0.13), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(ellipse at 50% 40%, #282319 0%, var(--c-bg) 68%);
}

/* Fade the grid into the page at the sides and the bottom */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--c-bg) 0%, transparent 18%, transparent 82%, var(--c-bg) 100%),
    linear-gradient(180deg, transparent 60%, var(--c-bg) 100%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

/* ----- Copy ----- */
.hero__copy { position: relative; z-index: 2; container-type: inline-size; }

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-4);
  color: var(--c-accent);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(249, 220, 53, 0.35);
  border-radius: 999px;
  color: var(--c-text, #fff);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: rgba(249, 220, 53, 0.08);
}
.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(249, 220, 53, 0.55);
  animation: hero-dot 2s ease-out infinite;
}
/* A ring spreads out of the dot and fades, like a live indicator */
@keyframes hero-dot {
  0% { box-shadow: 0 0 0 0 rgba(249, 220, 53, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(249, 220, 53, 0); }
}

.hero__title {
  margin-bottom: var(--s-5, 20px);
  font-family: var(--font-poster);
  /* Sized to the copy column so "YOUR FRIENDS" always fits on one line */
  font-size: clamp(34px, 14cqi, 104px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.06em;
  margin: -0.04em -0.06em;
}
.hero__line > span { display: inline-block; }

.hero__title-outline {
  white-space: nowrap;
  /* Variable-font letters overlap inside; a fill in the page colour painted over the stroke hides those lines */
  color: var(--c-bg);
  -webkit-text-stroke: 3px var(--c-accent);
  paint-order: stroke fill;
}

.hero__lead {
  max-width: 34rem;
  margin-bottom: var(--s-8);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ----- Stage: the box and the phone, to scale -----
   The stage is as tall as the phone. Widths are shares of the stage:
   box 86.8 mm, phone 71.9 mm, 12 mm of overlap, so 146.7 mm across and 150 mm tall. */
.hero__art {
  display: flex;
  justify-content: center;
}

.hero__stage {
  position: relative;
  width: min(92%, calc(var(--art-h, 60svh) * 0.9));
  aspect-ratio: 146.7 / 150;
}

.hero__box {
  --tilt: -6deg;
  position: absolute;
  left: 0;
  bottom: 3%;
  z-index: 1;
  width: 59.2%;
  line-height: 0;
  transform: rotate(var(--tilt));
  filter: drop-shadow(0 0 60px var(--c-glow)) drop-shadow(0 30px 40px var(--phone-shadow));
}
.hero__box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero__phone {
  --tilt: 5deg;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: 49%;
  aspect-ratio: 71.9 / 150;
  container-type: inline-size;
}
/* The body: a titanium band turned a little towards the box, so its right side shows.
   The side is the band's colour stepped out to the right, 8.75 mm deep seen at that angle. */
.hero__phone-body {
  position: absolute;
  inset: 0;
  padding: 1.5cqi;
  border-radius: 16.5cqi;
  background: linear-gradient(105deg, var(--phone-frame-lo) 0%, var(--phone-frame) 18%, var(--phone-frame-hi) 50%, var(--phone-frame) 82%, var(--phone-frame-hi) 100%);
  box-shadow:
    inset 0 0 0 0.35cqi var(--phone-frame-hi),
    0.8cqi 0 0 var(--phone-frame-hi),
    1.6cqi 0 0 var(--phone-frame),
    2.4cqi 0 0 var(--phone-frame),
    3.2cqi 0 0 var(--phone-frame-lo),
    10cqi 14cqi 20cqi var(--phone-shadow),
    0 0 26cqi var(--c-glow);
  transform: perspective(1600px) translate3d(0, 0, 0) rotateY(-16deg) rotate(var(--tilt)) scale(1);
}
/* Side button on the edge that faces us */
.hero__phone-body::after {
  content: "";
  position: absolute;
  right: -4cqi;
  top: 31%;
  width: 1.2cqi;
  height: 12%;
  border-radius: 1cqi;
  background: var(--phone-frame);
}
/* The black border around the screen */
.hero__phone-glass {
  position: relative;
  height: 100%;
  padding: 2.3cqi;
  border-radius: 15cqi;
  background: var(--phone-glass);
}
.hero__phone-screen {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 12.8cqi;
}
/* A soft reflection across the glass */
.hero__phone-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, var(--phone-sheen) 0%, transparent 32%, transparent 100%);
}

/* ----- Entrance, once on load ----- */
@keyframes hero-rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-line {
  from { transform: translateY(105%); }
  to { transform: none; }
}
@keyframes hero-box-in {
  from { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.92) rotate(-16deg); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(var(--tilt)); }
}
/* The phone starts behind the box, lying at the box's angle, and is dealt out to the right.
   Both ends list the same transforms so the move stays a clean slide and turn. */
@keyframes hero-phone-in {
  from { opacity: 0; transform: perspective(1600px) translate3d(-52%, 5%, 0) rotateY(0deg) rotate(-6deg) scale(0.9); }
  35% { opacity: 1; }
  to { opacity: 1; transform: perspective(1600px) translate3d(0, 0, 0) rotateY(-16deg) rotate(var(--tilt)) scale(1); }
}

.hero__eyebrow { animation: hero-rise 700ms var(--ease-out) 80ms both; }
.hero__line > span { animation: hero-line 900ms var(--ease-out) both; }
.hero__line:first-child > span { animation-delay: 140ms; }
.hero__line:last-child > span { animation-delay: 240ms; }
.hero__lead { animation: hero-rise 700ms var(--ease-out) 360ms both; }
.hero__actions { animation: hero-rise 700ms var(--ease-out) 440ms both; }
.hero__box { animation: hero-box-in 900ms var(--ease-out) 100ms both; }
.hero__phone-body { animation: hero-phone-in 1000ms var(--ease-out) 550ms both; }

/* The primary button glows twice once the phone has landed, then rests */
.hero__actions .btn--primary { animation: hero-cta 2.2s ease-in-out 1.6s 2; }
@keyframes hero-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 220, 53, 0); }
  50% { box-shadow: 0 0 32px 4px rgba(249, 220, 53, 0.35); }
}

/* ----- Phones: the box and the phone on top, the copy centred under them ----- */
@media (max-width: 760px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
    text-align: center;
  }
  .hero__art { order: -1; }
  /* Phones: no badge, so the box and the phone fill the space from just under the header down to the title */
  .hero {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  .hero__stage { width: min(80vw, calc(var(--art-h, 40svh) * 0.9)); }
  .hero__eyebrow { display: none; }
  .hero__eyebrow-text { display: none; }
  .hero__title {
    margin-bottom: var(--s-4);
    font-size: clamp(34px, 14cqi, 60px);
  }
  .hero__lead {
    margin-inline: auto;
    margin-bottom: var(--s-6);
    font-size: 16px;
  }
  .hero__actions {
    justify-content: center;
    padding-bottom: var(--s-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__line > span,
  .hero__lead,
  .hero__actions,
  .hero__actions .btn--primary,
  .hero__box,
  .hero__phone-body,
  .hero__badge::before { animation: none; }
}


/* ===== waitlist.css ===== */
/* Waitlist band and the form that assets/js/waitlist-form.js builds (its class names are fixed by that script). */

.waitlist {
  padding-block: var(--s-10);
}

.waitlist__panel {
  padding: 55px var(--s-8);
  border: 1px solid rgba(249, 220, 53, 0.19);
  border-radius: var(--r-xl);
  background: radial-gradient(at 50% 0%, #4a3a17, #201b13 45%, #17151a 100%);
  text-align: center;
}

.waitlist__panel h2 {
  max-width: 700px;
  margin-inline: auto;
}

.waitlist__panel > p {
  margin: 13px auto 0;
  max-width: 52ch;
  color: #c3bdad;
  font-size: var(--fs-sm);
}

.waitlist__form {
  max-width: 460px;
  margin: var(--s-6) auto 0;
}

.waitlist__note {
  margin-top: var(--s-3) !important;
  color: var(--c-accent) !important;
  font-size: 13px !important;
}

/* The injected form */
.hero-email-form {
  position: relative;
  display: flex;
  gap: var(--s-2);
}

.hero-email-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid rgba(255, 255, 255, 0.145);
  border-radius: var(--r-pill);
  background: var(--c-field);
  color: var(--c-ink);
  font-size: var(--fs-body);
}

.hero-email-input:focus {
  outline: none;
}

.hero-email-input:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.hero-email-input.is-error {
  border-color: #ff6b5b;
}

.hero-email-placeholder {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-quiet);
  font-size: var(--fs-sm);
  pointer-events: none;
  white-space: nowrap;
}

.hero-email-btn {
  height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid var(--c-accent);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease);
}

.hero-email-btn:hover {
  background: var(--c-accent-strong);
}

.hero-email-btn:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* While sending: a different fill, ink and cursor, so it reads as busy without relying on fading */
.hero-email-btn:disabled,
.hero-email-btn:disabled:hover {
  border-color: var(--c-rule-strong);
  background: var(--c-surface-2);
  color: var(--c-muted);
  cursor: progress;
}

.hero-email-form.is-error::after {
  content: attr(data-error);
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  color: #ff8a7d;
  font-size: 13px;
}

.waitlist-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border-radius: var(--r-pill);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 700;
}

@media (max-width: 480px) {
  .hero-email-form {
    flex-direction: column;
  }

  /* Stacked: keep the placeholder on the field (top 44px), not the middle of field + button */
  .hero-email-placeholder {
    top: 24px;
  }

  .hero-email-input,
  .hero-email-btn {
    flex: none;
    height: 48px;
  }

  .waitlist__panel {
    padding: var(--s-10) var(--s-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-email-btn {
    transition: none;
  }
}
