/*
 * Responsive styling baseline for the customer web app.
 *
 * PLAIN MODERN CSS ON PURPOSE — custom properties, layout primitives and media queries. There is no CSS
 * framework or utility-CSS library here, deliberately: a framework would be one more dependency to keep
 * current, and it would push a look onto apps whose design, copy and page composition are meant to stay
 * app-specific. This file is a NEUTRAL FOUNDATION, not a design system: it makes a fresh scaffold work on
 * a phone, and every app is expected to restyle on top of it (override the tokens below first — most
 * re-skinning needs nothing else).
 *
 * Mobile-first: the base rules target the narrowest viewport and media queries add capability as the
 * viewport grows. The bar a scaffolded app must keep meeting at 375px / 768px / 1280px is: no horizontal
 * scrolling, nothing clipped or overlapping, interactive targets at least 44x44px, and navigation that
 * ADAPTS its layout rather than merely shrinking.
 */

/* ---------------------------------------------------------------------------
 * Tokens. Override these (and little else) to re-skin an app.
 * ------------------------------------------------------------------------- */
:root {
  /* Type + colour */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-bg: #ffffff;
  --color-surface: #f7f8fa;
  --color-text: #14181f;
  --color-text-muted: #55606f;
  --color-border: #d8dde5;
  --color-accent: #1a56db;
  --color-accent-contrast: #ffffff;
  --color-danger: #b42318;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;

  --radius: 0.5rem;
  --border: 1px solid var(--color-border);

  /* Reading width for the content column. */
  --measure: 68rem;

  /*
   * Minimum size of any interactive target. 44px is the bar the platform holds UI to; it is applied to
   * buttons, form controls and standalone/navigation links below. Kept as a token so an app that scales
   * its type can scale its targets with it rather than silently dropping below the bar.
   */
  --target-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #10141a;
    --color-surface: #1a2029;
    --color-text: #eef1f6;
    --color-text-muted: #a4aebd;
    --color-border: #303a48;
    --color-accent: #6f9dff;
    --color-accent-contrast: #0b0f14;
    --color-danger: #ff8a80;
  }
}

/* ---------------------------------------------------------------------------
 * Reset / element defaults. Most of the "no horizontal scrolling" guarantee is here: nothing
 * fixed-width, media is capped to its container, and long unbroken strings wrap instead of pushing
 * the page wider than the viewport.
 * ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Stop mobile Safari inflating text in landscape, which reflows a tuned layout unpredictably. */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  /* 1rem = 16px keeps iOS from zooming when a form control is focused. */
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  /* A long URL or token in copy must wrap, not widen the page. */
  overflow-wrap: break-word;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  /* Headings own their bottom margin only, so vertical rhythm comes from the .stack primitive. */
  margin: 0 0 var(--space-3);
  overflow-wrap: break-word;
}

h1 {
  /* Fluid so a long product name still fits at 375px without shrinking the desktop headline. */
  font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  /* Code blocks scroll THEMSELVES rather than making the page scroll sideways. */
  overflow-x: auto;
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius);
}

a {
  color: var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Layout primitives. Compose these; they are the whole layout vocabulary.
 * ------------------------------------------------------------------------- */

/* Full-height column so a short page still pins the footer to the bottom. */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* dvh accounts for mobile browser chrome; the vh above is the fallback. */
  min-height: 100dvh;
}

.app-shell > main {
  flex: 1;
}

/* Centred content column with gutters that never let content touch the screen edge. */
.container {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-block: var(--space-5);
}

/* Vertical rhythm: children are spaced, nothing else. */
.stack > * + * {
  margin-top: var(--space-4);
}

/* A row that WRAPS instead of overflowing — the workhorse for button rows and nav. */
.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

/*
 * Responsive grid with no breakpoints of its own: one column while the viewport is narrow, more columns
 * as it widens. `min(100%, 16rem)` is what keeps it from overflowing at 375px — a bare `minmax(16rem, …)`
 * would force a track wider than the viewport and produce horizontal scrolling.
 */
.grid-auto {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
}

.muted {
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------------
 * Site chrome. The header is the "navigation adapts rather than shrinks" case: below 48em the brand and
 * the nav stack into two rows and the nav links spread across the full width; at 48em and up they sit on
 * one row with the nav pushed to the end. It is a layout change, not a scale-down.
 * ------------------------------------------------------------------------- */
.site-header {
  border-bottom: var(--border);
  background: var(--color-bg);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: stretch;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  /* Both axes: a short brand word ("App") is only ~37px wide once the header becomes a row at 48em, which
     would put the target under the 44px minimum on the horizontal axis. */
  min-height: var(--target-min);
  min-width: var(--target-min);
  justify-content: flex-start;
  padding-inline: var(--space-2);
  margin-inline-start: calc(var(--space-2) * -1);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.site-footer {
  border-top: var(--border);
  color: var(--color-text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding: var(--space-2) var(--space-4);
}

@media (min-width: 48em) {
  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

}

/* ---------------------------------------------------------------------------
 * Interactive targets. Everything a finger has to hit is at least --target-min in both axes.
 *
 * `.nav-link` / `.action-link` are for STANDALONE links (nav items, footer items, calls to action) —
 * links inside a sentence are not given a 44px box, since that would fight the line-height of the
 * surrounding text. Template pages therefore keep their interactive elements standalone.
 * ------------------------------------------------------------------------- */
button,
.button,
.nav-link,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button,
.button {
  border: var(--border);
  background: var(--color-surface);
  color: var(--color-text);
}

button[type='submit'],
.button--primary {
  border-color: transparent;
  background: var(--color-accent);
  color: var(--color-accent-contrast);
  font-weight: 600;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nav-link,
.action-link {
  color: var(--color-accent);
  /* Nav/footer links read as links, so no box — the padding above still gives them the tap area. */
  padding-inline: var(--space-2);
}

.nav-link[aria-current='page'] {
  font-weight: 600;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Forms. Controls are full-width on every viewport (a narrow fixed width is the usual source of clipped
 * inputs on a phone) and capped by the form's own max-width on wide screens.
 * ------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 26rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field > span,
label {
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--target-min);
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  /* Must stay at 1rem/16px: anything smaller makes iOS zoom the page on focus. */
  font: inherit;
  color: var(--color-text);
  background: var(--color-bg);
}

[role='alert'] {
  color: var(--color-danger);
  font-weight: 500;
}

/* ---------------------------------------------------------------------------
 * Data-dense content. A wide table is the other classic cause of sideways scrolling: wrap it in
 * `.table-scroll` so the TABLE scrolls within the page instead of the page scrolling.
 * ------------------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll > table {
  /* max-content + min-width:100% is what makes the TABLE scroll rather than shrink: a plain width:100%
     lets an auto-layout table crush its columns to fit, which is "merely shrinking" — the thing the bar
     forbids. This way it fills the container when it fits and overflows into the scroller when it can't. */
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--border);
  text-align: left;
}

/* Respect a reduced-motion preference for anything an app adds later. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================================
 * BetterCharge marketing site — built ON the responsive baseline above.
 *
 * The site is dark by brand design, so this OVERRIDES the baseline colour tokens
 * to the brand palette for every colour scheme (not only prefers-color-scheme:
 * dark; a later unconditional :root wins over the baseline's base + dark :root).
 * The baseline's token NAMES, spacing scale, --target-min (the 44px tap target)
 * and primitives are kept; the interactive targets below still apply
 * min-height: var(--target-min). Plain modern CSS only — no framework, the
 * system font stack only, every asset served from this origin (no third-party
 * fonts, no trackers). The mockup's inline style="…" attributes all live here
 * instead, so the site's style-src 'self' CSP needs no 'unsafe-inline'.
 * ========================================================================= */
:root {
  /* Override the baseline palette to the brand's dark theme (all schemes). */
  --color-bg: #000;
  --color-surface: #0d0f11;
  --color-text: #ffffff;
  --color-text-muted: #9aa0a6;
  --color-border: #191c1e;
  --color-accent: #3ac957;
  --color-accent-contrast: #000000;

  /* Marketing design tokens, from the approved mockup. */
  --bc-card: #0d0f11;
  --bc-tile: #171a1c;
  --bc-line: #191c1e;
  --bc-dim: #5d5f61;
  --bc-green: #3ac957;
  --bc-green-dark: #21af45;
  --bc-tile-green: #15211c;
  --bc-sun: #fbcf3f;
  --bc-tile-amber: #2a2410;
  --bc-radius: 20px;
  --bc-max: 1120px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The App Store download elements ship with the HTML `hidden` attribute and are revealed by appstore.js
 * only once APP_STORE_URL is set. They are display:inline-flex/inline-block, which would otherwise beat
 * the UA [hidden] rule and show them anyway — so enforce the hide. */
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--bc-max); margin: 0 auto; padding: 0 24px; }

/* Sticky header offset so an in-page anchor jump (e.g. /#features) doesn't tuck the heading under it. */
section[id] { scroll-margin-top: 80px; }

/* ---------- header / nav ----------
 * The nav ADAPTS rather than merely shrinking: it is a wrapping flex row, so on a narrow phone the links
 * wrap under the logo instead of overflowing or disappearing. (The mockup hid the text links on mobile and
 * leaned on the "Download" CTA — but that CTA ships hidden until the App Store URL is set, so hiding the
 * links would leave no navigation at all. Keeping them visible, tappable and wrapping is what meets the
 * responsive-nav bar.) */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bc-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  min-height: 64px;
  padding: 8px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  min-width: var(--target-min);
  padding: 2px;
  text-decoration: none;
}
.mark {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px #2a2e31;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.links a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  min-height: var(--target-min);
  display: inline-flex;
  align-items: center;
}
.links a:hover { color: var(--color-text); background: var(--bc-tile); }
.links a.cta { color: #000; background: var(--bc-green); font-weight: 600; }
.links a.cta:hover { background: var(--bc-green-dark); color: #000; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; text-align: center; }
.hero__inner { position: relative; }
.glow {
  position: absolute;
  left: 50%;
  top: -180px;
  width: 900px;
  max-width: 120vw;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(251, 207, 63, 0.28) 0, rgba(251, 207, 63, 0.10) 28%, transparent 62%);
  pointer-events: none;
  animation: bc-breathe 7s ease-in-out infinite;
}
.glow--wide {
  top: auto;
  bottom: -420px;
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(58, 201, 87, 0.20), transparent 65%);
  animation: none;
}
.glow--final { top: -300px; }
@keyframes bc-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) { .glow { animation: none; } }

.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 auto 22px;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--bc-sun), var(--bc-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0 auto 14px;
}
/* Headline-level no-Powerwall pitch, directly under the tagline and above the badge row. Kept compact
 * (tight line-height and margins) so the new line does not push the App Store badge below the fold at
 * 375x667. The emphasis is a real <strong> coloured with the brand green in the stylesheet — never the
 * headline's gradient-clipped (transparent-fill) treatment, which has no measurable contrast, and never an
 * inline style= (the site CSP forbids it). Brand green #3ac957 on the #000 hero clears WCAG AA (~9.7:1). */
.pitch {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-text);
  max-width: 34ch;
  margin: 0 auto 30px;
}
.pitch strong { color: var(--bc-green); font-weight: 800; }
.ctas { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.appstore { display: inline-flex; align-items: center; padding: 6px; line-height: 0; }
.badge-art { width: auto; height: 48px; }
.startbtn {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--bc-green);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.startbtn:hover { background: var(--bc-green-dark); }
.ghost {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid #2a2e31;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}
.ghost:hover { background: var(--bc-tile); }
.trial { margin-top: 20px; font-size: 14px; color: var(--color-text-muted); }
.trial b { color: var(--bc-green); }

/* ---------- hero phone ---------- */
.phone {
  margin: 64px auto 0;
  width: 320px;
  max-width: 100%;
  border-radius: 52px;
  background: #0a0b0c;
  border: 10px solid #1b1d1f;
  box-shadow: 0 40px 120px rgba(58, 201, 87, 0.18), 0 0 0 1px #2a2e31;
  overflow: hidden;
}
.phone img { width: 100%; height: auto; border-radius: 42px; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.section--tight { padding-top: 0; }
.kicker { color: var(--bc-green); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
section h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 12px 0 18px;
  max-width: 20ch;
}
.sub { color: var(--color-text-muted); font-size: 19px; max-width: 56ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 44px; }
.feat { background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: var(--bc-radius); padding: 28px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; background: var(--bc-tile-green); color: var(--bc-green); }
.ico.s { background: var(--bc-tile-amber); color: var(--bc-sun); }
.feat h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.feat p { color: var(--color-text-muted); font-size: 15.5px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-top: 44px; counter-reset: s; }
.step { border-top: 1px solid #2a2e31; padding-top: 22px; }
.step::before { counter-increment: s; content: "0" counter(s); font-weight: 800; font-size: 14px; color: var(--bc-sun); letter-spacing: 0.06em; }
.step h3 { font-size: 20px; margin: 10px 0 6px; }
.step p { color: var(--color-text-muted); margin: 0; }

/* ---------- pricing ----------
 * Mobile-first: ONE column by default so the price + the feature list stack on a phone (they only sit
 * side-by-side once there is room — the two-column track is applied in the min-width:768px block below).
 * A fixed two-column grid here would force the price track narrower than "$6.99" at 375px and, with
 * overflow:hidden, clip rather than adapt. */
.price {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0d0f11, #0d1510);
  border: 1px solid #1f2a22;
  border-radius: 28px;
  padding: 32px;
  margin-top: 36px;
  position: relative;
  overflow: hidden;
}
.price__head { position: relative; z-index: 1; }
.amount { font-size: clamp(56px, 7vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.amount span { font-size: 20px; color: var(--color-text-muted); font-weight: 600; letter-spacing: 0; }
.free { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 700; color: #000; background: var(--bc-green); padding: 6px 12px; border-radius: 999px; }
.price ul { list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; margin: 0; padding: 0; }
.price li { display: flex; gap: 12px; align-items: flex-start; color: #d9dcdf; }
.price li::before { content: "✓"; color: var(--bc-green); font-weight: 800; }
.fine { font-size: 13px; color: var(--bc-dim); margin: 18px 0 0; max-width: 60ch; }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: 96px 0; position: relative; overflow: hidden; }
.final__inner { position: relative; }
.final h2 { margin: 0 auto 16px; }
.final__sub { margin: 0 auto 32px; }

/* ---------- doc pages (legal / support) ---------- */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(34px, 5vw, 56px); text-align: left; margin: 10px 0 8px; max-width: none; letter-spacing: -0.02em; }
.doc .meta { color: var(--color-text-muted); margin-bottom: 32px; }
.doc h2 { font-size: 24px; margin: 44px 0 10px; max-width: none; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: #c9cdd1; font-size: 16.5px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }
.doc a { color: var(--bc-green); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; table-layout: fixed; }
.doc th, .doc td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--bc-line); vertical-align: top; }
.doc th { color: var(--color-text-muted); font-weight: 600; }
.toc { background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: 16px; padding: 20px 24px; margin-bottom: 12px; color: #c9cdd1; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 28px 0; }
.cards .feat { padding: 22px; }
details { background: var(--bc-card); border: 1px solid var(--bc-line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: var(--target-min); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--color-text-muted); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 16px; margin: 0; }
/* .doc a (0,1,1) would otherwise beat .mail (0,1,0) and paint this green-on-green — scope it to win. */
.doc a.mail { display: inline-flex; align-items: center; gap: 10px; background: var(--bc-green); color: #000; text-decoration: none; font-weight: 700; border-radius: 14px; padding: 0 22px; min-height: 52px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--bc-line); padding: 40px 0 56px; color: var(--bc-dim); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 6px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--color-text-muted); padding: 10px 12px; min-height: var(--target-min); display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--color-text); }

/* ---------- wide-screen layout ----------
 * 768px = the baseline's 48em breakpoint and the ticket's tablet viewport. Above it the layout gains the
 * two-column price card and the roomier section padding; below it everything is single-column. */
@media (min-width: 768px) {
  .hero { padding: 110px 0 90px; }
  section { padding: 88px 0; }
  .section--tight { padding-top: 0; }
  .final { padding: 104px 0; }
  .price { grid-template-columns: 1.1fr 0.9fr; padding: 48px; }
}
