/*
 * SundialEV marketing site: shared design tokens + component classes.
 * Phase 1 of the site redesign. See SITE_TOKENS.md for the token map, the
 * old-var to new-token migration table and the contrast numbers.
 *
 * Rules (enforced by scripts/check-site-tokens.mjs):
 *  - Raw hex/rgb colors live ONLY between the @tokens-start / @tokens-end
 *    markers, and only as custom-property values.
 *  - margin / padding / gap use only the spacing scale
 *    (4 8 12 16 24 32 48 64 96), 0, auto, or a --ds-* token.
 *  - Everything is prefixed `ds-` / `--ds-` so it cannot collide with the
 *    existing inline page CSS (`.s-*` and `.sd-*` are already taken there).
 *  - ONE theme (Brian, 2026-11-27): light grey page, white cards, near-black
 *    ink bands for the hero, the Tesla block and the final CTA. There is no
 *    dark mode and no prefers-color-scheme switch. `.ds-band` re-points the
 *    semantic tokens to their on-ink values, so any component placed on a
 *    band (text, cards, chips, links, buttons, screenshots) just works.
 *  - No webfonts: the stack is the existing pages' `--sans`, which renders the
 *    system UI face (SF Pro / Segoe UI / Roboto). Weights: 400 / 600 / 700 / 800.
 */

/* @tokens-start */
:root {
  /* ── Palette primitives (handoff "app-native neutral" table) ─────────────
     Components never read these directly; they read the semantic tokens
     below. page-* = on the light page, ink-* = on an ink band. */
  --ds-page-bg: #f5f5f7;
  --ds-page-surface: #ffffff;
  --ds-page-text: #1d1d1f;
  --ds-page-muted: #6e6e76;
  --ds-page-hairline: #e8e8ec;
  --ds-page-chip: #ededf0;
  --ds-page-amber-text: #9a5b0b;
  --ds-page-money: #1f7a4f;
  --ds-page-money-wash: #e3f1e9;
  --ds-page-peak: #b4492f;
  --ds-page-peak-wash: #fbe9e5;
  --ds-page-strip: #fff6e5;
  --ds-page-grid: #86868c;
  --ds-page-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);

  --ds-band: #131315;
  --ds-ink-surface: #1c1d21;
  --ds-ink-text: #f5f5f7;
  --ds-ink-muted: #a1a1a8;
  --ds-ink-hairline: #2a2a2e;
  --ds-ink-chip: #2a2a2e;
  --ds-ink-amber-text: #e9b864;
  --ds-ink-money: #7fcfa0;
  --ds-ink-money-wash: #1e2f26;
  --ds-ink-peak: #f07a7a;
  --ds-ink-peak-wash: #33201f;
  --ds-ink-grid: #7c7c82;

  --ds-amber: #e2a445;
  --ds-amber-hover: #d9993a;
  --ds-transparent: rgba(0, 0, 0, 0);

  /* ── Type ─────────────────────────────────────────────────────────────── */
  --ds-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* Fluid between a 360px and a 1440px viewport. */
  --ds-fs-h1: clamp(2.125rem, 1.625rem + 2.2222vw, 3.625rem); /* 34 → 58 */
  --ds-fs-h2: clamp(1.625rem, 1.3333rem + 1.2963vw, 2.5rem); /* 26 → 40 */
  --ds-fs-h3: clamp(1.25rem, 1.125rem + 0.5556vw, 1.625rem); /* 20 → 26 */
  --ds-fs-body: clamp(0.9375rem, 0.8958rem + 0.1852vw, 1.0625rem); /* 15 → 17 (Phase 6; was 16 → 18) */
  /* Bold run-in labels and mini headings that used to share the body size
     keep the old 16 → 18 step, so they do not shrink with body text. */
  --ds-fs-label: clamp(1rem, 0.9583rem + 0.1852vw, 1.125rem); /* 16 → 18 */
  --ds-fs-small: clamp(0.8125rem, 0.7917rem + 0.0926vw, 0.875rem); /* 13 → 14 */
  --ds-fs-eyebrow: clamp(0.75rem, 0.7292rem + 0.0926vw, 0.8125rem); /* 12 → 13 */
  --ds-fw-regular: 400;
  --ds-fw-semibold: 600;
  --ds-fw-bold: 700;
  --ds-fw-extrabold: 800;
  --ds-lh-h1: 1.05;
  --ds-lh-h2: 1.1;
  --ds-lh-h3: 1.12;
  --ds-lh-body: 1.5;
  --ds-measure: 35rem; /* ~560px, ~65 characters of body text */

  /* ── Spacing scale (the ONLY margin/padding/gap values) ──────────────── */
  --ds-space-4: 4px;
  --ds-space-8: 8px;
  --ds-space-12: 12px;
  --ds-space-16: 16px;
  --ds-space-24: 24px;
  --ds-space-32: 32px;
  --ds-space-48: 48px;
  --ds-space-64: 64px;
  --ds-space-96: 96px;

  /* Layout tokens fixed by the handoff spec. --ds-section-pad 40px (mobile)
     and --ds-gutter 20px (<400px) are spec-mandated values that are not on
     the spacing scale; the lint script whitelists exactly these two. */
  --ds-section-pad: 40px; /* <768 */
  --ds-gutter: 24px;
  --ds-container: 1200px; /* includes the gutter */

  /* ── Radius / depth / control sizes ───────────────────────────────────── */
  --ds-radius-card: 18px;
  --ds-radius-shot: 14px;
  --ds-radius-btn: 12px;
  --ds-radius-chip: 999px;
  --ds-btn-h: 48px; /* 52px at >=1024 */
  --ds-shot-max: 380px;
  --ds-focus-width: 2px;
  --ds-focus-offset: 2px;

  /* Phase 2 (homepage + shared nav/footer). */
  --ds-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --ds-btn-h-sm: 40px; /* compact nav button */
  --ds-nav-h: 64px;
  --ds-anchor-offset: 80px; /* sticky nav + breathing room on a hash jump */
  --ds-radius-phone: 32px;
  --ds-radius-mark: 8px;
  --ds-logo-box-h: 72px;
  --ds-icon-plate: 40px;
  --ds-rate-bar-h: 12px;
  --ds-range-track-h: 10px;
  --ds-range-handle: 22px;

  /* Phase 6 (hero rate bars, restored from the pre-redesign hero). */
  --ds-hero-rate-h: 10px;
  --ds-hero-rate-lbl: 92px; /* label column; 84px under 768 */
}
/* @tokens-end */

@media (min-width: 768px) {
  :root { --ds-section-pad: 64px; }
}
@media (min-width: 1024px) {
  :root { --ds-section-pad: 96px; --ds-btn-h: 52px; }
}
@media (max-width: 399.98px) {
  :root { --ds-gutter: 20px; }
}

/* ── Semantic tokens: the page ───────────────────────────────────────────── */
:root {
  color-scheme: light;
  --ds-bg: var(--ds-page-bg);
  --ds-surface: var(--ds-page-surface);
  --ds-text: var(--ds-page-text);
  --ds-muted: var(--ds-page-muted);
  --ds-hairline: var(--ds-page-hairline);
  --ds-chip: var(--ds-page-chip);
  --ds-accent: var(--ds-amber);
  --ds-accent-hover: var(--ds-amber-hover);
  --ds-on-accent: var(--ds-band);
  --ds-accent-text: var(--ds-page-amber-text);
  --ds-money: var(--ds-page-money);
  --ds-money-wash: var(--ds-page-money-wash);
  --ds-peak: var(--ds-page-peak);
  --ds-peak-wash: var(--ds-page-peak-wash);
  --ds-strip-bg: var(--ds-page-strip);
  --ds-grid: var(--ds-page-grid);
  --ds-focus: var(--ds-page-text);
  --ds-shadow: var(--ds-page-shadow);
  --ds-card-edge: var(--ds-transparent);
}

/* ── Semantic tokens: on an ink band (band-scoped, not a theme) ─────────────
   Cards on a band are the raised #1C1D21 surface with a 1px hairline instead
   of a shadow; accent text becomes the light amber. The amber fill, its label
   colour and the strip tint are the same on a band as on the page. */
.ds-band {
  color-scheme: dark;
  --ds-surface: var(--ds-ink-surface);
  --ds-text: var(--ds-ink-text);
  --ds-muted: var(--ds-ink-muted);
  --ds-hairline: var(--ds-ink-hairline);
  --ds-chip: var(--ds-ink-chip);
  --ds-accent-text: var(--ds-ink-amber-text);
  --ds-money: var(--ds-ink-money);
  --ds-money-wash: var(--ds-ink-money-wash);
  --ds-peak: var(--ds-ink-peak);
  --ds-peak-wash: var(--ds-ink-peak-wash);
  --ds-grid: var(--ds-ink-grid);
  --ds-focus: var(--ds-ink-text);
  --ds-shadow: 0 0 0 0 var(--ds-transparent); /* no shadow; stays list-safe */
  --ds-card-edge: var(--ds-ink-hairline);
}

/* The NEM 2.0 strip is a light, warm surface wherever it sits, so it pins
   its text back to the page values (it must never inherit on-ink white). */
.ds-strip {
  color-scheme: light;
  --ds-text: var(--ds-page-text);
  --ds-muted: var(--ds-page-muted);
  --ds-accent-text: var(--ds-page-amber-text);
  --ds-money: var(--ds-page-money);
  --ds-focus: var(--ds-page-text);
}

/* ═════════════════════════════════════════════════════════════════════════
   Components. Tokens only below this line.
   ═════════════════════════════════════════════════════════════════════════ */

/* Page root: opt-in (put on <body>). Nothing here styles bare elements. */
.ds-page {
  margin: 0;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-sans);
  font-size: var(--ds-fs-body);
  line-height: var(--ds-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Margin resets at zero specificity, so layout helpers (.ds-flow, inline
   spacing) always win over a component's own reset. */
:where(.ds-h1, .ds-h2, .ds-h3, .ds-body, .ds-lead, .ds-small, .ds-eyebrow,
  .ds-checks, .ds-steps, .ds-logo-wall, .ds-compare__col, .ds-faq__a, .ds-review),
:where(.ds-card, .ds-tile, .ds-plan, .ds-review) > * {
  margin: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.ds-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-container);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}
/* Alias kept for the name used in the Phase 1 brief. */
.site-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--ds-container);
  margin-inline: auto;
  padding-inline: var(--ds-gutter);
}

.ds-section {
  padding-block: var(--ds-section-pad);
}
/* Consecutive sections on the same background are separated by ONE section
   pad (96 / 64 / 40), not two (Phase 7): the first keeps its bottom pad and
   the second drops its top pad to 0. Same background = both plain page
   sections, both --surface, or both ink bands. Different backgrounds (page
   ↔ band ↔ surface ↔ the NEM .ds-strip) keep the full pad on both sides.
   .ds-section--tight-top does the same by hand (after a wrapper element the
   sibling rule can't see). */
.ds-section:not(.ds-band, .ds-section--surface) + .ds-section:not(.ds-band, .ds-section--surface),
.ds-section--surface + .ds-section--surface,
.ds-band + .ds-section.ds-band,
.ds-section--tight-top {
  padding-top: 0;
}
/* No trailing slack inside a section: the section pad is the only space
   under its last block. */
.ds-section > .ds-container > :last-child { margin-bottom: 0; }
/* A section straight after the full-width NEM .ds-strip takes one step less
   top pad (24 / 32 / 48): the strip is a thin divider, not a section, so a
   full pad under it read as a hole (Brian 11-28, Phase 6 item 8 — kept). */
.ds-strip + .ds-section { padding-top: var(--ds-space-24); }
@media (min-width: 768px) { .ds-strip + .ds-section { padding-top: var(--ds-space-32); } }
@media (min-width: 1024px) { .ds-strip + .ds-section { padding-top: var(--ds-space-48); } }
/* Ink band: hero, Tesla block, final CTA. */
.ds-band {
  background: var(--ds-band);
  color: var(--ds-text);
}
/* NEM 2.0 highlight strip: the one warm tint. Centered by spec. */
.ds-strip {
  background: var(--ds-strip-bg);
  color: var(--ds-text);
  padding-block: var(--ds-space-24);
  text-align: center;
}
.ds-strip p {
  margin: 0 auto;
  max-width: var(--ds-measure);
  font-size: var(--ds-fs-body);
  text-wrap: pretty;
}
.ds-center { text-align: center; }

/* Vertical rhythm inside a section: eyebrow → H 12, H → body 16, blocks 32. */
.ds-flow > * { margin-block: 0; }
.ds-flow > * + * { margin-top: var(--ds-space-32); }
.ds-flow > .ds-eyebrow + * { margin-top: var(--ds-space-12); }
.ds-flow > :is(.ds-h1, .ds-h2, .ds-h3) + :is(.ds-body, .ds-lead, p) { margin-top: var(--ds-space-16); }
.ds-flow--tight > * + * { margin-top: var(--ds-space-24); }

/* ── Type ───────────────────────────────────────────────────────────────── */
.ds-h1,
.ds-h2,
.ds-h3 {
  font-family: var(--ds-sans);
  color: var(--ds-text);
}
.ds-h1 {
  font-size: var(--ds-fs-h1);
  line-height: var(--ds-lh-h1);
  font-weight: var(--ds-fw-extrabold);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ds-h2 {
  font-size: var(--ds-fs-h2);
  line-height: var(--ds-lh-h2);
  font-weight: var(--ds-fw-bold);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ds-h3 {
  font-size: var(--ds-fs-h3);
  line-height: var(--ds-lh-h3);
  font-weight: var(--ds-fw-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ds-body,
.ds-lead {
  font-size: var(--ds-fs-body);
  line-height: var(--ds-lh-body);
  font-weight: var(--ds-fw-regular);
  max-width: var(--ds-measure);
  text-wrap: pretty;
}
.ds-body { color: var(--ds-text); }
.ds-lead { color: var(--ds-muted); }
.ds-small {
  font-size: var(--ds-fs-small);
  line-height: var(--ds-lh-body);
  color: var(--ds-muted);
  text-wrap: pretty;
}
.ds-eyebrow {
  font-size: var(--ds-fs-eyebrow);
  line-height: 1.3;
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-accent-text);
}
/* Amber emphasis inside a headline ("5¢"): accent TEXT token, never the fill. */
.ds-em-solar { color: var(--ds-accent-text); }
.ds-em-money { color: var(--ds-money); font-weight: var(--ds-fw-bold); }
.ds-em-peak { color: var(--ds-peak); font-weight: var(--ds-fw-bold); }
.nowrap { white-space: nowrap; }

.ds-link {
  color: var(--ds-accent-text);
  font-weight: var(--ds-fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: 4px;
}
.ds-link:hover { text-decoration-thickness: 2px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.ds-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-8);
  min-height: var(--ds-btn-h);
  padding: 0 var(--ds-space-24);
  border: 1px solid var(--ds-transparent);
  border-radius: var(--ds-radius-btn);
  font-family: var(--ds-sans);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: var(--ds-fw-bold);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ds-btn--primary {
  background: var(--ds-accent);
  color: var(--ds-on-accent);
}
.ds-btn--primary:hover { background: var(--ds-accent-hover); }
.ds-btn--secondary {
  background: var(--ds-surface);
  color: var(--ds-text);
  border-color: var(--ds-hairline);
}
.ds-btn--secondary:hover { border-color: var(--ds-muted); }
.ds-btn--block { display: flex; width: 100%; }
.ds-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-12);
}

/* ── Chips ──────────────────────────────────────────────────────────────── */
.ds-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-8);
  min-height: 32px;
  padding: 0 var(--ds-space-12);
  border-radius: var(--ds-radius-chip);
  background: var(--ds-chip);
  color: var(--ds-text);
  font-size: var(--ds-fs-small);
  line-height: 1.2;
  font-weight: var(--ds-fw-semibold);
  text-decoration: none;
  white-space: nowrap;
}
a.ds-chip:hover { background: var(--ds-hairline); }
.ds-chip--money {
  background: var(--ds-money-wash);
  color: var(--ds-money);
}
.ds-chip--peak {
  background: var(--ds-peak-wash);
  color: var(--ds-peak);
}
.ds-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-8);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.ds-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-12);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  color: var(--ds-text);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
.ds-card__cta { margin-top: auto; }
.ds-card--accent { border-color: var(--ds-accent); }
/* Row of equal-height cards. */
.ds-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-24);
  align-items: stretch;
}
@media (min-width: 768px) {
  .ds-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Check list (green checks, icon centered on the first line) ─────────── */
.ds-checks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--ds-space-8);
}
.ds-checks li {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-12);
  font-size: var(--ds-fs-body);
  line-height: var(--ds-lh-body);
}
.ds-checks li::before,
.ds-plan__features li::before {
  content: "";
  flex: 0 0 20px;
  /* Box is exactly one line tall, so the 20px glyph centers on line one. */
  height: calc(1em * 1.5);
  background-color: var(--ds-money);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.ds-checks--sm li { font-size: var(--ds-fs-small); }

/* Numbered list (offer block). */
.ds-steps {
  list-style: none;
  counter-reset: ds-step;
  padding: 0;
  display: grid;
  gap: var(--ds-space-16);
}
.ds-steps li {
  counter-increment: ds-step;
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-16);
}
.ds-steps li::before {
  content: counter(ds-step);
  flex: 0 0 auto;
  min-width: 1.25em;
  font-weight: var(--ds-fw-bold);
  color: var(--ds-accent-text);
}

/* ── Screenshot frame ───────────────────────────────────────────────────────
   <div class="ds-shot"><img src="x-light.jpg" width="760" height="719" alt="…"></div>
   Light screenshots only. width/height on the <img> reserve the aspect ratio
   (no layout shift). Soft shadow on the page; 1px hairline on an ink band
   (both via --ds-shadow / --ds-card-edge). */
.ds-shot {
  display: block;
  width: 100%;
  max-width: var(--ds-shot-max);
}
.ds-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ds-radius-shot);
  border: 1px solid var(--ds-card-edge);
  box-shadow: var(--ds-shadow);
  box-sizing: border-box;
}
.ds-shot--center { margin-inline: auto; }

/* ── Bento grid ─────────────────────────────────────────────────────────────
   3 cols ≥1024, 2 cols 768–1023, 1 col <768. Gap 24px: the handoff's 20px is
   off the spacing scale, so this uses the nearest scale step. */
.ds-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-24);
}
@media (min-width: 768px) {
  .ds-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ds-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; }
}
.ds-tile {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
  min-width: 0;
}
.ds-tile__head {
  display: flex;
  align-items: center;
  gap: var(--ds-space-8);
}
.ds-tile__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--ds-accent-text);
}
.ds-tile__text { color: var(--ds-muted); font-size: var(--ds-fs-small); text-wrap: pretty; }
/* Media is pinned to the tile bottom in a fixed-aspect box sized to the
   provided 2× crops (740×460 small, 840×460 wide, 740×1200 tall). */
.ds-tile__media {
  margin-top: auto;
  padding-top: var(--ds-space-16);
}
.ds-tile__media > .ds-media,
.ds-tile__media > .ds-media-box {
  display: block;
  aspect-ratio: 740 / 460;
  border-radius: var(--ds-radius-shot);
  overflow: hidden;
  background: var(--ds-chip);
}
.ds-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-tile--wide .ds-tile__media > .ds-media,
.ds-tile--wide .ds-tile__media > .ds-media-box { aspect-ratio: 840 / 460; }
.ds-tile--tall .ds-tile__media > .ds-media,
.ds-tile--tall .ds-tile__media > .ds-media-box { aspect-ratio: 740 / 1200; }
@media (min-width: 1024px) {
  /* Desktop: wide tiles span two columns with the text beside the image.
     Below 1024 they are ordinary single-column tiles (on the 2-column tablet
     grid a 2-span tile leaves holes), keeping their own 840/460 media box. */
  .ds-tile--wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto 1fr;
    column-gap: var(--ds-space-24);
    row-gap: var(--ds-space-8);
    align-content: start;
  }
  .ds-tile--wide > :not(.ds-tile__media) { grid-column: 1; }
  .ds-tile--wide .ds-tile__media {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: end;
    padding-top: 0;
  }
  .ds-tile--tall { grid-row: span 2; }
}

/* ── Logo wall ──────────────────────────────────────────────────────────── */
.ds-logo-group + .ds-logo-group { margin-top: var(--ds-space-24); }
.ds-logo-group > .ds-eyebrow { color: var(--ds-muted); margin-bottom: var(--ds-space-12); }
.ds-logo-wall {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-8);
}
@media (min-width: 768px) {
  .ds-logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ds-space-12); }
}
.ds-logo-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ds-logo-box-h);
  padding: var(--ds-space-12);
  border-radius: var(--ds-radius-btn);
  background: var(--ds-chip);
  color: var(--ds-text); /* muted on chip is 4.33:1, below AA */
  font-size: var(--ds-fs-small);
  font-weight: var(--ds-fw-semibold);
  text-align: center;
}
/* Monochrome logos: SVG with fill="currentColor", one optical height. */
.ds-logo-box svg,
.ds-logo-box img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 80%;
}

/* ── Plan cards: prices on one baseline, CTAs pinned to the bottom ─────────
   Each card is a 5-row subgrid of .ds-plans (name / price / tagline /
   features / cta), so every row lines up across cards even when a tagline or
   a feature wraps. Order inside a card: .ds-plan__name, .ds-plan__price,
   .ds-plan__copy (one short tagline), .ds-plan__features, .ds-plan__cta. An
   optional .ds-plan__badge ("Most popular") is positioned on the top edge,
   so it takes no grid row and the names stay aligned. */
.ds-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ds-space-24);
}
@media (min-width: 768px) {
  .ds-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    row-gap: 0;
  }
}
.ds-plan {
  box-sizing: border-box;
  display: grid;
  position: relative;
  grid-template-rows: subgrid;
  grid-row: span 5;
  row-gap: var(--ds-space-16);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
/* Featured = 2px amber edge drawn as border + 1px ring, so its box (and its
   CTA position) stays identical to the 1px-bordered cards beside it. */
.ds-plan--featured {
  border-color: var(--ds-accent);
  box-shadow: 0 0 0 1px var(--ds-accent), var(--ds-shadow);
}
.ds-plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-8);
  font-size: var(--ds-fs-h3);
  line-height: var(--ds-lh-h3);
  font-weight: var(--ds-fw-bold);
}
/* Top of a subgrid row that starts at the same y in every card, so the
   amounts share a baseline even when the yearly line wraps. */
.ds-plan__price {
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: var(--ds-space-8);
}
.ds-plan__amount {
  font-size: var(--ds-fs-h2);
  line-height: 1;
  font-weight: var(--ds-fw-extrabold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ds-plan__per { font-size: var(--ds-fs-small); color: var(--ds-muted); }
.ds-plan__copy { color: var(--ds-muted); font-size: var(--ds-fs-body); text-wrap: pretty; }
.ds-plan__cta { align-self: end; }

/* ── Comparison: two columns, rows aligned across both ─────────────────── */
.ds-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-12);
}
@media (min-width: 768px) {
  .ds-compare { gap: var(--ds-space-24); }
}
.ds-compare__col {
  --ds-compare-rows: 5;
  box-sizing: border-box;
  display: grid;
  grid-row: span var(--ds-compare-rows);
  grid-template-rows: subgrid;
  row-gap: var(--ds-space-12);
  padding: var(--ds-space-16);
  list-style: none;
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
  font-size: var(--ds-fs-small);
  line-height: 1.4;
}
@media (min-width: 768px) {
  .ds-compare__col { padding: var(--ds-space-24); font-size: var(--ds-fs-body); }
}
.ds-compare__col > li { color: var(--ds-muted); }
.ds-compare__col > .ds-compare__head {
  font-weight: var(--ds-fw-bold);
  color: var(--ds-text);
}
.ds-compare__col--us { border-color: var(--ds-accent); }
.ds-compare__col--us > li { color: var(--ds-text); }
.ds-compare__col--us > .ds-compare__head { color: var(--ds-accent-text); }

/* ── Proof / review cards ───────────────────────────────────────────────── */
.ds-reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 85%;
  gap: var(--ds-space-16);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--ds-space-4);
}
.ds-reviews::-webkit-scrollbar { display: none; }
.ds-reviews > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .ds-reviews {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ds-space-24);
    overflow: visible;
  }
}
.ds-review {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-12);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
/* Review stars: amber fill (CLAUDE.md exception 3: star ratings only). */
.ds-review__stars { color: var(--ds-accent); letter-spacing: 0.1em; font-size: var(--ds-fs-small); }
.ds-review__quote { font-size: var(--ds-fs-body); text-wrap: pretty; }
.ds-review__by { margin-top: auto; font-size: var(--ds-fs-small); color: var(--ds-muted); }

/* ── FAQ accordion (<details>) ──────────────────────────────────────────── */
.ds-faq {
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
  overflow: hidden;
}
.ds-faq details + details { border-top: 1px solid var(--ds-hairline); }
.ds-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-16);
  min-height: var(--ds-btn-h);
  padding: var(--ds-space-16) var(--ds-space-24);
  font-size: var(--ds-fs-label); /* questions keep 16 → 18; answers take body */
  font-weight: var(--ds-fw-semibold);
  cursor: pointer;
  list-style: none;
  text-wrap: pretty;
}
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  background-color: var(--ds-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  transition: transform 0.2s ease;
}
.ds-faq details[open] > summary::after { transform: rotate(180deg); }
.ds-faq summary:focus-visible { outline-offset: calc(var(--ds-focus-width) * -2); }
.ds-faq__a {
  padding: 0 var(--ds-space-24) var(--ds-space-24);
  color: var(--ds-muted);
  max-width: var(--ds-measure);
  text-wrap: pretty;
}

/* ── Focus rings: visible in both themes and on ink bands ──────────────── */
.ds-page :focus-visible,
.ds-btn:focus-visible,
.ds-link:focus-visible,
.ds-chip:focus-visible,
.ds-faq summary:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}

/* ── Motion ─────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ds-page *,
  .ds-page *::before,
  .ds-page *::after,
  .ds-btn,
  .ds-faq summary::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   Phase 2: homepage sections + the shared site nav / footer partials
   (partials/site-nav.html, partials/site-footer.html). Tokens only.
   ═════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  html:has(.ds-page) { scroll-behavior: smooth; }
}
/* Every in-page anchor clears the sticky nav on a hash jump. */
.ds-page [id] { scroll-margin-top: var(--ds-anchor-offset); }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
/* Two-column row: stacks under 1024, then copy | media, vertically centred.
   Default 5/7 (media wider); --even 1:1; --hero is the 7/5 hero split. */
.ds-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-32);
  align-items: center;
}
@media (min-width: 1024px) {
  .ds-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--ds-space-64); }
  .ds-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-split--hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ds-space-48); }
  .ds-split--top { align-items: start; }
}
/* --late: stays stacked until 1200, for a media | 2-column-card row that is
   too cramped at 1024. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .ds-split--late { grid-template-columns: minmax(0, 1fr); }
}
.ds-measure { max-width: var(--ds-measure); }
/* A plain section on the white surface (the logo wall's chip boxes need it). */
.ds-section--surface { background: var(--ds-surface); }
/* A review card that is itself a link (App Store quotes). */
a.ds-review { color: var(--ds-text); text-decoration: none; }
a.ds-review:hover .ds-review__by { text-decoration: underline; text-underline-offset: 0.2em; }
.ds-center .ds-body,
.ds-center .ds-lead,
.ds-center .ds-measure { margin-inline: auto; }
.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Compact button (nav). */
.ds-btn--sm {
  min-height: var(--ds-btn-h-sm);
  padding: 0 var(--ds-space-16);
  font-size: var(--ds-fs-small);
}

/* ── Site nav (partials/site-nav.html) ──────────────────────────────────── */
.ds-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ds-band);
  border-bottom: 1px solid var(--ds-hairline);
}
.ds-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-24);
  min-height: var(--ds-nav-h);
}
.ds-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-12);
  color: var(--ds-text);
  text-decoration: none;
  flex: none;
}
.ds-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ds-radius-mark);
  background: var(--ds-accent);
  overflow: hidden;
  flex: none;
}
.ds-brand__mark img { display: block; width: 100%; height: 100%; }
.ds-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.ds-brand__name {
  font-size: 1.3125rem;
  font-weight: var(--ds-fw-bold);
  letter-spacing: -0.025em;
}
.ds-brand__tag {
  margin-top: var(--ds-space-4);
  font-family: var(--ds-mono);
  font-size: 0.59375rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-muted);
  white-space: nowrap; /* the logo block never becomes two lines */
}
.ds-nav__links {
  display: none;
  align-items: center;
  gap: var(--ds-space-24);
  margin-inline-start: auto;
  font-size: var(--ds-fs-small);
  font-weight: var(--ds-fw-semibold);
}
.ds-nav__links a {
  color: var(--ds-muted);
  text-decoration: none;
  border-radius: 4px;
}
.ds-nav__links a:hover { color: var(--ds-text); }
.ds-nav__cta { display: flex; align-items: center; gap: var(--ds-space-8); }
/* Variant-only "Get the app" button (landing c2/c3 switch it on). */
.ds-nav__getapp { display: none; }
/* The middle links need ~840px alongside the brand and the button. */
@media (min-width: 880px) {
  .ds-nav__links { display: flex; }
}
/* Small phones: brand + button share a ~320px row, so tighten the gaps, the
   button padding and the strapline tracking (the logo block stays one line). */
@media (max-width: 399.98px) {
  .ds-nav__inner { gap: var(--ds-space-8); }
  .ds-nav .ds-brand { gap: var(--ds-space-8); }
  .ds-nav .ds-brand__tag { letter-spacing: 0.12em; }
  .ds-nav .ds-btn--sm { padding: 0 var(--ds-space-12); }
}
/* Below 360px there is no room for brand + button; the hero button and the
   sticky bottom CTA carry the action (unchanged behaviour). */
@media (max-width: 359.98px) {
  .ds-nav__cta { display: none !important; }
}

/* ── Site footer (partials/site-footer.html) ────────────────────────────── */
.ds-footer {
  padding-block: var(--ds-space-64) var(--ds-space-48);
  background: var(--ds-bg);
  border-top: 1px solid var(--ds-hairline);
  color: var(--ds-muted);
  font-size: var(--ds-fs-small);
}
.ds-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-32) var(--ds-space-24);
}
@media (min-width: 768px) {
  .ds-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ds-footer__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ds-footer__group h2 {
  margin: 0 0 var(--ds-space-12);
  font-size: var(--ds-fs-eyebrow);
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-text);
}
.ds-footer__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ds-space-8); }
.ds-footer__group a {
  color: var(--ds-muted);
  text-decoration: none;
  border-radius: 4px;
}
.ds-footer__group a:hover { color: var(--ds-text); text-decoration: underline; text-underline-offset: 0.2em; }
.ds-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-16) var(--ds-space-32);
  margin-top: var(--ds-space-48);
  padding-top: var(--ds-space-24);
  border-top: 1px solid var(--ds-hairline);
}
.ds-footer__base p { margin: 0; max-width: var(--ds-measure); }
.ds-footer__base .ds-footer__tm { margin-top: var(--ds-space-4); }

/* ── Homepage hero (ink band) ───────────────────────────────────────────── */
.ds-hero { padding-block: var(--ds-space-32) var(--ds-section-pad); }
/* Desktop top pad is one scale step under the old 64 (Phase 6): the copy
   column sits higher under the nav; the columns stay centred on each other. */
@media (min-width: 1024px) {
  .ds-hero { padding-block: var(--ds-space-48) var(--ds-section-pad); }
}
.ds-hero__copy { min-width: 0; }
/* Desktop: the copy column starts at one fixed height under the nav on every
   page (Phase 7), instead of floating to the centre of the demo column, so a
   shorter hero copy (/features) sits exactly where /landing's does. The 24px
   inset puts the eyebrow just under the demo's top edge; /landing's copy is
   within a few px of the demo's height, so it still reads as centred on it. */
@media (min-width: 1024px) {
  .ds-split--hero { align-items: start; }
  .ds-split--hero > .ds-hero__copy { padding-top: var(--ds-space-24); }
}
.ds-hero__visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-16);
}
.ds-hero__caption { text-align: center; }
.ds-cta { display: grid; gap: var(--ds-space-16); justify-items: start; }
.ds-cta--center { justify-items: center; }
.ds-cta__store { display: grid; gap: var(--ds-space-12); width: 100%; }
@media (min-width: 768px) {
  .ds-cta__store { max-width: 380px; }
}
.ds-proofline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-4) var(--ds-space-8);
  font-size: var(--ds-fs-small);
  color: var(--ds-muted);
}
.ds-proofline a { color: inherit; text-decoration: none; }
.ds-proofline a:hover { color: var(--ds-text); text-decoration: underline; text-underline-offset: 0.2em; }
.ds-star { color: var(--ds-accent); } /* star ratings: CLAUDE.md exception 3 */

/* ── Problem: two-bar rate comparison ───────────────────────────────────── */
.ds-rates { display: grid; gap: var(--ds-space-16); }
.ds-rate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--ds-space-8) var(--ds-space-16);
  align-items: baseline;
}
.ds-rate__label { color: var(--ds-text); }
.ds-rate__value {
  font-size: var(--ds-fs-h3);
  line-height: 1;
  font-weight: var(--ds-fw-extrabold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ds-rate__track {
  grid-column: 1 / -1;
  height: var(--ds-rate-bar-h);
  border-radius: var(--ds-radius-chip);
  background: var(--ds-chip);
  overflow: hidden;
}
.ds-rate__fill {
  display: block;
  height: 100%;
  width: var(--ds-rate, 100%);
  border-radius: inherit;
  background: var(--ds-grid);
}
.ds-rate--peak .ds-rate__fill { background: var(--ds-peak); }
.ds-rate--peak .ds-rate__value { color: var(--ds-peak); }

/* ── One slider: two-zone charge range ──────────────────────────────────── */
.ds-range { --ds-floor: 30%; --ds-ceiling: 85%; }
.ds-range__labels {
  display: flex;
  justify-content: space-between;
  gap: var(--ds-space-16);
  font-size: var(--ds-fs-small);
  font-weight: var(--ds-fw-bold);
}
.ds-range__floor-label { color: var(--ds-muted); }
.ds-range__solar-label { color: var(--ds-accent-text); text-align: right; }
.ds-range__track {
  position: relative;
  margin-block: var(--ds-space-16) var(--ds-space-12);
  height: var(--ds-range-track-h);
  border-radius: var(--ds-radius-chip);
  background: linear-gradient(to right,
    var(--ds-grid) 0 var(--ds-floor),
    var(--ds-accent) var(--ds-floor) var(--ds-ceiling),
    var(--ds-chip) var(--ds-ceiling) 100%);
}
.ds-range__handle {
  position: absolute;
  top: 50%;
  width: var(--ds-range-handle);
  height: var(--ds-range-handle);
  border-radius: 50%;
  background: var(--ds-surface);
  border: 3px solid var(--ds-grid);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}
.ds-range__handle--floor { left: var(--ds-floor); }
.ds-range__handle--solar { left: var(--ds-ceiling); border-color: var(--ds-accent); }
.ds-range__ticks {
  position: relative;
  height: 1.5em;
  font-size: var(--ds-fs-small);
  color: var(--ds-muted);
  font-variant-numeric: tabular-nums;
}
.ds-range__ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.ds-range__ticks span:first-child { transform: none; }
.ds-range__ticks span:last-child { transform: translateX(-100%); }
.ds-range__zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-16);
  margin-top: var(--ds-space-24);
}
.ds-range__zone h3 {
  margin: 0 0 var(--ds-space-4);
  display: flex;
  align-items: center;
  gap: var(--ds-space-8);
  font-size: var(--ds-fs-label);
  font-weight: var(--ds-fw-bold);
}
.ds-range__zone h3::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ds-grid);
}
.ds-range__zone--solar h3 { color: var(--ds-accent-text); }
.ds-range__zone--solar h3::before { background: var(--ds-accent); }
.ds-range__zone p { margin: 0; font-size: var(--ds-fs-small); color: var(--ds-muted); text-wrap: pretty; }
/* The dashboard's own line, mirrored under the zones. */
.ds-range__note {
  display: flex;
  align-items: center;
  gap: var(--ds-space-8);
  margin: var(--ds-space-24) 0 0;
  padding-top: var(--ds-space-16);
  border-top: 1px solid var(--ds-hairline);
  font-size: var(--ds-fs-small);
  color: var(--ds-muted);
}
.ds-range__note::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-accent);
}

/* ── Light phone frame around one screenshot ────────────────────────────── */
.ds-phone {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: var(--ds-shot-max);
  margin-inline: auto;
  padding: var(--ds-space-32) var(--ds-space-12) var(--ds-space-12);
  border-radius: var(--ds-radius-phone);
  background: var(--ds-surface);
  border: 1px solid var(--ds-hairline);
  box-shadow: var(--ds-shadow);
}
/* Dynamic-island pill: decoration only. */
.ds-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 8px;
  border-radius: var(--ds-radius-chip);
  background: var(--ds-chip);
  transform: translateX(-50%);
}
.ds-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ds-radius-shot);
  background: var(--ds-bg);
}
.ds-figure { margin: 0; display: grid; gap: var(--ds-space-16); justify-items: center; }
.ds-figure figcaption { text-align: center; }

/* ── Feature cards: icon, title, one line ───────────────────────────────── */
.ds-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-16);
}
@media (min-width: 768px) {
  .ds-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ds-space-24); }
}
.ds-feature {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: var(--ds-icon-plate) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: var(--ds-space-4) var(--ds-space-16);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
.ds-feature__icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: var(--ds-icon-plate);
  height: var(--ds-icon-plate);
  border-radius: var(--ds-radius-btn);
  background: var(--ds-strip-bg);
  color: var(--ds-page-amber-text);
}
.ds-feature__icon svg { display: block; width: 20px; height: 20px; }
.ds-feature h3 {
  margin: 0;
  font-size: var(--ds-fs-label);
  line-height: 1.3;
  font-weight: var(--ds-fw-bold);
  text-wrap: balance;
}
.ds-feature p { margin: 0; color: var(--ds-muted); font-size: var(--ds-fs-small); text-wrap: pretty; }

/* ── Wordmarks inside the logo wall (monochrome, one optical height) ────── */
.ds-logo-box a { color: inherit; text-decoration: none; border-radius: 4px; }
.ds-logo-box a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ds-wordmark {
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: var(--ds-fw-semibold);
  letter-spacing: 0.01em;
}
.ds-wordmark--caps { text-transform: uppercase; letter-spacing: 0.24em; font-weight: var(--ds-fw-regular); font-size: 1rem; }
.ds-wordmark--lower { text-transform: lowercase; letter-spacing: 0; }
.ds-wordmark b { font-weight: var(--ds-fw-extrabold); }
.ds-logo-box--text { font-size: var(--ds-fs-small); font-weight: var(--ds-fw-semibold); }
.ds-center .ds-logo-group { text-align: left; }

/* ── Sticky phone CTA (shown by script once the hero button scrolls off) ── */
.ds-sticky-cta { display: none; }
@media (max-width: 767.98px) {
  .ds-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    gap: var(--ds-space-8);
    padding: var(--ds-space-12) var(--ds-gutter);
    /* Home-indicator clearance without an off-scale padding value. */
    border-bottom: env(safe-area-inset-bottom, 0) solid var(--ds-band);
    background: var(--ds-band);
    border-top: 1px solid var(--ds-hairline);
    text-align: center;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .ds-sticky-cta.show { transform: none; visibility: visible; transition: transform 0.25s ease; }
  .ds-sticky-cta .ds-btn { width: 100%; }
}

/* ── Referral strip (landing, ?ref=) ─────────────────────────────────────── */
.ds-ref-strip { display: none; background: var(--ds-strip-bg); color: var(--ds-page-text); font-size: var(--ds-fs-small); }
.ds-ref-strip.is-on { display: block; }
.ds-ref-strip .ds-container { display: flex; gap: var(--ds-space-12); align-items: flex-start; padding-block: var(--ds-space-12); }
.ds-ref-strip__mark { color: var(--ds-page-money); font-weight: var(--ds-fw-bold); }
.ds-ref-strip__code { font-family: var(--ds-mono); font-weight: var(--ds-fw-bold); }

/* ── Landing variants c2 / c3 (app-led heroes) ──────────────────────────── */
.ds-vhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "vis" "cta";
  gap: var(--ds-space-32);
  align-items: center;
}
@media (min-width: 1024px) {
  .ds-vhero__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "copy vis" "cta vis";
    gap: var(--ds-space-24) var(--ds-space-48);
  }
  .ds-vhero__copy { align-self: end; }
  .ds-vhero__cta { align-self: start; }
}
.ds-vhero__copy { grid-area: copy; min-width: 0; }
.ds-vhero__vis { grid-area: vis; min-width: 0; }
.ds-vhero__cta { grid-area: cta; min-width: 0; }
.ds-vhero__copy .ds-lead b,
.ds-vhero__copy .ds-eyebrow b { color: var(--ds-text); font-weight: var(--ds-fw-bold); }
.ds-cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-12); }
.ds-center .ds-cta-buttons { justify-content: center; }
/* Phone lock-screen stage with notification cards. */
.ds-lock {
  max-width: 420px;
  margin-inline: auto;
  padding: var(--ds-space-32) var(--ds-space-16);
  border-radius: var(--ds-radius-phone);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
}
.ds-lock__time { text-align: center; margin-bottom: var(--ds-space-24); color: var(--ds-text); }
.ds-lock__t { font-size: var(--ds-fs-h1); line-height: 1; font-weight: var(--ds-fw-semibold); letter-spacing: -0.02em; }
.ds-lock__d { font-size: var(--ds-fs-small); color: var(--ds-muted); margin-top: var(--ds-space-4); }
.ds-notif {
  display: flex;
  gap: var(--ds-space-12);
  padding: var(--ds-space-12) var(--ds-space-16);
  border-radius: var(--ds-radius-card);
  background: var(--ds-chip);
  text-align: left;
}
.ds-notif + .ds-notif { margin-top: var(--ds-space-8); }
.ds-notif__icon { flex: none; width: 36px; height: 36px; border-radius: var(--ds-radius-mark); overflow: hidden; }
.ds-notif__icon img { display: block; width: 100%; height: 100%; }
.ds-notif__body { flex: 1; min-width: 0; }
.ds-notif__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--ds-space-8); }
.ds-notif__title { font-weight: var(--ds-fw-bold); font-size: var(--ds-fs-small); color: var(--ds-text); }
.ds-notif__ago { flex: none; font-size: var(--ds-fs-small); color: var(--ds-muted); }
.ds-notif__text { margin-top: var(--ds-space-4); font-size: var(--ds-fs-small); line-height: 1.4; color: var(--ds-text); }
.ds-notif__text .kw { color: var(--ds-accent-text); font-weight: var(--ds-fw-semibold); }
.ds-notif__text .pct { color: var(--ds-money); font-weight: var(--ds-fw-bold); }
/* Export vs re-buy bar pair + yearly figure. */
.ds-vbars { display: flex; justify-content: center; align-items: flex-end; gap: var(--ds-space-32); }
.ds-vbar { display: flex; flex-direction: column; align-items: center; gap: var(--ds-space-8); width: 96px; }
.ds-vbar__val { font-weight: var(--ds-fw-bold); font-size: var(--ds-fs-label); }
.ds-vbar__col { width: 48px; border-radius: var(--ds-radius-mark) var(--ds-radius-mark) 0 0; }
.ds-vbar--export .ds-vbar__col { height: 12px; background: var(--ds-grid); }
.ds-vbar--rebuy .ds-vbar__col { height: 80px; background: var(--ds-peak); }
.ds-vbar--rebuy .ds-vbar__val { color: var(--ds-peak); }
.ds-vbar__label { font-size: var(--ds-fs-small); color: var(--ds-muted); text-align: center; }
.ds-saveline { text-align: center; }
.ds-saveline__big { font-size: var(--ds-fs-h2); font-weight: var(--ds-fw-extrabold); color: var(--ds-money); letter-spacing: -0.02em; }
.ds-saveline__yr { font-weight: var(--ds-fw-semibold); color: var(--ds-money); }
.ds-saveline__cap { display: block; color: var(--ds-muted); font-size: var(--ds-fs-small); }
/* Zero-specificity reset so .ds-flow spacing still applies to these lists. */
:where(.ds-vsteps, .ds-features) { margin: 0; }
.ds-vsteps { list-style: none; padding: 0; display: grid; gap: var(--ds-space-16); }
.ds-vstep { display: flex; gap: var(--ds-space-16); align-items: flex-start; }
.ds-vstep__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ds-chip);
  color: var(--ds-accent-text);
  font-weight: var(--ds-fw-bold);
}
.ds-vstep__title { font-weight: var(--ds-fw-bold); }
.ds-vstep__text { color: var(--ds-muted); font-size: var(--ds-fs-small); }
.ds-new-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 var(--ds-space-8);
  margin-inline-end: var(--ds-space-8);
  border-radius: var(--ds-radius-chip);
  background: var(--ds-money-wash);
  color: var(--ds-money);
  font-size: var(--ds-fs-eyebrow);
  font-weight: var(--ds-fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Phase 3 additions ===== */
/* /features, /pricing, /powerwall, /non-export (site redesign, Phase 3).
   Self-contained: only new ds- classes, built from the tokens above. */

:root {
  --ds-hero-measure: 50rem; /* copy-only page heroes (no visual column) */
  --ds-chip-h-sm: 24px; /* inline pill beside a feature name */
  --ds-jump-h: 40px; /* jump-chip tap target */
}

/* ── Page hero (copy only): same band, type and CTA block as /landing ──── */
.ds-pagehero { max-width: var(--ds-hero-measure); }
.ds-pagehero .ds-lead { max-width: var(--ds-measure); }

/* Jump chips: in-page links to each section, scrolling under the sticky nav. */
.ds-jump { display: flex; flex-wrap: wrap; gap: var(--ds-space-8); list-style: none; padding: 0; margin: 0; }
.ds-jump a.ds-chip { min-height: var(--ds-jump-h); padding: 0 var(--ds-space-16); }

/* Small inline pill ("10 min recommended"). */
.ds-chip--sm { min-height: var(--ds-chip-h-sm); padding: 0 var(--ds-space-8); font-size: var(--ds-fs-eyebrow); }

/* ── Feature list: name (+ optional pill) and one line, hairline rows ──── */
:where(.ds-list) { margin: 0; }
.ds-list {
  list-style: none;
  padding: 0;
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
.ds-list > li { padding: var(--ds-space-16) var(--ds-space-24); }
.ds-list > li + li { border-top: 1px solid var(--ds-hairline); }
.ds-list__name {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-4) var(--ds-space-8);
  font-size: var(--ds-fs-label);
  line-height: 1.3;
  font-weight: var(--ds-fw-bold);
  color: var(--ds-text);
}
.ds-list__text {
  margin: var(--ds-space-4) 0 0;
  font-size: var(--ds-fs-small);
  color: var(--ds-muted);
  text-wrap: pretty;
}

/* ── Media column: one or two screenshots, centred, captions under ─────── */
.ds-shots {
  display: grid;
  gap: var(--ds-space-32);
  justify-items: center;
  min-width: 0;
}
.ds-shots .ds-figure { width: 100%; max-width: var(--ds-shot-max); }
/* Section intro above a split row. */
.ds-intro { max-width: var(--ds-measure); }

/* ── Plan cards: extra rows inside the Phase 1 .ds-plan subgrid ─────────── */
/* The yearly line sits on its own line under the amount, so the amounts
   still share the top of the price row in every card. */
.ds-plan__alt { flex-basis: 100%; margin-top: var(--ds-space-8); font-size: var(--ds-fs-small); color: var(--ds-muted); }
/* Names and taglines sit at the top of their rows, so a wrap in one card
   doesn't push the others down. */
.ds-plans .ds-plan__name,
.ds-plans .ds-plan__copy { align-self: start; }
.ds-plan__cta { display: grid; }
/* Feature list: 4–6 short phrases, one 20px money-green check per line,
   centred on the first line of text (same glyph as .ds-checks). A hairline
   separates it from the tagline above. */
.ds-plan__features {
  list-style: none;
  margin: 0;
  padding: var(--ds-space-16) 0 0;
  border-top: 1px solid var(--ds-hairline);
  display: grid;
  align-content: start;
  gap: var(--ds-space-4);
}
.ds-plan__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-12);
  font-size: var(--ds-fs-body);
  line-height: 1.4;
  color: var(--ds-text);
  text-wrap: pretty;
}
/* Three narrow columns at 768–1023: step the phrases down to small text. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ds-plan__features li { font-size: var(--ds-fs-small); }
}
/* "Most popular": an amber pill straddling the featured card's top edge
   (same amber as the featured border; label in the on-accent ink). */
.ds-plan__badge {
  position: absolute;
  top: 0;
  left: var(--ds-space-24);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: var(--ds-chip-h-sm);
  margin: 0;
  padding: 0 var(--ds-space-12);
  border-radius: var(--ds-radius-chip);
  background: var(--ds-accent);
  color: var(--ds-on-accent);
  font-size: var(--ds-fs-eyebrow);
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ds-plan__cta .ds-btn { width: 100%; padding-inline: var(--ds-space-16); white-space: normal; text-align: center; text-wrap: balance; }

/* ── "Which plan fits?" table ──────────────────────────────────────────── */
.ds-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
  overflow: hidden;
  font-size: var(--ds-fs-body);
}
.ds-table th,
.ds-table td { padding: var(--ds-space-16) var(--ds-space-24); text-align: left; vertical-align: middle; }
.ds-table tbody tr + tr > * { border-top: 1px solid var(--ds-hairline); }
.ds-table tbody th { font-weight: var(--ds-fw-regular); color: var(--ds-text); text-wrap: pretty; }
.ds-table td { font-weight: var(--ds-fw-bold); color: var(--ds-text); text-align: right; white-space: nowrap; }
.ds-table__us { color: var(--ds-accent-text); }
@media (max-width: 399.98px) {
  .ds-table th,
  .ds-table td { padding: var(--ds-space-12) var(--ds-space-16); }
}
/* ===== Phase 4 additions =====
   Existing pages moved onto the system (calculator, chargehq-alternative,
   support, privacy, terms, push, delete-account and the generated SEO
   pages). Tokens only; self-contained so it can sit beside other phases. */

/* ── Partial defaults: store/web switching inside the shared nav + footer ──
   Pages that set the pre-paint html.is-store / html.play-live flags get the
   same switching /landing has; pages that never set them show the web
   button. Scoped to the partials so a page's own .sd-* rules are untouched.
   The footer's Google Play trademark line is its own paragraph and is no
   longer gated on html.play-live (Phase 6): it used to render as a blank
   line + text on some pages, inline on others and not at all on the
   document pages, so the footer height differed page to page. */
.ds-nav .sd-ios-only { display: none; }
html.is-store .ds-nav .sd-ios-only { display: inline-flex; }
html.is-store .ds-nav .sd-web-only { display: none; }

/* ── Document pages (support, privacy, terms, push, delete-account) ──────
   <main class="ds-doc ds-container ds-section">: the container keeps the
   left edge on the nav/footer line; the reading column is 760px. */
.ds-doc { color: var(--ds-text); }
.ds-doc > * { max-width: 760px; margin-block: 0; }
.ds-doc .kicker {
  font-size: var(--ds-fs-eyebrow);
  line-height: 1.3;
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-accent-text);
}
.ds-doc h1 {
  margin-top: var(--ds-space-12);
  font-size: var(--ds-fs-h1);
  line-height: var(--ds-lh-h1);
  font-weight: var(--ds-fw-extrabold);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ds-doc .updated { margin-top: var(--ds-space-12); font-size: var(--ds-fs-small); color: var(--ds-muted); }
.ds-doc .lead {
  margin-top: var(--ds-space-16);
  font-size: var(--ds-fs-body);
  color: var(--ds-muted);
  text-wrap: pretty;
}
.ds-doc .section-head {
  margin-top: var(--ds-space-48);
  font-size: var(--ds-fs-eyebrow);
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
/* Doc sections are sub-headings under one H1: the H3 size, not the H2. */
.ds-doc h2 {
  margin-top: var(--ds-space-32);
  font-size: var(--ds-fs-h3);
  line-height: var(--ds-lh-h3);
  font-weight: var(--ds-fw-bold);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ds-doc .section-head + h2 { margin-top: var(--ds-space-16); }
.ds-doc h3 { margin-top: var(--ds-space-24); font-size: var(--ds-fs-label); font-weight: var(--ds-fw-bold); }
.ds-doc p,
.ds-doc ul,
.ds-doc ol { margin-top: var(--ds-space-12); line-height: var(--ds-lh-body); text-wrap: pretty; }
.ds-doc ul,
.ds-doc ol { padding-left: var(--ds-space-24); }
.ds-doc li + li { margin-top: var(--ds-space-8); }
.ds-doc strong { font-weight: var(--ds-fw-bold); }
.ds-doc a {
  color: var(--ds-accent-text);
  font-weight: var(--ds-fw-semibold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.ds-doc a:hover { text-decoration-thickness: 2px; }
.ds-doc code {
  font-family: var(--ds-mono);
  font-size: 0.92em;
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-space-4);
  background: var(--ds-chip);
  overflow-wrap: anywhere;
}
.ds-doc pre {
  margin-top: var(--ds-space-12);
  padding: var(--ds-space-16) var(--ds-space-24);
  overflow-x: auto;
  border-radius: var(--ds-radius-shot);
  background: var(--ds-surface);
  border: 1px solid var(--ds-hairline);
}
.ds-doc pre code { padding: 0; background: none; font-size: var(--ds-fs-small); line-height: 1.6; overflow-wrap: normal; }
.ds-doc .table-scroll { margin-top: var(--ds-space-12); overflow-x: auto; }
.ds-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--ds-fs-small);
  background: var(--ds-surface);
}
.ds-doc .table-scroll table { min-width: 560px; }
.ds-doc th,
.ds-doc td {
  padding: var(--ds-space-8) var(--ds-space-12);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--ds-hairline);
}
.ds-doc th {
  font-size: var(--ds-fs-eyebrow);
  font-weight: var(--ds-fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ds-muted);
}
.ds-doc td code { white-space: nowrap; }
/* Contact / note callouts: a white card, the amber edge is the cue. */
.ds-doc .contact,
.ds-doc .callout {
  box-sizing: border-box;
  margin-top: var(--ds-space-16);
  padding: var(--ds-space-24);
  background: var(--ds-surface);
  border: 1px solid var(--ds-card-edge);
  border-left: 3px solid var(--ds-accent);
  border-radius: var(--ds-radius-card);
  box-shadow: var(--ds-shadow);
}
.ds-doc .contact h2,
.ds-doc .callout h2 { margin-top: 0; }
.ds-doc .contact .email { display: inline-block; margin-top: var(--ds-space-8); font-size: var(--ds-fs-body); }

/* ── On-page jump links (generated SEO pages keep their section anchors) ── */
.ds-subnav {
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-hairline);
  font-size: var(--ds-fs-small);
  font-weight: var(--ds-fw-semibold);
}
.ds-subnav .ds-container {
  display: flex;
  align-items: center;
  gap: var(--ds-space-24);
  min-height: var(--ds-btn-h);
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ds-subnav .ds-container::-webkit-scrollbar { display: none; }
.ds-subnav__label { color: var(--ds-muted); font-weight: var(--ds-fw-regular); }
.ds-subnav a { color: var(--ds-text); text-decoration: none; border-radius: 4px; }
.ds-subnav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ── Works-with wall: one monochrome wordmark style ─────────────────────────
   Every box (brand or descriptor) uses the same face, weight, size and case
   convention (each name as the brand writes it, no all-caps or all-lowercase
   styling), so all names share one optical height. Overrides the Phase 2
   --caps / --lower / <b> variants, which /landing no longer uses. */
.ds-logo-box .ds-wordmark {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: var(--ds-fw-semibold);
  letter-spacing: 0;
  text-transform: none;
  text-wrap: balance;
}
.ds-logo-box .ds-wordmark a { font: inherit; }

/* ═════════════════════════════════════════════════════════════════════════
   Phase 6 (2026-11-28): hero rate bars + hero calculator link
   ═════════════════════════════════════════════════════════════════════════ */

/* "You export at ~3¢ / You buy at ~35¢": the pre-redesign hero graphic,
   same structure and treatment (right-aligned label column, thin bar, bold
   value; amber nub vs a full-width cost bar; footnote hung off the bars'
   left edge), re-expressed in tokens. Static figures, as before. The lower
   "The problem" section keeps its own .ds-rates comparison. */
.ds-hero-rates {
  display: grid;
  grid-template-columns: var(--ds-hero-rate-lbl) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ds-space-8) var(--ds-space-12);
  max-width: var(--ds-measure);
  font-size: var(--ds-fs-small);
  line-height: 1.35;
}
.ds-hero-rate { display: contents; }
.ds-hero-rate__lbl { text-align: right; color: var(--ds-muted); white-space: nowrap; }
.ds-hero-rate__track {
  height: var(--ds-hero-rate-h);
  border-radius: var(--ds-radius-chip);
  background: var(--ds-chip);
  overflow: hidden;
}
.ds-hero-rate__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 100%;
  background: var(--ds-peak); /* cost colour, deliberately not amber */
}
.ds-hero-rate--export .ds-hero-rate__fill { width: 8.6%; background: var(--ds-accent); } /* 3¢ of 35¢ */
.ds-hero-rate__val {
  min-width: 3em;
  text-align: right;
  font-weight: var(--ds-fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--ds-peak);
  white-space: nowrap;
}
.ds-hero-rate--export .ds-hero-rate__val { color: var(--ds-accent-text); }
.ds-hero-rates__note {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: var(--ds-muted);
}
@media (max-width: 767.98px) {
  .ds-hero-rates { --ds-hero-rate-lbl: 84px; }
}

/* "See what you’d save →" beside / under the hero button: band text (white
   on the ink band), semibold, a quiet underline — the pre-redesign link.
   Under 1024 (stacked hero) the web pair stacks like the store pair: a
   full-width button with the link centred beneath it. The store variant's
   link reads as plain text (no underline) with a 44px tap target, as before. */
.ds-hero__calc {
  color: var(--ds-text);
  font-weight: var(--ds-fw-semibold);
  text-decoration: underline;
  text-decoration-color: var(--ds-muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  border-radius: 4px;
}
.ds-hero__calc:hover { text-decoration-color: var(--ds-text); }
.ds-hero__calc:focus-visible {
  outline: var(--ds-focus-width) solid var(--ds-focus);
  outline-offset: var(--ds-focus-offset);
}
.ds-hero__calc--store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 44px;
  text-decoration: none;
}
.ds-hero__calc--store:hover { color: var(--ds-accent-text); }
@media (max-width: 1023.98px) {
  .ds-hero__ctas {
    display: grid;
    width: 100%;
    gap: var(--ds-space-16);
  }
  .ds-hero__ctas .ds-btn { width: 100%; }
  .ds-hero__ctas .ds-hero__calc { justify-self: center; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ds-hero__ctas { max-width: 380px; }
}
@media (min-width: 1024px) {
  .ds-hero__calc--store { justify-self: start; }
}

/* ===== Phase 7 additions ===== */
/* /features cards (Phase 7): every section is heading-left / cards-right,
   the cards being the /landing "What it does" .ds-feature. --even gives every
   card in the grid the same height (rows share 1fr). An odd-sized set (3
   cards) stacks as one column of wide cards instead of leaving a hole. */
.ds-features--even { grid-auto-rows: 1fr; }
@media (min-width: 768px) {
  .ds-features--even:has(> :last-child:nth-child(odd)) { grid-template-columns: minmax(0, 1fr); }
}

/* ===== 11-28 polish (TL) ===== */
/* Media-last split (/landing "What it does", Brian 11-28): the cards come
   first in the source so the activity screenshot sits under the last card
   when stacked; side by side (≥1200, where --late lets it split) the cards
   take the wide 7fr column and the phone the 5fr one. */
@media (min-width: 1200px) {
  .ds-split--media-end { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* FAQ rows: the 52px min-height counted the padding too (border-box), so a
   one-line question is ~59px instead of 84px (Brian 11-28: too much spacing). */
.ds-faq summary { box-sizing: border-box; }
/* Store badges under a stacked hero CTA (Brian 11-28): below 1024 the button
   is full width (max 380 on tablets) with the calculator link centred under
   it, so the badge pair centres on the same column instead of hugging the
   left edge. Side by side (≥1024) everything stays left-aligned. */
@media (max-width: 1023.98px) {
  .ds-cta:has(.ds-hero__ctas) > .hero-badges--cta {
    justify-self: stretch;
    justify-content: center;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ds-cta:has(.ds-hero__ctas) > .hero-badges--cta { max-width: 380px; }
}
