:root {
  --bg: #fbfcf9;
  --surface: #ffffff;
  --surface-2: #f2f6ee;
  --text: #1d2a20;
  --muted: #5b6b5f;
  --line: #e1e8dc;
  --accent: #2f9e5b;
  --accent-strong: #1f7f45;
  --accent-soft: #e6f4ea;
  --shadow: 0 18px 50px rgba(28, 60, 36, 0.14);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111613;
    --surface: #18201a;
    --surface-2: #1d2720;
    --text: #e6efe8;
    --muted: #9fb1a4;
    --line: #2a362d;
    --accent: #5cc786;
    --accent-strong: #7fdba2;
    --accent-soft: #1e3326;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { color: var(--accent-strong); }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 17px;
  padding: 13px 26px; border-radius: 999px; box-shadow: 0 6px 18px rgba(47, 158, 91, 0.32);
}
.button:hover { background: var(--accent-strong); text-decoration: none; }
@media (prefers-color-scheme: dark) { .button { color: #0e1a12; } }
.button svg { width: 20px; height: 20px; }
.cta small { color: var(--muted); font-size: 14px; }

.hero-shot { margin: 48px auto 0; max-width: 1040px; }
.shot {
  display: block; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--surface); cursor: zoom-in;
}
.shot:hover { text-decoration: none; border-color: var(--accent); }

/* sections */
section.block { padding: 72px 0; }
section.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent-strong); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 14px; }
.section-lead { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 17px; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.modes figure { margin: 0; }
.modes figcaption { margin-top: 12px; }
.modes figcaption b { display: block; font-size: 17px; }
.modes figcaption span { color: var(--muted); font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.feature .icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; margin-bottom: 12px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin: 0 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* split (Pro, supporters) */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.split.reverse { grid-template-columns: 1.25fr 1fr; }
.split.reverse .text { order: 2; }
.list { list-style: none; padding: 0; margin: 0 0 22px; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list b { display: block; }
.list span { color: var(--muted); font-size: 15px; }
.badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
}
.note { color: var(--muted); font-size: 15px; }
.stack { display: grid; gap: 22px; }

/* privacy strip */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.promise b { display: block; margin-bottom: 4px; }
.promise span { color: var(--muted); font-size: 15px; }

/* the tour: a feature beside its pictures */
.tour { display: grid; gap: 64px; margin-top: 36px; }
.row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 44px; align-items: center; margin: 56px 0; }
.tour .row { margin: 0; }
.row.reverse { grid-template-columns: 1.6fr 1fr; }
.row.reverse .text { order: 2; }
.row.wide { grid-template-columns: 1fr; gap: 20px; }
.row.wide .text { max-width: 720px; }
.row h3 { font-size: 22px; margin: 0 0 10px; }
.row p { color: var(--muted); margin: 0; }
.pics { display: grid; gap: 14px; align-items: start; }
h3.more, h3.sub { font-size: 20px; margin: 72px 0 18px; }
h3.sub { margin-top: 8px; margin-bottom: 4px; }

/* supporters */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 22px 0 8px; }
.gallery figure, .presets figure { margin: 0; }
.gallery figcaption, .presets figcaption { text-align: center; margin-top: 8px; font-size: 15px; }
.presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -28px; }

/* get it */
.get { text-align: center; }
.get .section-lead { margin-left: auto; margin-right: auto; }
.redeem { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 26px 0 0; }
.redeem small { color: var(--muted); font-size: 14px; }
.button.ghost {
  background: transparent; color: var(--accent-strong); box-shadow: none;
  border: 1.5px solid var(--accent); padding: 10px 24px; font-size: 16px;
}
.button.ghost:hover { background: var(--accent-soft); }

/* a picture at full size over the page (its anchor's :target; no script) */
.zoom {
  display: none; position: fixed; inset: 0; z-index: 50; padding: 24px;
  background: rgba(10, 16, 12, 0.86); align-items: center; justify-content: center; cursor: zoom-out;
}
.zoom:target { display: flex; }
.zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }

/* footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
footer .copy { margin-left: auto; }

/* policy page */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc li { margin: 6px 0; }
.doc code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .row, .row.reverse { grid-template-columns: 1fr; gap: 20px; }
  .row.reverse .text { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .presets, .modes { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .text { order: 0; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav a:not(.lang) { display: none; }
  .modes, .features { grid-template-columns: 1fr; }
  .pics { grid-template-columns: 1fr !important; }
  /* A tall, narrow picture (the search results, the outline) at its own width, not stretched to the screen's. */
  .pics .shot { justify-self: center; max-width: 100%; }
  .pics .shot img { max-height: 520px; width: auto; }
  .hero { padding-top: 48px; }
  section.block { padding: 52px 0; }
  footer .copy { margin-left: 0; }
}

/* the giveaway bar on top of the header */
.promo { background: var(--accent); color: #fff; font-size: 14.5px; }
.promo[hidden] { display: none; }
.top .promo .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center; flex-wrap: wrap; }
.promo .promo-go { color: #fff; font-weight: 650; background: rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 3px 14px; white-space: nowrap; }
.promo .promo-go:hover { background: rgba(255, 255, 255, 0.3); text-decoration: none; }
.promo .promo-close { background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.8; padding: 2px 6px; }
.promo .promo-close:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .promo, .promo .promo-go, .promo .promo-close { color: #0e1a12; }
  .promo .promo-go { background: rgba(0, 0, 0, 0.12); }
}
.promo .promo-copy { background: none; border: 1px solid rgba(255, 255, 255, 0.6); color: inherit; border-radius: 999px; padding: 2px 12px; font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.promo .promo-copy:hover { background: rgba(255, 255, 255, 0.18); }
@media (prefers-color-scheme: dark) { .promo .promo-copy { border-color: rgba(0, 0, 0, 0.35); } }
.redeem .code { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.redeem .code code { font: 600 17px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; background: var(--surface); border: 1px dashed var(--accent); border-radius: 10px; padding: 8px 14px; user-select: all; }
.button.small { font-size: 15px; padding: 9px 18px; border: 0; cursor: pointer; font-family: inherit; }
