/* Voltsy site styles. Brand colours come only from aso-tokens.css.
   Direction: a calm instrument panel built on the battery cell itself.
   Rounded cells, level bars, tabular numerals. No decorative shapes. */

:root {
  --ink:    #16241C;
  --muted:  #4C5F55;
  --line:   #DCE9E1;
  --bg:     #F4FAF6;
  --card:   #FFFFFF;
  --tint:   #EAF4EE;
  --stop:   #A33A2A;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ---------- Type ---------- */

h1 {
  font-size: clamp(30px, 7.4vw, 46px);
  line-height: 1.11;
  letter-spacing: -0.022em;
  margin: 10px 0 14px;
}

h2 {
  font-size: clamp(23px, 4.6vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
}

h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -0.008em; }

p { margin: 0 0 14px; }

.lede { font-size: clamp(17px, 2.6vw, 20px); color: var(--muted); margin: 0 0 22px; }
.note { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 4px;
}

a { color: var(--brand-ink); }
a:hover { text-decoration: none; }

ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin: 0 0 7px; }

/* ---------- Battery cell divider ---------- */

.rule {
  position: relative;
  height: 12px;
  width: 108px;
  margin: 44px 0 20px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(90deg, var(--brand) 0 64%, transparent 64%);
}
.rule::after {
  content: "";
  position: absolute;
  right: -7px; top: 3px; bottom: 3px;
  width: 5px;
  border-radius: 0 3px 3px 0;
  background: var(--line);
}

/* ---------- Header and footer ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brandmark img { width: 30px; height: 30px; border-radius: 7px; display: block; }
.topbar nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }

footer.site {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 30px 0 40px;
  font-size: 15px;
  color: var(--muted);
}
footer.site a { color: var(--muted); }
footer.site .flinks { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Sections ---------- */

section { padding: 6px 0 4px; }
.hero { padding-top: 34px; }
.block { margin-top: 46px; }

/* ---------- Call to action ---------- */

.cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}
.cta-meta { font-size: 14px; color: var(--muted); max-width: 24em; }

/* ---------- Panels ---------- */

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.panel > :last-child { margin-bottom: 0; }
.panel + .panel { margin-top: 14px; }

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* ---------- Fact list: what iOS allows and what it does not ---------- */

.facts { list-style: none; padding: 0; margin: 0; }
.facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 12px;
}
.facts .mark { font-weight: 700; line-height: 1.5; font-size: 17px; }
.facts .yes .mark { color: var(--brand-ink); }
.facts .no .mark { color: var(--stop); }
.facts b { display: block; }
.facts span.d { color: var(--muted); font-size: 15px; }

/* ---------- Charge zone diagram ---------- */

.zone {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0 10px;
}
.zone .seg {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--card);
}
.zone .seg b { display: block; font-size: 15px; }
.zone .seg span { display: block; font-size: 14px; color: var(--muted); }
.zone .seg.ok { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.zone .seg.ok span { color: var(--on-brand); opacity: 0.82; }
@media (min-width: 620px) {
  .zone { flex-direction: row; gap: 0; }
  .zone .seg { flex: 0 0 auto; }
  .zone .seg.low  { width: 20%; border-radius: 10px 0 0 10px; }
  .zone .seg.ok   { width: 60%; border-radius: 0; }
  .zone .seg.high { width: 20%; border-radius: 0 10px 10px 0; }
}

/* ---------- Level bar (used for mood rows) ---------- */

.moods { list-style: none; padding: 0; margin: 0; }
.moods li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.moods li:first-child { border-top: 0; }
.moods b { font-size: 16px; }
.moods span { color: var(--muted); font-size: 15px; }
.bar {
  position: relative;
  height: 9px;
  border-radius: 5px;
  background: var(--tint);
  border: 1px solid var(--line);
  margin: 6px 0 2px;
  max-width: 220px;
}
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px 0 0 4px; }

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 0 14px;
  -webkit-overflow-scrolling: touch;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (min-width: 700px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
}

.shot-single {
  margin: 0;
  max-width: 260px;
}
.shot-single img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 20px; }
.shot-single figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---------- Steps ---------- */

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  margin: 0 0 14px;
  align-items: start;
}
ol.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- FAQ ---------- */

.faq h3 { margin-top: 0; }
.faq .panel + .panel { margin-top: 12px; }

/* ---------- Related pages ---------- */

.reads { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reads { grid-template-columns: 1fr 1fr; } }
.reads a {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 15px 17px;
}
.reads a b { display: block; color: var(--brand-ink); margin-bottom: 3px; }
.reads a span { display: block; font-size: 14.5px; color: var(--muted); }
.reads a:hover { border-color: var(--brand); }

/* ---------- Comparison table ---------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td b { font-weight: 700; }

/* ---------- Misc ---------- */

.pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
}
.back { font-size: 15px; display: inline-block; margin: 22px 0 0; }
