/* Zen Drive - the website. The game's own colours: a dark forest green, the
   warm orange of a low sun, and a pale sea-green for anything calm. System
   fonts only, so the site asks nothing of any other server. */

:root {
  --bg: #0e100d;
  --panel: #191c17;
  --line: #2a2f26;
  --text: #e1e3d4;
  --muted: #929a85;
  --lit: #eb9442;
  --calm: #9ed1c7;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--calm); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.top.solid { position: static; border-bottom: 1px solid var(--line); }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.14em; font-size: 15px;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; font-size: 14px; letter-spacing: 0.08em; }
.top nav a { color: var(--text); opacity: 0.85; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  background: var(--bg) url("img/forest.jpg") 70% 40% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,16,13,0.82) 0%, rgba(14,16,13,0.55) 38%, rgba(14,16,13,0) 70%),
    linear-gradient(180deg, rgba(14,16,13,0.55) 0%, rgba(14,16,13,0) 28%, rgba(14,16,13,0.2) 60%, var(--bg) 100%);
}
@media (max-width: 700px) {
  .hero { background-position: 36% 40%; }
  .hero::after {
    background: linear-gradient(180deg, rgba(14,16,13,0.5) 0%, rgba(14,16,13,0.1) 25%, rgba(14,16,13,0.7) 55%, var(--bg) 100%);
  }
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vh, 90px); width: 100%; }
.hero h1 {
  margin: 0; font-size: clamp(44px, 9vw, 96px); line-height: 1; letter-spacing: 0.04em; font-weight: 800;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
.hero .tag { margin: 14px 0 0; font-size: clamp(18px, 2.6vw, 24px); color: var(--text); opacity: 0.92; }
.hero .sub { margin: 10px 0 28px; max-width: 560px; color: var(--muted); }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 1px solid #555; border-radius: 12px;
  padding: 10px 20px 10px 16px; line-height: 1.15;
}
.store:hover { text-decoration: none; border-color: #888; }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.8; }
.store b { font-size: 19px; font-weight: 600; }
.soon { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Sections */
section { padding: clamp(56px, 9vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: 0.01em; }
.lede { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 18px; }
.eyebrow { color: var(--lit); font-size: 13px; letter-spacing: 0.2em; font-weight: 700; margin: 0 0 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
.step .n { color: var(--lit); font-weight: 800; font-size: 14px; letter-spacing: 0.15em; margin-bottom: 10px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; background: var(--panel); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  font-size: 14px; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent);
}

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 48px; }
.feature h3 { margin: 0 0 4px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); }

.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chapters li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted); }
.chapters li.free { border-color: var(--calm); color: var(--calm); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.best { border-color: var(--lit); }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: 0.06em; }
.plan .price { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .note { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 6px 0 6px 24px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--calm); }
.plan .rows { margin: 4px 0 0; }
.plan .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan .row:last-child { border-bottom: 0; }
.plan .row span:last-child { color: var(--muted); white-space: nowrap; padding-left: 12px; }
.badge { display: inline-block; font-size: 11px; letter-spacing: 0.16em; font-weight: 700; color: var(--lit); margin-left: 8px; vertical-align: middle; }
.fine { color: var(--muted); font-size: 13px; margin-top: 26px; max-width: 820px; }

/* Documents */
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 0 0 6px; line-height: 1.15; }
.doc .date { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: #c9ccbd; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--calm); border-radius: 10px; padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 0; color: var(--text); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; 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; color: var(--lit); font-size: 22px; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin: 10px 0 4px; }
.mail { display: inline-block; margin-top: 8px; background: var(--lit); color: #1a1208; font-weight: 700; padding: 12px 22px; border-radius: 10px; }
.mail:hover { text-decoration: none; filter: brightness(1.08); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .steps, .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .top nav { gap: 14px; font-size: 13px; }
  .top nav a.hide-sm { display: none; }
  .gallery { grid-template-columns: 1fr; }
}
