/* =========================================================================
   Stripe activation site — multi-page redesign
   Modeled on mxroute.com (research-based): dark warm bg, amber accent,
   serif headings + system-sans body + mono nav/labels, elevated cards.
   No webfonts, no JS, no external requests.
   ========================================================================= */

:root {
  /* ---------- Palette (mxroute-inspired dark theme) ---------- */
  --bg:           #15110d;        /* page background */
  --bg-elevated:  #1c1814;        /* cards / footer */
  --border:       #2e271f;        /* hairline dividers */
  --text:         #f1ead8;        /* primary text */
  --text-soft:    #c8bfa7;        /* secondary text */
  --text-mute:    #8a8175;        /* muted */
  --text-vmute:   #5e564a;        /* very muted / separators */
  --amber:        #e8b455;        /* primary accent */
  --amber-soft:   #f5d089;        /* accent hover */
  --amber-glow:   rgba(232, 180, 85, 0.45);
  --green:        #8db96f;        /* success */
  --red:          #d97757;        /* error */

  /* ---------- Type stacks (system fonts only — no webfonts) ---------- */
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif:   "Charter", "Iowan Old Style", "Sitka Text", Cambria, "Source Serif Pro", Georgia, serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* ---------- Layout ---------- */
  --shell:        1180px;         /* container max-width */
  --shell-pad:    32px;           /* container side padding */
  --measure:      42rem;          /* readable column */
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-serif);
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);  /* ~2rem base */
  font-weight: 600;
}
h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);  /* ~1.5rem base */
  margin-bottom: 1rem;
}

/* H3 = structural label / eyebrow, mono amber uppercase */
h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 1.75rem 0 0.5rem;
}

h3:first-child { margin-top: 0; }

/* Mono section eyebrow — top label for major content sections (above H3 clauses) */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.5rem;
  display: block;
}

p {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
  text-wrap: pretty;
}

p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text); }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 85, 0.5);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover, a:focus-visible {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { margin: 0 0 1.15rem; padding-left: 1.25rem; max-width: var(--measure); }
li { margin-bottom: 0.45rem; }
li::marker { color: var(--amber); }

/* ---------- Header (transparent, not sticky) ---------- */
.site-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 1.5rem var(--shell-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-header__brand:hover,
.site-header__brand:focus-visible { color: var(--amber); }

/* Amber brand dot with subtle glow */
.brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
  flex: none;
}

.site-nav__list {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  justify-content: flex-end;
}

.site-nav__list a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible { color: var(--amber); }

.site-nav__list a.is-active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ---------- Hero (homepage only) ---------- */
.hero {
  padding: clamp(4rem, 10vh, 7rem) var(--shell-pad) clamp(3rem, 6vh, 5rem);
  text-align: center;
}

.hero__inner {
  max-width: var(--shell);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 auto 1.5rem;
  max-width: 16ch;
}

.hero__rule {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--amber);
  border: 0;
  margin: 0 auto 1.75rem;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-soft);
  margin: 0 auto 1.5rem;
  max-width: 38rem;
}

.hero__lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin: 0 auto;
  max-width: 42rem;
}

/* ---------- Page header (subpages) ---------- */
.page-header {
  padding: clamp(3rem, 7vh, 5rem) var(--shell-pad) clamp(1.5rem, 3vh, 2.5rem);
}

.page-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem clamp(1.5rem, 3vw, 2rem);
}

.page-header__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.85rem;
}

.page-header h1 {
  max-width: 28ch;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(2rem, 5vh, 3.5rem) var(--shell-pad);
}

.section__inner {
  max-width: var(--shell);
  margin: 0 auto;
}

/* Card variant — used for content blocks */
.section--card .section__inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem clamp(1.5rem, 3vw, 2rem);
}

/* H2 inside section — thin amber underline rule */
.section h2 {
  position: relative;
  padding-bottom: 0.65rem;
}

.section h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--amber);
  margin-top: 0.65rem;
}

/* ---------- CTA button (filled amber, dark text) ---------- */
.cta-row { margin-top: 1.75rem; }

.btn {
  display: inline-block;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--amber);
  border-radius: 6px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--amber-soft);
  border-color: var(--amber-soft);
  color: var(--bg);
  text-decoration: none;
}

/* ---------- Contact emphasis ---------- */
.contact-block p {
  font-size: 1.0625rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 0.5rem;
  word-break: break-all;
}

/* ---------- Mentions légales — definition grid ---------- */
.factgrid {
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  grid-template-columns: minmax(10rem, 13rem) 1fr;
  gap: 0.85rem 1.5rem;
}

.factgrid dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 0.1rem;
}

.factgrid dd {
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px dotted var(--border);
}

/* ---------- Footer — Kobo-style 3-row stacked footer ---------- */
.site-footer {
  background: var(--bg-elevated);                /* #1c1814 */
  border-top: 1px solid var(--border);
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.site-footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

/* Each row has its own padding; rows 1 & 2 carry the dividers between them */
.site-footer__payment,
.site-footer__copyright,
.site-footer__legal-links {
  padding: 1rem 0;
}

.site-footer__payment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.site-footer__copyright {
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.site-footer__copyright p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  max-width: none;
}

.site-footer__label {
  color: var(--text-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-footer__payment-brand {
  display: inline-block;
  color: var(--amber);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(232, 180, 85, 0.1);
  border: 1px solid rgba(232, 180, 85, 0.35);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
}

.site-footer__legal-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;       /* right-aligned on desktop */
  gap: 0.5rem 1.25rem;             /* CSS-only spacing, no visible separators */
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.site-footer__legal-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.site-footer__legal-links a:hover {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 2px;
}

.site-footer__legal-links a:focus-visible {
  color: var(--amber);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Right-aligned wraps to left-aligned on small screens */
@media (max-width: 640px) {
  .site-footer__legal-links ul {
    justify-content: flex-start;
  }
  .site-footer__payment {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ---------- Auth pages (login / register) ---------- */
.auth-page {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) var(--shell-pad);
}

.auth-card {
  max-width: 400px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  text-decoration: none;
  margin: 0 0 0.5rem;
}

.auth-brand:hover { color: var(--amber); }

.auth-subhead {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.5rem;
}

.auth-form { margin: 0; }

.auth-field { margin: 0 0 1rem; }

.auth-field label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.auth-field input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.auth-field input::placeholder { color: var(--text-mute); }

.auth-field input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 180, 85, 0.15);
}

.auth-meta {
  text-align: right;
  margin: -0.5rem 0 1rem;
  font-size: 0.85rem;
}

.auth-meta a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 85, 0.4);
  text-underline-offset: 2px;
}

.auth-meta a:hover { color: var(--amber); text-decoration-color: var(--amber); }

.auth-divider {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0 1.25rem;
}

.auth-footer-link {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  max-width: none;
}

.auth-footer-link a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(232, 180, 85, 0.5);
  text-underline-offset: 2px;
}

.auth-footer-link a:hover { color: var(--amber-soft); text-decoration-color: var(--amber-soft); }

/* Full-width button modifier (extends existing .btn) */
.btn-full {
  display: block;
  width: 100%;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.1rem var(--shell-pad);
  }

  .site-nav__list {
    width: 100%;
    justify-content: flex-start;
    gap: 0.25rem 1rem;
  }

  .site-nav__list a { font-size: 0.68rem; }

  .hero h1 { font-size: 2.25rem; }
  .hero__tagline { font-size: 1.125rem; }

  .factgrid {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .factgrid dt {
    margin-top: 0.5rem;
  }

  .factgrid dt:first-of-type { margin-top: 0; }
  .factgrid dd { padding-bottom: 0.5rem; }
}

@media (max-width: 640px) {
  .site-footer__strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}