/* Muncher website. Same palette as the app (web/src/styles.css). No web fonts,
   no third-party requests: Inter is used when installed, else the system font. */
:root {
  --bg: #0f0d0a;
  --surface: #1a1712;
  --surface-2: #221e17;
  --border: #352e24;
  --text: #f3ede2;
  --muted: #a89c8a;
  --accent: #f5b83d;
  --accent-ink: #17120a;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 650; }
p { margin: 0 0 1em; }
code { font: 0.9em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; z-index: 10; }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--border); background: rgba(15, 13, 10, 0.85); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand img { height: 26px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .opt { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn svg { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(245, 184, 61, 0.16), transparent); pointer-events: none; }
.hero .bigmark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 520px; opacity: 0.08; pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); max-width: 15ch; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .hero .bigmark { width: 320px; right: -120px; opacity: 0.06; } }

/* ---------- sections ---------- */
section { padding: 72px 0; border-top: 1px solid var(--border); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(245, 184, 61, 0.12); color: var(--accent); margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(245, 184, 61, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23f5b83d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* ---------- install ---------- */
.platforms .card { display: flex; flex-direction: column; gap: 10px; }
.platforms .card p { flex: 1; }
.platforms .card .files { font-size: 14px; color: var(--muted); }
.platforms .card .files code { font-size: 13px; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ---------- legal pages ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin-top: 44px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { color: #ddd5c8; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 22px; margin-bottom: 32px; }
.doc .summary p:last-child { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc .toc { columns: 2; font-size: 15px; padding-left: 20px; }
@media (max-width: 640px) { .doc .toc { columns: 1; } .doc table { display: block; overflow-x: auto; } }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot nav a { color: var(--muted); }
.site-foot nav a:hover { color: var(--text); }
.site-foot .notices { margin-top: 24px; font-size: 13px; max-width: 80ch; }
.site-foot .notices p { margin-bottom: 6px; }
