/* ============================================================
   Quillhollow Website — Global Styles
   Palette pulled from the app's CSS custom properties.
   ============================================================ */

/* --- Google Font import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* --- CSS Custom Properties (mirrors the app's Default theme) --- */
/* Variable names are kept historical — same trick the app uses, where
   --color-gold actually holds the blue accent. See themeColors.ts:17-32. */
:root {
  /* palette */
  --color-cream:       #ebebeb;  /* body background — matches THEME_DEFAULTS.background */
  --color-parchment:   #d6d6d6;  /* sidebar / inset surface — matches THEME_DEFAULTS.sidebar */
  --color-parchment-dk:#c0c0c0;  /* darker grey, used for subtle borders */
  --color-ink:         #000000;  /* body text — matches TEXT_STYLE_DEFAULTS.bodyColor */
  --color-ink-light:   #1a1a1a;  /* hover / active text */
  --color-ink-muted:   #666666;  /* muted text (site adaptation — app uses #000000 but
                                    long-form pages need a softer secondary tone) */
  --color-accent:      #0078ff;  /* blue accent — matches THEME_DEFAULTS.accent */
  --color-white:       #ffffff;  /* editor / card surface — matches THEME_DEFAULTS.editor */
  --color-border:      #000000;  /* hard border — matches THEME_DEFAULTS.borders */
  --color-sage:        #4a6e3f;  /* retained only for the "up to date" version banner */
  --color-blue:        #0078ff;
  --color-gold:        #0078ff;  /* aliased to accent — same name trick as the app */

  /* surfaces */
  --surface-base:    var(--color-cream);   /* body */
  --surface-card:    var(--color-white);   /* cards on body */
  --surface-raised:  #ffffff;
  --surface-inset:   #d6d6d6;

  /* typography */
  --font-ui: 'Libre Baskerville', Georgia, serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;

  /* layout */
  --max-width: 960px;
  --nav-height: 60px;

  /* borders */
  --radius-sm: 4px;
  --radius-md: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
html {
  overflow-y: scroll; /* always show scrollbar to prevent layout shift */
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  color: var(--color-ink);
  background-color: var(--surface-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

a {
  color: var(--color-ink-light);
  text-decoration: underline;
  text-decoration-color: var(--color-ink-muted);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem;  }
h3 { font-size: 1.25rem; }

/* --- Layout helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-2xl) 0;
}

.text-center { text-align: center; }
.text-muted  { color: var(--color-ink-muted); }
.text-small  { font-size: 0.875rem; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-base);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.nav-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-ink);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.65em 1.5em;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.02em;
}

/* Primary CTA — glossy blue gradient with a subtle outer glow.
   `.btn-sage` (below) is the same treatment under a legacy alias. */
.btn-primary,
.btn-sage {
  background: linear-gradient(160deg, #3a96ff 0%, #0078ff 50%, #0060d0 100%);
  border-color: #0060d0;
  color: var(--color-white);
  box-shadow: 0 0 12px rgba(0, 120, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover,
.btn-sage:hover {
  background: linear-gradient(160deg, #5aa8ff 0%, #1f88ff 50%, #0070e0 100%);
  border-color: #0078ff;
  color: var(--color-white);
  box-shadow: 0 0 20px rgba(0, 120, 255, 0.65), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-large {
  font-size: 1.15rem;
  padding: 0.8em 2.5em;
}

/* Coming soon overlay: blocks clicks, dims content, shows label */
.coming-soon-wrap {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.coming-soon-wrap > .pricing-buy-row {
  margin: 0;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(235, 235, 235, 0.7);
  cursor: default;
}

.coming-soon-overlay::after {
  content: 'Coming Soon';
  position: absolute;
  bottom: 1.2em;
  left: 0;
  right: 0;
  background: var(--color-ink-muted);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5em 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.btn-small {
  font-size: 0.8rem;
  padding: 0.4em 1em;
}

/* Steam store CTA — dark Steam-branded button (logo glyph + label).
   Used in the homepage header beside the blue Download primary; the
   dark treatment makes it read as the off-site "get it on Steam"
   option rather than competing with the in-house Download CTA. Steam
   brand palette: #1b2838 panel, #2a475e hover, #c7d5e0 light text
   (the #66c0f4 light-blue accent read as too loud on hover). Fixed
   brand colours are fine on the
   marketing site (the no-fixed-colour-signaling rule is app-only). */
.btn-steam {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #1b2838;
  border-color: #1b2838;
  color: #c7d5e0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-steam:hover {
  background: #2a475e;
  border-color: #2a475e; /* track the bg so no bright border ring appears */
  color: #fff;
}

/* Logo glyph sized to the label; `currentColor` so it follows the
   text colour through the hover transition. */
.btn-steam-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Google Play store CTA — mirrors .btn-steam's structure so the two
   store buttons read as a matched pair, distinguished by brand colour.
   Google Play green (#01875f) sets it apart from Steam's blue-grey
   without using the multi-colour Play triangle (which would break the
   currentColor hover treatment shared with Steam). */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #01875f;
  border-color: #01875f;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-play:hover {
  background: #019e6f;
  border-color: #019e6f; /* track the bg so no bright border ring appears */
  color: #fff;
}

.btn-play-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--surface-card);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

/* --- Hero section --- */
.hero {
  text-align: center;
  padding: 4.25rem 0 var(--space-2xl);
}

.hero-logo {
  max-width: 400px;
  margin: 0 auto var(--space-lg);
}

.hero-logo-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: 0 auto var(--space-lg);
  line-height: 0;
}

.hero-logo-icon {
  height: 128px;
  width: auto;
}

.hero-logo-text {
  height: 75px;
  width: auto;
}

@media (max-width: 768px) {
  .hero-logo-split {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-logo-icon {
    height: 80px;
  }

  .hero-logo-text {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 0.5rem;
    padding-bottom: var(--space-md);
  }

  .hero-logo-split {
    margin: var(--space-md) auto 1.5rem;
    gap: var(--space-xs);
  }

  .hero-logo-icon {
    height: 50px;
  }

  .hero-logo-text {
    height: 28px;
  }

  .card-fan {
    margin-top: 0;
    margin-bottom: var(--space-sm);
  }

  .card-fan-stage {
    position: relative;
    height: auto !important;
    margin: 0;
  }

  .fan-card {
    position: relative !important;
  }

  .fan-card-screenshot {
    position: relative !important;
    width: 100%;
    height: auto;
    left: auto;
    bottom: auto;
    margin-left: 0;
    display: none;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.2);
    filter: none !important;
  }

  .fan-card-screenshot.fan-active {
    display: block;
  }

  .fan-card-screenshot img {
    width: 100%;
    height: auto;
  }

  /* Hide the overlay on mobile since we just show/hide */
  .fan-card-screenshot::after {
    display: none;
  }

  .fan-dots {
    margin-top: var(--space-sm);
  }
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  font-style: italic;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* --- Card Fan --- */
.card-fan {
  position: relative;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.card-fan-stage {
  position: relative;
  height: 460px;
  /* Extra horizontal room for the fanned-out cards */
  margin: 0 var(--space-xl);
}

/* Shared card base */
.fan-card {
  position: absolute;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease, box-shadow 0.5s ease, filter 0.5s ease;
  transform-origin: center bottom;
}

/* Screenshot cards — sized like app windows */
.fan-card-screenshot {
  width: 680px;
  height: 420px;
  left: 50%;
  bottom: 0;
  margin-left: -340px; /* center horizontally */
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.fan-card-screenshot .screenshot-placeholder {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: var(--radius-md);
  min-height: unset;
}

.fan-card-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Fan positions for the 3 screenshot cards (behind the icon).
   Card at data-index matching the active dot comes to top (z-index 3),
   the others fan left/right behind it. */
.fan-card-screenshot[data-index="0"] { z-index: 3; transform: translate(0, 0); }
.fan-card-screenshot[data-index="1"] { z-index: 2; transform: translate(60px, 0); }
.fan-card-screenshot[data-index="2"] { z-index: 1; transform: translate(-60px, 0); }

/* When a card is "active" it sits front-center */
.fan-card-screenshot.fan-active   { z-index: 3; transform: translate(0, 0); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); border: 2px solid var(--color-border); }
/* Neighbours fan left and right */
.fan-card-screenshot.fan-left     { z-index: 2; transform: translate(-80px, 0); }
.fan-card-screenshot.fan-right    { z-index: 2; transform: translate(80px, 0); }
/* Far neighbours (same side, further out) */
.fan-card-screenshot.fan-far-left { z-index: 1; transform: translate(-140px, 0); }
.fan-card-screenshot.fan-far-right{ z-index: 1; transform: translate(140px, 0); }

/* Icon card — floats above everything */
.fan-card-icon {
  z-index: 10;
  width: 180px;
  height: 180px;
  left: 50%;
  top: 0;
  margin-left: -90px;
  background: var(--surface-base);
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fan-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

/* Dot indicators */
.fan-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.fan-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--color-ink-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}

.fan-dot.active,
.fan-dot:hover {
  background: var(--color-ink);
  border-color: var(--color-ink);
}

/* Dim non-active cards with a tinted overlay */
.fan-card-screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  opacity: 0.8;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.fan-card-screenshot.fan-active::after {
  opacity: 0;
}

.fan-card-screenshot.fan-left,
.fan-card-screenshot.fan-right {
  border-color: rgba(0, 0, 0, 0.6);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.fan-card-screenshot.fan-left::after,
.fan-card-screenshot.fan-right::after {
  opacity: 0.6;
}

.fan-card-screenshot.fan-left,
.fan-card-screenshot.fan-right {
  filter: blur(1.5px);
}

.fan-card-screenshot.fan-far-left,
.fan-card-screenshot.fan-far-right {
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.fan-card-screenshot.fan-far-left::after,
.fan-card-screenshot.fan-far-right::after {
  opacity: 0.8;
}

.fan-card-screenshot.fan-far-left,
.fan-card-screenshot.fan-far-right {
  filter: blur(3px);
}

/* Clickable screenshot cards */
.fan-card-screenshot { cursor: pointer; }
.fan-card-screenshot.fan-active { cursor: default; }

/* --- Learn More: feature sections --- */
.feature-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.feature-section:last-of-type {
  border-bottom: none;
}

.feature-section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.feature-section-header p {
  color: var(--color-ink-muted);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
}

.feature-section-label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.feature-bullets {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
}

.feature-bullets li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
  font-size: 0.95rem;
}

.feature-bullets li:last-child {
  border-bottom: none;
}

.feature-bullets strong {
  color: var(--color-ink);
}

/* App-level feature pills (horizontal) */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.app-feature-item {
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
}

.app-feature-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.app-feature-item p {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
}

/* Screenshot placeholder within feature sections */
.feature-screenshot {
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 2px solid var(--color-border);
}

.feature-screenshot img {
  width: 100%;
  display: block;
}

.feature-screenshot .screenshot-placeholder {
  margin: 0;
  min-height: 200px;
}

/* --- Mini card fan (for learn-more sections) --- */
.mini-fan {
  position: relative;
  max-width: 540px;
  margin: var(--space-lg) auto 0;
}

.mini-fan-stage {
  position: relative;
  height: 320px;
  margin: 0 var(--space-lg);
}

.mini-fan .fan-card-screenshot {
  width: 480px;
  height: 300px;
  margin-left: -240px;
}

.fan-caption {
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
  min-height: 1.5em;
  transition: opacity 0.3s ease;
}

.mini-fan .fan-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .mini-fan-stage {
    height: 220px;
    margin: 0;
  }

  .mini-fan .fan-card-screenshot {
    width: 280px;
    height: 180px;
    margin-left: -140px;
  }
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: var(--space-lg);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(235, 235, 235, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--color-ink);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1001;
}

.lightbox-btn:hover {
  background: var(--color-parchment);
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }

/* Make fan screenshots clickable */
.mini-fan .fan-card-screenshot.fan-active img {
  cursor: zoom-in;
}

/* --- Screenshot placeholder --- */
.screenshot-placeholder {
  background: var(--surface-inset);
  border: 2px dashed var(--color-parchment-dk);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  font-style: italic;
  min-height: 300px;
  margin: var(--space-lg) 0;
}

/* --- Features grid (canvas-style cards with edges) --- */
.features-section {
  position: relative;
  padding-bottom: var(--space-lg);
}

/* SVG edge layer — sits behind the cards */
.features-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.features-edges line {
  stroke-width: 2;
  stroke-linecap: round;
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

/* Card styling — mimics the app's planning cards */
.feature-card {
  text-align: left;
  padding: 0;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Colored top bar — like the app's card accent */
.feature-card-header {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.feature-card-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--color-ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Per-card accent colors (from the app's card type palette) */
.feature-card[data-color="gold"]   .feature-card-header { background: #b5893a; }
.feature-card[data-color="blue"]   .feature-card-header { background: #6b7fa8; }
.feature-card[data-color="green"]  .feature-card-header { background: #7a8c5e; }
.feature-card[data-color="copper"] .feature-card-header { background: #a07050; }
.feature-card[data-color="purple"] .feature-card-header { background: #7a6b8a; }
.feature-card[data-color="rose"]   .feature-card-header { background: #a05878; }

/* Edge colors match the card they connect from */
.edge-gold   { stroke: #b5893a; }
.edge-blue   { stroke: #6b7fa8; }
.edge-green  { stroke: #7a8c5e; }
.edge-copper { stroke: #a07050; }
.edge-purple { stroke: #7a6b8a; }
.edge-rose   { stroke: #a05878; }

/* Edge dot at connection point */
.edge-dot {
  r: 4;
  stroke-width: 0;
}

/* --- Pricing --- */
.pricing-hero {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.pricing-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto var(--space-md);
}

.pricing-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.pricing-card {
  position: relative;
  overflow: hidden;
}

.pricing-banner {
  position: absolute;
  top: 20px;
  left: -35px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 3em;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.pricing-price {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  display: flex;
  justify-content: center;
}

/* Shared row: steam widget + buy button stretch to the same height */
.pricing-buy-row {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Button fills the row width and centers text when stretched */
.pricing-buy-row .btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steam-style discount widget: accent badge + stacked prices.
   Inherits the page's Libre Baskerville serif so the widget reads
   as part of the page, not as a foreign Steam-store element. */
.pricing-steam {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-ui);
  line-height: 1;
}

.pricing-discount {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-prices {
  flex: 1; /* fill remaining width after the discount badge */
  background: var(--color-ink);
  padding: 0.8em 0.9em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25em;
}

.pricing-original {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-ink-muted);
  text-decoration: line-through;
}

.pricing-final {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
}

.pricing-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .pricing-details {
    grid-template-columns: 1fr;
  }
}

/* --- Page header (for subpages) --- */
.page-header {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-xl);
}

.page-header p {
  color: var(--color-ink-muted);
  margin-top: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Version status banner --- */
.version-status {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.version-status.up-to-date {
  background: rgba(86, 127, 74, 0.12);
  border: 1px solid var(--color-sage);
  color: var(--color-sage);
}

.version-status.update-available {
  background: rgba(0, 120, 255, 0.08);
  border: 1px solid var(--color-accent);
  color: var(--color-ink);
}

.version-status.unknown {
  background: var(--surface-inset);
  border: 1px solid var(--color-parchment-dk);
  color: var(--color-ink-muted);
}

/* --- Download cards --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.download-card {
  text-align: center;
}

.download-card h3 {
  margin-bottom: var(--space-sm);
}

.download-card .btn {
  margin-top: var(--space-md);
}

/* --- Form styles --- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  padding: 0.6em 0.8em;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-border);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-card {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Docs --- */
.docs-content {
  max-width: 700px;
  margin: 0 auto;
}

.docs-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.docs-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.docs-content p,
.docs-content ul,
.docs-content ol {
  margin-bottom: var(--space-md);
}

.docs-content ul,
.docs-content ol {
  padding-left: var(--space-lg);
}

.docs-content li {
  margin-bottom: var(--space-xs);
}

.docs-content code {
  font-family: var(--font-mono);
  background: var(--surface-inset);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
}

/* --- Footer ---
   Sits on the same lighter grey band as the screenshot section,
   giving the page a clean top-and-tail (lighter band at top behind
   the screenshots, lighter band at bottom for the footer). */
.footer {
  background: #f5f5f5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-ink-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  list-style: none;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--color-ink-muted);
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--color-ink);
}

.footer-wta {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-wta img {
  height: 32px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.footer-wta:hover img {
  opacity: 1;
}

/* Social icon row — sits between the internal-page link list and the
   WTA logo. Single icon today (Bluesky); add <li>s to the same list
   for more later. Icons inherit currentColor via SVG fill so the
   color follows the same muted→ink hover transition the link row
   uses, keeping the two rows visually unified. */
.footer-social {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
  gap: var(--space-md);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  /* Extra padding so the touch target reaches ~36px even though the
     visible glyph is only 20px — keeps it tappable on mobile. */
  padding: var(--space-xs);
  transition: color 0.15s;
}

.footer-social a:hover {
  color: var(--color-ink);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.25rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface-base);
    flex-direction: column;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    gap: var(--space-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .card-fan-stage {
    height: 280px;
    margin: 0;
  }

  .fan-card-screenshot {
    width: 300px;
    height: 200px;
    margin-left: -150px;
  }

  .fan-card-icon {
    width: 120px;
    height: 120px;
    margin-left: -60px;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Hero (Steam-inspired) — two-column featured screenshots +
   stacked Demo/Buy banners. Replaces the centered card-fan
   hero from the earlier design.

   Layout: featured screenshot + thumbnail strip on the left
   (~62%), demo banner above buy banner on the right (~38%).
   Stacks vertically below 880px.
   ============================================================ */
.hero-steam {
  /* Top padding matches the title row's bottom margin so the icon
     has equal breathing room above and below. */
  padding: var(--space-lg) 0 var(--space-2xl);
}

/* Full-bleed band behind the screenshots. Sits between the title
   row and the pitch list. Slightly lighter than the body grey
   (#ebebeb) so the screenshot reads as elevated on a paler stage.
   Thin top + bottom borders match the footer band, giving the page
   matched edges at every band boundary. */
.hero-screenshot-band {
  background: #f5f5f5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: var(--space-lg) 0;
  margin-bottom: var(--space-lg);
}

/* Inside the band, drop the card-strip's own bottom margin —
   the band's padding handles the spacing below the screenshot. */
.hero-screenshot-band .card-strip {
  margin-bottom: 0;
}

/* Slightly wider container so the two columns can breathe.
   Overrides the global --max-width: 960px just for this section. */
.hero-steam .container {
  max-width: 1100px;
}

.hero-steam-header {
  /* Match the actions stack's bottom margin so the banners have
     equal breathing room above and below. */
  margin-bottom: var(--space-xl);
}

.hero-steam-header h1 {
  /* Wordmark — sits below the screenshots as the page's main
     branding moment. Larger + tighter letter-spacing than a plain
     heading. Libre Baskerville bold from the font import. */
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0 0 var(--space-md);
}

/* Title row: app icon on the left, Download CTA on the right.
   Thin bottom border anchors the header as a defined bar; padding
   below sits above the border, margin below sits beneath it so
   the icon has equal vertical breathing above and the screenshot
   band has equal breathing below. */
.hero-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  /* Allow the action group to drop to its own line when it stops
     fitting, rather than compressing the title. Pairs with the
     no-shrink h1 rule below — see that comment. */
  flex-wrap: wrap;
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* The "Quillhollow" wordmark must never compress: keep it on one line at
   full size. `flex: 1 0 auto` lets it GROW to fill the free space (pushing
   the store group + hamburger to the right edge) but never SHRINK below its
   text (flex-shrink 0), so it can't be squeezed; `white-space: nowrap`
   stops the word from breaking. With `flex-wrap: wrap` on the row, the
   store group wraps to a second line when it no longer fits. The
   narrow-viewport block below tunes the wordmark size + the wrap. */
.hero-title-row h1 {
  flex: 1 0 auto;
  white-space: nowrap;
}

.hero-title-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

/* Download CTA — leads the store group. No `margin-left: auto`: the
   growing h1 owns the right-push now, and an auto margin here would shove
   Download away from Steam/Play inside the store group. Sized smaller than
   the page's primary CTAs so it reads as header chrome. */
.hero-title-cta {
  flex: 0 0 auto;
  font-size: 0.85rem;
  padding: 0.5em 1.2em;
  /* inline-flex (rather than the base .btn inline-block) so the leading
     download glyph and label align + centre the same way the Steam/Play
     buttons' glyph+label do. */
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* Download glyph — sized to the label, `currentColor` to match the
   Steam/Play icon treatment. */
.btn-download-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Steam header CTA — matches the Download CTA's header-chrome sizing so
   the two sit at the same height. No `margin-left: auto`: the wrapper
   (.hero-title-actions) owns the right-push, and this button trails the
   Download CTA (sits to its right), so it stays at source order. Slightly
   tighter left padding accounts for the leading logo glyph. */
.hero-title-steam {
  flex: 0 0 auto;
  font-size: 0.85rem;
  padding: 0.5em 1.2em 0.5em 1em;
}

/* Google Play header CTA — same header-chrome sizing as the Steam CTA so
   the store buttons sit at matching height. Trails Steam in source order,
   so no margin reset is needed (the wrapper owns the right-push). */
.hero-title-play {
  flex: 0 0 auto;
  font-size: 0.85rem;
  padding: 0.5em 1.2em 0.5em 1em;
}

/* Uniform header-CTA sizing: Download, Steam, and Google Play all share a
   min-width so the three render at identical width regardless of label
   length, with content centred in the box. The widest label
   ("Google Play" + glyph) sets the floor — if a future label exceeds it,
   bump min-width so no button outgrows the others. Placed AFTER the three
   individual rules so it wins the cascade for centring. Desktop only;
   the <=768px block already makes them full-width rows. */
.hero-title-cta,
.hero-title-steam,
.hero-title-play {
  min-width: 9.5rem;
  text-align: center;      /* centres the inline-block Download label */
  justify-content: center; /* centres the inline-flex Steam/Play glyph+label */
}

/* Icon-as-home-link wrapper. No underline, subtle opacity hover
   so it reads as clickable without shouting. */
.hero-title-icon-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.hero-title-icon-link:hover {
  opacity: 0.75;
}

.hero-steam-subtitle {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
  margin: 0;
}

/* Pitch definition list — three "label / content" pairs beneath
   the title. Uses the same visual pattern as the punch list below
   the buy banner: bold label on its own line, paragraph underneath. */
.hero-pitch {
  margin: var(--space-md) 0 0;
}

.hero-pitch dt {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 var(--space-xs);
}

.hero-pitch dd {
  margin: 0 0 var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink);
  max-width: 760px;
}

.hero-pitch dd:last-of-type {
  margin-bottom: 0;
}



/* --- Left column: featured + thumb strip --- */
/* `.card-strip` overrides the `.card-fan` rules so the existing
   fan markup (with .fan-card-screenshot / .fan-dot) becomes a
   featured-image + thumbnail-strip pattern instead. The JS in
   main.js (initFan) keeps working as-is. */
.card-strip {
  position: relative;
  /* Cancel out the centred max-width from .card-fan */
  max-width: none;
  margin: 0 0 var(--space-lg);
}

.card-strip-stage {
  /* Featured area: full column width. Aspect ratio matches the
     current screenshots (2560×1494, ~1.71:1). If captures move to
     standard 16:9 later, change this to `16 / 9`. */
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 1494;
  height: auto;
  margin: 0;
  background: var(--color-white);
  /* Visible card edge — the screenshots have white baked-in margins,
     so a low-contrast border gets lost where it meets that white.
     Slightly darker line + deeper shadow lifts the screenshot off
     the grey body background. */
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

/* Reset all fan-card transforms / sizing inside a strip stage —
   each card just fills the stage when active, hidden otherwise. */
.card-strip .fan-card-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  left: auto;
  bottom: auto;
  margin-left: 0;
  transform: none !important;
  filter: none !important;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  cursor: zoom-in;
}

.card-strip .fan-card-screenshot.fan-active {
  opacity: 1;
  pointer-events: auto;
  transform: none !important;
  box-shadow: none;
  border: 0;
}

/* The fan-card ::after dimming overlay isn't needed in strip mode —
   inactive cards are hidden entirely, not dimmed. */
.card-strip .fan-card-screenshot::after {
  display: none;
}

.card-strip .fan-card-screenshot img {
  width: 100%;
  height: 100%;
  /* `contain` preserves aspect ratio of the existing screenshots
     even if they're not 16:9. New captures should be 16:9. */
  object-fit: contain;
  background: var(--color-white);
  border-radius: 0;
}

/* Caption below the featured image — picks up data-caption text
   via initFan(). Reserved height so the layout doesn't jump. */
.card-strip-caption {
  text-align: center;
  margin: var(--space-sm) 0 var(--space-md);
  min-height: 1.4em;
  font-style: italic;
}

/* --- Thumbnail strip (replaces .fan-dot row) --- */
.card-strip-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  /* Top margin keeps the active thumb's outline from butting up
     against the featured screenshot above. */
  margin: var(--space-md) 0 0;
}

/* Override the dot styling from .fan-dot — same JS, different look.
   No outer border on the button; the active state shows up as an
   outline around just the image, not the whole button+label block. */
.card-strip .fan-dot {
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0;
  border: 0;
}

.card-strip-thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.card-strip-thumb img {
  width: 100%;
  aspect-ratio: 2560 / 1494;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  /* Same edge treatment as the featured screenshot — visible 1px
     line + a scaled-down version of the featured drop shadow. */
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: block;
}

.card-strip-thumb span {
  display: block;
  text-align: center;
  padding-top: var(--space-xs);
}

.card-strip-thumb:hover {
  color: var(--color-ink);
}

.card-strip-thumb:hover img {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.card-strip .fan-dot.active .card-strip-thumb,
.card-strip-thumb.active {
  color: var(--color-ink);
}

/* Active thumbnail: a clear blue ring around the image only,
   not around the label. Outline (not border) so there's no layout
   shift between active and inactive states. */
.card-strip .fan-dot.active img {
  outline: 3px solid var(--color-accent);
  outline-offset: 0;
}

/* --- Action banners stack (demo above buy) ---
   Sits below the screenshots. Stretches to the container width
   so the banners visually match the screenshot strip above.
   Grid with `auto-rows: 1fr` enforces matching heights between
   the two banners even when their content differs slightly. */
.hero-actions-stack {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--space-md);
  margin: 0 0 var(--space-xl);
}

/* Within each banner, centre the info + action vertically so the
   shorter banner (if content differs) doesn't leave a hard top-
   aligned gap below. */
.hero-banner {
  justify-content: center;
}

/* Banner = white panel, two-row layout:
     top row = info (heading + description)
     bottom row = action (supplementary content + CTA button)
   Same shape on both demo and buy so they read as standardized.
   Subtle hover deepens the shadow + border to signal "this is the
   clickable area" without animating (no transform = no jitter). */
.hero-banner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-banner:hover {
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hero-banner-info {
  /* Top row — just block content (h2 + p or h2 + ul). */
}

.hero-banner-action {
  /* Bottom row — supplementary content on the left, CTA on the right.
     Demo: foot text on left, button on right.
     Buy:  discount widget + prices on left, button on right. */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.hero-banner h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-sm);
}

.hero-banner p {
  margin: 0;
  font-size: 0.95rem;
}

.hero-banner-cta {
  /* inline-flex so a leading platform glyph + label sit on one line and
     stay centred together as a unit (text-align alone centres inline
     text, not flex children — Steam/Play are inline-flex and were
     left-aligning their glyph+label without this). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  /* Fixed min-width so the CTA buttons render at identical widths across
     all banners regardless of label length. Must comfortably clear the
     widest icon+label ("Download" / "Google Play" measured ~243px); 252px
     gives headroom so every label sits at the min and none grows past it
     (at 240px "Steam" hit the floor while the others nudged to 243). */
  min-width: 252px;
  text-align: center;
  white-space: nowrap;
}

/* Leading platform glyph inside a download CTA (the Windows mark on
   download.html; the Steam/Play icons carry matching sizing of their
   own). Sized to the label, currentColor so it follows the button text. */
.hero-banner-cta svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

/* Install-warning callout — single banner above the download buttons
   on download.html. Accent left-stripe + soft accent-tinted glow
   mirrors the homepage Buy banner's treatment so it reads as a
   peer-level "this matters" callout without color-coded alarm. */
.install-warning-banner {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--color-accent) 14%, transparent);
}

.install-warning-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.install-warning-banner a {
  color: var(--color-accent);
  text-decoration: underline;
}

.hero-banner-foot {
  margin: 0;
}

/* Buy banner action: pull the discount widget right against the
   button instead of pushing them to opposite ends. Reads as a
   single "pay this much, with this button" unit on the right. */
.hero-banner-buy .hero-banner-action {
  justify-content: flex-end;
}

/* Subtle differentiation on the Buy banner so it reads as "the paid
   action" without shouting. Accent-color left stripe + a quietly
   stronger accent-tinted glow. Uses var(--color-accent) so the
   differentiation survives any future theme palette change. */
.hero-banner-buy {
  border-left: 3px solid var(--color-accent);
  box-shadow:
    0 2px 12px color-mix(in srgb, var(--color-accent) 14%, transparent),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-banner-buy:hover {
  box-shadow:
    0 4px 20px color-mix(in srgb, var(--color-accent) 22%, transparent),
    0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Trust list under the Buy heading, on the left side of the buy
   banner. Two-column grid so all four items fit on one row pair. */
.hero-banner-trust {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs) var(--space-md);
}

.hero-banner-trust li {
  position: relative;
  padding-left: 1em;
}

.hero-banner-trust li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* --- Mobile: narrow phones get the action row stacked
       vertically (supplementary content above button) so the
       button has room to breathe. --- */
@media (max-width: 880px) {
  .hero-steam-header h1 {
    font-size: 2rem;
  }
}


/* Below 480px the 4-thumb strip gets too cramped horizontally
   (and the previous 100px-minimum forced page-wide overflow on
   small phones). Switch to a 2x2 grid — bigger thumbs, no scroll. */
@media (max-width: 480px) {
  .card-strip-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Below 768px the action row stacks vertically — foot text on
   top, CTA below — so the button + foot text never compete for
   horizontal space inside the banner. Also drop the CTA's
   min-width and the btn-large horizontal padding so the button
   shrinks to fit narrow phones without overflowing. */
@media (max-width: 768px) {
  .hero-banner-action,
  .hero-banner-buy .coming-soon-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner-cta {
    min-width: 0;
    padding: 0.7em 1.5em;
  }
}

/* --- Punch list (Steam-style "About") --- sits below the buy
       banner for visitors who scroll. Two columns at desktop,
       one column below 700px. */
.hero-punchlist {
  margin: 0;
}

/* Per-channel download-detail categories (download.html): each groups a
   .hero-punchlist-heading + its items under one download type. A hairline
   divider + spacing separates consecutive channels; scroll-margin-top
   gives the banners' "what to expect" anchor jumps room from the viewport
   top so the heading isn't flush against it. */
.download-category {
  scroll-margin-top: var(--space-lg);
}

.download-category + .download-category {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  /* No divider between sections (Direct Download / System Requirements):
     the spacing alone separates them. Border removed 2026-06-03. */
}

.hero-punchlist-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-muted);
  margin: 0 0 var(--space-lg);
}

.hero-punchlist-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-punchitem h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--space-xs);
  color: var(--color-ink);
}

.hero-punchitem p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0;
}

/* Multi-block punch items (intro paragraph + list + closing
   paragraph, e.g. the install-notes block on download.html) need
   breathing room between blocks. The :not(:last-child) guard means
   single-paragraph punch items (most of them) are unaffected. */
.hero-punchitem p:not(:last-child),
.hero-punchitem ul:not(:last-child) {
  margin-bottom: var(--space-md);
}

/* Bullet list inside a punch item — matches the .hero-punchitem p
   text size so the visual weight stays consistent with neighboring
   paragraph-style items. Bullet is muted so the list items themselves
   carry the scan, not the markers. */
.punchitem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.punchitem-list li {
  position: relative;
  padding-left: 1.1em;
  margin: 0 0 var(--space-xs);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink);
}

.punchitem-list li:last-child {
  margin-bottom: 0;
}

.punchitem-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-ink-muted);
}

/* ============================================================
   Homepage "About" section (index.html) — mirrors the Steam store
   "About This Game" copy. Lead intro paragraphs, then headed feature
   sections (.about-section) separated by a hairline divider, the same
   treatment download.html uses between its .download-category groups. */
.hero-about-intro {
  margin-bottom: var(--space-xl);
}

.hero-about-intro p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-ink);
  margin: 0 0 var(--space-md);
}

.hero-about-intro p:last-child {
  margin-bottom: 0;
}

/* Sections are separated by the uppercase headings + vertical rhythm
   alone (no hairline divider, per owner 2026-05-31). */
.about-section + .about-section {
  margin-top: var(--space-xl);
}

/* ============================================================
   More views — 3-thumbnail row below the homepage punch list.
   Pure visual support: no heading, no captions. Each tile is
   click-to-lightbox via the hook in main.js. Uses `.more-views-img`
   (not `.fan-card-screenshot`) because the global `.fan-card-*`
   rules hardcode absolute positioning + a 680×420 size that would
   collapse the grid.
   ============================================================ */

.more-views {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.more-views-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Collapses straight to 1-across on narrow viewports rather than
   2-across, so we never end up with an asymmetric 2 + 1 row. */
@media (max-width: 720px) {
  .more-views-grid { grid-template-columns: 1fr; }
}

/* Border matches the hero strip's featured + thumb screenshots
   (rgba 0.35 — strong enough to read against the white margins
   that are baked into the captures). Soft idle shadow gives the
   same visual lift the hero strip uses; hover deepens it. */
.more-views-img {
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  cursor: zoom-in;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.more-views-img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.more-views-img img {
  display: block;
  width: 100%;
  height: auto;
  /* Matches the hero strip's locked aspect so tile rows align cleanly */
  aspect-ratio: 2560 / 1494;
  object-fit: cover;
}

/* ============================================================
   About page — minimal prose layout. Same container as the rest
   of the hero-steam pages; just gives the paragraphs a readable
   measure and some breathing room.
   ============================================================ */

.about-content {
  max-width: 640px;
  margin: var(--space-xl) auto var(--space-2xl);
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
}

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


@media (max-width: 480px) {
  .card-strip-thumb span {
    font-size: 0.75rem;
  }

  /* The pre-existing <480px rules force `position: relative !important`
     on .fan-card / .fan-card-screenshot for the legacy centred hero
     fan. The card-strip pattern needs absolute positioning to keep
     the featured stage's 16:9 box working — override them here. */
  .card-strip .fan-card,
  .card-strip .fan-card-screenshot {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
  }

  .card-strip .fan-card-screenshot {
    opacity: 0;
    pointer-events: none;
  }

  .card-strip .fan-card-screenshot.fan-active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   Hamburger nav — fixed top-right on every page, opens a panel
   with the same link set as the footer. The site shipped without
   any top nav originally; this is a low-weight quick-jump for
   visitors who don't want to scroll to the footer.

   Markup lives in _partials/nav.html; JS in main.js.
   ============================================================ */

/* The hamburger always lives inside a hero-title-row (every page in
   the site uses the standard header pattern). `position: relative`
   anchors the absolute-positioned panel inside the wrap; z-index
   establishes a stacking context so the panel renders above other
   positioned page elements (hero screenshots use z-index up to 3;
   the lightbox is much higher and unaffected). */
.nav-hamburger-wrap {
  position: relative;
  z-index: 50;
}

/* Utility pages (download / pricing / feedback / about / docs /
   compare / terms / privacy) where the right-side element is an h1.
   The hamburger's own `margin-left: auto` pushes it to the right
   edge: [icon] [h1] ........ [menu]. */
.hero-title-row > .nav-hamburger-wrap {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Index page: the three store CTAs (Download/Steam/Play) sit as a tight
   group on the right of the title row. The growing h1 (flex: 1 0 auto)
   pushes the group across; the hamburger follows immediately after it.
   `flex: 0 0 auto` keeps the group at its natural width on desktop; the
   buttons' own uniform min-width sizes them. */
.hero-title-store {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 0 0 auto;
}

/* Narrow-header behaviour collapses in two stages so the store buttons
   never overlap or push the hamburger off its row. As the window narrows:
     icon + text  ->  icon only (still beside the menu)  ->  icon only on row 2
   The store group is a sibling of the hamburger (not its parent), so it
   can move independently while the hamburger stays on row 1.

   Stage 2 — labels stop fitting on one row. Measured: the labelled row
   (icon + wordmark + three labelled buttons + hamburger) fits down to
   ~898px, so at <=900px we collapse the store buttons to icon-only 44x44
   squares. They STAY on row 1 beside the hamburger (the store group keeps
   its base `flex: 0 0 auto`; the growing h1 pushes the store + hamburger
   to the right). Labels hidden but each <a> keeps its aria-label, so the
   icon-only buttons remain accessible. */
@media (max-width: 900px) {
  .hero-title-store .btn-label {
    display: none;
  }
  .hero-title-store .hero-title-cta,
  .hero-title-store .hero-title-steam,
  .hero-title-store .hero-title-play {
    min-width: 0;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .hero-title-store .btn-download-icon,
  .hero-title-store .btn-steam-icon,
  .hero-title-store .btn-play-icon {
    width: 20px;
    height: 20px;
  }
}

/* Stage 3 — even the icon-only buttons + wordmark + hamburger no longer
   fit on one row. Measured: the icon row fits down to ~574px, so at
   <=580px the store group drops to its own full-width second row
   (`flex-basis: 100%` + `order: 1` puts it after the order-0 icon /
   h1 / hamburger). The three icons then stretch to fill the row. Until
   this point they stay on row 1 beside the menu (stage 2). */
@media (max-width: 580px) {
  .hero-title-store {
    order: 1;
    flex: 0 0 100%;
    margin-top: var(--space-sm);
  }
  .hero-title-store .hero-title-cta,
  .hero-title-store .hero-title-steam,
  .hero-title-store .hero-title-play {
    flex: 1 1 0;
    width: auto;
  }
}

@media (max-width: 768px) {
  /* Utility pages (long page-name h1) shrink to fit beside the hamburger. */
  .hero-title-row h1 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
  }
}

/* Homepage wordmark sizing. The clamp caps at the desktop 2.25rem and only
   begins to scale down below ~422px, which is within stage 3 (store buttons
   on row 2) — so where it scales, row 1 holds only the logo-icon + wordmark
   + hamburger. The ceiling tracks that one-line limit: fixed overhead is
   icon + hamburger + two row gaps (~188px) against a row inner width of
   viewport - ~64px, i.e. ~(100vw - 192px), divided by the wordmark's
   ~6.4px-width-per-px-font; floored at 1rem. (In stage 2, 580-900px, the
   clamp is pinned at its 2.25rem cap and the 36px wordmark + icon buttons +
   hamburger still fit on one row — verified.) Scoped via :has() to the
   homepage; beats the utility-page 1rem rule on specificity. */
.hero-title-row:has(.hero-title-store) h1 {
  font-size: clamp(1rem, calc((100vw - 192px) / 6.4), 2.25rem);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--color-white);
  /* Matches the screenshot-tile border treatment so the button
     reads as part of the visual language, not bolted on. */
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.nav-hamburger:hover,
.nav-hamburger:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  outline: none;
}

.nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: background 0.15s;
}

.nav-hamburger:hover .nav-hamburger-bar,
.nav-hamburger:focus-visible .nav-hamburger-bar,
.nav-hamburger[aria-expanded="true"] .nav-hamburger-bar {
  background: var(--color-accent);
}

/* Open-state button keeps its hover treatment so it reads as the
   active source of the panel. */
.nav-hamburger[aria-expanded="true"] {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Panel — anchored under the button, single column of links. The
   `hidden` HTML attribute drives visibility; CSS only styles the
   visible state. */
.nav-panel {
  position: absolute;
  top: calc(44px + var(--space-sm));
  right: 0;
  min-width: 160px;
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: var(--space-xs) 0;
}

.nav-panel li {
  margin: 0;
  padding: 0;
}

.nav-panel a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
  background: var(--color-parchment);
  color: var(--color-accent);
  outline: none;
}

/* Current-page marker — wired by the hamburger JS in main.js. Bold
   + accent color so the user opening the menu sees where they
   already are. aria-current="page" is also set for screen readers;
   the selector below catches both class and attribute forms. */
.nav-panel a.nav-current,
.nav-panel a[aria-current="page"] {
  color: var(--color-accent);
  font-weight: 700;
}

/* Narrow viewports — slightly wider panel for easier tapping. */
@media (max-width: 480px) {
  .nav-panel {
    min-width: 180px;
  }
}

/* Divider between the internal page links and the external "social"
   group below them — same hairline as the panel border, just a touch
   of vertical breathing room. Marks the visual boundary between
   in-site nav and off-site links. */
.nav-panel-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: var(--space-xs) var(--space-sm);
  padding: 0;
}

/* External-social entry — same anchor styling as the other panel
   links (inherited), with an inline icon to the left of the label.
   `nav-panel-social` exists for future tweaks if we ever want
   external rows to read differently from internal ones. */
.nav-panel-social {
  display: flex !important;
  align-items: center;
  gap: var(--space-xs);
}

.nav-panel-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  /* Optical alignment with cap-height of the label text. */
  flex: 0 0 auto;
}

/* ============================================================
   compare.html — category comparison grid
   Categories across the top (Quillhollow first), features down
   the side, three-state dot indicators (filled / half / hollow).
   Uses shape rather than color for the yes/partial/no signal so
   the page survives any user theme — see memory entry
   "No Fixed-Color Signaling" for why.
   ============================================================ */

.compare-intro {
  max-width: 720px;
  margin: var(--space-lg) auto var(--space-xl);
  text-align: center;
}

.compare-intro p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ink);
}

/* Horizontal scroll on narrow viewports — 7-column table is wide */
.compare-table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 720px;  /* triggers horizontal scroll instead of crushing */
}

.compare-table th,
.compare-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-bottom: 1px solid var(--color-parchment-dk);
  vertical-align: middle;
}

/* First column = feature name; left-aligned, wider */
.compare-table th[scope="row"],
.compare-table td:first-child {
  text-align: left;
  font-weight: 400;
  width: 28%;
  min-width: 200px;
}

/* Column headers */
.compare-table thead th {
  font-weight: 700;
  vertical-align: bottom;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-ink);
  line-height: 1.3;
  font-size: 0.9rem;
}

.compare-table thead th:first-child {
  border-bottom: 2px solid var(--color-ink);
}

/* Quillhollow column — subtle accent border + tint so it reads as
   "us" without shouting. Background tint uses the blue accent at
   low alpha; survives any future palette change because it's
   anchored to var(--color-accent). */
.compare-table .col-quillhollow {
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
  border-left: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
  font-weight: 600;
}

.compare-table thead .col-quillhollow {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-top: 2px solid var(--color-accent);
}

/* Only the very last row of the very last tbody closes the QH column
   accent border; intermediate tbody endings (section breaks) leave the
   gap in the accent border which doubles as a section divider. */
.compare-table tbody:last-of-type tr:last-child .col-quillhollow {
  border-bottom: 2px solid var(--color-accent);
}

/* Section header rows — full-width band that splits the table into
   "Ownership & privacy" / "Workflow surfaces" / "Extras included".
   Uses parchment background + uppercase smallcaps for clear visual
   separation without competing with the data rows for attention. */
.compare-table tbody tr.compare-section th {
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-parchment);
  color: var(--color-ink);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-top: 1px solid var(--color-ink);
  border-bottom: 1px solid var(--color-ink);
}

/* First section sits right under the thead's heavy bottom border —
   no need for an extra top line. */
.compare-table tbody:first-of-type tr.compare-section th {
  border-top: none;
}

/* Dot indicators — Unicode geometric shapes; size bumped so the
   shape carries the meaning at scanning distance. */
.compare-table .dot {
  font-size: 1.4rem;
  line-height: 1;
  display: inline-block;
}

.compare-table .dot-yes { color: var(--color-ink); }
.compare-table .dot-partial { color: var(--color-ink); opacity: 0.7; }
.compare-table .dot-no { color: var(--color-ink); opacity: 0.35; }

.compare-legend {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  margin: var(--space-md) 0 var(--space-lg);
}

.compare-legend .dot {
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: middle;
  color: var(--color-ink);
}

.compare-footnote {
  max-width: 720px;
  margin: var(--space-lg) auto var(--space-2xl);
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  font-style: italic;
}


