/* =========================================================
   POUSSÉE — promotional site styles
   Theme mirrors the iOS app's Duo-inspired dark palette.
   ========================================================= */

:root {
  --ink: #0B1416;
  --ink-raised: #18272D;
  --ink-border: #2C3E45;
  --chalk: #F7F9FA;
  --slate: #8B9BA3;

  --gold: #E8B341;
  --gold-edge: #B8862A;
  --green: #58CC02;
  --green-edge: #58A700;
  --red: #FF4B4B;
  --red-edge: #D33B3B;
  --blue: #1CB0F6;
  --blue-edge: #1899D6;
  --purple: #CE82FF;
  --purple-edge: #A560D0;
  --orange: #FF9600;
  --orange-edge: #D67900;
  --yellow: #FFC800;
  --yellow-edge: #D4A500;
  --pink: #FF86D0;
  --pink-edge: #D15FAB;

  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.9,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--ink);
  color: var(--chalk);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-weight: 600;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold); font-weight: 700; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.text-gold { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 900; letter-spacing: 1.8px;
  color: var(--gold); text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(232,179,65,.1);
  border: 1.5px solid rgba(232,179,65,.3);
  margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; width: fit-content; margin: 0 auto 16px; }

/* ---- animated backdrop ---- */
.bg-pieces {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 15% 10%, rgba(232,179,65,.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 75%, rgba(28,176,246,.06), transparent 60%),
    radial-gradient(ellipse 600px 400px at 50% 50%, rgba(206,130,255,.04), transparent 60%),
    var(--ink);
  z-index: -1;
  pointer-events: none;
}
.bg-pieces::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(44,62,69,.25) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(44,62,69,.15) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px;
  animation: drift 40s linear infinite;
  opacity: .4;
}
@keyframes drift {
  0% { transform: translate(0,0); }
  100% { transform: translate(-60px,-60px); }
}

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(11,20,22,.7);
  border-bottom: 1px solid var(--ink-border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-mark.sm { width: 28px; height: 28px; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { font-size: 20px; letter-spacing: -.3px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn-duo) { font-size: 14px; font-weight: 800; color: var(--slate); transition: color .15s; }
.nav-links a:not(.btn-duo):hover { color: var(--gold); }

/* ---- Duo buttons (chunky 3D) ---- */
.btn-duo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 900; text-transform: uppercase;
  letter-spacing: .4px; border-radius: 14px;
  transition: transform .08s var(--ease), box-shadow .08s var(--ease);
  user-select: none; white-space: nowrap;
}
.btn-duo:active { transform: translateY(2px); }
.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-lg { padding: 16px 24px; font-size: 14px; }

.btn-gold  { background: var(--gold);   color: #2B1E00; box-shadow: 0 4px 0 var(--gold-edge); }
.btn-gold:hover  { box-shadow: 0 5px 0 var(--gold-edge); transform: translateY(-1px); }
.btn-green { background: var(--green);  color: #fff; box-shadow: 0 4px 0 var(--green-edge); }
.btn-green:hover { box-shadow: 0 5px 0 var(--green-edge); transform: translateY(-1px); }
.btn-blue  { background: var(--blue);   color: #fff; box-shadow: 0 4px 0 var(--blue-edge); }
.btn-blue:hover  { box-shadow: 0 5px 0 var(--blue-edge); transform: translateY(-1px); }
.btn-yellow{ background: var(--yellow); color: #3C2F00; box-shadow: 0 4px 0 var(--yellow-edge); }
.btn-yellow:hover{ box-shadow: 0 5px 0 var(--yellow-edge); transform: translateY(-1px); }
.btn-ghost { background: var(--ink-raised); color: var(--chalk); border: 2px solid var(--ink-border); box-shadow: 0 4px 0 var(--ink-border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---- HERO ---- */
.hero { padding: 80px 32px 60px; position: relative; }
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(88,204,2,.12); color: var(--green);
  border: 1.5px solid rgba(88,204,2,.35);
  margin-bottom: 24px;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(88,204,2,.25); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.4); } }

.hero-headline {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.05;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 18px; line-height: 1.6; color: var(--slate);
  max-width: 540px; margin-bottom: 32px; font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  padding-top: 28px; border-top: 1px solid var(--ink-border);
  max-width: 540px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--gold); letter-spacing: -.5px; }
.stat-label { font-size: 10px; font-weight: 900; letter-spacing: 1.4px; color: var(--slate); text-transform: uppercase; }

/* ---- phone mockup ---- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  width: 320px; height: 640px; position: relative;
  background: linear-gradient(145deg, #2a3d45, #0d1719);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0,0,0,.5),
    0 0 0 2px var(--ink-border),
    inset 0 0 0 1px rgba(255,255,255,.05);
  animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(0deg); }
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #000; border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--ink); border-radius: 32px;
  padding: 44px 16px 16px; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
}
.mini-hud { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.hud-pill { font-size: 9px; font-weight: 900; letter-spacing: 1.2px; color: var(--slate); padding: 4px 8px; background: var(--ink-raised); border-radius: 999px; }
.hud-eval { font-size: 16px; font-weight: 900; color: var(--green); font-variant-numeric: tabular-nums; }

.hero-board { width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(8,1fr); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.hero-board .sq { position: relative; }
.hero-board .sq.light { background: #E6D4A6; }
.hero-board .sq.dark { background: #8B6F47; }
.hero-board .sq .piece { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .3s var(--ease); }
.hero-board .sq.highlight::before { content: ""; position: absolute; inset: 0; background: rgba(255,200,0,.45); }
.hero-board .sq.target::after { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: rgba(28,176,246,.5); }

.mini-coach { display: flex; gap: 8px; align-items: flex-start; }
.coach-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink);
  box-shadow: 0 2px 0 var(--gold-edge);
}
.coach-avatar.lg { width: 56px; height: 56px; font-size: 28px; box-shadow: 0 3px 0 var(--gold-edge); }
.coach-bubble {
  background: var(--ink-raised); border: 1.5px solid var(--ink-border);
  padding: 10px 12px; border-radius: 12px;
  font-size: 12px; line-height: 1.4; color: var(--chalk);
  font-weight: 600;
}

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--ink-raised);
  border: 2px solid var(--ink-border); border-radius: 12px;
  font-size: 12px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 3px 0 var(--ink-border);
  animation: badgeFloat 5s ease-in-out infinite;
}
.float-badge span { font-size: 16px; }
.float-badge-1 { top: 18%; left: -8%; color: var(--green); border-color: var(--green-edge); box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 3px 0 var(--green-edge); animation-delay: .2s; }
.float-badge-2 { bottom: 18%; right: -8%; color: var(--orange); border-color: var(--orange-edge); box-shadow: 0 8px 20px rgba(0,0,0,.4), 0 3px 0 var(--orange-edge); animation-delay: 1s; }
@keyframes badgeFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- SECTION shell ---- */
section { padding: 100px 32px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-size: clamp(32px, 4.5vw, 54px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 12px;
}
.section-title.center { text-align: center; }
.section-sub { font-size: 18px; color: var(--slate); margin-bottom: 48px; font-weight: 500; }
.section-sub.center { text-align: center; }

/* ---- DIFFS ---- */
.diffs { background: var(--ink-raised); border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border); }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.diff-card {
  background: var(--ink); border: 2px solid var(--ink-border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: default; position: relative; overflow: hidden;
}
.diff-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gold); opacity: 0;
  transition: opacity .2s var(--ease);
}
.diff-card[data-color="green"]::before  { background: var(--green); }
.diff-card[data-color="red"]::before    { background: var(--red); }
.diff-card[data-color="purple"]::before { background: var(--purple); }
.diff-card[data-color="blue"]::before   { background: var(--blue); }
.diff-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.diff-card:hover::before { opacity: 1; }
.diff-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.diff-card h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.diff-card p { color: var(--slate); font-size: 14px; line-height: 1.55; font-weight: 500; }

/* ---- DEMO ---- */
.demo .section-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.demo-copy .section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.demo-coach { display: flex; gap: 14px; margin-top: 24px; align-items: flex-start; }
.coach-panel { flex: 1; background: var(--ink-raised); border: 2px solid var(--ink-border); border-radius: var(--radius); padding: 16px; }
.coach-panel .coach-bubble { background: transparent; border: none; padding: 0 0 12px; font-size: 14px; }
.coach-controls { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ink-border); }

.demo-board-wrap { position: relative; }
.demo-board {
  position: relative;
  width: 100%; max-width: 520px; margin: 0 auto;
  aspect-ratio: 1; display: grid; grid-template-columns: repeat(8,1fr);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 4px var(--ink-border);
}
.demo-board .sq { position: relative; cursor: pointer; transition: background .15s; }
.demo-board .sq.light { background: #E6D4A6; }
.demo-board .sq.dark { background: #8B6F47; }
.demo-board .sq.selected { background: rgba(88,204,2,.55) !important; }
.demo-board .sq.last-move { box-shadow: inset 0 0 0 3px var(--yellow); }
.demo-board .sq.check::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,75,75,.7) 0%, rgba(255,75,75,0) 70%); }
.demo-board .sq .piece {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: clamp(28px, 5vw, 44px);
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .25s var(--ease);
  pointer-events: none;
}
.demo-board .sq .piece.white { color: #fff; text-shadow: 0 0 2px #000, 0 2px 4px rgba(0,0,0,.5); }
.demo-board .sq .piece.black { color: #111; text-shadow: 0 0 2px #fff; }
.demo-board .sq .dot {
  position: absolute; inset: 32%; border-radius: 50%;
  background: rgba(88,204,2,.55); pointer-events: none;
}
.demo-board .sq.capturable .dot { inset: 4%; background: transparent; border: 4px solid rgba(88,204,2,.55); }
.demo-board .sq.hint-from { animation: hintPulse 1.2s ease-in-out infinite; }
.demo-board .sq.hint-to { animation: hintPulse 1.2s ease-in-out infinite .3s; }
@keyframes hintPulse {
  0%,100% { box-shadow: inset 0 0 0 0 var(--yellow); }
  50% { box-shadow: inset 0 0 0 4px var(--yellow); }
}

.demo-tray {
  max-width: 520px; margin: 20px auto 0;
  background: var(--ink-raised); border: 2px solid var(--ink-border);
  border-radius: var(--radius); padding: 16px 20px;
  display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.tray-row { display: flex; flex-direction: column; gap: 2px; }
.tray-label { font-size: 10px; font-weight: 900; letter-spacing: 1.4px; color: var(--slate); text-transform: uppercase; }
.tray-val { font-size: 15px; font-weight: 800; color: var(--chalk); }

/* ---- FEATURES ---- */
.features { background: var(--ink-raised); border-top: 1px solid var(--ink-border); border-bottom: 1px solid var(--ink-border); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 2px; background: var(--ink-border); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink-border); }
.feat { background: var(--ink); padding: 32px 24px; transition: background .2s var(--ease); }
.feat:hover { background: #0d1a1e; }
.feat-num { font-size: 13px; font-weight: 900; color: var(--gold); letter-spacing: 1.5px; margin-bottom: 12px; }
.feat h3 { font-size: 19px; font-weight: 900; margin-bottom: 8px; letter-spacing: -.2px; }
.feat p { color: var(--slate); font-size: 14px; line-height: 1.55; font-weight: 500; }

/* ---- BOTS ---- */
.bots { overflow: hidden; }
.bot-track { display: flex; gap: 16px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-border) transparent; margin-top: 40px; }
.bot-track::-webkit-scrollbar { height: 8px; }
.bot-track::-webkit-scrollbar-thumb { background: var(--ink-border); border-radius: 4px; }
.bot-card { flex: 0 0 240px; scroll-snap-align: start; background: var(--ink-raised); border: 2px solid var(--ink-border); border-radius: var(--radius); padding: 24px 20px; transition: transform .2s var(--ease), border-color .2s var(--ease); cursor: default; position: relative; }
.bot-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.bot-avatar { width: 68px; height: 68px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 14px; box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.bot-name { font-size: 17px; font-weight: 900; margin-bottom: 2px; letter-spacing: -.2px; }
.bot-subtitle { font-size: 11.5px; font-weight: 700; color: var(--gold); font-style: italic; letter-spacing: .1px; margin-bottom: 10px; line-height: 1.35; opacity: .95; }
.bot-rating { font-size: 12px; font-weight: 900; color: var(--chalk); letter-spacing: 1px; margin-bottom: 10px; opacity: .55; }
.bot-style { font-size: 13px; color: var(--slate); line-height: 1.5; font-weight: 500; }
.bot-lock { position: absolute; top: 14px; right: 14px; font-size: 14px; opacity: .5; z-index: 2; }

/* ---- CTA ---- */
.cta-card {
  background: linear-gradient(135deg, var(--gold), #D49A2A);
  border-radius: 28px; padding: 60px 48px; position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(232,179,65,.25), 0 6px 0 var(--gold-edge);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.2), transparent 50%);
}
.cta-copy { position: relative; z-index: 1; color: #2B1E00; }
.cta-copy h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; line-height: 1.1; letter-spacing: -.8px; margin-bottom: 14px; }
.cta-copy p { font-size: 16px; margin-bottom: 24px; font-weight: 600; opacity: .85; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-meta { font-size: 12px; font-weight: 800; color: #2B1E00; opacity: .7; letter-spacing: .5px; }

.platform-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.platform-row {
  display: flex; align-items: center; gap: 14px;
  background: rgba(43, 30, 0, .08);
  border: 2px solid rgba(43, 30, 0, .15);
  border-radius: 14px;
  padding: 12px 16px;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.platform-row:hover { background: rgba(43, 30, 0, .14); transform: translateX(4px); }
.platform-icon { font-size: 20px; width: 28px; text-align: center; display: inline-flex; align-items: center; justify-content: center; color: #2B1E00; }
.platform-icon svg { width: 22px; height: 22px; }
.platform-name { font-weight: 900; color: #2B1E00; font-size: 16px; flex: 1; letter-spacing: -.2px; }
.platform-status {
  font-size: 11px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
  color: #2B1E00; background: rgba(43, 30, 0, .18);
  padding: 6px 10px; border-radius: 999px;
}
.cta-card .btn-gold { background: #2B1E00; color: var(--gold); box-shadow: 0 4px 0 #000; }
.cta-card .btn-gold:hover { box-shadow: 0 5px 0 #000; }

.cta-visual { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cta-piece {
  font-size: 48px; color: #2B1E00;
  text-shadow: 0 2px 4px rgba(0,0,0,.15);
  animation: pieceWiggle 4s ease-in-out infinite;
  line-height: 1;
}
.cta-piece:nth-child(1) { animation-delay: 0s; }
.cta-piece:nth-child(2) { animation-delay: .4s; }
.cta-piece:nth-child(3) { animation-delay: .8s; }
.cta-piece:nth-child(4) { animation-delay: 1.2s; }
.cta-piece:nth-child(5) { animation-delay: 1.6s; }
.cta-piece:nth-child(6) { animation-delay: 2.0s; }
@keyframes pieceWiggle {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* ---- FOOTER ---- */
.footer { background: var(--ink); border-top: 1px solid var(--ink-border); padding: 40px 32px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-tagline { font-size: 12px; color: var(--slate); font-weight: 600; font-style: italic; margin-left: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; font-weight: 800; color: var(--slate); transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { font-size: 12px; color: var(--slate); font-weight: 600; }

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- CONTENT PAGES (privacy, terms, support, invite) ---- */
.page-hero {
  padding: 80px 32px 40px; text-align: center;
  border-bottom: 1px solid var(--ink-border);
}
.page-hero .eyebrow { margin: 0 auto 16px; display: inline-block; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px); font-weight: 900;
  letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px;
}
.page-hero p.lede {
  font-size: 17px; color: var(--slate); font-weight: 500;
  max-width: 620px; margin: 0 auto;
}
.page-hero .updated {
  display: inline-block; margin-top: 20px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.4px;
  color: var(--slate); text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink-raised); border: 1.5px solid var(--ink-border);
}

.page-body { padding: 60px 32px 100px; }
.page-inner { max-width: 760px; margin: 0 auto; }
.page-inner h2 {
  font-size: 26px; font-weight: 900; letter-spacing: -.4px;
  margin: 48px 0 14px; color: var(--chalk);
}
.page-inner h2:first-child { margin-top: 0; }
.page-inner h3 {
  font-size: 18px; font-weight: 900; letter-spacing: -.2px;
  margin: 28px 0 10px; color: var(--gold);
}
.page-inner p { font-size: 15px; line-height: 1.7; color: var(--slate); margin-bottom: 14px; font-weight: 500; }
.page-inner p strong { color: var(--chalk); font-weight: 800; }
.page-inner ul { list-style: none; padding: 0; margin: 0 0 18px; }
.page-inner ul li {
  font-size: 15px; line-height: 1.65; color: var(--slate);
  font-weight: 500; padding: 6px 0 6px 26px; position: relative;
}
.page-inner ul li::before {
  content: "♟"; position: absolute; left: 0; top: 5px;
  color: var(--gold); font-size: 14px;
}
.page-inner a.inline {
  color: var(--gold); font-weight: 800;
  border-bottom: 1.5px dashed rgba(232,179,65,.4);
  transition: border-color .15s;
}
.page-inner a.inline:hover { border-bottom-color: var(--gold); }

.callout {
  background: var(--ink-raised); border: 2px solid var(--ink-border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; font-size: 14px; color: var(--chalk); font-weight: 600; }

/* FAQ accordion */
.faq-section { margin-bottom: 40px; }
.faq-section > h2 { margin-bottom: 20px; }
.faq-item {
  background: var(--ink-raised); border: 2px solid var(--ink-border);
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
  transition: border-color .15s;
}
.faq-item[open] { border-color: var(--gold); }
.faq-item summary {
  cursor: pointer; padding: 16px 22px; font-size: 15px; font-weight: 800;
  color: var(--chalk); list-style: none; position: relative;
  padding-right: 44px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); font-size: 22px; font-weight: 900;
  color: var(--gold); transition: transform .2s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item .faq-body { padding: 0 22px 18px; }
.faq-item .faq-body p { font-size: 14px; color: var(--slate); line-height: 1.65; font-weight: 500; margin: 0; }

/* Invite page */
.invite-hero {
  padding: 60px 32px 80px; text-align: center;
}
.invite-hero .logo-mark { width: 72px; height: 72px; margin: 0 auto 24px; }
.invite-card {
  max-width: 480px; margin: 40px auto 0;
  background: var(--ink-raised); border: 2px solid var(--ink-border);
  border-radius: var(--radius); padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.invite-card .label {
  font-size: 11px; font-weight: 900; letter-spacing: 1.6px;
  color: var(--slate); text-transform: uppercase; margin-bottom: 12px;
}
.invite-code {
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 34px; font-weight: 900; letter-spacing: 4px;
  color: var(--gold); background: var(--ink);
  border: 2px dashed var(--gold-edge); border-radius: var(--radius-sm);
  padding: 18px 20px; cursor: pointer; user-select: all;
  transition: transform .15s var(--ease), border-color .15s;
}
.invite-code:hover { transform: scale(1.02); border-color: var(--gold); }
.invite-copy-status {
  font-size: 12px; font-weight: 800; color: var(--green);
  letter-spacing: 1px; text-transform: uppercase;
  margin-top: 12px; height: 16px; opacity: 0;
  transition: opacity .2s var(--ease);
}
.invite-copy-status.show { opacity: 1; }
.invite-reward {
  background: rgba(232,179,65,.1); border: 1.5px solid rgba(232,179,65,.3);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px;
}
.invite-reward p { font-size: 13px; color: var(--gold); font-weight: 800; margin: 0; }
.invite-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* sub-nav for content pages */
.sub-nav {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
  padding: 20px 32px; border-bottom: 1px solid var(--ink-border);
  background: rgba(11,20,22,.5); backdrop-filter: blur(10px);
}
.sub-nav a {
  font-size: 13px; font-weight: 800; color: var(--slate);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 999px;
  transition: color .15s, background .15s;
}
.sub-nav a:hover { color: var(--gold); background: rgba(232,179,65,.08); }
.sub-nav a.active { color: var(--gold); background: rgba(232,179,65,.12); }

@media (max-width: 600px) {
  .page-hero { padding: 50px 20px 30px; }
  .page-body { padding: 40px 20px 60px; }
  .page-inner h2 { font-size: 22px; }
  .invite-code { font-size: 26px; letter-spacing: 3px; padding: 14px 16px; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero-inner, .demo .section-inner, .cta-card { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 20px; }
  .nav-links a:not(.btn-duo) { display: none; }
  .cta-card { padding: 40px 28px; }
  .cta-visual { order: -1; }
  .float-badge-1 { left: 0; }
  .float-badge-2 { right: 0; }
}
@media (max-width: 600px) {
  section { padding: 60px 20px; }
  .hero { padding: 40px 20px; }
  .nav { padding: 12px 20px; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 16px; }
  .phone-frame { width: 280px; height: 560px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   INTERACTIVE EXTRAS — confetti, solve-shake, badge, bot flip
   ========================================================= */

/* ---- Confetti ---- */
.confetti-host {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  overflow: visible;
}
.confetti-piece {
  position: absolute;
  top: 0;
  display: inline-block;
  will-change: transform, opacity;
  animation: confettiFall 1.6s var(--ease) forwards;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
@keyframes confettiFall {
  0%   { transform: translate(0, -20px) rotate(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

/* ---- Solve shake ---- */
.demo-board.board-solved { animation: boardShake .42s var(--ease); }
@keyframes boardShake {
  0%,100% { transform: translateX(0); }
  15% { transform: translateX(-3px); }
  30% { transform: translateX(3px); }
  45% { transform: translateX(-2px); }
  60% { transform: translateX(2px); }
  80% { transform: translateX(-1px); }
}

/* ---- Solve badge ---- */
.demo-board-wrap > .solve-badge { display: flex; margin: 14px auto 0; max-width: fit-content; }
.solve-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--gold), #D49A2A);
  color: #2B1E00;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 900; letter-spacing: .6px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 var(--gold-edge), 0 8px 24px rgba(232,179,65,.35);
  animation: badgePop .45s var(--ease) both;
}
.solve-badge span { font-size: 14px; }
@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(8px) scale(.8); }
  60%  { opacity: 1; transform: translateY(-2px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Bot card flip ---- */
.bot-card { perspective: 1200px; height: 340px; padding: 0; background: transparent; border: none; overflow: visible; cursor: pointer; }
.bot-card:hover { transform: translateY(-4px); border-color: transparent; }
.bot-card:focus { outline: none; }
.bot-card:focus-visible .bot-card-inner { box-shadow: 0 0 0 3px var(--gold); border-radius: var(--radius); }
.bot-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .6s var(--ease);
  transform-style: preserve-3d;
}
.bot-card.flipped .bot-card-inner { transform: rotateY(180deg); }
.bot-card-face {
  position: absolute; inset: 0;
  background: var(--ink-raised);
  border: 2px solid var(--ink-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s var(--ease);
}
.bot-card:hover .bot-card-face { border-color: var(--gold); }
.bot-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--ink-raised) 0%, #11252A 100%);
  border-color: var(--gold-edge);
  justify-content: space-between;
}
.bot-back-emoji { font-size: 34px; margin-bottom: 6px; }
.bot-quote {
  font-size: 15px; font-weight: 800; color: var(--chalk);
  line-height: 1.35; font-style: italic;
  border-left: 3px solid var(--bot-bg, var(--gold));
  padding-left: 10px; margin-bottom: 14px;
}
.bot-sig-label { font-size: 10px; font-weight: 900; letter-spacing: 1.4px; color: var(--slate); text-transform: uppercase; margin-bottom: 4px; }
.bot-sig { font-size: 13px; color: var(--chalk); line-height: 1.45; font-weight: 600; margin-bottom: auto; }
.bot-challenge-btn {
  margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--ink); color: var(--slate);
  border: 2px solid var(--ink-border);
  font-size: 12px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase;
  opacity: .75;
}
.bot-flip-hint {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  color: var(--slate); opacity: .55; text-transform: uppercase;
}

/* =========================================================
   REDUCED MOTION — disable continuous / showy animations
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bot-card-inner { transition: none; }
  .demo-board .sq.hint-from,
  .demo-board .sq.hint-to { animation: none; box-shadow: inset 0 0 0 4px var(--yellow); }
  .reveal { opacity: 1; transform: none; }
  .bg-glyph, .cursor-knight { display: none !important; }
}

/* =========================================================
   TIER 2 — Bg glyphs, eval bar, persona switcher, drag ghost,
   mini replay, carousel nav, cursor knight, avatar hover
   ========================================================= */

/* ---- Floating chess glyphs in ambient background ---- */
.bg-pieces { overflow: hidden; }
.bg-glyph {
  position: absolute; color: var(--gold);
  text-shadow: 0 0 12px rgba(232,179,65,.25);
  animation: bgDrift linear infinite;
  will-change: transform;
}
@keyframes bgDrift {
  0%   { transform: translate(0,0) rotate(0); }
  50%  { transform: translate(var(--drift-x), var(--drift-y)) rotate(8deg); }
  100% { transform: translate(0,0) rotate(0); }
}

/* ---- Hero eval bar ---- */
.hero-eval-bar {
  --evalPct: 60%;
  width: 100%; height: 6px; margin-bottom: 8px;
  background: #1A2A30; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
}
.hero-eval-fill {
  height: 100%;
  width: var(--evalPct);
  background: linear-gradient(90deg, #fff, var(--gold));
  border-radius: 3px;
  transition: width .25s var(--ease);
  box-shadow: 0 0 8px rgba(232,179,65,.5);
}

/* ---- Persona switcher + icon chips ---- */
.persona-switcher {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 10px; margin-bottom: 10px;
  background: var(--ink); border: 1px solid var(--ink-border);
  border-radius: 12px;
}
.persona-label { font-size: 9.5px; font-weight: 900; letter-spacing: 1.4px; color: var(--slate); margin-right: 4px; }
.persona-pill {
  font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .4px;
  padding: 6px 10px; border-radius: 8px;
  background: transparent; color: var(--slate);
  border: 1.5px solid transparent; cursor: pointer;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.persona-pill:hover { color: var(--chalk); }
.persona-pill.active { color: var(--ink); background: var(--gold); border-color: var(--gold-edge); box-shadow: 0 2px 0 var(--gold-edge); }
.persona-spacer { flex: 1; }
.icon-chip {
  font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; color: var(--chalk);
  border: 1.5px solid var(--ink-border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s var(--ease), transform .08s var(--ease);
}
.icon-chip:hover { border-color: var(--gold); }
.icon-chip:active { transform: scale(.92); }

/* ---- Drag ghost ---- */
.drag-ghost {
  position: absolute; pointer-events: none; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(28px, 5vw, 44px);
  transform: translate(-50%, -50%) scale(1.15);
  transition: transform .08s var(--ease);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.5));
  will-change: left, top;
}
.drag-ghost.white { color: #fff; text-shadow: 0 0 2px #000, 0 2px 4px rgba(0,0,0,.5); }
.drag-ghost.black { color: #111; text-shadow: 0 0 2px #fff; }
.demo-board-wrap { user-select: none; -webkit-user-select: none; touch-action: none; }

/* ---- Mini replay (arrow + stamp overlay) ---- */
.replay-arrow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 4;
  animation: replayPulse 1.2s var(--ease) infinite alternate;
  transition: opacity .5s var(--ease);
}
.replay-arrow.fade { opacity: 0; }
@keyframes replayPulse { from { filter: drop-shadow(0 0 4px #58CC02); } to { filter: drop-shadow(0 0 14px #58CC02); } }
.replay-stamp {
  position: absolute; top: 10px; left: 50%; z-index: 5;
  transform: translateX(-50%) rotate(-4deg);
  padding: 6px 14px;
  background: var(--green); color: #0B1416;
  border: 2px solid #3a8500; border-radius: 8px;
  font-size: 12px; font-weight: 900; letter-spacing: 1.5px;
  box-shadow: 0 3px 0 #3a8500, 0 6px 16px rgba(0,0,0,.4);
  cursor: pointer;
  animation: stampSlam .4s var(--ease) both;
}
@keyframes stampSlam {
  0% { transform: translateX(-50%) rotate(-18deg) scale(2); opacity: 0; }
  70% { opacity: 1; transform: translateX(-50%) rotate(-2deg) scale(.95); }
  100% { transform: translateX(-50%) rotate(-4deg) scale(1); opacity: 1; }
}

/* ---- Carousel nav buttons ---- */
.bot-track-wrap { position: relative; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  font: inherit; font-size: 26px; font-weight: 900; line-height: 1;
  background: var(--gold); color: #2B1E00;
  border: none; box-shadow: 0 4px 0 var(--gold-edge), 0 8px 20px rgba(0,0,0,.4);
  cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s var(--ease), opacity .2s var(--ease);
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.06); }
.carousel-btn:active { transform: translateY(-50%) translateY(2px) scale(1); box-shadow: 0 2px 0 var(--gold-edge); }
.carousel-btn.prev { left: -8px; }
.carousel-btn.next { right: -8px; }
.carousel-btn.hidden { opacity: 0; pointer-events: none; }

/* ---- Cursor-trailing knight ---- */
.cursor-knight {
  position: absolute; top: 0; left: 0; z-index: 999;
  font-size: 22px; color: var(--gold);
  pointer-events: none;
  opacity: .42;
  transform: translate(-100px, -100px);
  text-shadow: 0 0 8px rgba(232,179,65,.5);
  transition: opacity .4s var(--ease);
  margin-left: -11px; margin-top: -14px;
}
.cursor-knight.idle { opacity: 0; }

/* ---- Avatar playful hover on bot cards ---- */
.bot-avatar {
  transition: transform .3s var(--ease);
}
.bot-card:hover .bot-avatar {
  transform: rotate(-8deg) scale(1.08);
  animation: avatarBounce .6s var(--ease);
}
@keyframes avatarBounce {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-10deg) scale(1.12); }
  55% { transform: rotate(6deg) scale(.96); }
  100% { transform: rotate(-8deg) scale(1.08); }
}

/* Daily eyebrow sparkle */
.demo .eyebrow::after { content: " ✨"; opacity: .8; }
