/* ==========================================================================
   Roamio · Coming soon (Diwali edition)
   Follows Roamio brand guidelines v2.0. See README.md for every decision.
   ========================================================================== */

:root {
  /* Brand palette: the only three brand colours (70 / 20 / 10) */
  --plum: #2E1A47;       /* primary, the environment */
  --offwhite: #F7F9FA;   /* surface, where information lives */
  --coral: #FF5A5F;      /* accent: primary action and the "io" only */

  /* Supporting neutrals (brand guidelines) */
  --plum-deep: #1C0F2C;
  --plum-tint: #EFEAF4;
  --paper: #ffffff;
  --muted: #6F6880;
  --rule: #DDD8E4;

  /* Plum-family text tints on plum (as used in the guidelines' own hero/footer) */
  --on-plum-soft: #CFC5DE;
  --on-plum-muted: #B9A9D0;

  /* Functional status colours (not brand colours) */
  --approved: #1D9E75;
  --approved-text: #157E5D;
  --progress: #BA7517;
  --progress-text: #A3620F;
  --rejected: #B3261E;      /* same value for fill and text (6.19:1 on off-white) */

  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1200px;
  --gutter: 24px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* fallback for iOS 15 and older, which don't support clip */
  overflow-x: clip;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* fallback for iOS 15 and older */
  overflow-x: clip;
  background-color: var(--plum);
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(28, 15, 44, 0.9), transparent 70%),
    radial-gradient(ellipse 70% 50% at 75% 45%, rgba(247, 249, 250, 0.05), transparent 70%);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--offwhite);
  outline-offset: 4px;
  border-radius: 6px;
}

.features :focus-visible {
  outline-color: var(--plum);
}

.sr-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Mono utility label: the only place all-caps is allowed */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-plum-muted);
}

.flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin: 0 2px;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(247, 249, 250, 0.2);
}

/* --------------------------------------------------------------------------
   Night sky: off-white light only
   -------------------------------------------------------------------------- */

.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1500px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.stars,
.stars::after {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(247, 249, 250, 0.9), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(247, 249, 250, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 210px 150px, rgba(247, 249, 250, 0.85), transparent),
    radial-gradient(1px 1px at 60px 220px, rgba(247, 249, 250, 0.7), transparent),
    radial-gradient(1px 1px at 265px 265px, rgba(247, 249, 250, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 165px 20px, rgba(247, 249, 250, 0.8), transparent);
  background-size: 300px 300px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 50%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 50%, transparent 85%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

.stars::after {
  content: "";
  background-size: 420px 420px;
  background-position: 140px 90px;
  animation-delay: -3s;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.9; }
}

/* Fireworks: one 4px element, 24 off-white sparks drawn with box-shadow */
.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  color: var(--offwhite);
  opacity: 0;
  filter: drop-shadow(0 0 5px rgba(247, 249, 250, 0.9));
  box-shadow:
    70px 0, 61px 35px, 35px 61px, 0 70px, -35px 61px, -61px 35px,
    -70px 0, -61px -35px, -35px -61px, 0 -70px, 35px -61px, 61px -35px,
    39px 10px, 28px 28px, 10px 39px, -10px 39px, -28px 28px, -39px 10px,
    -39px -10px, -28px -28px, -10px -39px, 10px -39px, 28px -28px, 39px -10px;
  animation: burst 7s ease-out infinite;
}

.fw-1 { top: 15%; left: 7%;  animation-delay: 0.8s; }
.fw-2 { top: 8%;  left: 88%; animation-delay: 3.2s; scale: 0.8; }
.fw-3 { top: 33%; left: 95%; animation-delay: 5.4s; scale: 0.6; }

@keyframes burst {
  0%   { transform: scale(0.05); opacity: 0; }
  3%   { opacity: 0.9; }
  28%  { transform: scale(1) translateY(0); opacity: 0.7; }
  42%  { transform: scale(1.08) translateY(14px); opacity: 0; }
  100% { transform: scale(1.08) translateY(14px); opacity: 0; }
}

/* Floating sky lanterns: soft off-white glows */
.lanterns span {
  position: absolute;
  top: 100%;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.35);
  border-radius: 46% 46% 30% 30% / 38% 38% 62% 62%;
  background: radial-gradient(ellipse at 50% 75%, #ffffff 0%, var(--offwhite) 40%, rgba(239, 234, 244, 0.5) 100%);
  box-shadow:
    0 0 calc(var(--s) * 1.2) rgba(247, 249, 250, 0.7),
    0 0 calc(var(--s) * 3.5) rgba(239, 234, 244, 0.25);
  opacity: 0;
  animation: rise var(--d) linear var(--delay) infinite;
}

@keyframes rise {
  0%   { transform: translate(0, 0) rotate(-3deg); opacity: 0; }
  8%   { opacity: 0.75; }
  50%  { transform: translate(24px, -750px) rotate(3deg); }
  85%  { opacity: 0.4; }
  100% { transform: translate(-16px, -1500px) rotate(-2deg); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Toran: line-art garland in off-white
   -------------------------------------------------------------------------- */

.toran {
  position: absolute;
  inset: 0 0 auto 0;
  height: 40px;
  z-index: 3;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40'%3E%3Cpath d='M0 6 Q30 26 60 6' fill='none' stroke='%23F7F9FA' stroke-opacity='.5' stroke-width='1.4'/%3E%3Ccircle cx='15' cy='13.5' r='2.2' fill='%23F7F9FA' fill-opacity='.7'/%3E%3Ccircle cx='45' cy='13.5' r='2.2' fill='%23F7F9FA' fill-opacity='.7'/%3E%3Ccircle cx='30' cy='16' r='4.6' fill='%23F7F9FA' fill-opacity='.15' stroke='%23F7F9FA' stroke-opacity='.85' stroke-width='1.4'/%3E%3Ccircle cx='30' cy='16' r='1.4' fill='%23F7F9FA'/%3E%3Cpath d='M30 20.6V28' stroke='%23F7F9FA' stroke-opacity='.45' stroke-width='1'/%3E%3Ccircle cx='30' cy='31' r='2.6' fill='%23F7F9FA' fill-opacity='.85'/%3E%3C/svg%3E") 0 0 / 60px 40px repeat-x;
  filter: drop-shadow(0 0 6px rgba(247, 249, 250, 0.35));
}

/* Blinking bulbs: two sets of lights on the garland, blinking in turn (chasing lights).
   Positions match the garland's 60px pattern: hanging drops at x=30/90, small bulbs at x=15/45/75/105. */
.toran::before,
.toran::after {
  content: "";
  position: absolute;
  inset: 0;
  animation: bulbs 1.6s ease-in-out infinite;
}

.toran::before {
  background:
    radial-gradient(circle at 30px 31px, #ffffff 0 2.6px, rgba(247, 249, 250, 0.55) 3.6px, transparent 10px) 0 0 / 120px 40px repeat-x,
    radial-gradient(circle at 105px 13.5px, #ffffff 0 2px, rgba(247, 249, 250, 0.5) 3px, transparent 8px) 0 0 / 120px 40px repeat-x,
    radial-gradient(circle at 75px 16px, rgba(247, 249, 250, 0.6) 0 1.6px, transparent 7px) 0 0 / 120px 40px repeat-x;
}

.toran::after {
  background:
    radial-gradient(circle at 90px 31px, #ffffff 0 2.6px, rgba(247, 249, 250, 0.55) 3.6px, transparent 10px) 0 0 / 120px 40px repeat-x,
    radial-gradient(circle at 45px 13.5px, #ffffff 0 2px, rgba(247, 249, 250, 0.5) 3px, transparent 8px) 0 0 / 120px 40px repeat-x,
    radial-gradient(circle at 15px 13.5px, rgba(247, 249, 250, 0.6) 0 1.6px, transparent 7px) 0 0 / 120px 40px repeat-x;
  animation-delay: -0.8s;
}

@keyframes bulbs {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.08; }
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

/* Official wordmark: never below 120px wide on screen */
.wordmark {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 796 / 220;
}

.wordmark--sm {
  width: 128px;
}

.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--offwhite);
  background: rgba(247, 249, 250, 0.08);
  border: 1px solid rgba(247, 249, 250, 0.22);
}

.nav-pill svg {
  width: 18px;
  height: 18px;
  color: var(--offwhite);
}

/* "Happy Diwali" glitter: a band of light sweeps across the words, then rests */
.glitter {
  background: linear-gradient(100deg, var(--on-plum-soft) 0%, var(--on-plum-soft) 38%, #ffffff 50%, var(--on-plum-soft) 62%, var(--on-plum-soft) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(247, 249, 250, 0.35));
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%       { background-position: 100% 0; }
  55%, 100% { background-position: 0% 0; }
}

/* Twinkling four-point sparkles around the pill */
.sparkle {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--offwhite);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0;
  pointer-events: none;
  animation: sparkle 2.1s ease-in-out infinite;
}

.sparkle--1 { top: -5px;  left: 22px; }
.sparkle--2 { top: 4px;   right: -6px; width: 7px; height: 7px; animation-delay: 0.7s; }
.sparkle--3 { bottom: -5px; left: 58%; width: 8px; height: 8px; animation-delay: 1.4s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}

#flight-path {
  fill: none;
  stroke: var(--offwhite);
  stroke-width: 1.4;
  stroke-dasharray: 3 9;
  stroke-linecap: round;
  opacity: 0.22;
}

.flight-plane {
  fill: var(--offwhite);
  opacity: 0.75;
}

/* "Coming soon": large mono label (mono is the only place the brand allows capitals) */
.label--pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 28px;
  padding: 0.5em 1.1em 0.5em 0.9em;
  border-radius: 999px;
  border: 1px solid rgba(247, 249, 250, 0.28);
  background: rgba(247, 249, 250, 0.08);
  color: var(--offwhite);
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: 0.12em;
  box-shadow: 0 0 40px rgba(247, 249, 250, 0.08);
  animation: fade-up 0.8s ease both;
}

.label-dot {
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--offwhite);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(247, 249, 250, 0.55); }
  100% { box-shadow: 0 0 0 0.5em rgba(247, 249, 250, 0); }
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.08;
  margin-bottom: 24px;
  text-wrap: balance;
  animation: fade-up 0.8s 0.1s ease both;
}

.lede {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-plum-soft);
  margin-bottom: 36px;
  animation: fade-up 0.8s 0.2s ease both;
}

/* Waitlist form ---------------------------------------------------------- */

.waitlist {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 12px;
  animation: fade-up 0.8s 0.3s ease both;
}

.waitlist-input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(247, 249, 250, 0.3);
  background: rgba(247, 249, 250, 0.08);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: 16px; /* 16px stops iOS zooming into the field */
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.waitlist-input::placeholder {
  color: var(--on-plum-muted);
}

.waitlist-input:hover {
  border-color: rgba(247, 249, 250, 0.5);
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--offwhite);
  background: rgba(247, 249, 250, 0.12);
}

.waitlist .btn {
  flex: none;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.waitlist-note {
  font-size: 13px;
  color: var(--on-plum-muted);
  margin-bottom: 24px;
  animation: fade-up 0.8s 0.35s ease both;
}

.waitlist-note:focus {
  outline: none;
}

.waitlist-note.is-success {
  font-size: 16px;
  font-weight: 500;
  color: var(--offwhite);
}

.waitlist-note.is-success::before {
  content: "✓ ";
}

.waitlist-note.is-error {
  color: var(--offwhite);
}

/* Visually hidden but read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot field: off-screen for people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Primary: coral with a PLUM label (5.08:1, passes AA). Never white on coral. */
.btn-primary {
  color: var(--plum);
  background: var(--coral);
  box-shadow: 0 10px 28px rgba(28, 15, 44, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(28, 15, 44, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.trust {
  font-size: 14px;
  color: var(--on-plum-muted);
  animation: fade-up 0.8s 0.4s ease both;
}

/* --------------------------------------------------------------------------
   Hero visual: off-white boarding-pass application card
   -------------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  animation: fade-up 1s 0.35s ease both;
}

.glow {
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 249, 250, 0.12) 0%, rgba(239, 234, 244, 0.04) 45%, transparent 70%);
  z-index: -1;
}

.pass {
  position: relative;
  width: min(410px, 100%);
  padding: 22px 24px 20px;
  border-radius: 20px;
  text-align: left;
  color: var(--plum);
  background: var(--offwhite);
  box-shadow: 0 40px 80px -20px rgba(28, 15, 44, 0.75);
  rotate: -3deg;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.pass .label {
  color: var(--muted);
}

.pass-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.pass-id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--plum);
}

.pass-route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.pass-city {
  display: flex;
  flex-direction: column;
}

.pass-city--end {
  text-align: right;
}

.pass-code {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pass-name {
  font-size: 13px;
  color: var(--muted);
}

.pass-line {
  position: relative;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(46, 26, 71, 0.35) 50%, transparent 50%);
  background-size: 8px 2px;
}

.pass-line svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  padding: 6px;
  translate: -50% -50%;
  rotate: 90deg;
  border-radius: 50%;
  fill: var(--plum);
  background: var(--plum-tint);
}

.pass-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.pass-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pass-value {
  font-size: 15px;
  font-weight: 500;
}

.avatars {
  display: flex;
  padding-left: 7px;
}

.avatars i {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border-radius: 50%;
  border: 2px solid var(--offwhite);
  background: var(--plum);
  color: var(--offwhite);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
}

.avatars i:nth-child(2) { background: var(--muted); }
.avatars i:nth-child(3) { background: var(--plum-deep); }
.avatars i:nth-child(4) { background: var(--plum-tint); color: var(--plum); }

/* Stepper: dots joined by a line. Functional status colours, always with a word. */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 18px;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--muted);
}

/* line from the previous dot to this one */
.steps li::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--rule);
}

.steps li:first-child::before {
  display: none;
}

.steps .dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rule);
}

.steps .is-done {
  color: var(--plum);
}

.steps .is-done::before,
.steps .is-active::before {
  background: var(--approved);
}

.steps .is-done .dot {
  background: var(--approved);
}

.steps .is-done .dot::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.steps .is-active {
  color: var(--progress-text);
}

.steps .is-active .dot {
  background: var(--paper);
  border: 3px solid var(--progress);
  animation: step-pulse 2s ease-out infinite;
}

@keyframes step-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(186, 117, 23, 0.4); }
  100% { box-shadow: 0 0 0 8px rgba(186, 117, 23, 0); }
}

.pass-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 96px 2px 0;
  border-top: 2px dashed var(--rule);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status--progress {
  color: var(--progress-text);
  background: rgba(186, 117, 23, 0.12);
}

.status--approved {
  color: var(--approved-text);
  background: rgba(29, 158, 117, 0.12);
}

.status--rejected {
  color: var(--rejected);
  background: rgba(179, 38, 30, 0.1);
}

.status--neutral {
  color: var(--plum);
  background: var(--plum-tint);
}

/* "Estimated decision" + time (the guidelines' own label wording; an estimate, not a promise) */
.pass-eta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pass-eta-value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--plum);
}

/* Single-colour Diwali stamp, inside the card */
.stamp {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 92px;
  height: 92px;
  color: var(--plum);
  rotate: -14deg;
  opacity: 0.8;
  animation: stamp-in 0.5s 1.1s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.stamp-line {
  fill: none;
  stroke: currentColor;
}

.stamp-text {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}

@keyframes stamp-in {
  0%   { opacity: 0; scale: 1.8; }
  100% { opacity: 0.8; scale: 1; }
}

/* --------------------------------------------------------------------------
   Diwali greeting
   -------------------------------------------------------------------------- */

.greeting {
  position: relative;
  max-width: 820px;
  margin: 72px auto 0;
  padding: 0 var(--gutter) 112px;
  text-align: center;
}

.diya-ledge {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(18px, 5vw, 44px);
  height: 80px;
  margin-bottom: 36px;
}

.diya-ledge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: min(560px, 100%);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(247, 249, 250, 0.55), transparent);
  box-shadow: 0 0 20px 3px rgba(247, 249, 250, 0.15);
}

/* Diya: light clay bowl in plum tints, off-white flame */
.diya {
  --w: 46px;
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 0.42);
  background: linear-gradient(180deg, var(--plum-tint) 0%, var(--on-plum-muted) 100%);
  border-radius: 6px 6px 50% 50% / 4px 4px 100% 100%;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.7),
    0 10px 20px rgba(28, 15, 44, 0.5);
}

.diya::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  top: 46%;
  height: 3px;
  background: radial-gradient(circle, var(--plum) 0 1.2px, transparent 1.7px) 0 0 / 7px 3px repeat-x;
  opacity: 0.7;
}

.diya--lg {
  --w: 64px;
}

.flame {
  position: absolute;
  left: 50%;
  bottom: 82%;
  width: calc(var(--w) * 0.27);
  height: calc(var(--w) * 0.27);
  background: radial-gradient(circle at 40% 60%, #ffffff 0 30%, var(--offwhite) 55%, var(--plum-tint) 95%);
  border-radius: 50% 0 50% 50%;
  transform: translateX(-50%) rotate(-45deg);
  box-shadow:
    0 0 12px 4px rgba(247, 249, 250, 0.7),
    0 0 44px 16px rgba(239, 234, 244, 0.22);
  animation: flicker 1.6s ease-in-out infinite alternate;
}

.diya:nth-child(2) .flame { animation-duration: 1.25s; animation-delay: -0.3s; }
.diya:nth-child(3) .flame { animation-duration: 1.9s;  animation-delay: -0.8s; }
.diya:nth-child(4) .flame { animation-duration: 1.4s;  animation-delay: -0.5s; }
.diya:nth-child(5) .flame { animation-duration: 1.7s;  animation-delay: -1.1s; }

@keyframes flicker {
  0%   { transform: translateX(-50%) rotate(-45deg) scale(1);          opacity: 1; }
  30%  { transform: translateX(-53%) rotate(-49deg) scale(1.08, 0.95); }
  60%  { transform: translateX(-47%) rotate(-41deg) scale(0.94, 1.07); opacity: 0.88; }
  100% { transform: translateX(-50%) rotate(-46deg) scale(1.04);       opacity: 1; }
}

.greeting-hi {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  color: var(--on-plum-soft);
  margin-bottom: 8px;
}

.greeting h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.12;
  margin-bottom: 16px;
  text-wrap: balance;
}

.greeting-copy {
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--on-plum-soft);
}

/* --------------------------------------------------------------------------
   Features: off-white band (the 20%) with a shuffling card deck
   -------------------------------------------------------------------------- */

.features {
  background: var(--offwhite);
  color: var(--plum);
}

.features-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px var(--gutter) 112px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.features .label {
  color: var(--muted);
}

.deck-intro > .label {
  margin-bottom: 12px;
}

.deck-intro h2 {
  font-size: clamp(28px, 3.8vw, 40px);
  line-height: 1.15;
  text-wrap: balance;
  margin-bottom: 28px;
}

/* Card index: shows which card is in front; click to bring one forward */
.deck-index {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.deck-tab {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border: 0;
  border-left: 2px solid var(--rule);
  border-radius: 0 10px 10px 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.deck-tab:hover {
  color: var(--plum);
}

.deck-tab.is-active {
  color: var(--plum);
  border-left-color: var(--plum);
  background: var(--plum-tint);
}

.deck-tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.deck-pause {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.deck-pause:hover {
  border-color: rgba(46, 26, 71, 0.4);
}

/* pause icon = two bars; play icon = triangle */
.deck-pause-icon {
  width: 9px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.deck-pause[aria-pressed="true"] .deck-pause-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 9px solid currentColor;
  border-right: 0;
}

/* ---- Stage and stack ---- */

.deck-stage {
  position: relative;
}

/* Without JavaScript: the cards are a simple list */
.deck {
  display: grid;
  gap: 16px;
}

/* With JavaScript: all cards share one grid cell and fan out behind each other */
.deck-stage.is-live .deck {
  gap: 0;
  padding: 0 30px 30px 0; /* room for the fanned cards behind */
  max-width: 500px;
  margin: 0 auto;
}

.deal-card {
  padding: 26px 26px 24px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 50px -26px rgba(46, 26, 71, 0.4);
}

.deck-stage.is-live .deal-card {
  grid-area: 1 / 1;
  transform-origin: 50% 100%;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 1.2s ease;
}

.deck-stage.is-live .deal-card > * {
  transition: opacity 1.2s ease;
}

/* Fan positions. The deal animation below ends exactly on .pos-2 */
.deal-card.pos-0 { z-index: 3; transform: translate(0, 0) rotate(0deg); }
.deal-card.pos-1 { z-index: 2; transform: translate(15px, 15px) rotate(2.5deg); }
.deal-card.pos-2 { z-index: 1; transform: translate(30px, 30px) rotate(5deg); }

.deal-card.pos-1 > *,
.deal-card.pos-2 > * {
  opacity: 0.25;
}

.deal-card.pos-1,
.deal-card.pos-2 {
  box-shadow: 0 10px 24px -18px rgba(46, 26, 71, 0.35);
}

/* The deal: the front card flicks up and out, drops behind, and settles at the back */
.deal-card.is-dealing {
  animation: deal 1.2s cubic-bezier(0.45, 0, 0.2, 1) both;
}

@keyframes deal {
  0%   { z-index: 4; transform: translate(0, 0) rotate(0deg); }
  42%  { z-index: 4; transform: translate(62%, -14%) rotate(13deg); }
  43%  { z-index: 0; }
  100% { z-index: 0; transform: translate(30px, 30px) rotate(5deg); }
}

/* ---- Card content ---- */

.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.deal-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: var(--plum-tint);
  fill: none;
  stroke: var(--plum);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deal-card h3 {
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.deal-card > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 18px;
}

.deal-visual {
  list-style: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--offwhite);
  border: 1px solid var(--rule);
  font-size: 14px;
}

/* Card 1: document checklist with an AI scan line moving over it */
.deal-visual--scan {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 8px;
}

.checklist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checklist .ok {
  color: var(--approved-text);
  font-weight: 500;
  white-space: nowrap;
}

.checklist .ok::before {
  content: "✓ ";
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(46, 26, 71, 0.09) 50%, transparent);
  border-bottom: 1px solid rgba(46, 26, 71, 0.18);
  animation: scan 2.6s ease-in-out infinite alternate;
}

@keyframes scan {
  from { top: 0;    transform: translateY(-60%); }
  to   { top: 100%; transform: translateY(-40%); }
}

.deal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

/* Card 2: refused → reason → approved */
.recovery {
  display: grid;
  gap: 10px;
}

.recovery li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.recovery li > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

/* Card 3: itinerary */
.itinerary {
  display: grid;
  gap: 10px;
}

.itinerary li {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: 12px;
  align-items: baseline;
}

.it-date {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.it-place {
  font-weight: 500;
}

.it-note {
  grid-column: 2;
  font-size: 13px;
  color: var(--muted);
}

/* ---- Flight track: the plane's flight is the deck's clock (3.5 s per card) ---- */

.deck-track {
  display: none;
  position: relative;
  max-width: 440px;
  height: 20px;
  margin: 18px auto 0;
  background: radial-gradient(circle, var(--rule) 1.2px, transparent 1.6px) 0 50% / 9px 4px repeat-x;
}

.deck-stage.is-live .deck-track {
  display: block;
}

.deck-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
}

.deck-plane svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: var(--plum);
  rotate: 90deg;
}

.deck-plane.is-flying {
  animation: fly 3.5s linear forwards;
}

@keyframes fly {
  from { left: 0; }
  to   { left: calc(100% - 20px); }
}

/* Pause: hover, keyboard focus inside, or the Pause button */
.deck-stage:hover .deck-plane,
.deck-stage:focus-within .deck-plane,
.deck-stage.is-paused .deck-plane {
  animation-play-state: paused;
}

/* Separate rule: browsers without :has() drop only this one */
.features-inner:has(.deck-index:hover) .deck-plane {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  background: var(--plum-deep);
  color: var(--on-plum-muted);
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer a:not(.brand) {
  text-decoration: none;
  color: var(--offwhite);
  border-bottom: 1px solid rgba(247, 249, 250, 0.3);
  transition: border-color 0.2s ease;
}

.footer a:not(.brand):hover {
  border-color: var(--offwhite);
}

/* --------------------------------------------------------------------------
   Shared motion
   -------------------------------------------------------------------------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 56px;
    text-align: center;
  }

  .lede,
  .waitlist {
    margin-left: auto;
    margin-right: auto;
  }

  /* Deck: heading, then the stack, then the card index */
  .features-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .deck-intro {
    display: contents;
  }

  .deck-intro > .label,
  .deck-intro h2 {
    text-align: center;
  }

  .deck-intro > .label {
    margin-bottom: -28px; /* grid gap is 40px; label sits 12px above the heading */
  }

  .deck-intro h2 {
    margin-bottom: -12px;
  }

  .deck-stage {
    order: 1;
  }

  .deck-index {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .deck-pause {
    order: 3;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }

  .nav {
    padding-top: 72px;
  }

  .wordmark {
    width: 128px;
  }

  .nav-pill {
    padding: 6px 12px 6px 10px;
    font-size: 13px;
  }

  .label--pill {
    font-size: 17px;
    letter-spacing: 0.1em;
  }

  .hero {
    padding-top: 40px;
  }

  .lede,
  .greeting-copy {
    font-size: 16px;
  }

  .waitlist {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .pass {
    padding: 20px 18px 18px;
    rotate: -2deg;
  }

  .pass-code {
    font-size: 27px;
  }

  .stamp {
    width: 80px;
    height: 80px;
    right: 10px;
  }

  .pass-foot {
    padding-right: 84px;
  }

  .greeting {
    padding-bottom: 88px;
  }

  .features-inner {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .deal-card {
    padding: 22px 20px 20px;
  }

  /* Smaller fan on phones: a tall card tilted 4° grew ~15px past the screen edge */
  .deck-stage.is-live .deck {
    padding: 0 32px 22px 0;
  }

  .deal-card.pos-1 { transform: translate(11px, 11px) rotate(1.5deg); }
  .deal-card.pos-2 { transform: translate(22px, 22px) rotate(3deg); }

  .deal-card.is-dealing {
    animation-name: deal-sm;
  }

  @keyframes deal-sm {
    0%   { z-index: 4; transform: translate(0, 0) rotate(0deg); }
    42%  { z-index: 4; transform: translate(48%, -16%) rotate(12deg); }
    43%  { z-index: 0; }
    100% { z-index: 0; transform: translate(22px, 22px) rotate(3deg); } /* = .pos-2 */
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .firework {
    scale: 0.6;
  }
}

/* Small phones (320–400px): five step labels must fit their columns */
@media (max-width: 400px) {
  .steps li {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .lanterns,
  .firework,
  .flight-plane,
  .sparkle,
  .deck-pause,
  .deck-stage.is-live .deck-track {
    display: none; /* no autoplay: the card index buttons still switch cards */
  }
}
