/* static-page.css — layout for the static /pricing and /pricing/merci pages
 * (FR + EN), on top of /css/brand.css, which is a byte-identical copy of the
 * landing's src/styles/brand.css (tests/static-brand-css.test.js keeps them
 * equal). Colours, fonts, radii, the gold CTA and the card look all come from
 * the landing's tokens and classes; nothing here introduces a new look.
 *
 * <body class="brand-scope brand-page"> gives the page the landing's navy
 * gradient. The header and footer mirror HomePage.jsx / HomeFooter.jsx.
 * Class names the scripts create (btn, card-pay, card-accept, card-link,
 * card-tier, price-note, order-code) are styled here, not renamed. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body.brand-scope {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brand-bg);
  color: var(--brand-text-hi);
  font-family: var(--ff-body);
  line-height: 1.6;
}

/* ── Header: as HomePage.jsx (logo + gold Cinzel wordmark, sign-in pill,
 * language toggle; sticky, translucent navy, hairline under). ────────── */
.brand-scope .home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--brand-hairline);
  background: rgba(5,11,24,0.88);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand-scope .home-header-actions { display: flex; align-items: center; }
.sn-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}
.sn-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sn-brand span {
  color: var(--brand-gold);
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
}
.sn-signin {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
/* The language switch looks like the landing's LanguageToggle. */
.brand-scope a.lang {
  display: inline-block;
  background: rgba(242,202,80,0.12);
  border: 1px solid rgba(242,202,80,0.3);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  line-height: 1.6;
}
.brand-scope a.lang:hover { background: rgba(242,202,80,0.2); }
.brand-scope a.lang:focus-visible { outline: 2px solid var(--brand-gold-hi); outline-offset: 2px; }

/* ── Main column: the landing's section width and rhythm ──────────── */
main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5);
}
@media (min-width: 880px) { main { padding: var(--sp-8) var(--sp-5); } }

/* Pricing: no panel, the cards sit on the page like the landing's. */
.page.wide { background: none; border: 0; padding: 0; }
/* Merci: one card, centred. */
.page:not(.wide) {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--r-card);
  border: 1px solid var(--brand-hairline);
  background: var(--brand-surface);
  padding: 24px 20px;
}
@media (min-width: 768px) { .page:not(.wide) { padding: 32px; } }

/* ── Type ───────────────────────────────────────────────────────────
 * h1 and section h2: the landing headline (Newsreader 500). Card titles:
 * the landing card title (DM Sans 700, gold). Body: brand body colour. */
.brand-scope h1 {
  font-family: var(--ff-headline);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--brand-text-hi);
  margin: 0 0 var(--sp-4);
}
.brand-scope main > .page > h2 {
  font-family: var(--ff-headline);
  font-weight: 500;
  font-size: clamp(1.375rem, 4vw, 1.625rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--brand-text-hi);
  margin: var(--sp-7) 0 var(--sp-4);
}
.brand-scope h3 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  color: var(--brand-gold);
  margin: 0 0 var(--sp-3);
}
/* Zero-specificity base, so .price, .price-note, .order-code etc. win. */
:where(.brand-scope) :where(p, li) { color: var(--brand-text-body); font-size: 15px; line-height: 1.6; }
:where(.brand-scope) :where(p) { margin: 0 0 var(--sp-3); }
.brand-scope strong { color: var(--brand-text-hi); }
.brand-scope main a:not(.btn):not(.brand-cta) { color: var(--brand-gold-hi); text-underline-offset: 2px; }
.brand-scope main a:not(.btn):not(.brand-cta):hover { color: var(--brand-text-hi); }
.lead { font-size: 16px; color: var(--brand-text-hi); max-width: 62ch; }
.last-updated { color: var(--brand-text-mid); font-size: 13px; }

/* Lists: gold dot bullets, like the landing's pills. */
.brand-scope main ul { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.brand-scope main li { position: relative; padding-inline-start: 18px; margin: 6px 0; }
.brand-scope main li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 6px rgba(201,168,76,0.6);
}

/* ── Cards: the landing's .brand-card ───────────────────────────────── */
.tier, .way {
  border-radius: var(--r-card);
  border: 1px solid var(--brand-hairline);
  background: var(--brand-surface);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .tier, .way { padding: 24px; } }
.tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin: var(--sp-6) 0 0;
}
@media (min-width: 880px) { .tiers { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.ways { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 880px) { .ways { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }

.tier h2 {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--brand-gold);
  margin: 0 0 4px;
}
.tier .who { color: var(--brand-text-mid); font-size: 13px; margin: 0 0 var(--sp-4); }
.price {
  font-family: var(--ff-headline);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.1;
  color: var(--brand-text-hi);
  margin: 0;
}
.price small { font-family: var(--ff-body); font-size: 13px; color: var(--brand-text-mid); }
.price-alt { margin: 6px 0 0; font-size: 14px; color: var(--brand-text-body); }
.price-note { margin: 6px 0 0; font-size: 13px; color: var(--brand-text-mid); }
.brand-scope .tier ul { margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--brand-hairline); }

/* ── Buttons: the landing's gold CTA (.brand-cta) for every .btn ─── */
.brand-scope .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: var(--sp-3);
  padding: 14px 28px;
  border: none;
  border-radius: var(--r-cta);
  background: linear-gradient(180deg, var(--brand-cta-top), var(--brand-cta-bot));
  color: var(--brand-cta-ink);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--brand-cta-shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.brand-scope .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,175,55,0.40); color: var(--brand-cta-ink); }
.brand-scope .btn:focus-visible { outline: 2px solid var(--brand-gold-hi); outline-offset: 3px; }
.brand-scope .btn:active { transform: translateY(0); }
.brand-scope .btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .brand-scope .btn { transition: none; }
  .brand-scope .btn:hover { transform: none; }
}
.way .btn { margin-top: auto; }
.way > p:last-of-type { margin-bottom: var(--sp-4); }

/* Card checkout block (card-checkout.js) */
.card-tier { margin: var(--sp-3) 0 var(--sp-2); color: var(--brand-text-body); }
.card-accept {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: var(--sp-3) 0 var(--sp-1);
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-text-body);
  cursor: pointer;
}
.card-accept input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand-gold); }
.card-accept a { color: var(--brand-gold-hi); }
.card-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-gold-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
}

/* Merci: the access code */
.order-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand-gold-hi);
  margin: var(--sp-2) 0;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--brand-pill-ring);
  background: rgba(201,168,76,0.06);
  overflow-wrap: anywhere;
}

/* ── Footer: as HomeFooter.jsx, plus the company line ──────────────── */
body > footer { border-top: 1px solid var(--brand-hairline); padding: var(--sp-6) var(--sp-5); }
/* 1100 rather than the landing's 960: the language link here reads
 * "English" / "Français" (the landing's toggle reads "EN"), and the French
 * labels are longer, so 960 wrapped the links onto two lines. */
body > footer .home-footer-row { max-width: 1100px; margin: 0 auto; width: 100%; }
body > footer nav { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
@media (min-width: 880px) {
  body > footer nav { flex-wrap: nowrap; gap: var(--sp-1); }
  body > footer .home-footer-link, body > footer .sn-brand-line { white-space: nowrap; }
}
body > footer .home-footer-link {
  color: var(--brand-text-mid);
  font-family: var(--ff-body);
  font-size: 13px;
  text-decoration: none;
  padding: 4px 8px;
}
body > footer .sn-brand-line,
body > footer .sn-legal {
  margin: 0;
  color: var(--brand-text-mid);
  font-family: var(--ff-body);
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.3px;
}
body > footer .sn-legal {
  max-width: 960px;
  margin: var(--sp-4) auto 0;
  font-size: 11.5px;
  line-height: 1.6;
}
