/* Voltsure product site. Colours follow the app icon: cream ground, green → teal → blue ring. */
:root {
  color-scheme: light dark;
  --bg: #fbfaf6;
  --bg-alt: #f3efe3;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5a5a5f;
  --line: #e4e1d8;
  --green: #2fb350;
  --teal: #14a3a8;
  --blue: #1d6fd6;
  --amber: #d98a00;
  --red: #d93a30;
  --accent: #1d6fd6;
  --ring: linear-gradient(135deg, #34c759, #14b8a6 55%, #2f7fe6);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(30,30,20,.08);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --bg-alt: #15181d;
    --surface: #1b1f25;
    --text: #f2f2f7;
    --muted: #a1a1a6;
    --line: #2a2f37;
    --green: #3ddc68;
    --teal: #2cc9c4;
    --blue: #5b9dff;
    --amber: #ffb340;
    --red: #ff6259;
    --accent: #6fa8ff;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: var(--teal); margin: 0 0 8px; }
.grad-text { background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 0 0 18px; }
.hero .lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 20px; }

/* App screenshots, from docs/app-store-screenshots in the Voltsure repo */
.shot { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 auto; border-radius: 38px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px var(--line); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.shots figure { margin: 0; }
.shots .shot { width: 260px; border-radius: 32px; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin: 18px auto 0; max-width: 260px; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pill.charging { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.pill.stable { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.pill.falling { background: color-mix(in srgb, var(--amber) 20%, transparent); color: var(--amber); }
.pill.low { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.pill.rising { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.pill.model { background: color-mix(in srgb, var(--text) 9%, transparent); color: var(--text); }
.pill.unknown { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }

/* Sections */
section { padding: 72px 0; }
.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

.privacy-strip { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* One row while it fits, else one left-aligned column, centred: never a ragged wrap */
.privacy-strip ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: 12px 28px; font-size: 15px; font-weight: 500; max-width: none; }
@media (max-width: 1240px) {
  .privacy-strip ul { flex-direction: column; align-items: flex-start; width: fit-content; }
}
.privacy-strip li { white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.privacy-strip svg { width: 20px; height: 20px; color: var(--green); flex: none; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--ring); }
.icon-badge svg { width: 24px; height: 24px; }
.tag-pro { font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--text); color: var(--bg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 0 0 14px; }
.split p { color: var(--muted); }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.status-list li { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; box-shadow: var(--shadow); font-size: 15px; }
.status-list .pill { font-size: 13px; text-align: center; padding: 4px 10px; }

/* Free vs Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.plan.pro { position: relative; }
.plan.pro::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 2px; background: var(--ring); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan h3 { font-size: 24px; margin: 0 0 4px; }
.plan .price { color: var(--muted); margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 16px; }
.plan li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.device { text-align: center; padding: 26px 16px; }
.device svg { width: 40px; height: 40px; color: var(--teal); }
.device h3 { font-size: 17px; margin: 10px 0 4px; }
.device p { margin: 0; font-size: 15px; color: var(--muted); }

.cta { text-align: center; }
.cta h2 { font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.cta p { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.cta .actions { justify-content: center; }

/* Content pages */
.page-hero { padding: 56px 0 8px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; }
.page-hero p { font-size: 19px; color: var(--muted); margin: 0; }
.prose { padding: 32px 0 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.callout { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin: 24px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout p:first-child { margin-top: 0; }

details { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 20px 14px; }
details > div p:first-child { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { margin: 0 0 10px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .brand span { display: none; }
  .grid, .plans { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .status-list li { grid-template-columns: 1fr; gap: 6px; }
  .status-list .pill { justify-self: start; }
}

/* The official App Store badge, beside the buttons */
.store-badge { display: inline-flex; align-items: center; }
.store-badge img { height: 54px; width: auto; display: block; }

/* New in 3.8: the wide CarPlay screen */
.wide-shot { margin: 0 auto 48px; max-width: 960px; }
.wide-shot img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4), 0 0 0 1px var(--line); }
.wide-shot figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }
