/* =====================================================================
   matthieugariel.fr — Design system
   Vanilla CSS · light/dark via light-dark() · mobile-first · WCAG AA
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand */
  --accent:         light-dark(#5a4fe4, #8b85ff);
  --accent-strong:  light-dark(#4a40d4, #a39dff);
  --accent-contrast:#ffffff;
  --accent-tint:    light-dark(#eeecff, #1b2138);

  /* Surfaces & text */
  --bg:        light-dark(#ffffff, #0b0f1a);
  --bg-soft:   light-dark(#f5f6fb, #0e1424);
  --surface:   light-dark(#ffffff, #121a2c);
  --surface-2: light-dark(#fbfcfe, #0f1827);
  --text:      light-dark(#14161f, #eef1f8);
  --text-muted:light-dark(#5b6172, #9aa6bd);
  --border:    light-dark(#e7e9f1, #243049);

  /* Hero (dark glow look, theme-aware) */
  --hero-bg-1: light-dark(#f3f4fb, #0a0e18);
  --hero-bg-2: light-dark(#ffffff, #0e1526);

  /* Effects */
  --shadow-sm: 0 1px 2px light-dark(rgba(20,22,40,.06), rgba(0,0,0,.3));
  --shadow:    0 12px 32px -12px light-dark(rgba(30,32,60,.18), rgba(0,0,0,.55));
  --shadow-lg: 0 30px 60px -20px light-dark(rgba(30,32,60,.25), rgba(0,0,0,.7));
  --ring: 0 0 0 3px light-dark(rgba(90,79,228,.35), rgba(139,133,255,.4));

  /* Geometry */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --container: 1120px;
  --gutter: clamp(1.1rem, 4vw, 2rem);

  /* Type */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + .9vw, 1.95rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.7vw, 2.7rem);
  --step-4:  clamp(2.3rem, 1.7rem + 2.9vw, 3.6rem);
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--accent-strong); text-decoration-thickness: .08em; text-underline-offset: .18em; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }

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

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-strong);
}
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: var(--accent); border-radius: 2px; }

.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--text-muted); font-size: var(--step-1); margin-top: .8rem; }

.lead { font-size: var(--step-1); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--accent); --_fg: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: inherit; font-weight: 650; line-height: 1; cursor: pointer;
  padding: .92em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--_bg); color: var(--_fg);
  text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { box-shadow: 0 10px 24px -10px light-dark(rgba(90,79,228,.7), rgba(139,133,255,.5)); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--text);
  border-color: var(--border); background: var(--surface);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--lg { padding: 1.05em 1.8em; font-size: var(--step-0); }
.btn--block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: light-dark(rgba(255,255,255,.72), rgba(11,15,26,.72));
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; color: var(--text); text-decoration: none;
}
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.brand-mark span { transform: translateY(-1px); }
.nav-links { display: none; align-items: center; gap: .35rem; margin-left: auto; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-weight: 550; font-size: .96rem;
  padding: .5rem .8rem; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--accent-tint); }
.nav-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-links + .nav-actions { margin-left: .5rem; }

.theme-toggle, .nav-burger {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 11px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s;
}
.theme-toggle:hover, .nav-burger:hover { border-color: var(--accent); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-cta { display: none; }

/* Mobile menu */
.nav-burger svg { width: 22px; height: 22px; }
.mobile-menu {
  display: grid; gap: .25rem; padding: .5rem var(--gutter) 1.2rem;
  border-bottom: 1px solid var(--border); background: light-dark(rgba(255,255,255,.96), rgba(11,15,26,.96));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--text); text-decoration: none; font-weight: 600; padding: .8rem .6rem;
  border-radius: 10px; border: 1px solid transparent;
}
.mobile-menu a:hover { background: var(--accent-tint); }
.mobile-menu .btn { margin-top: .5rem; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-cta { display: inline-flex; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 18%, light-dark(rgba(120,110,255,.18), rgba(120,110,255,.30)), transparent 70%),
    radial-gradient(55% 60% at 8% 90%, light-dark(rgba(90,79,228,.10), rgba(80,70,200,.22)), transparent 70%),
    linear-gradient(180deg, var(--hero-bg-1), var(--hero-bg-2));
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-title { font-size: var(--step-4); letter-spacing: -.03em; }
.hero-title .accent { color: var(--accent-strong); }
.hero p.lead { margin-top: 1.2rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 1.8rem; color: var(--text-muted); font-size: var(--step--1); }
.hero-meta span { display: inline-flex; align-items: center; gap: .5em; }
.hero-meta svg { width: 18px; height: 18px; color: var(--accent); }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img {
  width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; border: 5px solid var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent);
}
.hero-badge {
  position: absolute; bottom: 6%; left: -6%;
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: .7rem .95rem; box-shadow: var(--shadow); font-size: .85rem; font-weight: 600;
}
.hero-badge b { color: var(--accent-strong); }
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

/* ---------- Proof bar ---------- */
.proof { border-block: 1px solid var(--border); background: var(--bg-soft); }
.proof .container { display: grid; gap: 1.2rem; padding-block: 1.6rem; }
.proof-label { font-size: var(--step--1); color: var(--text-muted); font-weight: 600; letter-spacing: .04em; }
.proof-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
.proof-item { display: flex; flex-direction: column; gap: .1rem; }
.proof-item b { font-size: var(--step-2); color: var(--accent-strong); letter-spacing: -.02em; }
.proof-item span { font-size: var(--step--1); color: var(--text-muted); }
@media (min-width: 720px) {
  .proof .container { grid-template-columns: auto 1fr; align-items: center; gap: 2.5rem; }
  .proof-items { grid-template-columns: repeat(3, auto); gap: 2.5rem; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--services { grid-template-columns: 1fr; }
.grid--cases { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--services { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) { .grid--cases { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: light-dark(#d8d6f3, #33406a); }

.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent-strong); margin-bottom: 1rem;
}
.card-icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .98rem; }
.card ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; }
.card ul li { position: relative; padding-left: 1.5em; color: var(--text-muted); font-size: .95rem; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7em; height: .38em;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Case studies */
.case { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.case-media { aspect-ratio: 16/11; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case:hover .case-media img { transform: scale(1.05); }
.case-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.case-tag { font-size: var(--step--1); font-weight: 700; color: var(--accent-strong); letter-spacing: .03em; }
.case-body h3 { font-size: var(--step-1); }
.case-body p { color: var(--text-muted); font-size: .96rem; }
.case-kpi { margin-top: auto; padding-top: .8rem; display: flex; gap: 1.3rem; border-top: 1px solid var(--border); }
.case-kpi div { display: flex; flex-direction: column; }
.case-kpi b { font-size: var(--step-1); color: var(--text); letter-spacing: -.02em; }
.case-kpi span { font-size: .78rem; color: var(--text-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.about-photo { justify-self: center; max-width: 340px; }
.about-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-grid h2 { margin-bottom: 1rem; }
.about-grid p { color: var(--text-muted); margin-bottom: 1rem; }
.about-grid p strong { color: var(--text); }
.about-signature { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.tag {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .85rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .45em 1em;
}
.tag svg { width: 15px; height: 15px; color: var(--accent); }
@media (min-width: 820px) { .about-grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- Method ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.4rem 1.3rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-weight: 800; font-size: var(--step-2); color: var(--accent); letter-spacing: -.03em;
  -webkit-text-stroke: 0; opacity: .9; margin-bottom: .4rem;
}
.step h3 { font-size: var(--step-0); margin-bottom: .3rem; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 700px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.price {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.7rem 1.6rem; box-shadow: var(--shadow-sm); position: relative;
}
.price--featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price--featured::after {
  content: "Le plus demandé"; position: absolute; top: -.8rem; left: 1.6rem;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  padding: .35em .8em; border-radius: 999px;
}
.price h3 { font-size: var(--step-1); }
.price .price-tag { margin: .6rem 0 .2rem; font-size: var(--step-2); font-weight: 800; letter-spacing: -.02em; }
.price .price-tag small { display: block; font-size: .8rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price > p { color: var(--text-muted); font-size: .95rem; min-height: 2.4em; }
.price ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.price ul li { position: relative; padding-left: 1.6em; font-size: .94rem; }
.price ul li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .7em; height: .38em;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price .btn { margin-top: auto; }
.pricing-note { margin-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: .92rem; }
.recurring {
  margin-top: 1.25rem; display: grid; gap: 1.4rem 2rem; align-items: center;
  padding: clamp(1.4rem, 4vw, 2rem); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface-2);
}
@media (min-width: 900px) { .recurring { grid-template-columns: 1fr auto; } }
.recurring-head h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.recurring-head .lead { font-size: var(--step-0); max-width: 46ch; }
.recurring-tiers {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 560px) { .recurring-tiers { grid-template-columns: repeat(4, minmax(86px, 1fr)); } }
.recurring-tiers div { background: var(--surface); padding: .9rem 1rem; text-align: center; }
.recurring-tiers b { display: block; color: var(--accent-strong); font-size: var(--step-1); letter-spacing: -.02em; }
.recurring-tiers b small { font-size: .56em; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.recurring-tiers span { display: block; font-size: .78rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.3; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); max-width: 760px; margin-inline: auto;
}
.quote-mark { font-size: 3.5rem; line-height: .6; color: var(--accent); font-weight: 800; }
.quote p { font-size: var(--step-1); margin: .4rem 0 1.4rem; }
.quote figcaption { display: flex; align-items: center; gap: .8rem; color: var(--text-muted); font-size: .95rem; }
.quote figcaption b { color: var(--text); }
.quote-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); display: grid; place-items: center; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-weight: 650; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact-aside h2 { margin-bottom: 1rem; }
.contact-aside p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; font-weight: 550; }
.contact-list .ci { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-tint); color: var(--accent-strong); flex: none; }
.contact-list svg { width: 20px; height: 20px; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.3rem, 4vw, 2rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field .req { color: var(--accent-strong); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8em .9em;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field textarea { min-height: 130px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-error { color: light-dark(#c2410c, #fb923c); font-size: .85rem; margin-top: .35rem; display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] textarea { border-color: light-dark(#c2410c, #fb923c); }
.field[data-invalid="true"] .field-error { display: block; }
.form-consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text-muted); cursor: pointer; }
.form-consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 1.4rem; height: 1.4rem; margin: .05rem 0 0; position: relative;
  border: 2px solid var(--border); border-radius: 6px; background: var(--bg);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.form-consent input[type="checkbox"]:hover { border-color: var(--accent); }
.form-consent input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.form-consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.form-consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-error { display: none; color: light-dark(#c2410c, #fb923c); font-size: .85rem; font-weight: 600; margin: .55rem 0 0 2.1rem; }
.consent-block[data-invalid="true"] .consent-error { display: block; }
.consent-block[data-invalid="true"] .form-consent input[type="checkbox"] { border-color: light-dark(#c2410c, #fb923c); box-shadow: 0 0 0 3px light-dark(rgba(194,65,12,.15), rgba(251,146,60,.18)); }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 1rem; }
.form-alert { display: none; padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; }
.form-alert:not([hidden]) { display: block; }
.form-alert--err { background: light-dark(#fef2f2, #2a1416); color: light-dark(#b91c1c, #fca5a5); border: 1px solid light-dark(#fecaca, #5b2326); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid p { color: var(--text-muted); font-size: .92rem; margin-top: .8rem; max-width: 38ch; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .9rem; }
.footer-col a { display: block; color: var(--text); text-decoration: none; padding: .3rem 0; font-size: .95rem; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--text-muted); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Legal pages ---------- */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h1 { font-size: var(--step-3); margin-bottom: 1.5rem; }
.prose h2 { font-size: var(--step-1); margin: 2rem 0 .8rem; }
.prose p, .prose li { color: var(--text-muted); margin-bottom: .8rem; }
.prose ul { padding-left: 1.3rem; }
.prose a { color: var(--accent-strong); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 2rem; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--accent-strong); }
.prose .updated { margin-top: 2rem; }

/* ---------- Utilities & one-off blocks (no inline styles → strict CSP) ---------- */
.u-mt-1 { margin-top: 1.2rem; }
.recurring .lead { font-size: var(--step-0); }

.thanks { max-width: 620px; margin-inline: auto; text-align: center; padding-block: clamp(2rem, 8vw, 4rem); }
.thanks .card-icon { margin-inline: auto; width: 68px; height: 68px; border-radius: 20px; }
.thanks h1 { margin-top: 1.2rem; }
.thanks .lead { margin-top: 1rem; }
.thanks .sub { color: var(--text-muted); margin-top: .8rem; }
.thanks .hero-cta { justify-content: center; margin-top: 2rem; }
