/* As I Wait — website
   Only the four brand colours: cream, black, burnt orange, tan
   (plus shades / transparencies of them). */

:root {
  --cream: #F0EBE0;
  --black: #1A1A1A;
  --orange: #C8481A;
  --tan: #75654B;

  --orange-lip: #8F3313;
  --tan-lip: #4E4332;
  --tan-soft: rgba(117, 101, 75, 0.12);
  --tan-line: rgba(117, 101, 75, 0.28);
  --cream-soft: rgba(240, 235, 224, 0.75);

  --radius: 26px;
  --wrap: 1040px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; font-size: 93.75%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--cream); padding: 8px 14px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.05rem; letter-spacing: -0.015em; line-height: 1.2; }

.accent { color: var(--orange); }

.scribble { position: relative; color: var(--orange); white-space: nowrap; }
.scribble::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 4%;
  bottom: -0.05em;
  height: 0.16em;
  border-radius: 999px;
  background: var(--orange);
  opacity: 0.28;
  transform: rotate(-1.5deg);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.lead { font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 600; color: var(--tan); max-width: 40ch; margin: 16px 0 0; }
.lead--light { color: var(--cream-soft); }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head { margin-bottom: 26px; max-width: 640px; }
.section-head .sub { margin: 12px 0 0; font-weight: 600; color: var(--tan); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 20px;
  background: var(--orange);
  color: var(--cream);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--orange-lip);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-lip); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--orange-lip); }

.btn--small { padding: 10px 16px; font-size: 0.9rem; border-radius: 14px; box-shadow: 0 4px 0 var(--orange-lip); }
.btn--big { padding: 15px 24px; font-size: 1rem; }
.btn--ghost { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--tan-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--tan); transform: translateY(-2px); }
.btn--ghost:active { box-shadow: inset 0 0 0 2px var(--tan); transform: translateY(1px); }
.btn--cream { background: var(--cream); color: var(--orange); box-shadow: 0 6px 0 rgba(26,26,26,0.35); }
.btn--cream:hover { box-shadow: 0 8px 0 rgba(26,26,26,0.35); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(240, 235, 224, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-color: var(--tan-line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 700; color: var(--tan); transition: color 0.15s; }
.nav__links a:not(.btn):hover { color: var(--black); }

/* ---------- hero ---------- */

.hero { position: relative; padding: 36px 0 56px; overflow: hidden; }

.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.blob--a { width: 620px; height: 620px; right: -160px; top: -140px; background: radial-gradient(circle, rgba(200,72,26,0.14), transparent 65%); }
.blob--b { width: 520px; height: 520px; left: -220px; bottom: -220px; background: radial-gradient(circle, rgba(117,101,75,0.16), transparent 65%); }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 36px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.85rem;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(200,72,26,0.6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(200,72,26,0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(200,72,26,0); } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 20px 0 0; }
.ticks li { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tan); font-size: 0.95rem; }
.ticks svg { width: 18px; height: 18px; color: var(--orange); }

.hero__visual { position: relative; display: flex; justify-content: center; padding: 16px 0 24px; }

/* ---------- phone frame ---------- */

.phone {
  position: relative;
  width: 240px;
  aspect-ratio: 540 / 1169;
  border-radius: 38px;
  padding: 26px 8px 8px;
  background: var(--black);
  box-shadow: 0 30px 60px -20px rgba(26,26,26,0.45), 0 0 0 2px rgba(117,101,75,0.25);
}
.phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 9px;
  border-radius: 6px;
  background: #333;
  z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 18px 18px 31px 31px; }
.phone--tilt { transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
.phone--small { width: 170px; border-radius: 28px; padding: 20px 6px 6px; }
.phone--small::before { top: 8px; width: 40px; height: 7px; }
.phone--small img { border-radius: 14px 14px 23px 23px; }

@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-12px); } }

/* floating game tiles */
.tile {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #D86A40, var(--orange));
  color: var(--cream);
  box-shadow: 0 6px 0 var(--orange-lip), 0 18px 30px -12px rgba(26,26,26,0.4);
  animation: bob 5s ease-in-out infinite;
}
.tile svg { width: 26px; height: 26px; }
.tile--black { background: linear-gradient(180deg, #3A3A3A, var(--black)); box-shadow: 0 6px 0 #000, 0 18px 30px -12px rgba(26,26,26,0.4); }
.tile--tan { background: linear-gradient(180deg, #8E7D62, var(--tan)); box-shadow: 0 6px 0 var(--tan-lip), 0 18px 30px -12px rgba(26,26,26,0.4); }
.tile--1 { left: 2%; top: 12%; transform: rotate(-10deg); }
.tile--2 { right: 0; top: 26%; animation-delay: -1.2s; }
.tile--3 { left: -2%; bottom: 26%; animation-delay: -2.4s; }
.tile--4 { right: 6%; bottom: 8%; animation-delay: -3.3s; width: 46px; height: 46px; }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -6deg; } 50% { translate: 0 -14px; rotate: 6deg; } }

/* Waity peeking from behind the phone */
.peek { position: absolute; left: -10px; bottom: 0; display: flex; flex-direction: column; align-items: center; }

.bubble {
  position: relative;
  background: var(--black);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 13px;
  border-radius: 14px;
  margin-bottom: 12px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-pop);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%) rotate(45deg); width: 16px; height: 16px; background: var(--black); border-radius: 3px; }
.bubble.is-pop { transform: scale(1.08); }

/* ---------- Waity (pure CSS mascot) ---------- */

.waity {
  --c: var(--orange);
  --lip: var(--orange-lip);
  --size: 120px;
  position: relative;
  width: var(--size);
  height: calc(var(--size) * 0.86);
  border: 0;
  padding: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, var(--cream)) 0%, var(--c) 55%);
  border-radius: 50% 50% 22% 22% / 62% 62% 26% 26%;
  box-shadow: 0 calc(var(--size) * 0.06) 0 var(--lip);
  animation: breathe 3.2s ease-in-out infinite;
  transform-origin: bottom center;
}
button.waity { cursor: pointer; }
button.waity:active { transform: scale(0.94, 0.9); }
.waity--tan { --c: var(--tan); --lip: var(--tan-lip); animation-delay: -1.4s; }
.waity--peek { --size: 88px; }
.waity--medium { --size: 80px; }

.waity__shine { position: absolute; left: 22%; top: 9%; width: 26%; height: 11%; border-radius: 50%; background: rgba(240,235,224,0.45); }
.waity__eye { position: absolute; top: 34%; width: 21%; height: 25%; border-radius: 50%; background: var(--cream); animation: blink 4.6s infinite; }
.waity__eye::after { content: ""; position: absolute; width: 48%; height: 48%; border-radius: 50%; background: var(--black); right: 14%; top: 30%; }
.waity__eye--l { left: 24%; }
.waity__eye--r { right: 24%; }
.waity__mouth { position: absolute; left: 50%; top: 64%; width: 18%; height: 10%; transform: translateX(-50%); border: calc(var(--size) * 0.025) solid var(--black); border-top: 0; border-radius: 0 0 40px 40px; }
.waity--flip .waity__eye::after { right: auto; left: 14%; }
.waity--flip .waity__shine { left: auto; right: 22%; }

.waity.is-happy { animation: hop 0.5s var(--ease-pop); }
.waity.is-happy .waity__eye { height: 8%; top: 42%; background: transparent; border-top: calc(var(--size) * 0.025) solid var(--black); border-radius: 50% 50% 0 0; }
.waity.is-happy .waity__eye::after { display: none; }
.waity.is-happy .waity__mouth { height: 15%; }

@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-24px) scale(0.96, 1.05); } 100% { transform: translateY(0); } }

/* ---------- ticker ---------- */

.ticker {
  background: var(--orange);
  color: var(--cream);
  padding: 10px 0;
  transform: rotate(-1.2deg);
  margin: 0 -20px;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--orange-lip);
}
.ticker__row { display: flex; width: max-content; gap: 0; animation: marquee 45s linear infinite; }
.ticker__row--rev { animation-direction: reverse; animation-duration: 55s; opacity: 0.75; margin-top: 6px; }
.ticker__row span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; font-weight: 900; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.ticker__row span::after { content: "✦"; font-size: 0.8rem; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- how it works ---------- */

.how { padding: 70px 0 56px; }
.how__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.step:hover { background: var(--tan-soft); }
.step.is-active { background: var(--cream); border-color: var(--tan-line); box-shadow: 0 6px 0 rgba(117,101,75,0.22); transform: translateX(6px); }
.step__num {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--tan-soft);
  color: var(--tan);
  font-weight: 900;
  font-size: 1.2rem;
  transition: background 0.2s, color 0.2s;
}
.step.is-active .step__num { background: var(--orange); color: var(--cream); box-shadow: 0 4px 0 var(--orange-lip); }
.step p { margin: 6px 0 0; color: var(--tan); font-weight: 600; }

.how__phone { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.how__phone img { transition: opacity 0.25s ease; }
.how__phone img.is-swapping { opacity: 0; }
.how__progress { width: 160px; height: 6px; border-radius: 3px; background: var(--tan-soft); overflow: hidden; }
.how__progress span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 3px; }

/* ---------- stats ---------- */

.stats { padding: 0 0 64px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  text-align: center;
  padding: 18px 10px;
  border-radius: var(--radius);
  background: var(--tan-soft);
}
.stat b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--orange); }
.stat:nth-child(even) b { color: var(--black); }
.stat span { display: block; margin-top: 8px; font-weight: 700; color: var(--tan); }

/* ---------- games by time ---------- */

.games { padding: 0 0 70px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: 18px;
  border: 2px solid var(--tan-line);
  background: var(--cream);
  color: var(--black);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(117,101,75,0.25);
  transition: transform 0.12s ease;
}
.chip b { font-weight: 900; font-size: 1rem; }
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--cream); box-shadow: 0 4px 0 var(--orange-lip); }

.game-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.game-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 20px;
  background: var(--cream);
  border: 2px solid var(--tan-line);
  box-shadow: 0 4px 0 rgba(117,101,75,0.2);
  font-weight: 800;
  animation: pop-in 0.35s var(--ease-pop) backwards;
  transition: transform 0.15s ease;
}
.game-list li:hover { transform: translateY(-3px) rotate(-0.5deg); }
.game-list li div span { display: block; font-weight: 600; font-size: 0.85rem; color: var(--tan); }
.g-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--orange);
  color: var(--cream);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 3px 0 var(--orange-lip);
}
.game-list li:nth-child(3n+2) .g-icon { background: var(--black); box-shadow: 0 3px 0 #000; }
.game-list li:nth-child(3n) .g-icon { background: var(--tan); box-shadow: 0 3px 0 var(--tan-lip); }

@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- duel ---------- */

.duel { background: var(--black); color: var(--cream); padding: 64px 0; border-radius: 36px; margin: 0 14px; position: relative; overflow: hidden; }
.duel::before { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(200,72,26,0.22), transparent 65%); }
.duel__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }

.badge { display: inline-block; background: var(--orange); color: var(--cream); font-weight: 900; font-size: 0.78rem; letter-spacing: 0.12em; padding: 6px 12px; border-radius: 10px; margin-bottom: 18px; }

.seat { margin-top: 22px; }
.seat__label { margin: 0 0 10px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); }
.seat__toggle { display: inline-flex; padding: 5px; border-radius: 22px; background: rgba(240,235,224,0.1); }
.seat__opt { border: 0; background: transparent; color: var(--cream-soft); font-weight: 800; padding: 8px 15px; border-radius: 18px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seat__opt.is-active { background: var(--orange); color: var(--cream); }
.seat__note { margin: 12px 0 0; color: var(--cream-soft); font-weight: 600; min-height: 3em; max-width: 42ch; }

.duel__list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.duel__list li { padding: 8px 14px; border-radius: 14px; border: 1.5px solid rgba(240,235,224,0.22); font-weight: 700; font-size: 0.92rem; transition: background 0.15s, border-color 0.15s; }
.duel__list li:hover { background: rgba(240,235,224,0.08); border-color: var(--orange); }

.duel__demo { display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* split-screen illustration */
.split {
  position: relative;
  width: 240px;
  height: 260px;
  border-radius: 28px;
  padding: 10px;
  background: #0D0D0D;
  box-shadow: 0 0 0 2px rgba(240,235,224,0.15);
  display: flex;
  gap: 4px;
  transition: all 0.5s var(--ease-pop);
}
.split__half {
  flex: 1;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.5s var(--ease-pop);
  cursor: pointer;
  user-select: none;
}
.split__half--orange { background: rgba(200,72,26,0.28); }
.split__half--tan { background: rgba(117,101,75,0.45); }
.split__half:active { filter: brightness(1.2); }
.split__count { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.split__half--orange .split__count { color: #F0A07E; }
.split__label { font-weight: 800; font-size: 0.85rem; color: var(--cream-soft); }
.split__go { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--cream); color: var(--orange); font-weight: 900; padding: 8px 14px; border-radius: 14px; font-size: 1rem; box-shadow: 0 4px 0 rgba(0,0,0,0.4); pointer-events: none; }

.mini-waity { width: 42px; height: 36px; border-radius: 50% 50% 22% 22% / 62% 62% 26% 26%; position: relative; }
.mini-waity--orange { background: var(--orange); }
.mini-waity--tan { background: var(--tan); }
.mini-waity::before, .mini-waity::after { content: ""; position: absolute; top: 38%; width: 7px; height: 8px; border-radius: 50%; background: var(--cream); }
.mini-waity::before { left: 28%; }
.mini-waity::after { right: 28%; }

/* facing each other: top/bottom, top half flipped */
.split.is-facing { flex-direction: column; }
.split.is-facing .split__half--tan { order: -1; transform: rotate(180deg); }

.duel__shots { display: flex; align-items: flex-start; position: relative; isolation: isolate; }
.duel__shots .phone--back { margin-left: -50px; margin-top: 30px; transform: rotate(6deg); z-index: -1; opacity: 0.9; }
.duel__shots .phone:first-child { transform: rotate(-4deg); }

/* ---------- promise ---------- */

.promise { padding: 70px 0 56px; }
.promise__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  background: var(--cream);
  border: 2px solid var(--tan-line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 6px 0 rgba(117,101,75,0.22);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }
.card p { margin: 8px 0 0; color: var(--tan); font-weight: 600; }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); color: var(--cream); margin-bottom: 12px; box-shadow: 0 4px 0 var(--orange-lip); }
.card__icon--black { background: var(--black); box-shadow: 0 4px 0 #000; }
.card__icon--tan { background: var(--tan); box-shadow: 0 4px 0 var(--tan-lip); }
.card__icon svg { width: 24px; height: 24px; }

/* ---------- FAQ ---------- */

.faq { padding: 10px 0 64px; }
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 36px; align-items: start; }
.faq__list { display: grid; gap: 8px; }
details {
  border-radius: 22px;
  background: var(--tan-soft);
  padding: 0 22px;
  transition: background 0.2s;
}
details[open] { background: var(--cream); box-shadow: inset 0 0 0 2px var(--tan-line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 30px 14px 0;
  font-weight: 800;
  font-size: 0.98rem;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange);
  color: var(--cream);
  font-weight: 900;
  transition: transform 0.2s;
}
details[open] summary::after { content: "–"; background: var(--black); }
details p { margin: 0 0 20px; color: var(--tan); font-weight: 600; max-width: 60ch; }

/* ---------- CTA ---------- */

.cta { padding: 40px 0 64px; }
.cta__card {
  position: relative;
  background: var(--orange);
  color: var(--cream);
  border-radius: 34px;
  padding: 90px 26px 44px;
  text-align: center;
  box-shadow: 0 10px 0 var(--orange-lip);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta__card .lead { color: rgba(240,235,224,0.85); margin-bottom: 22px; }
.cta__buddies { position: absolute; top: -34px; display: flex; gap: 14px; align-items: flex-end; }
.cta__card .waity { box-shadow: 0 6px 0 rgba(26,26,26,0.35); }
.cta__card .waity--orange { --c: #E06B3E; }
.wave { animation: wave 2.4s ease-in-out infinite; }
.wave--late { animation-delay: -1.2s; }
@keyframes wave { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-10px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-6px) rotate(5deg); } }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--tan-line); padding: 26px 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__brand p { margin: 6px 0 0; color: var(--tan); font-weight: 600; font-size: 0.92rem; }
.footer__brand img { height: 32px; width: auto; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--cream);
  color: var(--black);
  border: 2px solid var(--tan-line);
  box-shadow: 0 4px 0 rgba(117,101,75,0.25);
  transition: transform 0.12s, background 0.15s, color 0.15s, box-shadow 0.12s;
}
.footer__social a svg { width: 22px; height: 22px; }
.footer__social a:hover { background: var(--orange); border-color: var(--orange); color: var(--cream); box-shadow: 0 4px 0 var(--orange-lip); transform: translateY(-2px); }
.footer__social a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-lip); }
.footer__copy { font-weight: 600; font-size: 0.9rem; color: var(--tan); text-align: right; }
.footer__copy p { margin: 0; }
.footer__legal { margin-top: 4px !important; color: rgba(200,72,26,0.6); }
.footer__legal a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
.footer__legal a:hover { color: var(--orange); border-color: currentColor; }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.hero__visual.reveal { transform: translateY(30px) scale(0.97); }
.hero__visual.reveal.is-in { transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .promise__grid { grid-template-columns: 1fr 1fr; }
  .faq__inner { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 860px) {
  .hero__inner, .how__grid, .duel__inner { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero__visual { margin-top: 10px; }
  .phone { width: 220px; }
  .how__phone { order: -1; }
  .step.is-active { transform: none; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .duel { padding: 48px 0; border-radius: 26px; margin: 0 8px; }
  .nav__links a[href="#how"], .nav__links a[href="#faq"] { display: none; }
}

@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .hero__cta .btn { width: 100%; }
  .tile { width: 44px; height: 44px; border-radius: 14px; }
  .tile svg { width: 22px; height: 22px; }
  .tile--4 { display: none; }
  .peek { left: -4px; }
  .waity--peek { --size: 74px; }
  .promise__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 14px 12px; }
  .card p { font-size: 0.86rem; }
  .how__phone .phone { width: 190px; }
  .stats__grid { gap: 8px; }
  .stat { padding: 14px 8px; }
  .game-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-list li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 0.92rem; }
  .g-icon { width: 30px; height: 30px; border-radius: 10px; }
  .split { width: 230px; height: 240px; }
  .duel__shots .phone--small { width: 150px; }
  .cta__card { padding: 80px 18px 40px; border-radius: 26px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__copy { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__visual.reveal { opacity: 1; transform: none; }
  .phone--tilt { transform: rotate(4deg); }
}

/* =========================================================
   Interactive extras
   ========================================================= */

/* scroll progress under the nav */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; }

/* hero 3D stage (tilts toward the pointer) */
.stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}
.stage .tile { transform: translateZ(50px); }
.stage .tile--1 { transform: translateZ(70px) rotate(-10deg); }
.stage .peek { transform: translateZ(60px); }

/* Waity's eyes follow the pointer */
.waity__eye::after { transform: translate(calc(var(--ex, 0) * 32%), calc(var(--ey, 0) * 28%)); transition: transform 0.12s ease-out; }

/* ticker pauses on hover */
.ticker:hover .ticker__row { animation-play-state: paused; }

/* tilt cards */
.tilty { transition: transform 0.18s ease-out; will-change: transform; }

/* dark button */
.btn--dark { background: var(--black); color: var(--cream); box-shadow: 0 4px 0 #000; }
.btn--dark:hover { box-shadow: 0 6px 0 #000; }
.btn--dark:active { box-shadow: 0 1px 0 #000; }

/* ---------- play here ---------- */
.play { padding: 0 0 64px; }
.play__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pcard {
  background: var(--cream);
  border: 2px solid var(--tan-line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 0 rgba(117,101,75,0.22);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pcard__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__best { font-size: 0.8rem; font-weight: 800; color: var(--tan); background: var(--tan-soft); padding: 5px 10px; border-radius: 10px; }
.pcard__best.is-new { background: var(--orange); color: var(--cream); animation: hop 0.5s var(--ease-pop); }

.rt {
  flex: 1;
  min-height: 200px;
  border: 0;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--tan-soft);
  color: var(--black);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s, transform 0.1s;
}
.rt:active { transform: scale(0.985); }
.rt b { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.03em; }
.rt span { font-weight: 700; color: var(--tan); font-size: 0.9rem; }
.rt.is-wait { background: var(--black); color: var(--cream); }
.rt.is-wait span { color: var(--cream-soft); }
.rt.is-go { background: var(--orange); color: var(--cream); }
.rt.is-go span { color: var(--cream-soft); }
.rt.is-done b { color: var(--orange); font-size: 2.2rem; }
.rt.is-early b { color: var(--black); }

.ff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ff button {
  aspect-ratio: 1.6;
  border: 0;
  border-radius: 14px;
  background: var(--cream);
  box-shadow: inset 0 0 0 2px var(--tan-line), 0 4px 0 rgba(117,101,75,0.25);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--black);
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, color 0.15s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.ff button:hover { transform: translateY(-2px); }
.ff button:active { transform: translateY(2px); }
.ff button.is-done { background: var(--orange); color: var(--cream); box-shadow: 0 4px 0 var(--orange-lip); opacity: 0.55; pointer-events: none; }
.ff button.is-wrong { animation: shake 0.3s; background: var(--black); color: var(--cream); }
.ff__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; color: var(--tan); font-size: 0.88rem; }
.ff__bar b { font-size: 1.1rem; color: var(--black); font-variant-numeric: tabular-nums; }
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

/* ---------- surprise me ---------- */
.games__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.games__bar .chips { margin-bottom: 0; }
.game-list li.is-scan { border-color: var(--tan); background: var(--tan-soft); }
.game-list li.is-picked { border-color: var(--orange); background: var(--orange); color: var(--cream); box-shadow: 0 5px 0 var(--orange-lip); animation: picked 0.5s var(--ease-pop); }
.game-list li.is-picked div span { color: var(--cream-soft); }
.game-list li.is-picked .g-icon { background: var(--cream); color: var(--orange); box-shadow: none; }
@keyframes picked { 0% { scale: 1; } 40% { scale: 1.08; } 100% { scale: 1; } }

/* ---------- tap war winner ---------- */
.split__win {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(26,26,26,0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.split__win b { font-size: 1.6rem; font-weight: 900; color: var(--cream); padding: 10px 18px; border-radius: 16px; background: var(--orange); transform: scale(0.6); transition: transform 0.35s var(--ease-pop); }
.split__win.is-tan b { background: var(--tan); }
.split__win.is-on { opacity: 1; }
.split__win.is-on b { transform: scale(1); }
.split.is-facing .split__win b { rotate: 0deg; }
.split__hint { margin: -12px 0 0; color: var(--cream-soft); font-weight: 600; font-size: 0.88rem; text-align: center; }
.split__count.is-bump { animation: bump 0.18s ease-out; }
@keyframes bump { 50% { scale: 1.25; } }

/* ---------- confetti ---------- */
.confetti { position: fixed; top: 0; left: 0; width: 9px; height: 13px; border-radius: 3px; pointer-events: none; z-index: 60; }

@media (max-width: 760px) {
  .play__grid { grid-template-columns: 1fr; }
  .rt { min-height: 170px; }
}
@media (hover: none) {
  .stage { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { transform: none !important; }
}

/* ---------- compact duel section ---------- */
.duel { padding: 48px 0; }
.duel__inner { grid-template-columns: 1.05fr 0.95fr; gap: 32px; }
.duel h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.duel .lead { font-size: 0.98rem; margin-top: 12px; }
.badge { margin-bottom: 12px; }
.seat { margin-top: 16px; }
.seat__label { margin-bottom: 8px; }
.seat__opt { padding: 7px 13px; font-size: 0.9rem; }
.seat__note { min-height: 0; margin-top: 8px; font-size: 0.9rem; }
.duel__list { margin-top: 16px; gap: 6px; }
.duel__list li { padding: 5px 11px; font-size: 0.82rem; border-radius: 11px; }
.duel__demo { flex-direction: row; align-items: center; justify-content: center; gap: 22px; }
.duel__play { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.split { width: 200px; height: 230px; border-radius: 26px; padding: 8px; }
.split__half { border-radius: 19px; }
.split__win { inset: 8px; border-radius: 19px; }
.split__win b { font-size: 1.2rem; padding: 8px 14px; }
.split__count { font-size: 2rem; }
.mini-waity { width: 34px; height: 29px; }
.split__hint { margin: 0; font-size: 0.8rem; line-height: 1.4; }
.duel__shots .phone--small { width: 120px; border-radius: 22px; padding: 16px 5px 5px; }
.duel__shots .phone--small::before { top: 6px; width: 30px; height: 5px; }
.duel__shots .phone--small img { border-radius: 12px 12px 18px 18px; }
.duel__shots .phone--back { margin-left: -44px; margin-top: 26px; }
@media (max-width: 860px) {
  .duel { padding: 40px 0; }
  .duel__inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .duel__demo { gap: 14px; }
  .split { width: 170px; height: 200px; }
  .duel__shots .phone--small { width: 100px; }
  .duel__shots .phone--back { margin-left: -60px; }
}

/* ---------- compact "how it works" ---------- */
.how { padding: 48px 0 40px; }
.how__grid { gap: 28px; }
.how .section-head { margin-bottom: 18px; }
.steps { gap: 6px; }
.step { padding: 12px 14px; gap: 12px; }
.step h3 { font-size: 1rem; }
.step p { margin-top: 3px; font-size: 0.9rem; }
.step__num { width: 36px; height: 36px; font-size: 1rem; border-radius: 12px; flex: none; }
.step.is-active { transform: translateX(4px); }
.how__phone { gap: 12px; }
.how__phone .phone { width: 180px; border-radius: 30px; padding: 20px 6px 6px; }
.how__phone .phone::before { top: 8px; width: 40px; height: 6px; }
.how__phone .phone img { border-radius: 15px 15px 25px 25px; }
.how__progress { width: 110px; height: 4px; }

/* ---------- compact play cards ---------- */
.play { padding: 0 0 48px; }
.play .section-head { margin-bottom: 18px; }
.play__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 380px; margin-left: auto; margin-right: auto; }
.pcard { padding: 12px; gap: 10px; border-radius: 22px; }
.pcard h3 { font-size: 0.98rem; }
.pcard__best { font-size: 0.75rem; padding: 4px 8px; }
.ff { gap: 6px; }
.ff button { aspect-ratio: 2.3; font-size: 1.05rem; border-radius: 11px; box-shadow: inset 0 0 0 2px var(--tan-line), 0 3px 0 rgba(117,101,75,0.25); }
.ff button.is-done { box-shadow: 0 3px 0 var(--orange-lip); }
.ff__bar { font-size: 0.8rem; }
.ff__bar b { font-size: 0.95rem; }

@media (max-width: 860px) {
  .how__phone { order: 0; }
  .how__phone .phone { width: 160px; }
}
@media (max-width: 560px) {
  .how__phone { display: none; }
  .step.is-active { transform: none; }
}

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border-radius: 14px;
  text-decoration: none;
  line-height: 1.1;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; margin-bottom: 2px; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(3px); }
.store--orange { background: var(--orange); color: var(--cream); box-shadow: 0 5px 0 var(--orange-lip); }
.store--orange:hover { box-shadow: 0 7px 0 var(--orange-lip); }
.store--orange:active { box-shadow: 0 2px 0 var(--orange-lip); }
.store--black { background: var(--black); color: var(--cream); box-shadow: 0 5px 0 #000; }
.store--black:hover { box-shadow: 0 7px 0 #000; }
.store--black:active { box-shadow: 0 2px 0 #000; }
.store--cream { background: var(--cream); color: var(--orange); box-shadow: 0 5px 0 rgba(26,26,26,0.35); }
.store--cream:hover { box-shadow: 0 7px 0 rgba(26,26,26,0.35); }
.hero__cta { align-items: center; }
.cta__card .stores { justify-content: center; }

@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .stores { width: 100%; }
  .store { flex: 1 1 150px; justify-content: center; padding: 9px 12px; }
  .hero__cta .hero__more { width: 100%; }
  .cta__card .stores { max-width: 340px; }
}

/* ---------- small-screen fixes ---------- */
.duel__inner, .how__grid, .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.seat__toggle { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 860px) {
  .duel__inner, .how__grid, .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 380px; margin: 0 auto; }
  .stage .tile--1 { left: 0; }
  .stage .tile--2 { right: 0; }
  .stage .tile--3 { left: 0; }
  .peek { left: 0; }
}
@media (max-width: 440px) {
  .duel__demo { flex-direction: column; gap: 18px; }
  .duel__shots .phone--small { width: 110px; }
  .duel__shots .phone--back { margin-left: -36px; }
  .stage { max-width: 300px; }
  .ticks { gap: 6px 16px; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
  .seat__opt { padding: 7px 10px; font-size: 0.85rem; }
  .store { flex-basis: 100%; }
  .chip { padding: 8px 12px; }
  .footer__social { gap: 8px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .duel__demo { gap: 14px; }
  .split { width: 170px; height: 210px; }
  .duel__shots .phone--small { width: 104px; }
  .duel__shots .phone--back { margin-left: -40px; }
}
@media (max-width: 980px) {
  .footer__copy { text-align: left; }
}
@media (max-width: 360px) {
  .stage { max-width: 270px; }
}

/* ---------- iOS "coming soon" ---------- */
.store { position: relative; }
.store__soon {
  position: absolute; top: -14px; right: -10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--cream);
  border: 2px solid var(--cream);
  font-style: normal; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1.2;
}
.soon {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(26, 26, 26, 0.45);
  animation: soonFade 0.2s ease;
}
.soon[hidden] { display: none; }
.soon__card {
  width: min(420px, 100%);
  padding: 28px 24px 22px;
  border-radius: 28px;
  background: var(--cream);
  text-align: center;
  box-shadow: 0 8px 0 rgba(26, 26, 26, 0.25), 0 30px 60px -20px rgba(26, 26, 26, 0.5);
  animation: soonPop 0.35s cubic-bezier(.34, 1.56, .64, 1);
}
.soon__icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--black); color: var(--cream);
  box-shadow: 0 5px 0 #000;
}
.soon__icon svg { width: 32px; height: 32px; }
.soon__tag { margin: 0; color: var(--orange); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.soon__card h3 { margin: 6px 0 8px; font-size: 1.45rem; font-weight: 900; letter-spacing: -0.02em; }
.soon__text { margin: 0 0 20px; color: var(--tan); font-weight: 600; line-height: 1.5; }
.soon__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@keyframes soonFade { from { opacity: 0; } }
@keyframes soonPop { from { transform: scale(0.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .soon, .soon__card { animation: none; } }

/* ---------- legal pages (terms.html, privacy.html) ---------- */

.legal { padding: 40px 0 80px; }
.legal__inner { max-width: 780px; }
.legal__head { margin-bottom: 30px; }
.legal__head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.legal__meta { margin: 14px 0 0; font-weight: 600; font-size: 0.95rem; color: var(--tan); }

.legal__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.legal__tabs a {
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 0.9rem; color: var(--tan);
  box-shadow: inset 0 0 0 2px var(--tan-line);
  transition: color 0.15s, box-shadow 0.15s;
}
.legal__tabs a:hover { color: var(--black); box-shadow: inset 0 0 0 2px var(--tan); }
.legal__tabs a[aria-current="page"] { background: var(--black); color: var(--cream); box-shadow: none; }

.legal__summary {
  margin: 0 0 40px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--black); color: var(--cream);
  box-shadow: 0 6px 0 rgba(26, 26, 26, 0.22);
}
.legal__summary h2 { font-size: 1.15rem; color: var(--orange); filter: brightness(1.25); margin: 0 0 12px; letter-spacing: -0.015em; }
.legal__summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.legal__summary li { position: relative; padding-left: 26px; font-weight: 600; color: var(--cream-soft); }
.legal__summary li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px;
  border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange);
  transform: rotate(-45deg); filter: brightness(1.25);
}

.prose { font-size: 1.02rem; line-height: 1.7; font-weight: 500; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; margin: 42px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--orange); }
.prose strong { font-weight: 800; }
.prose a { color: var(--orange); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-lip); }

@media (max-width: 560px) {
  .legal { padding: 28px 0 56px; }
  .legal__summary { padding: 20px; }
  .prose { font-size: 1rem; }
}

/* ---------- footer: logo left · legal links centre · copyright right ---------- */

.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px 28px; }
.footer__brand { justify-self: start; }
.footer__center { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; font-weight: 700; font-size: 0.92rem; color: var(--tan-line); }
.footer__links a { color: var(--tan); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.footer__links a:hover { color: var(--orange); border-color: currentColor; }
.footer__copy { justify-self: end; text-align: right; }
.footer__by { margin-top: 4px !important; }
.footer__by a { color: var(--orange); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.footer__by a:hover { border-color: currentColor; }

@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .footer__brand, .footer__copy { justify-self: center; text-align: center; }
  .footer__brand img { margin: 0 auto; }
}

/* footer: "A Rogue Treasure product" under the logo, Privacy · Terms under the copyright */
.footer__brand .footer__by { margin: 6px 0 0 !important; }
.footer__copy { grid-column: 3; }
.footer__links--copy { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 760px) {
  .footer__copy { grid-column: auto; }
  .footer__links--copy { justify-content: center; }
}

/* legal pages: contents list + table */
.legal__toc { margin: 0 0 44px; padding: 20px 24px; border-radius: 20px; background: var(--tan-soft); }
.legal__toc-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan); }
.legal__toc ol { margin: 0; padding-left: 1.5em; columns: 2; column-gap: 32px; font-weight: 700; font-size: 0.94rem; }
.legal__toc li { margin: 0 0 6px; break-inside: avoid; color: var(--tan); }
.legal__toc a { color: var(--black); text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.legal__toc a:hover { color: var(--orange); border-color: currentColor; }
.prose h2[id] { scroll-margin-top: 90px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--tan-line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--tan-line); }
.prose th { font-weight: 800; background: var(--tan-soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 700; }

@media (max-width: 560px) {
  .legal__toc { padding: 18px 20px; }
  .legal__toc ol { columns: 1; }
}
