:root {
  --bg: #f7f3ec;
  --card: #fffdf9;
  --text: #2b2622;
  --muted: #6b625a;
  --primary: #9a3b26;
  --radius: 20px;
  --tint: #f3e6dd;
  --line: #e8dfd4;
  --ok: #2f7d4f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916;
    --card: #26221e;
    --text: #efe8df;
    --muted: #b5aa9e;
    --primary: #e58b6f;
    --tint: #3a2d27;
    --line: #3a332d;
    --ok: #7fcf9a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
header nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
a { color: var(--primary); }
nav a { text-decoration: none; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 4px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.lang { color: var(--muted); font-size: 0.95rem; }
footer { color: var(--muted); font-size: 0.9rem; margin-top: 48px; }
ul { padding-left: 1.2em; }

/* User guide (/guide, /en/guide) */
main.wide { max-width: 980px; }
.button {
  display: inline-block;
  background: var(--primary);
  color: var(--card);
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.guide-hero { text-align: center; }
.guide-hero .lead { max-width: 560px; margin: 0 auto 16px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; }
.shots { display: flex; justify-content: center; gap: 16px; margin: 32px 0; }
.shots img { width: 30%; max-width: 220px; }
img.shot { height: auto; border-radius: 18px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); }
.chips, .tabs, .pair { display: grid; gap: 12px; }
.chips { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; }
.tabs { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pair { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.chip { background: var(--card); border-radius: 16px; padding: 14px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.chip b { display: block; }
.chip span { color: var(--muted); font-size: 0.95rem; }
.tabs .chip.center { background: var(--tint); }
.toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-size: 0.95rem; }
.kicker { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 48px; }
.kicker + h2 { margin-top: 4px; }
.feature { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin: 24px 0 8px; }
.feature.flip { grid-template-columns: 1fr 220px; }
.feature.flip > img { order: 2; }
.feature > img { width: 100%; }
.feature h2 { margin-top: 0; }
.ui { background: var(--tint); border-radius: 999px; padding: 1px 9px; font-weight: 600; white-space: nowrap; }
.new { background: var(--primary); color: var(--card); border-radius: 999px; padding: 1px 8px; font-size: 0.75rem; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.tip { background: var(--tint); border-radius: 14px; padding: 12px 16px; margin: 16px 0; }
.watch { display: flex; gap: 12px; align-items: center; }
.watch img { width: 120px; border-radius: 28px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 18%; }
.compare .y { color: var(--ok); font-weight: 700; }
.compare .n { color: var(--muted); }
.note { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 16px; }
  .feature > img, .feature.flip > img { order: 0; max-width: 240px; margin: 0 auto; }
  .shots { gap: 8px; }
  .watch img { width: 96px; }
}
