/* Layout: one centred column (max 72rem) with a broadcast-guide hero; light = lilac paper, dark = night sky.
   Palette comes from the aster flower: violet petals, gold disc centre. */
:root {
  --bg: #f6f4fb;
  --surface: #ffffff;
  --ink: #1d1830;
  --muted: #5d5873;
  --line: #e2ddef;
  --petal: #5b3fd0;
  --petal-soft: #ebe5ff;
  --disc: #e8a50c;
  --guide-bg: #1b1730;
  --guide-ink: #f1eefb;
  --guide-line: #2f2950;
  --guide-cell: #262041;
  --guide-break: #3a2c12;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3.25rem);
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #13101d; --surface: #1c1829; --ink: #efecf8; --muted: #a8a2bf; --line: #2e2945;
    --petal: #a995ff; --petal-soft: #2a2350; --disc: #f4b93a;
    --guide-bg: #0d0b16; --guide-ink: #efecf8; --guide-line: #262040; --guide-cell: #1c1830; --guide-break: #33280f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #13101d; --surface: #1c1829; --ink: #efecf8; --muted: #a8a2bf; --line: #2e2945;
  --petal: #a995ff; --petal-soft: #2a2350; --disc: #f4b93a;
  --guide-bg: #0d0b16; --guide-ink: #efecf8; --guide-line: #262040; --guide-cell: #1c1830; --guide-break: #33280f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
a { color: var(--petal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--disc); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand img { display: block; height: 44px; width: auto; }
.hero-logo { display: block; width: min(100%, 440px); height: auto; margin: 0 0 22px -6px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding-block: 40px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: var(--step-3); margin-block: 14px 18px; }
.hero h1 em { font-style: normal; color: var(--petal); }
.lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 32rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: var(--step-0); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--petal); color: #fff; }
.btn-ghost { color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--petal); }
.platform-note { margin-top: 16px; font-size: var(--step--1); color: var(--muted); }

/* Hero screenshot */
.hero-shot { margin: 0; display: grid; gap: 12px; min-width: 0; }
.hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--guide-bg); box-shadow: 0 30px 60px -30px rgba(29, 24, 48, 0.55); }
.hero-shot figcaption { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* Sections */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { font-size: var(--step-2); margin-top: 10px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); }
.feature .detail { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink); background: var(--petal-soft); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--petal-soft); color: var(--petal); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; }
.plugin-note { margin-top: 20px; font-size: var(--step--1); color: var(--muted); }

.beta { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; color: var(--petal); background: var(--petal-soft); border-radius: 999px; padding: 3px 9px; margin-left: 6px; }
.feature-list { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; color: var(--muted); font-size: var(--step--1); }
.feature-list li::marker { color: var(--disc); }
.feature-link { font-weight: 700; font-size: var(--step--1); margin-top: auto; }

/* Screenshots: a TV-shaped frame per shot; the first one runs full width */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.shots-note { margin-top: 28px; font-size: var(--step--1); color: var(--muted); }
.shot { margin: 0; display: grid; gap: 14px; min-width: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--guide-bg); box-shadow: 0 30px 60px -32px rgba(29, 24, 48, 0.6); }
.carousel { position: relative; display: grid; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(29, 24, 48, 0.6); background: var(--guide-bg); }
.carousel img { grid-area: 1 / 1; box-shadow: none; border-radius: 0; opacity: 0; transition: opacity 0.8s ease; }
.carousel img.is-active { opacity: 1; }
.carousel-dots { display: flex; gap: 10px; justify-content: center; margin-top: -2px; }
.carousel-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background 0.3s, width 0.3s; }
.carousel-dots button[aria-pressed="true"] { background: var(--petal); width: 44px; }
@media (prefers-reduced-motion: reduce) { .carousel img, .carousel-dots button { transition: none; } }
.shot figcaption { color: var(--muted); max-width: 46rem; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.shot figcaption strong { color: var(--ink); }
.shot-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--disc); border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.platform span:first-child { font-weight: 700; }
.pill { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: var(--petal-soft); color: var(--petal); }
.pill.soon { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

/* Privacy summary */
.privacy-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.privacy-points h3 { font-size: var(--step-0); margin-bottom: 6px; font-family: var(--font-body); font-weight: 700; }
.privacy-points p { color: var(--muted); }

/* Document pages (privacy, support) */
.doc { padding-block: 32px 80px; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-3); margin-block: 10px 8px; }
.doc .updated { color: var(--muted); font-size: var(--step--1); font-family: var(--font-mono); }
.doc h2 { font-size: var(--step-1); margin-top: 40px; margin-bottom: 10px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2rem; display: grid; gap: 6px; }
.doc .callout { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--petal-soft); }
.todo { background: color-mix(in srgb, var(--disc) 30%, transparent); padding: 0 4px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.85em; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: var(--step-0); list-style-position: outside; }
.faq details p { margin-top: 10px; color: var(--muted); }
.contact-box { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 8px; }
.contact-box code { font-family: var(--font-mono); font-size: 1rem; user-select: all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .features, .privacy-points { grid-template-columns: minmax(0, 1fr); }
  .platforms, .shots { grid-template-columns: minmax(0, 1fr); }
}

/* Donation card: mirrors the in-app "Made for the love of it" sheet. Deliberately dark in both themes. */
.love-card { --card-bg: #131826; --card-ink: #eef0f7; --card-muted: #a3a9bb; --card-tile: #252d40; --card-line: #2e3548; --card-heart: #f0a8bd;
  max-width: 40rem; margin-inline: auto; background: var(--card-bg); color: var(--card-ink); border-radius: 28px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 48px); text-align: center; display: grid; gap: 16px;
  box-shadow: 0 40px 80px -40px rgba(19, 24, 38, 0.7); }
.love-heart { width: 44px; height: 44px; color: var(--card-heart); justify-self: center; }
.love-card h2 { font-size: var(--step-2); color: var(--card-ink); }
.love-card p { color: var(--card-ink); opacity: 0.92; font-size: var(--step-0); }
.love-card strong { opacity: 1; }
.love-story a { color: var(--card-heart); font-weight: 700; font-size: var(--step--1); }
.love-card hr { border: 0; border-top: 1px solid var(--card-line); width: 100%; margin: 8px 0; }
.love-card h3 { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; color: var(--card-ink); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier { display: grid; gap: 4px; padding: 18px 8px; border-radius: 18px; background: var(--card-tile); color: var(--card-ink); text-decoration: none; transition: transform 0.15s, background 0.15s; }
.tier strong { font-family: var(--font-display); font-size: clamp(1.25rem, 3.4vw, 1.75rem); font-variant-numeric: tabular-nums; }
.tier span { color: var(--card-muted); font-size: var(--step--1); }
.tier:hover { background: #2f3850; transform: translateY(-2px); }
.tier:focus-visible { outline: 3px solid var(--card-heart); outline-offset: 3px; }
.love-fine { color: var(--card-muted) !important; font-size: var(--step--1) !important; }
@media (prefers-reduced-motion: reduce) { .tier { transition: none; } .tier:hover { transform: none; } }

/* Story page */
.story p { font-size: var(--step-0); line-height: 1.7; }
.story h1 { margin-bottom: 28px; }
.story .story-pull { font-family: var(--font-display); font-size: var(--step-1); font-weight: 700; line-height: 1.3; color: var(--petal); margin-block: 28px; }
.story-cta { margin-top: 36px; }
