/*
  card.css: THE SEATS CARD, round 2 (everything centred: a title row, the seats row, the button). A small card anchored to the viewport's bottom-right of the home page that appears 4 s
  after load and promotes the open wave's seats (or the fire sale). card.js builds it ONLY from an answer Command gave; with no
  answer there is no card, so none of this CSS ever paints. House tokens only (home.css :root): the bg-raise ground, the
  accent, the house easing, sharp corners, no pattern. The button is the home page's MEET THE SYSTEM button, scaled to a card.
  The X is the Meet page's X (two corner-to-corner diagonals, a hit area larger than the glyph).
*/

.seats-card {
  /* r164 (his word: "i think the pop up is too large - thats 1440p and 1080p"): about two-thirds of round 3's box at every screen, and a gutter
     small enough that the card clears the page's bottom-right content (the TAMPER PROOF pod, the Doctrine reader's control) at 1920. */
  --card-gutter: clamp(20px, 1.6vw, 64px);
  --card-pad: clamp(12px, 0.7vw, 22px);
  --card-x: clamp(11px, 0.6vw, 20px);               /* the X glyph's box */
  --card-xo: clamp(8px, 0.5vw, 16px);               /* r164: the X's offset from the card's top and right edges */
  position: fixed;
  right: var(--card-gutter);
  bottom: var(--card-gutter);
  z-index: 20;                                       /* above the stage (1-3) and the nav (10), below nothing else on the page */
  /* round 2: three centred rows. The card is as wide as its widest row needs (the title; nothing wraps at lg and up), never
     narrower than round 1's width. The X sits in its own strip above the rows' right end, so it is never over the text. */
  width: clamp(212px, 11.6vw, 330px);               /* r164: a fixed narrow card; the title stacks over two lines */
  min-width: 0;
  max-width: calc(100vw - 2 * var(--card-gutter));
  padding: var(--card-pad);                          /* r164: the X rides the title's corner, no strip of its own (the stacked title leaves the corner free) */
  text-align: center;
  background: var(--bg-raise);
  border: 1px solid rgba(34, 211, 238, 0.42);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.55), 0 0 38px rgba(34, 211, 238, 0.09);
  color: var(--ink);
  /* hidden: 12px below its place, transparent. Leaving is this state's transition (240 ms, quicker than the 360 ms rise in). */
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.seats-card.is-in {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out), visibility 0s;
}
/* LIVE 1 (his word Sat 2026-10-31): a card already shown this visit stands in place on the next page — no rise, no fade in (card.js adds .is-still) */
.seats-card.is-still.is-in { transition: none; }

/* ROUND 2, the title row: "Founders Sale: NN% off" (the fire sale's: "Fire Sale: ..."), Archivo 700 in the
   accent, one size above the seats line. */
.card-title {
  font-size: clamp(13.5px, 0.72vw, 19px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--accent);
}
.card-title .nw { white-space: nowrap; }             /* r164: "NN% off" never splits; the title stacks "Founders Sale:" over it */
/* the seats row: Command's own words, in the ink. */
.card-line {
  margin-top: clamp(3px, 0.2vw, 6px);
  font-size: clamp(12.5px, 0.6vw, 15px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--ink);
}

/* ---- the button: the home page's .btn-system, the same border / wash / glow / press, sized to the card ---- */
.card-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(9px, 0.55vw, 16px);
  min-height: clamp(28px, 1.5vw, 40px);
  padding: 0 10px;
  color: var(--accent);
  font-size: clamp(11px, 0.52vw, 13px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.055);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  box-shadow: 0 0 30px 3px rgba(34, 211, 238, 0.4), inset 0 0 22px rgba(34, 211, 238, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.card-cta span { position: relative; }
.card-cta:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.1); color: var(--cyan-hot); text-shadow: 0 0 14px rgba(103, 232, 249, 0.75); }
.card-cta:hover::before { opacity: 1; }
/* LIVE 1 (his word Sat 2026-10-31: "how about we pulse the lock in a seat button"): the house pulse — the Tools page's "› Sample The Forge" and
   Command's "› Continue to Pricing" breathe 1 → 0.55 over 2 s (meet.css next-pulse / command.css go-pricing-pulse); the same here, held still under the pointer */
.card-cta { animation: cta-pulse 1.4s ease-in-out infinite;   /* LIVE 9: the one breath in home.css */ }
.card-cta:hover, .card-cta:focus-visible { animation-play-state: paused; opacity: 1; }
.card-cta:active { transform: scale(0.975); background: rgba(34, 211, 238, 0.2); transition-duration: 0.07s; }
.card-cta:active::before { opacity: 1; box-shadow: 0 0 46px 8px rgba(103, 232, 249, 0.6), inset 0 0 30px rgba(103, 232, 249, 0.34); transition-duration: 0.07s; }

/* ---- the X, at the card's top-right: the Meet page's X (two diagonals; the hit area is bigger than the glyph) ---- */
.card-x {
  position: absolute;
  top: var(--card-xo);
  right: var(--card-xo);
  width: var(--card-x);
  height: var(--card-x);
  border: 0;
  cursor: pointer;
  color: var(--ink-dim);
  background:
    linear-gradient(45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px)),
    linear-gradient(-45deg, transparent calc(50% - 1.1px), currentColor calc(50% - 1.1px), currentColor calc(50% + 1.1px), transparent calc(50% + 1.1px));
  transition: color 0.2s ease, filter 0.3s ease, scale 0.1s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.card-x::before { content: ""; position: absolute; inset: -14px; }
.card-x:hover { color: var(--accent); filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); }
.card-x:active { scale: 0.92; }
.seats-card :focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---- below lg: NO CARD (m36, the mobile lane — his word Fri 2026-10-30, "2": the card is the desktop's; on a phone it covered the splash's
   closing line and Pricing's door, its X was 11 px, and the phone already offers the seat in the nav panel and on Pricing). card.js still runs:
   its one fetch feeds the Pricing waves (r234). The old phone rules (a full-width card between the gutters) are retired, not stacked. ---- */
@media (max-width: 1023px) {
  .seats-card { display: none; }
}

/* Reduced motion: the card appears without the rise, a plain fade. */
@media (prefers-reduced-motion: reduce) {
  .seats-card { transform: none; transition: opacity 200ms linear, visibility 0s linear 200ms; }
  .seats-card.is-in { transition: opacity 200ms linear, visibility 0s; }
  .card-cta::before { transition: none; }
  .card-cta { animation: none; }   /* LIVE 1: no pulse under reduced motion */
  .card-cta:active { transform: none; }
}
