/* Keel site. Colours are the extension's own tokens (src/styles/tokens.css in the keel repo). */
[hidden] { display: none !important; }

:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-alt: #EEF1F6;
  --text: #0F1B2D;
  --text-2: #26344D;
  --muted: #5B6880;
  --border: #E1E6F0;
  --primary: #0F1B2D;
  --on-primary: #FFFFFF;
  --accent: #F5A524;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 12px 32px rgba(15, 27, 45, .10);
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1424;
    --surface: #131C2F;
    --surface-alt: #1A2540;
    --text: #F1F4FA;
    --text-2: #C9D2E3;
    --muted: #93A0B8;
    --border: #24304A;
    --primary: #DCE6FF;
    --on-primary: #0F1B2D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }

/* Buttons and labels */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-md);
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--surface-alt); color: var(--text); border-color: var(--border); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.soon { color: var(--muted); font-size: 14px; font-weight: 600; }

/* Hero */
.hero { padding: 64px 0 32px; text-align: center; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 auto 16px; max-width: 760px; }
.hero p { font-size: 18px; color: var(--text-2); max-width: 620px; margin: 0 auto 28px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta .phone-note { color: var(--text-2); font-size: 15px; margin: 0; }
.cta .copied { color: var(--muted); font-size: 14px; margin: 0; overflow-wrap: anywhere; }

.shot { margin: 40px auto 0; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; width: 100%; max-width: 1000px; background: var(--surface); }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: 28px; line-height: 1.2; margin: 0 0 24px; letter-spacing: -0.01em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.feature svg { width: 24px; height: 24px; stroke: var(--text); }
.feature h3 { font-size: 16px; margin: 12px 0 4px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; }
.split .popup-shot { border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.split p { color: var(--text-2); margin: 0 0 12px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--text); margin-top: 2px; }

.sites { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.sites li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 4px 10px; font-size: 14px; font-weight: 600; }
.sites-note { color: var(--text-2); margin: 0 0 6px; font-size: 15px; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--text-2); margin: 10px 0 0; }

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

/* Simple pages (404) */
.page { padding: 80px 0; text-align: center; }
.page h1 { font-size: 36px; margin: 0 0 12px; }
.page p { color: var(--text-2); margin: 0 0 24px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split .popup-shot { max-width: 360px; }
}
@media (max-width: 640px) {
  .header-cta { display: none; }
  .hero { padding-top: 40px; }
  section { padding: 40px 0; }
}

/* Release notes (changelog/ is generated from store/release-notes.md in the keel repo) */
.tag { display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--surface-alt); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 700; }
.tag-pending { color: var(--muted); }
.whats-new { margin: 20px auto 0; font-size: 14px; color: var(--text-2); }
.whats-new a { font-weight: 700; margin-left: 4px; }
.releases { padding-top: 48px; padding-bottom: 48px; max-width: 760px; }
.releases h1 { font-size: 36px; margin: 0 0 24px; }
.release { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.release + .release { margin-top: 16px; }
.release h2 { font-size: 20px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.release-meta { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.release-headline { font-weight: 700; margin: 0 0 8px; }
.release ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.release li + li { margin-top: 4px; }
.empty { color: var(--text-2); }
