/* AutoBattery site. The ring gauge is the signature element: the same shape the
   app puts in the menu bar, filled to the same 80% limit it enforces. */
:root {
  --bg: #0d0f12;
  --bg-raised: #161a20;
  --line: #232932;
  --ink: #e8ecf1;
  --ink-dim: #98a2b0;
  --accent: #34c759;
  --accent-dim: #1f7a38;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

header { padding: 96px 0 72px; text-align: center; }

.gauge { width: 132px; height: 132px; margin: 0 auto 34px; display: block; }
.gauge .track { fill: none; stroke: #2a313c; stroke-width: 9; }
.gauge .fill {
  fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 339.29; stroke-dashoffset: 339.29;
  transform: rotate(-90deg); transform-origin: 50% 50%;
  animation: fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.gauge text {
  fill: var(--ink); font: 600 34px -apple-system, system-ui, sans-serif;
  text-anchor: middle; dominant-baseline: central;
}
@keyframes fill { to { stroke-dashoffset: 67.86; } }
@media (prefers-reduced-motion: reduce) {
  .gauge .fill { animation: none; stroke-dashoffset: 67.86; }
}

h1 { font-size: 44px; line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 16px; }
.tagline { font-size: 20px; color: var(--ink-dim); margin: 0 auto; max-width: 30rem; }

.cta {
  display: inline-block; margin-top: 34px; padding: 13px 28px;
  background: var(--accent); color: #04170a; text-decoration: none;
  border-radius: 980px; font-weight: 600; font-size: 17px;
}
.cta:hover { background: #3ad964; }
.cta.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta.secondary:hover { border-color: var(--ink-dim); background: transparent; }

section { padding: 44px 0; border-top: 1px solid var(--line); }
h2 { font-size: 25px; letter-spacing: -0.015em; margin: 0 0 18px; }
h3 { font-size: 18px; margin: 30px 0 8px; }
p { margin: 0 0 16px; color: var(--ink-dim); }
p strong, li strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.features li {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 20px; color: var(--ink-dim);
}

table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
th { color: var(--ink); font-weight: 600; }

.note {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 22px 0;
}
.note p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line); margin-top: 44px; padding: 32px 0 60px;
  color: #6b7482; font-size: 14.5px; display: flex; gap: 22px; flex-wrap: wrap;
}
footer a { color: #8b95a3; text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  header { padding: 64px 0 48px; }
  h1 { font-size: 33px; }
  .tagline { font-size: 18px; }
}

/* Command lines and config keys read as code, not prose. */
.mono, td.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  color: var(--ink);
}
