/* ==========================================================================
   Sage Fox — main stylesheet
   Implements "Sage Fox - Home" from the Sage Fox design system (Paper Calm).
   Tokens mirror _ds/sage-fox-design-system/tokens/*.css verbatim.
   ========================================================================== */

/* ---- Webfonts (self-hosted; Hanken Grotesk is a variable font) ---- */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/HankenGrotesk-var.woff2") format("woff2");
}
/* The fox's voice — Newsreader, italic only. */
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Newsreader-400-italic.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  /* Paper / surfaces */
  --paper:       #ECE4D1;
  --paper-deep:  #E8DEC7;
  --paper-soft:  #FBF7EC;

  /* Ink / type */
  --ink:       #29241E;
  --ink-soft:  #3A2E22;
  --muted:     #6E6250;
  --faint:     #8C7E69;

  /* Hairlines */
  --hairline:      rgba(41, 36, 30, 0.16);
  --hairline-soft: rgba(41, 36, 30, 0.08);

  /* Fox / primary accent */
  --fox:       #BE5A2E;
  --fox-deep:  #A2491F;
  --fox-soft:  #E9A57D;
  --ember:     #E07B2E;
  --graphite:  #2E2A23;

  /* Sage / truce */
  --sage:      #5E7350;
  --sage-deep: #4C6041;
  --clay:      #8B6F47;

  /* Night */
  --night-ink:  #F2ECE0;
  --night-mut:  #9AA0B4;
  --night-top:    #232C40;
  --night-bottom: #2C2F45;
  --night-sky-1: #1B2336;
  --night-sky-2: #232A3D;
  --night-sky-3: #2B2A38;
  --night-sky-4: #2E2A30;

  /* Scene tones */
  --table-tone: #E6DAC6;
  --board-hole: #3A322B;
  --duel-backdrop: #D7C4A9;

  /* Semantic */
  --text-on-fox: var(--paper-soft);

  /* Type */
  --font-sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-voice: "Newsreader", Georgia, "Times New Roman", serif;

  /* Radii & shadows */
  --radius-pill:    22px;
  --radius-card:    24px;
  --radius-card-lg: 28px;
  --radius-panel:   18px;
  --shadow-card:   0 8px 26px rgba(120, 80, 40, 0.10);
  --shadow-scene:  0 8px 11px rgba(120, 80, 40, 0.10);
  --shadow-float:  0 18px 50px rgba(120, 80, 40, 0.22);
  --shadow-button: 0 6px 18px rgba(70, 45, 25, 0.28);
  --shadow-night:  0 10px 16px rgba(0, 0, 0, 0.35);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ---- Shared primitives ---- */
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.voice {
  font-family: var(--font-voice);
  font-style: italic;
  color: var(--ink-soft);
}

.section-head { text-align: center; max-width: 560px; margin: 0 auto; }

.section-head h2, .h2 {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Pills (site CTAs) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
}
.pill--fox   { background: var(--fox); color: var(--text-on-fox); box-shadow: var(--shadow-button); }
.pill--graphite { background: var(--graphite); color: var(--night-ink); box-shadow: var(--shadow-button); font-size: 16px; }
.pill--fox:hover, .pill--graphite:hover { opacity: 0.88; }
.pill--outline {
  background: transparent;
  border: 1.5px solid var(--hairline);
  color: var(--ink);
  font-size: 16px;
  padding: 0 26px;
}
.pill--outline:hover { border-color: var(--fox); color: var(--fox); }

.chip {
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(251, 247, 236, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fox); flex-shrink: 0; }

.rule-note { display: flex; align-items: center; gap: 12px; }
.rule-note .line { width: 44px; height: 1.5px; background: var(--hairline); }
.rule-note .eyebrow { letter-spacing: 0.16em; font-size: 10px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 94vh;
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.site-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 44px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  object-fit: cover;
  background: var(--paper-soft);
}
.brand .wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--fox);
  white-space: nowrap;
}

.site-nav .spacer, .flex-spacer { flex: 1; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a:not(.nav-cta) {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav-links > a:not(.nav-cta):hover { color: var(--fox); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--graphite);
  color: var(--night-ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(70, 45, 25, 0.18);
}
.nav-cta:hover { opacity: 0.88; }

.hero-card-wrap {
  position: relative;
  z-index: 2;
  margin: 0 44px 44px;
  max-width: 620px;
}

.hero-card {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: var(--shadow-float);
  padding: 38px 40px 36px;
}

.hero-card .kicker { display: flex; align-items: center; gap: 8px; }
.hero-card .kicker .eyebrow { color: var(--fox); }

.hero-card h1 {
  margin: 14px 0 0;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-card .voice {
  margin: 16px 0 0;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how {
  padding: 110px 44px 90px;
  max-width: 1140px;
  margin: 0 auto;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.feature-card {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
}
.feature-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-card .num {
  font-weight: 800;
  font-size: 15px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.feature-card h3 {
  margin: 18px 0 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature-card p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ==========================================================================
   The pact
   ========================================================================== */
.pact-band {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.pact {
  max-width: 1140px;
  margin: 0 auto;
  padding: 90px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.pact .voice {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.5;
  max-width: 420px;
}

.pact-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  max-width: 440px;
}

.pact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 16px 18px;
}
.pact-row .label { flex: 1; font-weight: 600; font-size: 15px; color: var(--ink); }
.pact-row .tag {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pact-row .tag--sage { color: var(--sage-deep); }

.pact .rule-note { margin-top: 22px; }

.pact-scene {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px rgba(120, 80, 40, 0.18);
  display: block;
}

/* ==========================================================================
   App preview
   ========================================================================== */
.preview {
  padding: 110px 44px 90px;
  max-width: 1180px;
  margin: 0 auto;
}

.preview-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.preview-item figcaption { text-align: center; }
.preview-item .cap-title { font-weight: 800; font-size: 16px; color: var(--ink); }
.preview-item .cap-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* ==========================================================================
   The duel band
   ========================================================================== */
.duel-band {
  background: linear-gradient(to bottom, var(--night-sky-1) 0%, var(--night-sky-2) 44%, var(--night-sky-3) 78%, var(--night-sky-4) 100%);
  position: relative;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 240, 225, 0.85);
}

.duel-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 70px;
  align-items: center;
}

.duel-copy .eyebrow { color: var(--fox-soft); }
.duel-copy h2 { color: var(--night-ink); }
.duel-copy .voice {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(242, 236, 224, 0.82);
  max-width: 420px;
}
.duel-copy .body {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--night-mut);
  max-width: 420px;
}
.duel-copy .rule-note { margin-top: 24px; }
.duel-copy .rule-note .line { background: rgba(242, 236, 224, 0.2); }
.duel-copy .rule-note .eyebrow { color: var(--night-mut); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing {
  padding: 110px 44px 90px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing .section-head p {
  margin: 14px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 50px;
  align-items: stretch;
}

.plan {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  position: relative;
  border: 2px solid var(--fox);
  box-shadow: 0 14px 40px rgba(120, 80, 40, 0.16);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--fox);
  color: var(--text-on-fox);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan-name {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}
.plan-price .amount {
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-price .per { font-weight: 600; font-size: 15px; color: var(--muted); }
.plan-sub { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-sub--sage { color: var(--sage-deep); }
.plan p.blurb {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.plan .pill { margin-top: 24px; font-size: 16px; }
.plan .chip--paper { background: var(--paper-deep); color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: 40px 44px 110px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 44px;
}

.faq-item {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q { flex: 1; font-weight: 700; font-size: 16px; color: var(--ink); }
.faq-item .mark {
  font-weight: 800;
  font-size: 18px;
  color: var(--fox);
  width: 18px;
  text-align: center;
}
.faq-item .mark::before { content: "+"; }
.faq-item[open] .mark::before { content: "–"; }
.faq-item .a {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing { position: relative; overflow: hidden; }
.closing-bg {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: center bottom;
}
.closing-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(236, 228, 209, 1) 0%, rgba(236, 228, 209, 0) 30%);
}
.closing-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}
.closing-card {
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(120, 80, 40, 0.25);
  padding: 34px 44px;
  text-align: center;
  max-width: 480px;
}
.closing-card h2 {
  margin: 0;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.closing-card .voice { margin: 12px 0 0; font-size: 16px; }
.closing-card .pill { margin-top: 22px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-inner .brand img { width: 34px; height: 34px; border-radius: 10px; }
.footer-inner .brand .wordmark { font-size: 15px; }
.footer-inner .tagline { font-size: 13.5px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-links a:hover { color: var(--fox); }
.footer-links .copyright { font-size: 13px; color: var(--faint); }

/* ==========================================================================
   Phone frame & app screens (ported from the Sage Fox app UI kit)
   ========================================================================== */
.phone-scale {
  --s: 1;
  width: calc(390px * var(--s));
  height: calc(800px * var(--s));
  flex-shrink: 0;
}
.phone-scale--72 { --s: 0.72; }
.phone-scale--82 { --s: 0.82; }

.phone {
  width: 390px;
  height: 800px;
  position: relative;
  border-radius: 54px;
  background: #000;
  padding: 11px;
  box-shadow: 0 30px 80px rgba(70, 45, 25, 0.30), 0 6px 20px rgba(70, 45, 25, 0.20);
  transform: scale(var(--s));
  transform-origin: top left;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.phone-statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 30px 0;
  pointer-events: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.phone-statusbar .icons { display: flex; gap: 7px; align-items: center; }
.phone--dark .phone-statusbar { color: var(--night-ink); }

.phone-notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 40;
}

.screen { position: absolute; inset: 0; }

/* Kit primitives */
.k-card {
  background: var(--paper-soft);
  border-radius: 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 5px 9px rgba(120, 80, 40, 0.10);
}
.k-eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.k-avatar {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(41, 36, 30, 0.9);
}
.k-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.k-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.005em;
  border: 0;
  border-radius: 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.12s ease-out;
}
.k-btn:active { opacity: 0.85; }
.k-btn--fox  { background: var(--fox);  color: var(--text-on-fox); box-shadow: 0 6px 10px rgba(70, 45, 25, 0.18); }
.k-btn--sage { background: var(--sage); color: var(--text-on-fox); box-shadow: 0 6px 10px rgba(70, 45, 25, 0.18); }
.k-btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.4px solid rgba(41, 36, 30, 0.55);
  height: 44px;
  box-shadow: none;
}

/* ---- Dashboard screen ---- */
.screen--dashboard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 54px 24px 12px;
}
.dash-header .wordmark {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--fox);
}
.dash-body { flex: 1; overflow-y: auto; padding: 4px 24px 90px; }
.dash-scene {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 8px 11px rgba(120, 80, 40, 0.10);
  border: 1px solid var(--hairline);
  display: block;
}

.k-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-radius: 18px;
  margin-top: 16px;
}
.k-banner .k-eyebrow { font-size: 10px; }
.k-banner .value {
  font-weight: 700;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.k-banner--fox  { background: rgba(190, 90, 46, 0.12);  border: 1px solid rgba(190, 90, 46, 0.45); }
.k-banner--fox .k-eyebrow { color: var(--fox); }
.k-banner--sage { background: rgba(94, 115, 80, 0.12);  border: 1px solid rgba(94, 115, 80, 0.45); }
.k-banner--sage .k-eyebrow { color: var(--sage); }

.dash-record {
  margin-top: 14px;
  padding: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dash-record .k-eyebrow { font-size: 9px; }
.dash-record .score {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dash-record .k-eyebrow.faint { color: var(--faint); }

.dash-report { margin-top: 14px; overflow: hidden; padding: 0; }
.dash-report-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--hairline-soft);
}
.dash-report-head .k-eyebrow { font-size: 9px; }
.dash-report-head .voice { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--hairline-soft);
}
.app-row:first-of-type { border-top: none; }
.app-row .app-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }
.app-row .name { font-weight: 600; font-size: 15px; color: var(--ink); flex: 1; }
.app-row .time {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.dash-demo-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
  background: transparent;
  border: 1.5px dashed var(--clay);
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 78px;
  background: var(--paper-soft);
  border-top: 1px solid var(--hairline);
  display: flex;
  padding-bottom: 14px;
}
.dash-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--faint);
}
.dash-tab.active { color: var(--fox); }
.dash-tab span {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Challenge screen ---- */
.screen--challenge {
  background: var(--duel-backdrop);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 62px 26px 26px;
}
.screen--challenge .kicker { display: flex; align-items: center; gap: 8px; }
.screen--challenge .kicker .k-eyebrow { color: var(--fox); letter-spacing: 0.22em; }
.challenge-pose { height: 280px; width: auto; object-fit: contain; margin-top: 8px; }
.challenge-copy { text-align: center; margin-top: 2px; }
.challenge-copy .title {
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.challenge-copy .voice {
  margin: 12px auto 0;
  max-width: 280px;
  font-size: 16px;
  line-height: 1.45;
}
.challenge-terms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.challenge-terms .line { width: 44px; height: 1.5px; background: var(--hairline); }
.challenge-terms .row { display: flex; align-items: center; gap: 12px; }
.challenge-terms .k-eyebrow { font-size: 10px; letter-spacing: 0.14em; }
.challenge-terms .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.challenge-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Duel screen (interactive) ---- */
.screen--duel {
  background: var(--table-tone);
  display: flex;
  flex-direction: column;
  padding: 56px 18px 22px;
}
.duel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.duel-head .k-eyebrow { color: var(--ink-soft); font-size: 10px; }
.duel-head .timer {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.duel-seat {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
}
.duel-seat .who { flex: 1; }
.duel-seat .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.duel-seat .status { font-family: var(--font-voice); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.thinking { display: none; gap: 3px; }
.thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.thinking span:nth-child(1) { opacity: 0.3; }
.thinking span:nth-child(2) { opacity: 0.5; }
.thinking span:nth-child(3) { opacity: 0.7; }
.screen--duel.ai-turn .thinking { display: flex; }

.c4-board {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--graphite);
  border-radius: 22px;
  align-self: center;
}
.c4-col {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.c4-col:disabled { cursor: default; }
.c4-cell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--board-hole);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.35);
  border: none;
}
.c4-cell--p { background: var(--fox); box-shadow: none; }
.c4-cell--a {
  background: var(--paper-soft);
  box-shadow: none;
  border: 1px solid rgba(41, 36, 30, 0.25);
}
.c4-cell--win { border: 3px solid var(--ember); }

.duel-you {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(251, 247, 236, 0.5);
  border: 1px solid var(--hairline);
}
.screen--duel.your-turn .duel-you {
  background: var(--paper-soft);
  border: 1.5px solid var(--fox);
}
.duel-you .swatch {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--fox);
  border: 1px solid var(--fox-deep);
}
.duel-you .name { font-weight: 700; font-size: 16px; color: var(--ink); }
.duel-you .k-eyebrow { font-size: 10px; letter-spacing: 0.14em; }
.duel-you .k-eyebrow.turn-you { color: var(--fox); display: none; }
.screen--duel.your-turn .duel-you .k-eyebrow.turn-you { display: inline-block; }
.screen--duel.your-turn .duel-you .k-eyebrow.turn-wait { display: none; }

.duel-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}
.duel-foot .k-eyebrow { font-size: 9px; letter-spacing: 0.14em; }
.duel-foot button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* ---- Rest screen ---- */
.screen--rest {
  background: linear-gradient(to bottom, var(--night-sky-1) 0%, var(--night-sky-2) 44%, var(--night-sky-3) 78%, var(--night-sky-4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 26px 30px;
  overflow: hidden;
}
.screen--rest .star { background: rgba(245, 240, 225, 0.85); }
.rest-moon {
  position: absolute;
  top: 132px;
  right: 52px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #FBF6E8, #E9E2CC 60%, #C9C3AE);
  box-shadow: 0 0 28px rgba(245, 238, 214, 0.18);
}
.screen--rest > .k-eyebrow { color: var(--fox-soft); letter-spacing: 0.22em; position: relative; }
.rest-panel {
  margin-top: 26px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(to bottom, var(--night-top), var(--night-bottom));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-night);
  position: relative;
}
.rest-panel img { width: 200px; height: 150px; object-fit: contain; display: block; }
.rest-copy { text-align: center; margin-top: 26px; position: relative; }
.rest-copy .title {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.025em;
  color: var(--night-ink);
}
.rest-copy .voice {
  margin: 14px auto 0;
  max-width: 290px;
  font-size: 16.5px;
  line-height: 1.45;
  color: rgba(242, 236, 224, 0.82);
}
.rest-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.rest-reopen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}
.rest-reopen .k-eyebrow { color: var(--fox-soft); letter-spacing: 0.14em; }
.rest-reopen .time {
  font-weight: 700;
  font-size: 19px;
  color: var(--night-ink);
  font-variant-numeric: tabular-nums;
}
.rest-rules { text-align: center; }
.rest-rules .k-eyebrow { color: rgba(154, 160, 180, 0.9); }

/* ---- Win screen ---- */
.screen--win {
  background: radial-gradient(circle at 50% 34%, #F5EEDC 0%, #ECE4D1 56%, #E2D8BF 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 28px 30px;
}
.screen--win > .k-eyebrow { color: var(--sage-deep); letter-spacing: 0.22em; }
.win-avatar { margin-top: 26px; padding: 16px; }
.win-avatar .k-avatar { width: 150px; height: 150px; border-radius: 36px; }
.win-copy { text-align: center; margin-top: 22px; }
.win-copy .title {
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.win-copy .voice {
  margin: 12px auto 0;
  max-width: 280px;
  font-size: 16px;
  line-height: 1.45;
}
.win-grant {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.win-grant .minutes {
  font-weight: 800;
  font-size: 54px;
  color: var(--sage-deep);
  letter-spacing: -0.03em;
}
.win-grant .k-eyebrow { color: var(--sage); font-size: 12px; }

/* Flow phone: screen switching */
.flow-phone .screen[hidden] { display: none; }

/* ==========================================================================
   Legal & support subpages (privacy.html, support.html)
   ========================================================================== */
.doc-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 44px;
  border-bottom: 1px solid var(--hairline-soft);
}
.doc-back {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.doc-back:hover { color: var(--fox); }

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 44px 110px;
}
.doc h1 {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.doc-lede { margin: 16px 0 0; font-size: 17px; line-height: 1.5; }
.doc-updated { margin: 26px 0 0; font-size: 14px; color: var(--faint); }

.doc-sections {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 44px;
}
.doc-sections h2 {
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.doc-sections p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.doc-sections a { color: var(--fox); font-weight: 600; text-decoration: none; }
.doc-sections a:hover { text-decoration: underline; }

/* Support-specific: contact card + common fixes */
.support-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 26px;
  background: var(--paper-soft);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: border-color 0.12s ease-out;
}
.support-card:hover { border-color: var(--fox); }
.support-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--fox);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-card .addr { font-weight: 800; font-size: 17px; color: var(--ink); }
.support-card .note { font-size: 14px; color: var(--muted); margin-top: 3px; }

.support-h2 {
  margin: 54px 0 0;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.support-faq {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 22px;
}
.support-faq h3 {
  margin: 0;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
}
.support-faq p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* 404 page */
.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 44px 140px;
  text-align: center;
}
.notfound h1 {
  margin: 12px 0 0;
  font-weight: 800;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.notfound .voice { display: block; margin: 16px 0 0; font-size: 18px; line-height: 1.5; }
.notfound .pill { margin-top: 30px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .duel-inner { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .duel-inner > .duel-copy { justify-self: start; }
}

@media (max-width: 900px) {
  .nav-links > a:not(.nav-cta) { display: none; }
  .site-nav { padding: 18px 24px; }
  .hero-card-wrap { margin: 0 24px 24px; }
  .hero-card { padding: 30px 28px 28px; }
  .how, .preview, .pricing { padding-left: 24px; padding-right: 24px; }
  .pact { padding: 70px 24px; grid-template-columns: 1fr; gap: 40px; }
  .duel-inner { padding: 80px 24px; }
  .faq { padding: 30px 24px 90px; }
  .cards-3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .footer-inner { padding: 34px 24px; }
  .section-head h2, .h2 { font-size: 32px; }
  .doc-nav { padding: 18px 24px; }
  .doc { padding: 60px 24px 90px; }
  .doc h1 { font-size: 34px; }
  .notfound { padding: 90px 24px 110px; }
  .notfound h1 { font-size: 34px; }
}

@media (max-width: 480px) {
  .site-nav { gap: 12px; padding: 16px 18px; }
  .nav-cta { padding: 0 16px; font-size: 13px; }
  .how, .preview, .pricing { padding: 70px 18px 60px; }
  .hero-card-wrap { margin: 0 14px 18px; }
  .hero-card { padding: 26px 22px 24px; }
  .pill { font-size: 15px; padding: 0 20px; height: 48px; }
  .closing-card { padding: 26px 24px; }
  .closing-card h2 { font-size: 26px; }
  .doc-nav { padding: 16px 18px; }
  .doc { padding: 50px 18px 70px; }
  .notfound { padding: 70px 18px 90px; }
}
