/* ===========================================================================
   COZY WARM PALETTE — every color the page uses lives in these variables.
   Default = "Candlelit Cafe" (warm espresso + honey-amber).
   Prefer a bright, sunlit look? Swap the block below for the light alternative
   at the bottom of this comment — that's the only change needed.
   --------------------------------------------------------------------------
   LIGHT ALTERNATIVE — "Sunlit Coffee House" (cream + terracotta):
   --bg:#fbf4e9; --bg2:#f6ecda; --panel:#fffaf3; --panel2:#f3e7d3; --line:#e6d4ba;
   --text:#3a2a20; --muted:#6f5847; --accent:#b14a22; --accent2:#c4612f; --accent3:#d9962e;
   --accent-ink:#fff6ec; --warm:#cf9326; --border-hover:#cf8a4a; --chip:#8a4a22;
   --nav-bg:rgba(251,244,233,0.8); --glow:rgba(177,74,34,0.22); --glow2:rgba(207,147,38,0.28);
   --shadow:rgba(58,33,18,0.28);
   (if you switch to light, also set the page theme-color meta + BMC color params to a light tone)
   =========================================================================== */
:root {
  --bg: #1c1310;          /* page background (roasted espresso) */
  --bg2: #241813;         /* secondary bg for gradients */
  --panel: #2a1d18;       /* card / surface (mocha) */
  --panel2: #352620;      /* raised surface (ghost buttons, tabs, code) */
  --line: #473228;        /* borders / dividers */
  --text: #f4e7d8;        /* primary text (warm cream) */
  --muted: #c4a98f;       /* secondary text (latte tan) */
  --accent: #e8995a;      /* primary accent (honey-amber) */
  --accent2: #d97642;     /* gradient partner (terracotta) */
  --accent3: #f0b860;     /* gradient partner (honey) */
  --accent-ink: #241208;  /* text on accent buttons */
  --warm: #e8896a;        /* warm highlight (donate heart — ember coral) */
  --border-hover: #7a5236;/* card hover border */
  --chip: #f0c89a;        /* format chip text (candle gold) */
  --nav-bg: rgba(28,19,16,.8);
  --glow: rgba(232,153,90,.32);
  --glow2: rgba(232,137,106,.28);
  --shadow: rgba(10,6,4,.55);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent2) 55%, var(--accent3));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 88px 24px; max-width: var(--maxw); margin: 0 auto; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--muted); font-weight: 600; }
.section-sub { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; backdrop-filter: blur(12px); background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; font-weight: 600; }
.nav-donate { color: var(--warm) !important; font-weight: 600; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px;
  font-weight: 650; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sub { font-weight: 500; opacity: .8; font-size: 12.5px; }
.btn-primary { background: linear-gradient(100deg, var(--accent), var(--accent2)); color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 42px -8px var(--glow); }
.btn-ghost { background: var(--panel2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: color-mix(in srgb, var(--panel2), var(--text) 9%); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { background: var(--panel); }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn-donate { background: var(--panel2); border-color: var(--line); }
.btn-donate:hover { background: color-mix(in srgb, var(--panel2), var(--text) 9%); }
.btn-donate.primary { background: linear-gradient(100deg, color-mix(in srgb, var(--warm) 24%, transparent), color-mix(in srgb, var(--accent) 20%, transparent)); border-color: var(--border-hover); }
.btn-donate .tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: var(--warm); color: var(--accent-ink); padding: 2px 7px; border-radius: 6px; margin-left: 4px; }

/* download toast (rate-limit notice) */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); z-index: 100;
  background: var(--panel2); border: 1px solid var(--line); color: var(--text); padding: 12px 18px; border-radius: 12px;
  max-width: 90%; text-align: center; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; box-shadow: 0 20px 50px -20px var(--shadow); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* HERO */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 64px; position: relative; }
.hero-glow { position: absolute; inset: -120px 0 auto 0; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 30% 20%, var(--glow), transparent 70%),
              radial-gradient(50% 70% at 80% 10%, var(--glow2), transparent 70%); filter: blur(8px); }
.pill { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
.lead { color: var(--muted); font-size: 18.5px; max-width: 30em; margin: 20px 0 24px; }
.formats-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.formats-row span { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: var(--chip);
  background: var(--panel); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { margin-top: 18px; color: var(--muted); font-size: 13.5px; }

.window { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
  box-shadow: 0 40px 80px -30px var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset; }
.window-bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.window-bar span:first-child { background: #ff5f57; } .window-bar span:nth-child(2) { background: #febc2e; } .window-bar span:nth-child(3) { background: #28c840; }
.window img { display: block; width: 100%; height: auto; }

/* AUDIENCE */
.audience { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; text-align: left; }
.aud { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.aud b { display: block; margin-bottom: 6px; font-size: 16px; }
.aud span { color: var(--muted); font-size: 14.5px; }

/* FEATURES */
.features h2, .shots h2, .formats h2, .faq h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feat { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.feat-ic { font-size: 26px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px;
  background: var(--panel2); border: 1px solid var(--line); margin-bottom: 16px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* SHOTS */
.shot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel);
  transition: transform .2s, border-color .2s; }
.shot:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.shot.big { grid-column: span 2; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 13px 16px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }

/* FORMATS */
.fmt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; }
.fmt { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.fmt b { font-size: 17px; color: var(--text); } .fmt span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.fmt.accent { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 12%, transparent)); border-color: var(--border-hover); }

/* DOWNLOAD */
.download { padding-top: 30px; }
.dl-card { text-align: center; background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); border-radius: 22px; padding: 52px 32px;
  box-shadow: 0 0 80px -40px var(--glow); }
.dl-card h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.dl-sub { color: var(--muted); margin: 12px 0 30px; }
.os-tabs { display: inline-flex; gap: 6px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 5px; margin: 4px 0 24px; }
.os-tab { background: transparent; border: 0; color: var(--muted); padding: 9px 20px; border-radius: 9px;
  font-weight: 650; font-size: 14.5px; cursor: pointer; transition: background .15s, color .15s; }
.os-tab:hover { color: var(--text); }
.os-tab.active { background: var(--panel2); color: var(--text); }
.os-panel[hidden] { display: none; }
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.dl-notes { list-style: none; padding: 0; margin: 30px auto 0; max-width: 640px; text-align: left; color: var(--muted); font-size: 14px; }
.dl-notes li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); }
.dl-notes li:before { content: "›"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
.dl-notes b { color: var(--text); } code { background: var(--panel2); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }

/* DONATE */
.donate { padding-top: 40px; }
.donate-inner { text-align: center; max-width: 720px; margin: 0 auto; background: radial-gradient(120% 100% at 50% 0%, var(--glow2), transparent 70%);
  border: 1px solid var(--line); border-radius: 22px; padding: 48px 32px; }
.donate-heart { font-size: 40px; color: var(--warm); filter: drop-shadow(0 0 18px var(--glow)); }
.donate h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 8px; }
.donate p { color: var(--muted); max-width: 50em; margin: 16px auto 0; }
.donate-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.bmc-embed { max-width: 420px; margin: 28px auto 4px; }
.bmc-embed iframe { width: 100%; height: 660px; border: 0; border-radius: 18px; background: #fff; display: block;
  box-shadow: 0 30px 70px -30px var(--shadow); }
.donate-fine { font-size: 13px; margin-top: 22px !important; }
.donate-fine a { color: var(--accent); }
@media (max-width: 600px) { .bmc-embed iframe { height: 690px; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
details summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
details summary::-webkit-details-marker { display: none; }
details summary:after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--accent); font-weight: 400; }
details[open] summary:after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 36px 24px; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.foot-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.foot-fine { color: var(--muted); font-size: 13px; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }

/* REVEAL ANIMATION */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .aud-grid, .feat-grid, .fmt-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.nav-cta):not(.nav-donate) { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 18px; }
  .aud-grid, .feat-grid, .fmt-grid, .shot-grid, .faq-grid { grid-template-columns: 1fr; }
  .shot.big { grid-column: span 1; }
  .dl-buttons { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
