/* LlamaCasty — site styles. Plain CSS, no build step. */

@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand + palette */
  --red: #e94560;          /* brand accent: large type, shapes, decoration */
  --red-ink: #c81d47;      /* red for small text + button fills (AA on white/cream) */
  --red-deep: #a8173b;
  --red-soft: #ffe4ea;
  --yellow: #ffd23f;
  --yellow-soft: #fff3c4;
  --teal: #2ec4b6;
  --teal-ink: #0f766e;
  --teal-soft: #dcf6f2;
  --sky: #5ab8ff;
  --sky-soft: #e2f2ff;
  --purple: #8b5cf6;
  --purple-ink: #6d28d9;
  --purple-soft: #efe9ff;
  --green: #3ddc84;
  --green-ink: #15803d;
  --green-soft: #ddf8e8;

  --ink: #1f1b3a;          /* body text */
  --ink-2: #4a4566;        /* secondary text */
  --cream: #fff8ef;
  --white: #ffffff;
  --line: #ece4d8;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(31, 27, 58, 0.35);
  --shadow-sm: 0 6px 18px -8px rgba(31, 27, 58, 0.28);
  --wrap: 1180px;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--purple-ink);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 850; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--red-deep); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.8em 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn svg { width: 1.35em; height: 1.35em; fill: currentColor; }
.btn-primary {
  background: var(--red-ink); color: var(--white);
  box-shadow: 0 6px 0 var(--red-deep), 0 14px 26px -10px rgba(200, 29, 71, 0.65);
}
.btn-primary:hover { background: var(--red-deep); color: var(--white); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-deep); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--yellow-soft); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.95rem; box-shadow: 0 4px 0 var(--red-deep); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}

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

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31, 27, 58, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 4px solid var(--red-ink);
}
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; min-height: 70px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: #fff; text-decoration: none; font-weight: 850; font-size: 1.35rem; letter-spacing: -0.02em;
}
.brand img { width: 42px; height: 42px; }
.brand:hover { color: #fff; }
.site-header .wordmark { color: #e0e0e0; font-weight: 500; }
.site-header .wordmark b { color: inherit; font-weight: 850; }
.site-header .wordmark .ty { color: var(--red); }
.brand:hover .wordmark { opacity: 0.82; }

.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  color: #edeaf4; font-weight: 650; text-decoration: none; font-size: 0.98rem;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: var(--yellow); }
.nav-links .nav-cta { margin-left: 6px; }
.nav-links .nav-cta a.btn { color: var(--white); padding: 0.5em 1.1em; }
.nav-links .nav-cta a.btn:hover { background: var(--red-deep); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.08); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

@media (max-width: 900px) {
  /* Without JS, links simply wrap onto a second row. With JS, they fold behind a toggle. */
  .nav-links { width: 100%; padding-bottom: 10px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links { display: none; }
  .js .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px 0 16px;
  }
  .js .nav.is-open .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .js .nav.is-open .nav-cta { margin: 8px 0 0; }
  .js .nav.is-open .nav-cta a.btn { width: 100%; }
}

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

.hero { position: relative; padding: 56px 0 90px; overflow: hidden; isolation: isolate; }
.blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); opacity: 0.85; }
.blob-1 { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle at 30% 30%, #ffe27a, var(--yellow) 60%, #ffc21a); opacity: 0.55; }
.blob-2 { width: 380px; height: 380px; left: -160px; bottom: -120px; background: radial-gradient(circle at 40% 40%, #a6f0e7, var(--teal)); opacity: 0.35; }
.blob-3 { width: 220px; height: 220px; right: 38%; bottom: -60px; background: radial-gradient(circle, #d7c8ff, var(--purple)); opacity: 0.28; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 0.95fr 1.15fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow-sm);
  font-size: 0.92rem; font-weight: 700; color: var(--ink);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

.hl { color: var(--red); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0.04em; height: 0.28em; z-index: -1;
  background: var(--yellow); border-radius: 0.2em; transform: rotate(-1.5deg);
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 28px 0 18px; }
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 6px 18px; border-radius: 16px;
  background: var(--white); border: 2px dashed var(--teal-ink); color: var(--ink);
  line-height: 1.25;
}
.store-badge small { font-size: 0.8rem; font-weight: 700; color: var(--teal-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.store-badge strong { font-size: 1rem; }
.cta-note { font-size: 0.95rem; color: var(--ink-2); }
.cta-note a { font-weight: 650; }

/* Screenshot frame + stickers */
.shot { margin: 0; }
.shot-stage { position: relative; padding: 18px 10px 30px; }
.shot-frame {
  position: relative; border-radius: var(--radius); padding: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--purple) 55%, var(--sky) 100%);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.shot-frame::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border-radius: var(--radius); background: var(--yellow);
}
.shot-frame picture, .shot-frame img { border-radius: 14px; width: 100%; }
.shot-caption { margin-top: 26px; text-align: center; font-size: 0.92rem; color: var(--ink-2); }

.sticker {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 800; line-height: 1.1;
  box-shadow: var(--shadow-sm); border: 2px solid var(--ink);
  background: var(--white); color: var(--ink);
}
.sticker-live { top: 0; left: 0; background: var(--red-ink); color: var(--white); transform: rotate(-6deg); letter-spacing: 0.06em; }
.sticker-live .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--white); animation: pulse 1.6s ease-in-out infinite; }
.sticker-chat { top: 36%; right: -6px; background: var(--yellow); transform: rotate(5deg); flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 16px; }
.sticker-chat small { font-size: 0.72rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.sticker-meter { bottom: 4px; left: 6%; background: var(--teal-soft); transform: rotate(-3deg); }
.sticker-res { bottom: 22px; right: 4%; background: var(--purple-soft); transform: rotate(3deg); }

.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.meter i { display: block; width: 5px; border-radius: 2px; background: var(--green-ink); height: 40%; animation: meter 0.9s ease-in-out infinite alternate; }
.meter i:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.meter i:nth-child(3) { animation-delay: 0.3s; height: 55%; background: var(--teal-ink); }
.meter i:nth-child(4) { animation-delay: 0.45s; height: 85%; background: var(--teal-ink); }
.meter i:nth-child(5) { animation-delay: 0.6s; height: 35%; background: #c58a00; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes meter { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }
.meter i { transform-origin: bottom; }

@media (max-width: 560px) {
  .sticker { font-size: 0.8rem; padding: 6px 10px; }
  .sticker-chat { top: auto; bottom: 36%; right: -4px; }
  .sticker-res { display: none; }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-white { background: var(--white); }
.bg-sky { background: linear-gradient(180deg, var(--sky-soft), #f3f9ff); }
.bg-purple { background: linear-gradient(180deg, var(--purple-soft), #f7f3ff); }
.bg-teal { background: linear-gradient(180deg, var(--teal-soft), #f1fbf9); }
.bg-yellow { background: linear-gradient(180deg, var(--yellow-soft), #fffaf0); }

.wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px;
  background: var(--cream);
  -webkit-mask: radial-gradient(40px 24px at 50% 0, #000 98%, transparent) 0 0 / 80px 40px repeat-x;
  mask: radial-gradient(40px 24px at 50% 0, #000 98%, transparent) 0 0 / 80px 40px repeat-x;
}

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--ink-2); }
.kicker {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--white); color: var(--red-ink); box-shadow: var(--shadow-sm);
}

/* Three steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm); border: 2px solid var(--ink);
}
.step-num {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px;
  border-radius: 18px; border: 2px solid var(--ink);
  font-size: 1.6rem; font-weight: 850; color: var(--ink);
}
.step:nth-child(1) .step-num { background: var(--yellow); transform: rotate(-4deg); }
.step:nth-child(2) .step-num { background: var(--teal); transform: rotate(3deg); }
.step:nth-child(3) .step-num { background: var(--red-ink); color: var(--white); transform: rotate(-2deg); }
.step p { color: var(--ink-2); margin: 0; }
@media (min-width: 820px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 56px; right: -20px; width: 18px; height: 18px; z-index: 1;
    border-top: 4px solid var(--ink); border-right: 4px solid var(--ink); transform: rotate(45deg);
  }
}
.steps-note { margin: 34px auto 0; max-width: 640px; text-align: center; color: var(--ink-2); }

/* Split blocks */
.split { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-flip > :first-child { order: 2; } }
.split h2 { text-align: left; }
.split > div > p { color: var(--ink-2); font-size: 1.1rem; }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 40px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 2px solid var(--green-ink);
}
.ticks strong { color: var(--ink); }

/* Ducking diagram */
.duck {
  padding: 26px; border-radius: var(--radius); background: var(--white);
  border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.duck-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; font-weight: 800; }
.duck-title small { font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
.lane { margin-bottom: 16px; }
.lane-label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.lane-track { display: flex; align-items: flex-end; gap: 3px; height: 64px; padding: 6px; border-radius: 12px; background: var(--cream); }
.lane-track i { flex: 1; border-radius: 3px 3px 1px 1px; }
.lane-voice i { background: var(--red); }
.lane-game i { background: var(--sky); }
.lane-music i { background: var(--purple); }
.duck-key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; background: var(--yellow-soft); color: var(--ink); border: 1.5px solid var(--ink);
}
.chip-teal { background: var(--teal-soft); }
.chip-purple { background: var(--purple-soft); }
.chip-red { background: var(--red-soft); }

/* Scenes */
.scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.scene {
  position: relative; overflow: hidden; min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.scene:hover { transform: translateY(-4px) rotate(-0.6deg); }
@media (prefers-reduced-motion: reduce) { .scene, .scene:hover { transition: none; transform: none; } }
.scene h3 { font-size: 1.5rem; margin-bottom: 6px; }
.scene p { margin: 0; font-size: 0.98rem; }
.scene .tag {
  position: absolute; top: 16px; left: 16px; padding: 3px 10px; border-radius: 999px;
  background: var(--white); border: 1.5px solid var(--ink); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.05em;
}
.scene::before, .scene::after { content: ""; position: absolute; border-radius: 50%; }
.scene--starting { background: var(--yellow); }
.scene--starting::before { width: 140px; height: 140px; right: -40px; top: -40px; background: #ffe68a; }
.scene--live { background: var(--red-ink); color: var(--white); }
.scene--live p { color: var(--white); }
.scene--live::before { width: 120px; height: 120px; right: -30px; top: -20px; background: var(--red); }
.scene--live::after { width: 14px; height: 14px; right: 22px; top: 22px; background: var(--white); box-shadow: 0 0 0 6px rgba(255,255,255,0.35); }
.scene--live h3, .scene--live p { text-shadow: 0 1px 0 rgba(120, 10, 35, 0.35); }
.scene--brb { background: var(--teal); }
.scene--brb::before { width: 160px; height: 90px; right: -30px; top: 30px; border-radius: 40px; background: #7fe0d6; }
.scene--chat { background: var(--sky); }
.scene--chat::before { width: 120px; height: 120px; right: -20px; top: -30px; background: #9ad3ff; }
.scene--ending { background: var(--purple-ink); color: var(--white); }
.scene--ending::before { width: 150px; height: 150px; right: -50px; top: -50px; background: var(--purple); }
.scene > * { position: relative; z-index: 1; }
.scenes-note { margin: 30px auto 0; text-align: center; color: var(--ink-2); max-width: 680px; }

/* Card grid */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 16px; border: 2px solid var(--ink);
}
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ci-red { background: var(--red-soft); }
.ci-yellow { background: var(--yellow-soft); }
.ci-teal { background: var(--teal-soft); }
.ci-sky { background: var(--sky-soft); }
.ci-purple { background: var(--purple-soft); }
.ci-green { background: var(--green-soft); }
.card--shot img {
  display: block; width: 100%; height: auto; margin-top: 16px;
  border-radius: 10px; border: 1.5px solid var(--ink);
}

/* YPP tracker */
.split > .ypp-shot { margin: 0; justify-self: center; }
.ypp-shot img {
  display: block; width: 210px; max-width: 100%; height: auto; margin: 0 auto;
  border-radius: 14px; border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
}
.ypp-shot figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--ink-2); }

/* Screenshot lightbox */
.zoomable { display: block; cursor: zoom-in; text-decoration: none; }
.zoomable:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(31, 27, 58, 0.92);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto;
  border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; min-width: 46px; min-height: 46px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: var(--red-ink); border-color: var(--red-ink); }
.lightbox-close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--yellow); }

/* Calm while live */
.calm-panel {
  padding: 28px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 12px;
  border: 1.5px solid var(--ink); font-size: 0.98rem;
}
.toast:last-child { margin-bottom: 0; }
.toast b { display: block; }
.toast span { color: var(--ink-2); font-size: 0.92rem; }
.toast-dot { width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--ink); flex-shrink: 0; }
.toast-info { background: var(--teal-soft); } .toast-info .toast-dot { background: var(--teal); }
.toast-test { background: var(--purple-soft); } .toast-test .toast-dot { background: var(--purple); }
.toast-lock { background: var(--yellow-soft); } .toast-lock .toast-dot { background: var(--yellow); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.stats div { padding: 10px 8px; border-radius: 12px; background: var(--cream); text-align: center; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.stats b { display: block; font-size: 1rem; color: var(--ink); }
@media (max-width: 420px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.panel-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-2); text-align: center; }

/* ---------- Pricing ---------- */

.plans { display: grid; gap: 20px; grid-template-columns: 1fr; margin-bottom: 44px; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--white);
  border: 2px solid var(--ink); box-shadow: var(--shadow-sm); text-align: center;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price { font-size: 2.8rem; font-weight: 850; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 4px; }
.price small { font-size: 1rem; font-weight: 650; color: var(--ink-2); letter-spacing: 0; }
.plan p { color: var(--ink-2); margin: 12px 0 0; font-size: 0.98rem; }
.plan-free { background: linear-gradient(180deg, var(--yellow-soft), var(--white) 70%); }
.plan-free .price { color: var(--red-ink); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  padding: 4px 14px; border-radius: 999px; background: var(--red-ink); color: var(--white);
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.05em; white-space: nowrap; border: 2px solid var(--ink);
}

.chart-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--ink); background: var(--white); box-shadow: var(--shadow-sm); }
.chart { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; }
.chart caption { text-align: left; padding: 20px 22px 6px; font-weight: 800; font-size: 1.15rem; }
.chart th, .chart td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.chart thead th { background: var(--cream); font-size: 0.95rem; }
.chart thead th span { display: block; font-weight: 600; color: var(--ink-2); font-size: 0.85rem; }
.chart tbody th { text-align: left; font-weight: 600; }
.chart tbody tr:nth-child(even) { background: #fffcf7; }
.chart tbody tr:last-child th, .chart tbody tr:last-child td { border-bottom: 0; background: var(--red-soft); }
.yes {
  display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 2px solid var(--green-ink);
}
.flash-shows { font-weight: 750; color: var(--red-ink); font-size: 0.92rem; }
.flash-gone { font-weight: 750; color: var(--green-ink); font-size: 0.92rem; }
.pricing-notes { max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--ink-2); }
.pricing-notes p { margin-bottom: 0.6em; }

/* ---------- Gramps ---------- */

.gramps { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 820px) { .gramps { grid-template-columns: 340px 1fr; gap: 60px; } }
.gramps-pic { position: relative; max-width: 340px; margin: 0 auto; }
.gramps-pic::before {
  content: ""; position: absolute; inset: 12% 2% 2% 2%; z-index: 0; border-radius: 46% 54% 48% 52%;
  background: linear-gradient(135deg, var(--yellow), var(--red) 120%);
}
.gramps-pic img { position: relative; z-index: 1; }
.gramps h2 { text-align: left; }
.gramps p { color: var(--ink-2); font-size: 1.1rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; padding: 0; list-style: none; }
.links-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); font-weight: 700; text-decoration: none;
}
.pill-link svg { width: 20px; height: 20px; fill: currentColor; }
.pill-link:hover { background: var(--yellow-soft); color: var(--ink); }

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

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius-sm); border: 2px solid var(--ink); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 750; font-size: 1.08rem; border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); font-weight: 800; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; background: var(--teal); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }

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

.cta-band { padding: 40px 0 96px; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 28px; border-radius: 32px; text-align: center;
  background: linear-gradient(120deg, #ffd9e0 0%, var(--yellow-soft) 45%, var(--teal-soft) 100%);
  border: 2px solid var(--ink); box-shadow: var(--shadow);
}
.cta-card::before, .cta-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.cta-card::before { width: 260px; height: 260px; left: -80px; top: -90px; background: var(--yellow); opacity: 0.6; }
.cta-card::after { width: 220px; height: 220px; right: -60px; bottom: -90px; background: var(--sky); opacity: 0.45; }
.cta-card img { margin: 0 auto 16px; width: 64px; height: auto; }
.cta-card p { max-width: 560px; margin: 0 auto 26px; font-size: 1.15rem; color: var(--ink-2); }
.cta-card .cta-row { justify-content: center; margin: 0 0 16px; }
.cta-card .cta-note { margin: 0 auto; }

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

.site-footer {
  background: var(--ink); border-top: 4px solid var(--red-ink);
  padding: 48px 0 36px; font-size: 0.98rem; color: #d9d6e4;
}
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.site-footer .wordmark { color: #e0e0e0; }
.site-footer .wordmark .ty { color: var(--red); }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: #edeaf4; font-weight: 600; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand p { color: #b5b0c8; max-width: 32em; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #9c97b3; font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

/* ---------- Privacy page ---------- */

.page-hero { padding: 64px 0 30px; position: relative; overflow: hidden; isolation: isolate; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose .lead { color: var(--ink-2); }
.prose-card { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); margin-bottom: 80px; }
.prose-card h2:first-child { margin-top: 0; }

/* ---------- Scroll reveal (JS only) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticker-live .pulse, .meter i { animation: none; }
}


/* ════════════════════════════════════════════════════════════════════════════
   APP THEME (2026-10-30): the site now wears the same design standard as the
   application — DESIGN.md. Same tokens, same rules:
     · deep-navy surfaces, one interactive accent (blue), red means LIVE only
     · Inter for text, JetBrains Mono for labels and numbers
     · 16 / 8 / 4 corner radii
   Every value below is a token from the app; change it there first, then here.
   Still zero external requests: both faces ship in assets/fonts.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --surface-canvas: #0b1326;
  --surface-lowest: #060e20;
  --surface-low: #131b2e;
  --surface: #171f33;
  --surface-high: #222a3d;
  --surface-highest: #2d3449;
  --outline: #334155;
  --text: #dae2fd;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --on-accent: #ffffff;
  --live: #ff5451;
  --amber: #ffb95f;
  --attention: #ff8c3a;

  /* legacy names remapped, so every existing rule inherits the new look */
  --red: var(--live);
  --red-ink: var(--live);
  --red-deep: #b91a24;
  --red-soft: rgba(255, 84, 81, 0.14);
  --yellow: var(--amber);
  --yellow-soft: rgba(255, 185, 95, 0.14);
  --teal: var(--accent);
  --teal-ink: var(--accent);
  --teal-soft: var(--surface);
  --sky: var(--accent);
  --sky-soft: var(--surface);
  --purple: var(--accent);
  --purple-ink: var(--accent);
  --purple-soft: var(--surface);
  --green: #22c55e;
  --green-ink: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --ink: var(--text);
  --ink-2: var(--text-muted);
  --cream: var(--surface-canvas);
  --white: var(--surface-low);
  --line: var(--outline);
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, 0.65);
  --focus: 0 0 0 3px var(--surface-canvas), 0 0 0 6px var(--accent);
}

body { background: var(--surface-canvas); color: var(--text); }

/* Sections: the app's surface scale replaces the cream/teal/purple stripes. */
.bg-white { background: var(--surface); }
.bg-teal  { background: linear-gradient(180deg, var(--surface), var(--surface-low)); }
.bg-sky   { background: var(--surface-low); }
.bg-purple{ background: var(--surface-low); }
.bg-yellow{ background: var(--surface); }

/* Labels and numbers wear the mono face, as in the app. */
.kicker, .chip, .eyebrow, .nav a, .stat b, .free-facts .chip {
  font-family: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.02em;
}

/* Cards and panels: one step up from their section, 1px outline, no glow. */
.card, .panel, .lane, .faq details, .quote, .sticker {
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

/* Buttons: blue is the only interactive colour; red is reserved for live state. */
.btn { background: var(--accent); color: #0b1326; border-color: var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--outline); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* The live sticker keeps the red — it is the one thing that MEANS live. */
.sticker-live { background: var(--live); color: #ffffff; }
.sticker-live .pulse { background: #ffffff; }

/* Links and small accents. */
a { color: var(--accent); }
a:hover { color: #7dd3fc; }

/* Tables, dividers, form-less chrome. */
hr, .divider { border-color: var(--outline); }
code, pre { background: var(--surface-lowest); color: var(--text); border: 1px solid var(--outline); }

/* Keep the image band readable against the navy. */
.wave-top svg, .wave-bottom svg { color: var(--surface-canvas); }

/* ════════════════════════════════════════════════════════════════════════════
   CONTRAST PASS (2026-10-30). The token remap above turned the body text light,
   but several rules still paint a bright fill and then inherit that light text —
   the footer (a light panel full of near-white links) and the CTA card were
   unreadable. Rule from here on: a saturated fill takes dark text, a dark
   surface takes light text. Never inherit.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --on-bright: #0b1326;   /* text on amber / blue / green fills */
  --on-live: #ffffff;     /* text on red fills */
}

/* Red fills: white, always. Red is LIVE; LIVE is white-on-red. */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.sticker-live,
.step:nth-child(3) .step-num,
.scene--live,
.scene--live p,
.scene--ending,
.plan-badge,
.sticker-live .pulse { color: var(--on-live); }

/* Amber / blue fills: dark ink. */
.scene--starting,
.scene--starting h3,
.scene--starting p,
.scene--brb,
.scene--brb h3,
.scene--brb p,
.scene--chat,
.scene--chat h3,
.scene--chat p,
.step:nth-child(1) .step-num,
.step:nth-child(2) .step-num,
.sticker-chat,
.sticker-chat small { color: var(--on-bright); }

.scene .tag { color: var(--text); }

/* Footer: a dark panel on the canvas, not a light slab. */
.site-footer {
  background: var(--surface-lowest);
  border-top: 1px solid var(--outline);
  color: var(--text-muted);
}
.site-footer .brand,
.site-footer .brand:hover,
.site-footer .wordmark,
.footer-grid h2 { color: var(--text); }
.site-footer .wordmark .ty { color: var(--live); }
.footer-grid a { color: var(--text); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  color: var(--text-muted);
  border-top-color: var(--outline);
}

/* CTA card: surface, not a pastel wash. Decoration stays, turned right down. */
.cta-card {
  background: linear-gradient(120deg, var(--surface) 0%, var(--surface-low) 55%, var(--surface-high) 100%);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow);
}
.cta-card::before { background: var(--amber); opacity: 0.10; }
.cta-card::after { background: var(--accent); opacity: 0.12; }
.cta-card p { color: var(--text-muted); }

/* Skip link and table zebra: dark surfaces. */
.skip-link { background: var(--surface-high); color: var(--text); }
.skip-link:focus { color: var(--text); }
.chart tbody tr:nth-child(even) { background: var(--surface-low); }
.bg-teal { background: linear-gradient(180deg, var(--surface), var(--surface-low)); }

/* Icons and decoration that sit on a bright fill take dark ink too. */
.faq summary::after,
.faq details[open] summary::after { color: var(--on-bright); border-color: var(--outline); }

/* The highlighter bar behind .hl: accent wash, not amber. */
.hl { color: var(--accent); }
.hl::after { background: rgba(56, 189, 248, 0.22); }

/* Shot frame: one accent, not a red/purple/blue rainbow around the screenshot. */
.shot-frame { background: linear-gradient(135deg, var(--accent) 0%, var(--surface-highest) 70%); }
.shot-frame::before { background: var(--surface-low); }

/* Stickers: legible by construction. LIVE takes the deep red (white on #ff5451 is
   only 3.4:1, under AA for this size); the chat chip takes near-black ink on amber. */
.sticker { border-color: #0b1326; }
.sticker-live { background: var(--red-deep); color: var(--on-live); }
.sticker-chat { background: #ffc266; color: #0b1326; }
.sticker-chat small { color: rgba(11, 19, 38, 0.75); }
