/* Action Center's site. The colours are the app's own (app/.../ui/theme/Tokens.kt).
   System fonts only: the site loads nothing from anyone else. */
:root {
  --bg: #0e1318;
  --bg-deep: #0a0e12;
  --surface: #161d25;
  --surface-2: #1f2832;
  --surface-3: #2a3542;
  --line: #24303b;
  --text: #e6edf3;
  --dim: #9aa7b4;
  --faint: #6b7886;
  --accent: #4fc3f7;
  --accent-ink: #06202b;
  --warm: #f6c08f;
  --good: #81c784;
  --bad: #e57373;
  --radius: 14px;
  --max: 1120px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8fd8fa; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin: 0 0 6px; }
strong { color: #fff; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 19, 24, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { color: var(--dim); font-weight: 500; }
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--dim); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); background: var(--surface-2); }
.top nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Type helpers */
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--dim); max-width: 46em; }
.dim { color: var(--dim); }
.small { font-size: 0.9rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 650; text-decoration: none; font-size: 1rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--surface-3);
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { background: #7fd3f9; color: var(--accent-ink); }

/* Hero */
.hero { position: relative; padding: 72px 0 24px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(23, 84, 214, 0.38), transparent 70%),
    radial-gradient(45% 45% at 10% 0%, rgba(79, 195, 247, 0.14), transparent 70%);
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); max-width: 14em; margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--dim); font-size: 0.92rem; list-style: none; padding: 0; margin: 0; }
.facts li { margin: 0; }
.facts li::before { content: "✓"; color: var(--good); margin-right: 6px; font-weight: 700; }

/* Screenshots */
.shot { margin: 0; }
.shot img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--surface-3);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 255, 255, 0.02);
  background: var(--surface);
}
.shot figcaption { color: var(--dim); font-size: 0.94rem; margin-top: 10px; }
.shot figcaption strong { color: var(--text); }
.hero-shot { margin-top: 44px; }

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block.tint { background: var(--bg-deep); }
.section-head { max-width: 46em; margin-bottom: 32px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--dim); margin: 0; }

.gallery { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split { display: grid; gap: 40px; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; }
.split.flip > :first-child { order: 2; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* Callouts */
.note, .warn { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.warn { border-left-color: var(--warm); }
.note p:last-child, .warn p:last-child { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.yes { color: var(--good); font-weight: 650; }
.partly { color: var(--warm); font-weight: 650; }
.no { color: var(--bad); font-weight: 650; }

/* Code */
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; }
pre code { background: none; padding: 0; font-size: 0.86rem; overflow-wrap: normal; }

/* FAQ */
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 650; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--dim); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 18px 16px; color: var(--dim); }
details.faq > div p:last-child { margin: 0; }

/* Article pages */
.page-head { padding: 56px 0 20px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
article h2 { font-size: clamp(1.35rem, 2.8vw, 1.7rem); margin-top: 44px; scroll-margin-top: 88px; }
article h3 { margin-top: 26px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 8px 0 8px; }
.toc p { margin: 0 0 6px; font-weight: 650; }
.toc ol { margin: 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 0.88rem; margin-top: 72px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
footer.site nav a { color: var(--dim); }
footer.site p { max-width: 60em; }

@media (max-width: 820px) {
  .split, .split.flip { grid-template-columns: 1fr; gap: 24px; }
  .split.flip > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr; }
  section.block { padding: 56px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .top { position: static; }
  html { scroll-padding-top: 16px; }
  .top-inner { padding: 10px 0; }
  .top nav a { padding: 6px 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
