/* Same layout as the Chess Clock site; colours follow the Cube Timer icon (navy, cube green, timer cyan). */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1729;
  --muted: #4b5565;
  --border: #e2e7f0;
  --accent: #1b8a45;
  --accent-soft: #e5f5eb;
  --ring: #2bb6c9;
  --ink: #0d1a33;
  --badge-bg: #0d1a33;
  --badge-fg: #ffffff;
  --radius: 18px;
  --max: 1080px;
  font-family: -apple-system, "system-ui", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1324;
    --surface: #121c31;
    --text: #edf1f7;
    --muted: #a3aec0;
    --border: #22304a;
    --accent: #34c46a;
    --accent-soft: #14301f;
    --ring: #7fe3ef;
    --ink: #050a14;
    --badge-bg: #f1f4f8;
    --badge-fg: #0f1729;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

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

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 48px 0 64px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--badge-bg); color: var(--badge-fg); text-decoration: none;
  padding: 12px 20px; border-radius: 12px; font-weight: 600;
}
.store-note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.shots img {
  width: 46%; max-width: 190px; height: auto; border-radius: 26px;
  border: 6px solid var(--ink); box-shadow: 0 24px 60px rgba(13, 26, 51, .22);
}
.shots img:last-child { margin-top: 36px; }

/* Timer strip: the app's own numbers, set in tabular figures */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 64px;
}
.stats-strip div { background: var(--surface); padding: 18px 20px; }
.stats-strip span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.stats-strip strong { display: block; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stats-strip strong.pb { color: var(--accent); }

/* Feature grid */
.section-title { font-size: 28px; letter-spacing: -.01em; margin: 0 0 22px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 64px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.card h2, .card h3 { font-size: 19px; margin: 0 0 8px; }
.card p, .card ul { margin: 0; color: var(--muted); }
.card ul { padding-left: 20px; }
.card p + p, .card p + ul, .card ul + p { margin-top: 10px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }

/* Document pages */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); }
.doc .meta { color: var(--muted); font-size: 15px; margin: -8px 0 28px; }
.doc .card { margin-bottom: 16px; }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 14px; }
}

@media (max-width: 480px) {
  .brand img { width: 28px; height: 28px; }
  .nav { gap: 12px; flex-wrap: nowrap; }
  .nav a { font-size: 14px; }
  .card { padding: 18px; }
  .stats-strip strong { font-size: 24px; }
}
