/* Baton — the family dark site, in the app's own Mahogany.
   Structure and class vocabulary are lifted wholesale from Brume's stylesheet
   so the two read as one studio; only the palette differs. The colours below
   are Mahogany from skins/Skins.kt — the free default skin, i.e. the face
   anyone who installs Baton actually sees. Do not drift these from the app:
   the Cast receiver mirrors the same palettes in receiver.js. */
:root {
  --bg: #120b07;        /* a touch deeper than the app backdrop, for the page field */
  --panel: #24170f;
  --panel2: #1a100b;    /* Skins.mahogany backdrop */
  --mist: #c49a72;      /* warm mid tone — headings, icon strokes */
  --dim: #9c8877;       /* Skins.mahogany muted */
  --text: #f4e9dd;      /* Skins.mahogany text */
  --accent: #e8a25b;    /* Skins.mahogany accent */
  --outline: #352316;
  --pro: #d4a94f;       /* Brass accent, reused for Pro badges */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
a { color: var(--mist); text-decoration: none; }
a:hover { color: #e0c3a4; }

header.site {
  padding: 26px 0 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: 7px; color: var(--mist); }
nav a { margin-left: 20px; font-size: 14px; color: var(--dim); }
nav a:hover { color: var(--mist); }

.hero { padding: 72px 0 40px; text-align: center;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(232,162,91,.18), transparent); }
.hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 600; line-height: 1.25; color: #f4e9dd; }
.hero p.sub { margin: 16px auto 0; max-width: 560px; color: var(--mist); font-size: 18px; }
.badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge { border: 1px solid var(--outline); background: var(--panel2); color: var(--dim);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; }

section { padding: 44px 0; }
h2 { font-size: 22px; font-weight: 600; color: #f4e9dd; margin-bottom: 14px; }
p.lead { color: var(--dim); max-width: 640px; }

.privacy-strip { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px;
  padding: 24px 26px; margin-top: 10px; }
.privacy-strip strong { color: var(--mist); }
.privacy-strip p { color: var(--text); font-size: 15px; }
.privacy-strip .fine { color: var(--dim); font-size: 13px; margin-top: 10px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.cat { background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 16px; }
.cat h3 { font-size: 12px; letter-spacing: 2px; color: var(--dim); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; }
.cat h3 svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.cat ul { list-style: none; }
.cat li { font-size: 14px; padding: 3px 0; color: var(--text); }
.free { font-size: 10px; letter-spacing: 1px; color: #7c9; border: 1px solid #3d5a3a;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }

/* Screenshot grid. Brume and Sylph carry no shots on their index — Baton's
   face is the whole pitch ("looks like a music stand, not a settings screen"),
   so it does. Eight shots in a 4x2 GRID, not a scrolling strip: the strip only
   showed four and hid the rest behind a horizontal scroll nobody discovers. */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.shots figure { min-width: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 16px;
  border: 1px solid var(--outline); box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.shots figcaption { margin-top: 8px; font-size: 12.5px; color: var(--dim); }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, 1fr); } }

/* Promo video. SELF-HOSTED on purpose — a YouTube iframe sets tracking cookies
   on page load, and privacy.html says "No cookies, no analytics". The file is
   ~5 MB and preload="none", so nothing is fetched until the visitor presses
   play. The YouTube link below it is a plain link: no third-party request. */
.promo { margin-top: 18px; }
.promo .note { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }

/* height:auto AND aspect-ratio are both needed: with only width:100%, the
   element's height="1080" attribute still applies and the box renders far too
   tall, letterboxing the poster inside it. */
.promo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: #000; border-radius: 16px;
  border: 1px solid var(--outline); box-shadow: 0 18px 44px rgba(0,0,0,.55); }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.feature { background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 18px; }
.feature h3 { font-size: 15px; color: #f4e9dd; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--dim); }

.pro-card { background: linear-gradient(160deg, #2a1b12, #160e09); border: 1px solid #4a3220;
  border-radius: 18px; padding: 30px; margin-top: 16px; }
.pro-card .price { font-size: 34px; color: #f4e9dd; font-weight: 600; }
.pro-card .price small { font-size: 15px; color: var(--dim); font-weight: 400; }
.pro-card ul { list-style: none; margin: 16px 0 6px; }
.pro-card li { padding: 5px 0; color: var(--text); }
.pro-card li::before { content: "✓  "; color: var(--mist); }
.pro-card .fine { color: var(--dim); font-size: 13px; }

.download-box { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px;
  padding: 26px; margin-top: 14px; }
/* Dark text on the amber fill — white fails contrast on #e8a25b, and the app's
   own accent buttons put the backdrop colour on top for the same reason. */
.btn { display: inline-block; background: var(--accent); color: #1a100b; border-radius: 12px;
  padding: 13px 26px; font-size: 15px; font-weight: 600; }
.btn:hover { background: #f2b878; color: #1a100b; }
.btn.ghost { background: transparent; border: 1px solid var(--outline); color: var(--mist); font-weight: 400; }
.note { color: var(--dim); font-size: 13px; margin-top: 12px; }

/* ---- Early-access banner ---- */
.earlybar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 22px; text-align: center; font-size: 14px; color: var(--text);
  background: linear-gradient(90deg, rgba(232,162,91,.16), rgba(196,154,114,.08));
  border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline);
}
.earlybar:hover { background: linear-gradient(90deg, rgba(232,162,91,.26), rgba(196,154,114,.14)); color: var(--text); }
.earlybar-tag {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist);
  border: 1px solid var(--outline); background: var(--panel2); border-radius: 999px; padding: 2px 10px;
}
.earlybar-cta { font-weight: 600; color: var(--mist); white-space: nowrap; }
.earlybar:hover .earlybar-cta { color: #e0c3a4; }

/* ---- Early-access note (under the request buttons) ---- */
.earlybar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.req-note { color: var(--dim); font-size: 13px; }

/* ---- Cross-promo tiles ---- */
.xpromo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.xpromo .tile { display: block; background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 16px 18px; }
.xpromo .tile:hover { border-color: #3f2a1a; }
.xpromo .tile h3 { font-size: 15px; color: #f4e9dd; margin-bottom: 4px; }
.xpromo .tile p { font-size: 13.5px; color: var(--dim); margin: 0; }

article.page { padding: 40px 0 20px; }
article.page h1 { font-size: 26px; margin-bottom: 6px; color: #f4e9dd; }
article.page .updated { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
article.page h2 { font-size: 18px; margin: 26px 0 8px; }
article.page p, article.page li { color: var(--text); font-size: 15px; }
article.page ul { padding-left: 22px; margin: 8px 0; }
article.page .card { background: var(--panel2); border: 1px solid var(--outline);
  border-radius: 14px; padding: 18px 20px; margin: 14px 0; }

.log-entry { border-left: 2px solid var(--outline); padding: 4px 0 4px 18px; margin: 18px 0; }
.log-entry h2 { margin: 0 0 6px; }
.log-entry .date { color: var(--dim); font-size: 13px; }

footer.site { border-top: 1px solid var(--outline); margin-top: 40px; padding: 26px 0 40px;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--dim); font-size: 13px; }
footer.site a { color: var(--dim); margin-right: 16px; }
footer.site div:last-child a { margin-right: 0; } /* studio line: "Zone7 Studios" sits flush before "app" */
footer.site a:hover { color: var(--mist); }

/* ---- Hidden-until-hover visitor counter (page views, no cookies/IDs) ---- */
.viewcount {
  position: fixed; right: 12px; bottom: 10px; z-index: 60;
  font-size: 11px; letter-spacing: 0.02em; color: var(--dim);
  padding: 4px 8px; border-radius: 8px;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: auto; user-select: none; cursor: default;
}
.viewcount:hover, .viewcount:focus, .viewcount:active { opacity: 0.85; }
.viewcount:empty { display: none; }

/* ---- Nav logo mark (slider-B) ---- */
.wordmark, .wordmark a { display: inline-flex; align-items: center; gap: 8px; }
.logo-b { width: 30px; height: 30px; flex: none; }
/* Brume's mark animates three slider thumbs on hover; Baton's is a metronome,
   so the arm swings instead. Kept on the same .logo-b hook so the header markup
   stays identical across the family. */
@media (prefers-reduced-motion: no-preference) {
  .logo-b .arm { transform-box: view-box; transform-origin: 32px 46px; }
  .wordmark:hover .logo-b .arm,
  .heromark:hover .logo-b .arm { animation: baton-swing .9s ease-in-out 1; }
  @keyframes baton-swing {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(-38deg); }
    70%  { transform: rotate(7deg); }
    100% { transform: rotate(0deg); }
  }
}

/* ---- Small screens: stack the header like Ethereal (wordmark on top, links below) ---- */
@media (max-width: 720px) {
  header.site { flex-direction: column; gap: 12px; padding-bottom: 14px; }
  header.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  nav a { margin-left: 0; }
}
