/* DemetRUN site: landing + legal pages. System fonts only, no JS, no third-party requests (see the CSP in infra/site/Caddyfile). */
:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #2b2118;
  --muted: #6d5d4c;
  --line: #eadfca;
  --accent: #b8392d;
  --green: #3f7d3a;
  --chip: #f6eedc;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1813;
    --surface: #26201a;
    --ink: #f3eadb;
    --muted: #bcae9a;
    --line: #3a3128;
    --accent: #f08a7e;
    --green: #8cc47f;
    --chip: #2f2820;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header / footer */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand b { color: var(--accent); }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
footer a { color: var(--muted); }

/* Landing */
.hero { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: center; padding: 24px 0 8px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 20px; }
.badge { display: inline-block; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; }
.hero img { width: 240px; justify-self: center; }
section { padding: 32px 0 8px; }
section > h2 { font-size: 26px; line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
.story { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.story p { margin: 0 0 8px; }
.story p:last-child { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.joke { font-style: italic; color: var(--muted); font-size: 15px; margin-top: 8px; }
.list { padding-left: 20px; margin: 0; }
.list li { margin: 4px 0; }
.split { display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; }
.split img { width: 180px; justify-self: center; }
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price .card h3 { font-size: 20px; }
.price .amount { font-size: 28px; font-weight: 800; margin: 4px 0 8px; color: var(--ink); }
.price .amount small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price ul { padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: var(--green); vertical-align: middle; }
.note { font-size: 14px; color: var(--muted); }

/* Legal */
.legal { max-width: 760px; }
.legal h1 { font-size: 32px; line-height: 1.2; margin: 16px 0 4px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal .meta { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.legal .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 20px; }
.table { overflow-x: auto; margin: 8px 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 8px 10px 8px 0; }
.legal th { font-weight: 700; }

@media (max-width: 640px) {
  .top nav { width: 100%; gap: 12px; font-size: 14px; }
  .top nav a[href^="#"] { display: none; }
  .hero, .split, .story { grid-template-columns: 1fr; }
  .hero img { width: 180px; grid-row: 1; }
  .story img, .split img { width: 140px; justify-self: center; }
  .grid, .price { grid-template-columns: 1fr; }
}
