/* mastrly.cloud — studio-grade editorial. Helvetica throughout.
   Mirrors src/styles.css from the application so the marketing surface
   reads as the same product. */

:root {
  --font: Helvetica, "Helvetica Neue", Arial, "Liberation Sans", "Nimbus Sans", system-ui, -apple-system, sans-serif;
  --font-body: var(--font);
  --font-display: var(--font);
  --font-mono: var(--font);
  --mono: var(--font);

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.375rem;
  --text-xl: 1.875rem;
  --text-2xl: 2.75rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 420ms;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --hue-sage: 125;
  --hue-amber: 34;
  --hue-coral: 10;
  --hue-cobalt: 215;
  --hue-violet: 290;
}

/* Theme palettes — copied verbatim from the app's themes/*.css so the
   marketing site and the app share tokens. Update both in lockstep.
   `slipstream` is the default (also bound to :root so a page without
   the bootstrap script still has correct values). Bootstrap script in
   each HTML file sets data-theme from `reel:theme:name` in localStorage. */

:root,
[data-theme="slipstream"] {
  --bg: #0e0c0a;
  --bg-raised: #1a1612;
  --bg-soft: #15120e;
  --bg-sunken: #08070a;
  --surface-hover: rgba(244, 234, 214, 0.04);
  --surface-active: rgba(244, 234, 214, 0.07);
  --fg: #f4ead6;
  --fg-muted: #c2b69a;
  --fg-subtle: #8e826a;
  --fg-faint: #5a5040;
  --fg-dim: var(--fg-muted);
  --border: #2a241c;
  --border-strong: #3d362a;
  --rule: #221d16;
  --accent: #FF6A1A;
  --accent-hover: #ff8a4a;
  --accent-soft: rgba(255, 106, 26, 0.16);
  --accent-ink: #0e0c0a;
  --warn: #d8a85a;
  --warn-soft: rgba(216, 168, 90, 0.14);
  --error: #e38a8a;
  --error-soft: rgba(227, 138, 138, 0.14);
  --info: #8ab8e0;
  --info-soft: rgba(138, 184, 224, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 48px -16px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0.025;
}

[data-theme="forest"] {
  --bg: #e9f1e4;
  --bg-raised: #f3f8ef;
  --bg-soft: #e1ebdb;
  --bg-sunken: #d8e5d1;
  --surface-hover: rgba(28, 60, 28, 0.04);
  --surface-active: rgba(28, 60, 28, 0.08);
  --fg: #1b2a1b;
  --fg-muted: #3e573f;
  --fg-subtle: #6c886d;
  --fg-faint: #a7c0a2;
  --fg-dim: var(--fg-muted);
  --border: #d2e1cc;
  --border-strong: #b3cbab;
  --rule: #d8e5d1;
  --accent: #3a8c4a;
  --accent-hover: #2f7a3e;
  --accent-soft: rgba(58, 140, 74, 0.12);
  --accent-ink: #f3f8ef;
  --warn: #b8893a;
  --warn-soft: rgba(184, 137, 58, 0.12);
  --error: #a83030;
  --error-soft: rgba(168, 48, 48, 0.10);
  --info: #2f7d8a;
  --info-soft: rgba(47, 125, 138, 0.10);
  --shadow-sm: 0 1px 2px rgba(28, 60, 28, 0.06);
  --shadow-md: 0 8px 28px -10px rgba(28, 60, 28, 0.16);
  --shadow-lg: 0 22px 48px -16px rgba(28, 60, 28, 0.20);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="cirrus"] {
  --bg: #eef4fa;
  --bg-raised: #f8fbfd;
  --bg-soft: #e1ebf3;
  --bg-sunken: #d4e0eb;
  --surface-hover: rgba(20, 40, 80, 0.04);
  --surface-active: rgba(20, 40, 80, 0.08);
  --fg: #0f1d2e;
  --fg-muted: #3a4c64;
  --fg-subtle: #6f8298;
  --fg-faint: #aebccd;
  --fg-dim: var(--fg-muted);
  --border: #cedbe8;
  --border-strong: #abbed2;
  --rule: #dde7f0;
  --accent: #2f6ea8;
  --accent-hover: #265a8c;
  --accent-soft: rgba(47, 110, 168, 0.12);
  --accent-ink: #f8fbfd;
  --warn: #b8893a;
  --warn-soft: rgba(184, 137, 58, 0.10);
  --error: #a83030;
  --error-soft: rgba(168, 48, 48, 0.08);
  --info: #2f6ea8;
  --info-soft: rgba(47, 110, 168, 0.10);
  --shadow-sm: 0 1px 2px rgba(15, 30, 55, 0.05);
  --shadow-md: 0 8px 28px -10px rgba(15, 30, 55, 0.14);
  --shadow-lg: 0 22px 48px -16px rgba(15, 30, 55, 0.18);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="cool-light"] {
  --bg: #eef0f2;
  --bg-raised: #f7f8fa;
  --bg-soft: #e4e7ea;
  --bg-sunken: #d8dce0;
  --surface-hover: rgba(20, 30, 50, 0.04);
  --surface-active: rgba(20, 30, 50, 0.08);
  --fg: #15181c;
  --fg-muted: #404650;
  --fg-subtle: #8088a0;
  --fg-faint: #b4bcc8;
  --fg-dim: var(--fg-muted);
  --border: #d4dae0;
  --border-strong: #b6bec8;
  --rule: #e0e5eb;
  --accent: #c2521a;
  --accent-hover: #a4441a;
  --accent-soft: rgba(194, 82, 26, 0.10);
  --accent-ink: #f7f8fa;
  --warn: #6a7280;
  --warn-soft: rgba(106, 114, 128, 0.10);
  --error: #a83030;
  --error-soft: rgba(168, 48, 48, 0.08);
  --info: #285d82;
  --info-soft: rgba(40, 93, 130, 0.10);
  --shadow-sm: 0 1px 2px rgba(15, 25, 40, 0.05);
  --shadow-md: 0 8px 28px -10px rgba(15, 25, 40, 0.14);
  --shadow-lg: 0 22px 48px -16px rgba(15, 25, 40, 0.18);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="graphite"] {
  --bg: #0f0f0f;
  --bg-raised: #1c1c1c;
  --bg-soft: #161616;
  --bg-sunken: #080808;
  --surface-hover: rgba(240, 240, 240, 0.05);
  --surface-active: rgba(240, 240, 240, 0.09);
  --fg: #ececec;
  --fg-muted: #b4b4b4;
  --fg-subtle: #7c7c7c;
  --fg-faint: #4c4c4c;
  --fg-dim: var(--fg-muted);
  --border: #2c2c2c;
  --border-strong: #404040;
  --rule: #242424;
  --accent: #ffffff;
  --accent-hover: #f4f4f4;
  --accent-soft: rgba(240, 240, 240, 0.14);
  --accent-ink: #0f0f0f;
  --warn: #b4b4b4;
  --warn-soft: rgba(180, 180, 180, 0.14);
  --error: #d4d4d4;
  --error-soft: rgba(212, 212, 212, 0.14);
  --info: #cccccc;
  --info-soft: rgba(204, 204, 204, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 48px -16px rgba(0, 0, 0, 0.6);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0.02;
}

[data-theme="velvet"] {
  --bg: #15101a;
  --bg-raised: #221a2a;
  --bg-soft: #1d1622;
  --bg-sunken: #0d0a14;
  --surface-hover: rgba(240, 232, 230, 0.04);
  --surface-active: rgba(240, 232, 230, 0.07);
  --fg: #f0e8e6;
  --fg-muted: #b8a8b6;
  --fg-subtle: #8a7a90;
  --fg-faint: #564a5e;
  --fg-dim: var(--fg-muted);
  --border: #322a3c;
  --border-strong: #463a52;
  --rule: #281f33;
  --accent: #ff2738;
  --accent-hover: #ff4d5b;
  --accent-soft: rgba(255, 39, 56, 0.18);
  --accent-ink: #15101a;
  --warn: #d8a85a;
  --warn-soft: rgba(216, 168, 90, 0.14);
  --error: #e38a8a;
  --error-soft: rgba(227, 138, 138, 0.14);
  --info: #b8a8d0;
  --info-soft: rgba(184, 168, 208, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 24px -8px rgba(15, 5, 25, 0.55);
  --shadow-lg: 0 18px 48px -16px rgba(15, 5, 25, 0.6);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0.025;
}

[data-theme="petal"] {
  --bg: #fbe8ee;
  --bg-raised: #ffeff4;
  --bg-soft: #f4dde4;
  --bg-sunken: #ecd1da;
  --surface-hover: rgba(120, 30, 70, 0.05);
  --surface-active: rgba(120, 30, 70, 0.09);
  --fg: #3a162a;
  --fg-muted: #66374f;
  --fg-subtle: #9a6080;
  --fg-faint: #c89cb0;
  --fg-dim: var(--fg-muted);
  --border: #ebcdd8;
  --border-strong: #d8aabe;
  --rule: #efd6df;
  --accent: #c2407a;
  --accent-hover: #a8336a;
  --accent-soft: rgba(194, 64, 122, 0.14);
  --accent-ink: #ffeff4;
  --warn: #b8893a;
  --warn-soft: rgba(184, 137, 58, 0.12);
  --error: #a8324a;
  --error-soft: rgba(168, 50, 74, 0.12);
  --info: #6a4a9a;
  --info-soft: rgba(106, 74, 154, 0.10);
  --shadow-sm: 0 1px 2px rgba(120, 30, 70, 0.06);
  --shadow-md: 0 8px 28px -10px rgba(120, 30, 70, 0.16);
  --shadow-lg: 0 22px 48px -16px rgba(120, 30, 70, 0.20);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="vanilla"] {
  --bg: #fdf3c8;
  --bg-raised: #fffae0;
  --bg-soft: #f6ebb6;
  --bg-sunken: #efe09a;
  --surface-hover: rgba(90, 60, 0, 0.05);
  --surface-active: rgba(90, 60, 0, 0.09);
  --fg: #3a2a08;
  --fg-muted: #6a4f1a;
  --fg-subtle: #9a7e3a;
  --fg-faint: #c8b070;
  --fg-dim: var(--fg-muted);
  --border: #ecd98a;
  --border-strong: #d6bd5a;
  --rule: #ecde9c;
  --accent: #c47a14;
  --accent-hover: #a86614;
  --accent-soft: rgba(196, 122, 20, 0.14);
  --accent-ink: #fffae0;
  --warn: #a85a18;
  --warn-soft: rgba(168, 90, 24, 0.12);
  --error: #a83030;
  --error-soft: rgba(168, 48, 48, 0.10);
  --info: #8a3a6a;
  --info-soft: rgba(138, 58, 106, 0.12);
  --shadow-sm: 0 1px 2px rgba(90, 60, 0, 0.06);
  --shadow-md: 0 8px 28px -10px rgba(90, 60, 0, 0.18);
  --shadow-lg: 0 22px 48px -16px rgba(90, 60, 0, 0.22);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="cyber"] {
  --bg: #050a07;
  --bg-raised: #0a1410;
  --bg-soft: #0e1c16;
  --bg-sunken: #050a07;
  --surface-hover: rgba(80, 255, 160, 0.06);
  --surface-active: rgba(80, 255, 160, 0.12);
  --fg: #a8ffc8;
  --fg-muted: #6cd692;
  --fg-subtle: #468a60;
  --fg-faint: #2a5c3c;
  --fg-dim: var(--fg-muted);
  --border: #1a3a26;
  --border-strong: #2a5c3c;
  --rule: #0e1c16;
  --accent: #38ff8a;
  --accent-hover: #5cff9e;
  --accent-soft: rgba(56, 255, 138, 0.16);
  --accent-ink: #050a07;
  --warn: #f0c060;
  --warn-soft: rgba(240, 192, 96, 0.14);
  --error: #ff5a5a;
  --error-soft: rgba(255, 90, 90, 0.14);
  --info: #a8ffc8;
  --info-soft: rgba(168, 255, 200, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 30, 12, 0.5);
  --shadow-md: 0 8px 28px -10px rgba(56, 255, 138, 0.18);
  --shadow-lg: 0 22px 48px -16px rgba(56, 255, 138, 0.22);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0;
}

[data-theme="synthwave"] {
  --bg: #0d0822;
  --bg-raised: #150d2e;
  --bg-soft: #1d1340;
  --bg-sunken: #07051a;
  --surface-hover: rgba(255, 26, 138, 0.08);
  --surface-active: rgba(255, 26, 138, 0.16);
  --fg: #d8c8e8;
  --fg-muted: #a890c0;
  --fg-subtle: #6a5a85;
  --fg-faint: #443458;
  --fg-dim: var(--fg-muted);
  --border: #2a1858;
  --border-strong: #3f2278;
  --rule: var(--border);
  --accent: #ff1a8a;
  --accent-hover: #ff4ca5;
  --accent-soft: rgba(255, 26, 138, 0.22);
  --accent-ink: #0d0822;
  --warn: #ffd040;
  --warn-soft: rgba(255, 208, 64, 0.16);
  --error: #ff3050;
  --error-soft: rgba(255, 48, 80, 0.16);
  --info: #1e9eff;
  --info-soft: rgba(30, 158, 255, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 6px 24px -8px rgba(255, 26, 138, 0.40);
  --shadow-lg: 0 18px 48px -16px rgba(255, 26, 138, 0.55);
  --ring: 0 0 0 3px var(--accent-soft);
  --grain-opacity: 0.05;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

html {
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(1200px 600px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, var(--warn-soft), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: overlay;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ---------- layout -------------------------------------------------- */

.screen {
  width: min(68rem, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 1rem 0 5rem;
  animation: screen-in var(--dur-slow) var(--ease-out) both;
}

.screen.wide { width: min(78rem, calc(100vw - 2.5rem)); }

@keyframes screen-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- titlebar ----------------------------------------------- */

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
  /* No background — the body's radial-gradient halo paints whatever
     it paints behind the logo and nav, with no extra titlebar layer
     trying to cover it. Sticky + blurred chrome looked nice in dark
     themes but produced a hard rectangular seam in light ones; the
     simpler answer was to drop it. */
}

.titlebar .brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  text-transform: lowercase;
}

.titlebar .brand::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.55rem;
  transform: translateY(-0.18rem);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: brand-pulse 3.6s var(--ease-in-out) infinite;
}

@keyframes brand-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}

.titlebar nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.titlebar nav a,
.titlebar nav .link-btn {
  color: var(--fg-muted);
  border-bottom: none;
  background: none;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: var(--radius-sm);
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.titlebar nav a.active,
.titlebar nav a:hover,
.titlebar nav .link-btn:hover {
  color: var(--fg);
  background: var(--surface-hover);
}

/* ---------- hero --------------------------------------------------- */

.hero {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero .wordmark {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--fg);
  margin: 0;
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
}

.hero .wordmark .glyph {
  display: inline-block;
  animation: glyph-in 700ms var(--ease-out) both;
}

.hero .wordmark .glyph:nth-child(1) { animation-delay: 0ms; }
.hero .wordmark .glyph:nth-child(2) { animation-delay: 50ms; }
.hero .wordmark .glyph:nth-child(3) { animation-delay: 100ms; }
.hero .wordmark .glyph:nth-child(4) { animation-delay: 150ms; }
.hero .wordmark .glyph:nth-child(5) { animation-delay: 200ms; }
.hero .wordmark .glyph:nth-child(6) { animation-delay: 250ms; }
.hero .wordmark .glyph:nth-child(7) { animation-delay: 300ms; }
.hero .wordmark .dot {
  color: var(--accent);
  animation: glyph-in 700ms var(--ease-out) 360ms both;
}

@keyframes glyph-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero .lede {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--fg);
  max-width: 40rem;
  margin: 0;
  letter-spacing: -0.01em;
  animation: hero-in 900ms var(--ease-out) 200ms both;
}

.hero .lede-reel {
  position: relative;
  min-height: 4.5em;
  width: 100%;
  max-width: 40rem;
}
.hero .lede-reel .reel-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateX(60vw);
  filter: blur(10px);
  will-change: transform, opacity, filter;
  pointer-events: none;
}
.hero .lede-reel .reel-line.in {
  animation: reel-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero .lede-reel .reel-line.out {
  animation: reel-out 700ms cubic-bezier(0.64, 0, 0.78, 0) forwards;
}
@keyframes reel-in {
  from { opacity: 0; transform: translateX(60vw); filter: blur(10px); }
  to   { opacity: 1; transform: translateX(0);    filter: blur(0); }
}
@keyframes reel-out {
  from { opacity: 1; transform: translateX(0);     filter: blur(0); }
  to   { opacity: 0; transform: translateX(-60vw); filter: blur(10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero .lede-reel .reel-line {
    position: static;
    opacity: 1;
    transform: none;
    filter: none;
    display: block;
    margin: 0 0 0.6em;
  }
  .hero .lede-reel { min-height: 0; }
}

.hero .tagline {
  font-family: var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin: 0;
  animation: hero-in 900ms var(--ease-out) 120ms both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero .ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
  animation: hero-in 900ms var(--ease-out) 380ms both;
}

/* page hero (for /guide) — smaller, left-aligned */
.page-hero {
  padding: 0 0 2.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.75rem;
}

.page-hero .kicker {
  font-family: var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin: 0 0 0.5rem;
}

.page-hero .lede {
  color: var(--fg-muted);
  max-width: 42rem;
  font-size: var(--text-md);
  margin: 0;
}

/* ---------- box --------------------------------------------------- */

.box {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.box.lift:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.box > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: -0.35rem 0 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.box > header .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.2;
}

.box > header .was {
  color: var(--fg-subtle);
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 0.25em;
}

.box > header .fee-note {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  margin-right: 0.4em;
  text-transform: lowercase;
}

/* Per-edition tag colours on the pricing page. */
.box > header .tag.edition-essential {
  color: #2f9e72;
  background: color-mix(in srgb, #2f9e72 16%, transparent);
}
.box > header .tag.edition-standard {
  color: #c97a17;
  background: color-mix(in srgb, #c97a17 16%, transparent);
}
.box > header .tag.edition-pro {
  color: #7a5af8;
  background: color-mix(in srgb, #7a5af8 18%, transparent);
}

/* Pricing page: currency toggle + per-currency price visibility. */
.price { display: none; }
[data-currency="gbp"] .price-gbp,
[data-currency="eur"] .price-eur,
[data-currency="usd"] .price-usd { display: inline; }

.currency-toggle {
  display: inline-flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-raised);
  padding: 0.25rem;
}
.currency-toggle label {
  position: relative;
  cursor: pointer;
}
.currency-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.currency-toggle label > span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.currency-toggle input:checked + span {
  background: var(--accent);
  color: var(--accent-ink);
}
.currency-toggle input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.box > header .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  margin-right: 0.6rem;
  transform: translateY(-0.1em);
}

.box > header .meta {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
}

.box h1, .box h2, .box h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  color: var(--fg);
  line-height: 1.2;
}

.box h1 { font-size: var(--text-xl); }
.box h2 { font-size: var(--text-lg); }
.box h3 { font-size: var(--text-md); }

.box p {
  margin: 0 0 0.65rem;
  color: var(--fg);
}

.box p:last-child { margin-bottom: 0; }

.muted, .dim { color: var(--fg-muted); }
.faint { color: var(--fg-subtle); }

/* ---------- buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.1rem;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-1px);
  border-bottom-color: var(--border-strong);
}

.btn:active { transform: translateY(0); background: var(--surface-active); }

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-sm);
  border-color: var(--accent);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
  border-bottom-color: var(--accent-hover);
}

/* ---------- sections / grids -------------------------------------- */

.section {
  margin: 0 0 4rem;
}

.section.section--inverse {
  background: var(--fg);
  color: var(--bg);
  padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  border-radius: var(--radius-lg);
}
.section.section--inverse > .eyebrow {
  color: var(--bg);
  opacity: 0.95;
}
.section.section--inverse > h2 {
  color: var(--bg);
}
.section.section--inverse > .section-lede {
  color: color-mix(in srgb, var(--bg) 80%, var(--fg) 20%);
}
.section.section--inverse .steps > li {
  background: color-mix(in srgb, var(--fg) 86%, var(--bg) 14%);
  border-color: var(--accent);
  box-shadow: none;
}
.section.section--inverse .steps > li::before {
  color: var(--bg);
  background: var(--accent);
}
.section.section--inverse .steps > li h3 {
  color: var(--bg);
}
.section.section--inverse .steps > li p,
.section.section--inverse .steps > li ul,
.section.section--inverse .steps > li ol {
  color: color-mix(in srgb, var(--bg) 80%, var(--fg) 20%);
}

.section > .eyebrow {
  font-family: var(--font-mono);
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin: 0 0 0.6rem;
}

.section > h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}

.section > .section-lede {
  color: var(--fg-muted);
  max-width: 42rem;
  font-size: var(--text-md);
  margin: 0 0 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

/* Force a four-column layout at desktop widths. The default `auto-fit`
   rule lets cards reflow freely, which is fine for short card sets but
   produces uneven trailing rows when there are 7-8 cards. The USP grid
   on the home page wants explicit 4-up at desktop, falling back to 2-up
   on tablet and 1-up on mobile so cards don't get squeezed below their
   minimum readable width. */
.grid.grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 960px) {
  .grid.grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .grid.grid--four {
    grid-template-columns: 1fr;
  }
}

/* ---------- Release notes (download page) ------------------------- */
.releases {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.release-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.release-table th,
.release-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.release-table thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-subtle);
  border-bottom-color: var(--border-strong);
}

.release-table tbody tr:last-child td {
  border-bottom: none;
}

.release-build {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* The build number rides along after the version but shouldn't compete with
   it — the version is what a customer quotes back to you. */
.release-build__n {
  font-weight: 400;
  color: var(--fg-muted);
}

.release-date {
  color: var(--fg-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.release-changes ul {
  margin: 0;
  padding-left: 1.1rem;
}

.release-changes li + li {
  margin-top: 0.25rem;
}

.release-row--current {
  background: var(--surface-hover);
}

.release-row--current .release-build {
  color: var(--accent);
}

.release-build .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ---------- USP card ---------------------------------------------- */

.usp h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

.usp .usp-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.usp p {
  color: var(--fg-muted);
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
}

/* ---------- step list (how it works / guide) ---------------------- */

.steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 1.25rem 1.4rem 1.25rem 4.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.4rem;
  top: 1.2rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.steps > li h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0 0 0.4rem;
}

.steps > li p {
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
}

.steps > li p:last-child { margin-bottom: 0; }

.steps > li ul,
.steps > li ol {
  color: var(--fg-muted);
  margin: 0.4rem 0 0.4rem 1.1rem;
  padding: 0;
}

.steps > li li { margin: 0.2rem 0; }

/* ---------- code -------------------------------------------------- */

pre, code, kbd {
  font-family: var(--font-mono);
  font-feature-settings: "ss01";
}

p code, li code, dd code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.05rem 0.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.92em;
  color: var(--fg);
}

pre {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
  overflow-x: auto;
  color: var(--fg);
  font-size: 0.92em;
  line-height: 1.5;
}

kbd {
  font-size: var(--text-xs);
  color: var(--fg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: var(--radius-sm);
  padding: 0.08rem 0.4rem;
}

/* ---------- notice / callout -------------------------------------- */

.notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  margin: 0.75rem 0;
}

.notice.info {
  color: var(--info);
  background: var(--info-soft);
  border-color: color-mix(in srgb, var(--info) 30%, transparent);
}

.notice.warn {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 35%, transparent);
}

.notice.error {
  color: var(--error);
  background: var(--error-soft);
  border-color: color-mix(in srgb, var(--error) 35%, transparent);
}

/* ---------- TOC (guide page) -------------------------------------- */

.toc {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast) var(--ease-out);
}

.toc li:hover { background: var(--surface-hover); }

.toc li .num {
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}

.toc li a {
  color: var(--fg);
  border: none;
}

.toc li a:hover { color: var(--accent); }

/* ---------- guide section anchors --------------------------------- */

.guide-section {
  margin: 0 0 4rem;
  scroll-margin-top: 5rem;
}

.guide-section > .eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  margin: 0 0 0.5rem;
}

.guide-section > h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 50;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

.guide-section > h2 a {
  color: inherit;
  border: none;
  position: relative;
}

.guide-section > h2 a::after {
  content: "#";
  position: absolute;
  right: -1.25rem;
  top: 0;
  color: var(--fg-faint);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  font-family: var(--font-mono);
}

.guide-section > h2 a:hover::after { opacity: 1; }

.guide-section > p,
.guide-section > ul,
.guide-section > ol {
  color: var(--fg);
  max-width: 44rem;
  line-height: 1.65;
}

.guide-section > p { margin: 0 0 0.85rem; }

.guide-section h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 1.5rem 0 0.5rem;
}

/* ---------- host card (deployment options) ------------------------ */

.host-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}

.host-card {
  display: block;
  padding: 1.1rem 1.3rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--fg);
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out);
  border-bottom: 1px solid var(--border);
}

.host-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--fg);
  border-bottom-color: var(--border-strong);
}

.host-card .host-name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-weight: 500;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.host-card .host-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
}

.host-card .host-tag.recommended { color: var(--accent); }

.host-card p {
  color: var(--fg-muted);
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ---------- terminal-block (commands) ----------------------------- */

.term {
  position: relative;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 0.75rem 0;
  overflow: hidden;
}

.term .term-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term pre {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0.85rem 1rem;
}

/* ---------- footer ------------------------------------------------ */

.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr auto;
  align-items: end;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.site-footer .col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.site-footer .col p { margin: 0 0 0.25rem; }

.site-footer .col a { color: var(--fg-muted); }
.site-footer .col a:hover { color: var(--accent); }

.site-footer .col.brand {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---------- theme toggle ----------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  transition:
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur) var(--ease-out);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--fg);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur) var(--ease-out);
}

.theme-toggle:active svg {
  transform: rotate(30deg) scale(0.9);
}

/* No light/dark axis — the eye-icon button cycles through every theme
   in registration order, identical to the app's `cycleTheme()`. */

/* ---------- accessibility / reduced motion ----------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  body::before { display: none; }
}

@media (max-width: 720px) {
  .screen { width: calc(100vw - 1.5rem); padding: 0.5rem 0 3rem; }
  .titlebar { flex-wrap: wrap; gap: 0.5rem; }
  .titlebar nav { gap: 0.5rem; flex-wrap: wrap; }
  .hero { padding: 1.75rem 0 1.5rem; }
  .site-footer { grid-template-columns: 1fr; }
  .steps > li { padding: 1rem 1.1rem 1.1rem; }
  .steps > li::before {
    position: static;
    display: inline-block;
    margin: 0 0 0.5rem;
  }
}

/* ---------- sign-in panel ----------------------------------------- */

.signin-panel {
  margin: 1.25rem auto 0;
  max-width: 30rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  text-align: center;
  animation: hero-in 900ms var(--ease-out) 380ms both;
}

.signin-panel .signin-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 0.5rem;
}

.signin-panel .signin-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--fg);
}

.signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.signin-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.signin-btn .g-mark,
.signin-btn .d-mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* Stack the Dropbox + Google buttons vertically inside the home-page
   panel and centre them. The base .signin-btn rule is `inline-flex` so
   it can sit next to text elsewhere; inside the panel we want each
   button to occupy its own line with shared horizontal centring. */
.signin-panel .signin-btn {
  display: flex;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.signin-panel .signin-btn + .signin-btn {
  margin-top: 0.55rem;
}

.signin-panel .signin-foot {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  margin: 1rem 0 0;
  line-height: 1.5;
}

.signin-panel .signin-alt {
  margin-top: 0.5rem;
}

.signin-panel .signin-alt a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

/* User-guide screenshot frame. Slightly muted border + soft shadow so
   the image reads as a UI capture without dominating the prose. */
.screenshot {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot figcaption {
  padding: 0.55rem 0.85rem 0.7rem;
  font-size: var(--text-xs);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
}

/* Two CTA variants live in the DOM side by side; the head bootstrap
   adds .is-signed-in to <html> when a stored session exists, swapping
   which panel renders. Default (no class) = guest. */
.signin-panel--user { display: none; }
html.is-signed-in .signin-panel--guest { display: none; }
html.is-signed-in .signin-panel--user { display: block; }

/* "Open Mastrly" pill — same shape as the Google button but accent-coloured
   and without the Google glyph, so the affordance reads as continue-into-app
   rather than start-fresh-sign-in. */
.signin-btn--open {
  background: var(--accent, #ff6a1a);
  color: var(--accent-ink, #fff);
  border-color: transparent;
}
.signin-btn--open:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* ---------- official logo ----------------------------------------- */

/* Brand mark in the titlebar — small, replaces the text wordmark.
   The decorative bullet that prefixed the text "mastrly" is hidden. */
.titlebar .brand:has(.brand-mark) {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.titlebar .brand:has(.brand-mark)::before {
  display: none;
}

.brand-mark {
  display: block;
  height: 1.6rem;
  width: auto;
}

/* Hero wordmark — the large image replaces the per-glyph text
   animation. Drop the inline-flex/baseline rules from the text version. */
.hero .wordmark:has(.wordmark-img) {
  display: block;
  line-height: 0;
  letter-spacing: 0;
  font-size: 0;
  animation: hero-in 900ms var(--ease-out) 80ms both;
}

.wordmark-img {
  display: block;
  margin: 0 auto;
  width: clamp(16rem, 44vw, 26rem);
  height: auto;
}

/* Theme-conditional visibility for the wordmark:
   - mastrly-logo-dark.svg  → dark ink on light bg  (use in light themes)
   - mastrly-logo-light.svg → light ink on dark bg  (use in dark themes)
   `data-tone` is set on <html> by the bootstrap script alongside data-theme. */
.on-light { display: block; }
.on-dark  { display: none; }

[data-tone="dark"] .on-light { display: none; }
[data-tone="dark"] .on-dark  { display: block; }
