:root,:root.light{color-scheme:light;--my-bg:#efeef8;--my-surface:#fbfaff;--my-surface-raised:#ffffff;--my-surface-sunken:#e2e0f0;--my-border:#d3d0e6;--my-border-strong:#a9a5c6;--my-text:#23213a;--my-text-muted:#524f6e;--my-text-subtle:#625f7f;--my-accent:#5b45d6;--my-accent-hover:#6c57e6;--my-on-accent:#ffffff;--my-accent-text:#4935b8;--my-accent-soft:#e2dcff;--my-success:#1a6b40;--my-success-soft:#d9efe2;--my-warning:#805500;--my-warning-soft:#f6ebcf;--my-danger:#a8321f;--my-danger-soft:#f7dfd9;--my-focus:#4935b8;--my-glass:rgba(251, 250, 255, 0.86);--my-scrim:rgba(30, 28, 56, 0.4);}:root.dark{color-scheme:dark;--my-bg:#10111c;--my-surface:#191b2b;--my-surface-raised:#232640;--my-surface-sunken:#0b0c15;--my-border:#34385a;--my-border-strong:#565b85;--my-text:#ecebf7;--my-text-muted:#b7b6d0;--my-text-subtle:#9c9bbb;--my-accent:#9d8cff;--my-accent-hover:#b3a6ff;--my-on-accent:#14122a;--my-accent-text:#bcb1ff;--my-accent-soft:#2d2860;--my-success:#62d08f;--my-success-soft:#173427;--my-warning:#f0c75e;--my-warning-soft:#3a2f14;--my-danger:#f58a78;--my-danger-soft:#40201c;--my-focus:#bcb1ff;--my-glass:rgba(25, 27, 43, 0.82);--my-scrim:rgba(8, 9, 16, 0.55);}
/* The landing page in Mystic's palette (prepended when served, see web/palette.ts), light and dark. Phone first; no fonts or anything else fetched from elsewhere. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--my-bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--my-text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(60rem 36rem at 85% -10%, color-mix(in srgb, var(--my-accent) 18%, transparent), transparent 60%),
    radial-gradient(40rem 30rem at -10% 30%, color-mix(in srgb, var(--my-border-strong) 22%, transparent), transparent 60%);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--my-accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--my-focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* The display face for the wordmark, headings and the big buttons; body text and numbers stay plain. */
h1, h2, h3, .brand, .play, .secondary { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.15rem; margin-bottom: .35em; }
.glow { background: linear-gradient(90deg, var(--my-accent-text), var(--my-warning)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding: .9rem 1.1rem; max-width: 72rem; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--my-text); font-weight: 700; font-size: 1.35rem; }
.brand:hover { text-decoration: none; }
.mark { color: var(--my-accent-text); }
.top nav { display: flex; align-items: center; gap: .9rem; font-size: .92rem; }
.top nav a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; color: var(--my-text-muted); }
.top nav a:hover { color: var(--my-text); }
.top .ext { order: 1; margin-left: auto; }
.top .pages { order: 2; flex-basis: 100%; flex-wrap: wrap; }
.theme { min-height: 2.25rem; padding: .2rem .7rem; border: 1px solid var(--my-border); border-radius: 999px; background: transparent; color: var(--my-text-muted); font-size: .85rem; cursor: pointer; }
.theme:hover { color: var(--my-text); border-color: var(--my-border-strong); }

main { max-width: 72rem; margin: 0 auto; padding: 0 1.1rem; }
section { margin: 0 0 4.5rem; }

/* Hero */
.hero { display: grid; gap: 2.2rem; padding-top: 1.5rem; align-items: center; }
.badge { display: inline-block; margin: 0 0 1rem; padding: .3rem .75rem; border: 1px solid color-mix(in srgb, var(--my-accent) 55%, transparent); border-radius: 999px; background: var(--my-accent-soft); color: var(--my-accent-text); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lede { color: var(--my-text-muted); font-size: 1.1rem; max-width: 36rem; margin: 0 0 1.8rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.play {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; max-width: 24rem; min-height: 4rem; padding: 0 1.8rem; border-radius: 1.1rem;
  background: var(--my-accent); color: var(--my-on-accent); font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 12px 40px color-mix(in srgb, var(--my-accent) 45%, transparent);
  transition: transform .12s ease, background .12s ease;
}
.play:hover { background: var(--my-accent-hover); text-decoration: none; }
.play:active { transform: scale(.98); }
.secondary { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 24rem; min-height: 3.25rem; padding: 0 1.3rem; border-radius: 1.1rem; border: 1px solid color-mix(in srgb, var(--my-accent-text) 55%, transparent); color: var(--my-accent-text); font-weight: 600; font-size: 1.05rem; }
.secondary:hover { background: var(--my-accent-soft); text-decoration: none; }
.note { color: var(--my-text-muted); font-size: .85rem; max-width: 28rem; margin: .9rem 0 0; }
.screen { margin: 0; border-radius: 1.1rem; overflow: hidden; border: 1px solid var(--my-border); background: #000; }
.screen img { width: 100%; }
.hero-shot { width: 100%; justify-self: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px color-mix(in srgb, var(--my-accent) 22%, transparent); }

/* Live numbers */
.stats { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
.stats[hidden] { display: none; }
.stat, .steps li, .world li { background: var(--my-glass); border: 1px solid var(--my-border); border-radius: 1.1rem; padding: .95rem 1.1rem; backdrop-filter: blur(12px); }
.stat .value { display: block; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; color: var(--my-accent-text); font-variant-numeric: tabular-nums; }
.label { color: var(--my-text-muted); font-size: .85rem; margin: 0; }

/* How it works */
.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: .9rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; color: var(--my-text-muted); }
.steps li strong { display: block; color: var(--my-text); }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: .95rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--my-accent); color: var(--my-on-accent); font-weight: 800; font-size: .9rem; }

/* The two threads: a heading and a line next to one screenshot card. Stacked on phones, side by side (alternating) on desktop. */
.thread { display: grid; gap: 1.8rem; align-items: center; }
.sub { color: var(--my-text-muted); font-size: 1.05rem; max-width: 30rem; margin: 0; }
.shot { margin: 0; width: min(100%, 18rem); justify-self: center; aspect-ratio: 4 / 5; border-radius: 1.4rem; overflow: hidden; border: 1px solid var(--my-border); background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.bottom img { object-position: left bottom; }

/* What Mystic is: four short cards */
.world ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.world p { margin: 0; color: var(--my-text-muted); font-size: .95rem; }

footer { max-width: 72rem; margin: 0 auto; padding: 1.5rem 1.1rem 2.5rem; border-top: 1px solid var(--my-border); text-align: center; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-bottom: 1rem; font-size: .9rem; }
.fine { color: var(--my-text-subtle); font-size: .8rem; line-height: 1.45; margin: 0; text-wrap: balance; }

@media (min-width: 40rem) {
  .top .pages { order: 1; flex-basis: auto; margin-left: auto; }
  .top .ext { order: 2; margin-left: 0; padding-left: .9rem; border-left: 1px solid var(--my-border); }
  .world ul { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 52rem) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 3rem; min-height: 70vh; }
  .stats { max-width: 48rem; grid-template-columns: repeat(3, 1fr); }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  section { margin-bottom: 7rem; }
  .actions { flex-wrap: nowrap; }
  .actions .play, .secondary { width: auto; }
  .secondary { min-height: 4rem; }
  .thread { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .thread.flip .thread-copy { order: 2; }
  .shot { width: 100%; max-width: 22rem; }
  .world ul { grid-template-columns: repeat(4, 1fr); }
}

/* Without pictures (MYSTIC_LANDING_IMAGES=off): the hero and the two threads are one column of copy, centred and a little wider, so nothing leaves a hole. */
.no-images .hero { grid-template-columns: 1fr; min-height: 0; justify-items: center; text-align: center; }
.no-images .hero .lede, .no-images .hero .note { margin-left: auto; margin-right: auto; }
.no-images .actions { justify-content: center; }
.no-images .thread { grid-template-columns: 1fr; gap: 0; }
.no-images .thread-copy { max-width: 40rem; margin: 0 auto; text-align: center; }
.no-images .thread .sub { max-width: none; }
.no-images .thread.flip .thread-copy { order: 0; }

/* Phones: a Play bar at the bottom once the hero's button has scrolled away (landing.js); the footer leaves room for it. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--my-bg) 90%, transparent); border-top: 1px solid var(--my-border); backdrop-filter: blur(12px); transform: translateY(110%); transition: transform .2s ease; }
.dock[hidden] { display: none; }
.dock.show { transform: none; }
.dock:not([hidden]) ~ footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.dock .play { min-height: 3.25rem; font-size: 1.1rem; box-shadow: none; }
@media (min-width: 52rem) {
  .dock { display: none; }
  .dock:not([hidden]) ~ footer { padding-bottom: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { .dock, .play { transition: none; } }
