/* Clickwheel website. Plain CSS, light and dark, no build step. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0a6cff;
  --accent-text: #ffffff;
  --warn: #b25000;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1b19;
    --bg-soft: #242320;
    --card: #2a2926;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #3a3936;
    --accent: #2f86ff;
    --warn: #ffb15c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
code, kbd { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }
kbd {
  padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--bg-soft); white-space: nowrap;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 18px; }
.brand img { width: 28px; height: 28px; }
.brand:hover { text-decoration: none; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a[aria-current="page"], .top nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) {
  .top .wrap { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
  .top nav { margin-left: 0; gap: 16px; flex-wrap: wrap; }
}

/* hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 32px; }
.hero .icon { width: 112px; height: 112px; }
.hero h1 { font-size: 52px; line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
.hero .lead { font-size: 22px; color: var(--muted); max-width: 680px; margin: 0 auto; }
@media (max-width: 640px) { .hero h1 { font-size: 38px; } .hero .lead { font-size: 19px; } }

.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 18px;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button svg { width: 20px; height: 20px; }
.download { margin: 32px 0 8px; }
.fine { color: var(--muted); font-size: 14px; }
.download .fine { margin-top: 12px; }

.shot { margin: 40px auto 0; display: block; }
.shot img { display: block; margin: 0 auto; width: 100%; max-width: 860px; }

/* sections */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.page-title { padding-top: 56px; padding-bottom: 8px; }
.page-title h1 { font-size: 44px; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.1; }
.page-title p { font-size: 20px; color: var(--muted); margin: 0; }
.section-lead { color: var(--muted); font-size: 19px; margin: 0 0 32px; max-width: 720px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.narrow .grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.narrow .grid.pairs { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
section.soft .card { border-color: transparent; }
.card p { margin: 0; color: var(--muted); }
.card .glyph {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; margin-bottom: 14px;
}
.card .glyph svg { width: 22px; height: 22px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--warn); margin-left: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-card tr:last-child td { border-bottom: 0; }
.yes { color: #1f9d55; font-weight: 600; }
@media (prefers-color-scheme: dark) { .yes { color: #4cd07d; } }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 58px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
ol.steps > li p { margin: 4px 0 0; color: var(--muted); }

.note {
  border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 10px 10px 0;
  padding: 14px 18px; margin: 24px 0;
}
.note.warn { border-left-color: var(--warn); }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
footer a { color: var(--muted); text-decoration: underline; }
