/* Fetch — the same gold and black the app uses.
   Light mode is black and gold on white; dark mode is gold on black.
   The values are lifted from lib/core/theme/fetch_theme.dart so the site
   and the app cannot drift apart. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --raised: #fcf6e6;
  --text: #121212;
  --muted: #4f4c45;
  --line: #ede3ca;
  --brand: #b07d0a;
  --grad-a: #d9a520;
  --grad-b: #9a6f0c;
  --btn-bg: #121212;
  --btn-fg: #ffd873;
  --glow: rgba(217, 165, 32, .26);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --surface: #141417;
    --raised: #1f1f24;
    --text: #f6f2e8;
    --muted: #b5ae9e;
    --line: rgba(255, 255, 255, .12);
    --brand: #f2c75c;
    --grad-a: #ffe9a8;
    --grad-b: #e0a526;
    --btn-bg: linear-gradient(120deg, #ffe9a8, #e0a526);
    --btn-fg: #0a0a0c;
    --glow: rgba(224, 165, 38, .22);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: flex; gap: 18px; font-size: 15px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 80px 0 48px; text-align: center; }
.hero img.icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 18px 40px var(--glow); }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 26px 0 14px; letter-spacing: -0.02em; }
.hero h1 span { background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 650; border: 1px solid transparent; }
.btn:hover { text-decoration: none; opacity: .9; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.section-head { text-align: center; padding: 26px 0 4px; }
.section-head h2 { font-size: clamp(25px, 4vw, 34px); margin: 0 0 6px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 620px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 20px 0 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.emoji { font-size: 26px; }

/* Snippet example, so the template syntax explains itself. */
.snippet { background: var(--raised); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; margin: 14px 0 0; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text); overflow-x: auto; }
.snippet b { color: var(--brand); font-weight: 600; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 18px 0 20px; }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; display: flex; flex-direction: column; }
.tier.best { border-color: var(--brand); box-shadow: 0 10px 34px var(--glow); }
.tier .tag { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.tier h3 { margin: 10px 0 2px; font-size: 20px; }
.tier .price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 2px; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier ul { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.tier li { padding: 6px 0 6px 24px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.fineprint { color: var(--muted); font-size: 14px; text-align: center; max-width: 720px; margin: 0 auto 60px; }

.page { padding: 48px 0 70px; }
.page h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
.page .updated { color: var(--muted); margin: 0 0 28px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); }
.doc h2 { font-size: 21px; margin: 30px 0 8px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p, details ol, details ul { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: space-between; }
footer .links { gap: 16px; }

@media (max-width: 560px) {
  .links { gap: 12px; font-size: 14px; }
  .brand span { display: none; }
  .hero { padding: 56px 0 36px; }
}
