/* ============================================================
   Self-hosted variable fonts (Latin subset, served by Google but
   bundled with the site so they land in the same connection as the
   HTML and CSS — no extra DNS / TLS, no third-party stylesheet).
   ============================================================ */

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

@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/CrimsonPro.woff2") format("woff2");
}

@font-face {
  font-family: "Crimson Pro";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/CrimsonPro-italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
}

/* ============================================================
   Plottery landing — parchment-dark theme (matches the app, enhanced)
   Palette: ink-950 → ink-100, amber-400/500/600, rose-400/500
   Display: Crimson Pro italic. Texture: layered dotted bg.
   ============================================================ */

:root {
  /* warm, parchment-leaning dark palette — same as the app */
  --ink-950: #0a0a0b;
  --ink-900: #111114;
  --ink-800: #17181c;
  --ink-700: #1f2028;
  --ink-600: #2a2c36;
  --ink-500: #3a3d4a;
  --ink-400: #6b6f7e;
  --ink-300: #a1a6b6;
  --ink-200: #d8dbe4;
  --ink-100: #ebedf2;

  --amber-400: #e5b570;
  --amber-500: #d49a4a;
  --amber-600: #b07a30;
  --rose-400: #e47c8a;
  --rose-500: #d1586c;
  --success: #7fb069;

  /* semantic */
  --bg: var(--ink-950);
  --surface: var(--ink-900);
  --bg-card: var(--ink-800);
  --bg-card-2: #1c1d22;
  --border: var(--ink-700);
  --border-strong: var(--ink-600);
  --text: var(--ink-100);
  --text-dim: var(--ink-200);
  --text-muted: var(--ink-300);
  --text-subtle: var(--ink-400);
  --accent: var(--amber-400);
  --accent-strong: var(--amber-500);
  --accent-deep: var(--amber-600);
  --rose: var(--rose-400);

  --shadow-warm: 0 0 0 1px rgba(229, 181, 112, 0.18),
    0 14px 44px rgba(176, 122, 48, 0.22);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 30px rgba(0, 0, 0, 0.5);

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Crimson Pro", "Iowan Old Style", "Palatino", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

/* ============================================================
   Top navigation
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: rgba(10, 10, 11, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transform: translateY(0);
  transition: transform 240ms ease;
  will-change: transform;
}

.site-nav-hidden {
  transform: translateY(-100%);
}

.site-nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #fff, var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav-brand img {
  height: 1.9em;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(229, 181, 112, 0.35));
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 640px) {
  .site-nav-inner {
    padding: 10px 16px;
    gap: 12px;
  }
  .site-nav-brand {
    font-size: 1.1rem;
  }
  .site-nav-links {
    gap: 0;
  }
  .site-nav-links a {
    padding: 6px 10px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .site-nav-brand {
    display: none;
  }
}

body {
  min-height: 100vh;
  position: relative;
  /* warm radial wash, same idea as the app but stronger */
  background:
    radial-gradient(1400px 900px at 82% -10%, rgba(229, 181, 112, 0.08), transparent 60%),
    radial-gradient(1100px 700px at -8% 110%, rgba(228, 124, 138, 0.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.95rem);
}

h3 {
  font-size: 1.3rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0;
  color: var(--text-dim);
}

/* ============================================================
   The signature "fancy italic" — Crimson Pro display italic
   used wherever the page used the old purple gradient span.
   ============================================================ */

.gradient {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.005em;
  /* slightly larger optical size — display-italic feels like a book title */
  font-size: 1.06em;
  background: linear-gradient(
    100deg,
    #f4d29a 0%,
    var(--amber-400) 38%,
    var(--rose-400) 92%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding: 0 0.04em;
}

/* prose <em> outside the mock preview — narrative emphasis like the app */
main em,
.section em,
.cta-card em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--amber-400);
  letter-spacing: 0.005em;
}

/* ============================================================
   Background decoration — layered dotted texture (enhanced)
   Two scales: a fine 14px field plus a wider 32px field, each
   with its own radial mask, so the texture has depth without
   overwhelming.
   ============================================================ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(229, 181, 112, 0.10) 1px,
      transparent 0
    ),
    radial-gradient(
      circle at 1px 1px,
      rgba(232, 220, 200, 0.05) 1px,
      transparent 0
    );
  background-size: 14px 14px, 32px 32px;
  background-position: 0 0, 7px 7px;
  mask-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    black 25%,
    transparent 85%
  );
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 620px;
  height: 620px;
  background: rgba(212, 154, 74, 0.45);
  opacity: 0.55;
  top: -180px;
  left: -120px;
}

.bg-glow-2 {
  width: 520px;
  height: 520px;
  background: rgba(209, 88, 108, 0.32);
  opacity: 0.32;
  top: 160px;
  right: -160px;
}

/* dotted overlays applied to specific surfaces (mirrors the app) */
.dotted {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(232, 220, 200, 0.08) 1px,
    transparent 0
  );
  background-size: 14px 14px;
}

.dotted-warm {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(229, 181, 112, 0.10) 1px,
    transparent 0
  );
  background-size: 14px 14px;
}

.dotted-fade {
  position: relative;
}
.dotted-fade::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(232, 220, 200, 0.07) 1px,
    transparent 0
  );
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, black, transparent 80%);
  mask-image: linear-gradient(180deg, black, transparent 80%);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.86);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand img {
  filter: drop-shadow(0 0 12px rgba(229, 181, 112, 0.35));
}

.brand-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  background: linear-gradient(180deg, #fff, #f0d9ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--ink-950) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem !important;
  box-shadow: 0 4px 14px rgba(176, 122, 48, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(176, 122, 48, 0.6);
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ============================================================
   Sections (shared)
   ============================================================ */

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

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px;
}

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

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--amber-400);
  margin-bottom: 18px;
  position: relative;
  padding: 4px 14px;
  border: 1px solid rgba(229, 181, 112, 0.25);
  border-radius: 999px;
  background: rgba(229, 181, 112, 0.06);
}

.section-sub {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--text-dim);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 40px;
}

.hero-inner {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 80px;
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  background: rgba(229, 181, 112, 0.08);
  border: 1px solid rgba(229, 181, 112, 0.28);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 28px;
  font-weight: 500;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 44px;
}

.hero .lead strong {
  color: var(--text);
  font-weight: 600;
}

/* ============= Big download button — warm gold ============= */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.mobile-toast[hidden] {
  display: none;
}

.mobile-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  width: calc(100vw - 24px);
  max-width: 480px;
  background: rgba(20, 20, 22, 0.96);
  border: 1px solid rgba(229, 181, 112, 0.4);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: mobile-toast-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mobile-toast::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 8px var(--amber-500);
}

.mobile-toast.fading {
  animation: mobile-toast-out 220ms ease-in forwards;
}

@keyframes mobile-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes mobile-toast-out {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

.btn-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 30px 18px 22px;
  background: linear-gradient(135deg, #f4d29a 0%, var(--amber-500) 55%, var(--amber-600) 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  color: var(--ink-950);
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(176, 122, 48, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
  text-align: left;
}

.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 18%,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
  pointer-events: none;
  opacity: 0.8;
}

.btn-download::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg, #f4d29a, var(--rose-400), #f4d29a);
  z-index: -1;
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.25s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(176, 122, 48, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.btn-download:hover::after {
  opacity: 0.85;
}

.btn-download-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 10, 11, 0.18);
  border: 1px solid rgba(10, 10, 11, 0.22);
}

.btn-download-icon svg {
  width: 22px;
  height: 22px;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-download-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.78;
  font-weight: 500;
}

.btn-download-title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-download-version {
  margin-left: 8px;
  padding: 6px 12px;
  background: rgba(10, 10, 11, 0.22);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid rgba(10, 10, 11, 0.25);
  color: var(--ink-950);
}

.btn-download-lg {
  padding: 22px 34px 22px 26px;
  font-size: 1.05em;
}

.btn-download-lg .btn-download-icon {
  width: 52px;
  height: 52px;
}

.btn-download-lg .btn-download-title {
  font-size: 1.32rem;
}

@media (max-width: 540px) {
  .btn-download {
    padding: 16px 20px;
    gap: 14px;
  }
  .btn-download-version {
    display: none;
  }
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-meta-row svg {
  color: var(--amber-400);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dl-pill svg {
  width: 16px;
  height: 16px;
}

.dl-pill:hover {
  background: rgba(229, 181, 112, 0.08);
  border-color: rgba(229, 181, 112, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}

.dl-pill.detected {
  background: rgba(229, 181, 112, 0.14);
  border-color: rgba(229, 181, 112, 0.5);
  color: var(--text);
}

.btn-download.unavailable {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(0.3);
}

/* ============= Mock app preview — mirrors the real chat page ============= */

.hero-mock {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
  /* lock to desktop ratio so the mock never reshapes itself for mobile */
  aspect-ratio: 1100 / 624;
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* fixed desktop-sized box that gets shrunk to fit narrower viewports.
   --mock-scale is set by JS from the rendered .hero-mock width / 1100. */
.mock-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 624px;
  transform-origin: top left;
  transform: scale(var(--mock-scale, 1));
  transform-style: preserve-3d;
}

/* mobile: lock to a legible size and tilt so the right edge bleeds offscreen.
   Left edge stays anchored to .hero-mock's left; right edge tilts back. */
@media (max-width: 700px) {
  .hero-mock {
    aspect-ratio: auto;
    height: auto;
  }
  .mock-scaler {
    position: static;
    zoom: 0.7;
    transform: rotateY(15deg);
  }
}

.mock-window {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 140px rgba(176, 122, 48, 0.22),
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: transform;
}

.mock-window::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(229, 181, 112, 0.5),
    transparent
  );
  z-index: 2;
}

/* mac title bar */

.mock-titlebar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(10, 10, 11, 0.6);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mock-red { background: #ff6058; }
.mock-yellow { background: #ffbd2e; }
.mock-green { background: #28c941; }

.mock-title {
  margin-left: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

/* body: left drawer + right main column */

.mock-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 210px 1fr;
  flex: 1;
  min-height: 0;
}

/* ----- left story drawer ----- */

.mock-drawer {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.6);
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(232, 220, 200, 0.07) 1px,
    transparent 0
  );
  background-size: 14px 14px;
  overflow: hidden;
}

.mock-drawer-tabs {
  display: flex;
  align-items: stretch;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.4);
}

.mock-drawer-tab {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.mock-drawer-tab.active {
  color: var(--text);
  border-bottom-color: var(--amber-400);
}

.mock-drawer-close {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  align-self: center;
  margin-right: 6px;
  color: var(--text-muted);
}

.mock-drawer-close svg { width: 13px; height: 13px; }

.mock-drawer-body {
  flex: 1;
  overflow: hidden;
  padding-bottom: 14px;
}

.mock-d-section {
  padding: 14px 18px 4px;
  border-top: 1px solid rgba(31, 32, 40, 0.6);
}

.mock-d-section:first-child { border-top: 0; }

.mock-d-section-h {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mock-d-section-h svg {
  width: 12px;
  height: 12px;
}

.mock-d-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 5px;
  background: rgba(23, 24, 28, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock-d-card.active {
  border-color: rgba(229, 181, 112, 0.4);
  box-shadow: 0 0 10px -3px rgba(229, 181, 112, 0.6);
}

.mock-d-num {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-subtle);
  width: 10px;
}

.mock-d-name {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text);
}

.mock-d-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-400);
  padding: 2px 6px;
  background: rgba(229, 181, 112, 0.12);
  border: 1px solid rgba(229, 181, 112, 0.25);
  border-radius: 4px;
}

/* ----- right: main column (top bar + chat card) ----- */

.mock-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* GameTopBanner */
.mock-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  height: 48px;
  background: rgba(17, 17, 20, 0.95);
  border-bottom: 1px solid var(--border);
}

.mock-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.mock-back svg { width: 13px; height: 13px; }

.mock-topbar-div {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.mock-topbar-title {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mock-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.mock-topbar-btn svg { width: 13px; height: 13px; }

.mock-topbar-sub {
  color: var(--text-subtle);
  font-size: 11.5px;
}

.mock-topbar-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--text-muted);
}

.mock-topbar-icon svg { width: 14px; height: 14px; }

/* the rounded surface card containing GlanceStrip, messages, composer */
.mock-chat-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 12px 14px 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: var(--ink-900);
  box-shadow: 0 4px 24px -12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

/* GlanceStrip — three sticky tiles */
.mock-glance {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.mock-glance-tile {
  flex: 1;
  min-width: 0;
  padding: 7px 12px 8px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.mock-glance-tile.active {
  background: rgba(23, 24, 28, 0.7);
}

.mock-glance-div {
  width: 1px;
  background: var(--border);
}

.mock-glance-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.mock-glance-h svg { width: 11px; height: 11px; }

.mock-glance-b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
}

.mock-glance-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.mock-glance-line.mock-serif {
  font-family: var(--font-serif);
  font-size: 13.5px;
}

.mock-glance-accent {
  color: var(--amber-400);
  font-weight: 600;
}

.mock-avatars {
  display: inline-flex;
  align-items: center;
}

.mock-mini-av {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--ink-900);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 9px;
  margin-left: -3px;
}

.mock-mini-av:first-child { margin-left: 0; }

.mock-mini-av.party {
  border-color: rgba(229, 181, 112, 0.6);
  color: var(--amber-400);
}

.mock-chat-scroll {
  flex: 1;
  padding: 2px 22px 4px;
  overflow: hidden;
}

.mock-msg {
  position: relative;
  padding: 12px 0 13px;
  border-bottom: 1px solid rgba(31, 32, 40, 0.6);
}

.mock-msg:last-of-type {
  border-bottom: 0;
}

.mock-msg-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mock-msg-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-subtle);
}

.mock-msg-tag-user {
  color: var(--amber-400);
}

.mock-msg p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  color: #bcc0cc;
  margin: 0;
}

/* matches InlineMarkdown rendering — names get accent-strong colour,
   bold + quoted segments are bold in normal text colour, plain italics
   render as muted text. */
.mock-msg p .mock-name {
  color: var(--accent-strong);
}

.mock-msg p strong {
  color: var(--text);
  font-weight: 600;
}

.mock-msg p em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

/* user messages get a left amber accent bar, matching MessageItem */
.mock-msg-user {
  padding-left: 18px;
  border-left: 2px solid rgba(229, 181, 112, 0.6);
}

/* dice badge inside user message header */

.mock-dice {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 7px;
  border-radius: 4px;
  background: rgba(229, 181, 112, 0.12);
  border: 1px solid rgba(229, 181, 112, 0.3);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.mock-dice svg {
  width: 11px;
  height: 11px;
}

/* streaming cursor */

.mock-streaming .mock-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  vertical-align: -3px;
  margin-left: 2px;
  background: var(--amber-400);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* composer card */

.mock-composer {
  margin: 4px 18px 14px;
  background: var(--ink-900);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  padding: 6px;
}

.mock-composer-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 6px;
  border-bottom: 1px solid var(--border);
}

.mock-modes {
  display: inline-flex;
  background: var(--ink-800);
  border-radius: 6px;
  padding: 2px;
}

.mock-mode {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-subtle);
}

.mock-mode.active {
  background: var(--ink-700);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mock-div {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
}

.mock-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-muted);
}

.mock-icon svg {
  width: 14px;
  height: 14px;
}

.mock-flex { flex: 1; }

.mock-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
  padding-right: 6px;
}

.mock-composer-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 6px 4px;
}

.mock-placeholder {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-subtle);
  padding: 6px 6px;
  min-height: 36px;
}

.mock-send {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: var(--ink-950);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(176, 122, 48, 0.3);
}

.mock-send svg {
  width: 13px;
  height: 13px;
}

/* ============================================================
   Why local — eras
   ============================================================ */

.era {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 80px;
}

.era-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.era-col h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.era-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.era-then {
  background: rgba(107, 111, 126, 0.18);
  color: var(--text-subtle);
  border: 1px solid var(--border);
}

.era-now {
  background: rgba(229, 181, 112, 0.12);
  color: var(--amber-400);
  border: 1px solid rgba(229, 181, 112, 0.32);
}

.era-arrow {
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--amber-400);
  opacity: 0.78;
}

@media (max-width: 800px) {
  .era {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .era-arrow {
    transform: rotate(90deg);
  }
}

/* ============================================================
   Features grid
   ============================================================ */

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

.feat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.feat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 181, 112, 0.35), transparent);
  transition: opacity 0.2s ease;
}

.feat:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 181, 112, 0.45);
  box-shadow: 0 14px 40px rgba(176, 122, 48, 0.18);
}

.feat:hover::before {
  opacity: 1.6;
  background: linear-gradient(90deg, transparent, rgba(229, 181, 112, 0.7), transparent);
}

.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(229, 181, 112, 0.08);
  border: 1px solid rgba(229, 181, 112, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-400);
  margin-bottom: 18px;
  position: relative;
}

.feat-icon svg {
  width: 20px;
  height: 20px;
}

.feat-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(229, 181, 112, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.feat h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.32rem;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta-final {
  padding-top: 60px;
  padding-bottom: 120px;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 76px 40px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      ellipse at 50% 0%,
      rgba(229, 181, 112, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cta-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(229, 181, 112, 0.55),
    transparent
  );
}

.cta-card h2 {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.cta-card .btn-download {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.price-card-accent {
  background:
    radial-gradient(
      120% 80% at 0% 0%,
      rgba(229, 181, 112, 0.12) 0%,
      transparent 60%
    ),
    var(--bg-card);
  border-color: rgba(229, 181, 112, 0.42);
  box-shadow: var(--shadow-warm);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 5px 14px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--ink-950);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(176, 122, 48, 0.55);
}

.price-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}

.price-num {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, #fff, #f0d9ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-per {
  font-size: 1rem;
  color: var(--text-subtle);
  font-style: italic;
  font-family: var(--font-serif);
}

.price-badge-promo {
  top: -16px;
  right: 50%;
  transform: translateX(50%);
  padding: 8px 18px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow:
    0 6px 22px rgba(176, 122, 48, 0.65),
    0 0 0 4px rgba(229, 181, 112, 0.12);
  animation: promo-pulse 2.4s ease-in-out infinite;
}

.price-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-950);
  box-shadow: 0 0 0 3px rgba(20, 14, 6, 0.18);
  animation: promo-dot-blink 1.6s ease-in-out infinite;
}

@keyframes promo-pulse {
  0%, 100% {
    box-shadow:
      0 6px 22px rgba(176, 122, 48, 0.55),
      0 0 0 4px rgba(229, 181, 112, 0.10);
  }
  50% {
    box-shadow:
      0 6px 26px rgba(176, 122, 48, 0.85),
      0 0 0 8px rgba(229, 181, 112, 0.18);
  }
}

@keyframes promo-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .price-badge-promo,
  .price-badge-dot {
    animation: none;
  }
}

.price-desc {
  margin-bottom: 22px;
  color: var(--text-dim);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.95rem;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--success);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    no-repeat center / contain;
}

.pricing-foot {
  max-width: 720px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-style: italic;
}

@media (max-width: 760px) {
  .pricing {
    grid-template-columns: 1fr;
  }
  .price-card {
    padding: 28px;
  }
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-subtle);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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