/* ===========================================================
   Apportia — site vitrine
   Palette: Rafiki blue #407BFF / coral #FF8B7B / emerald #10B981
   Police: Plus Jakarta Sans
   =========================================================== */

:root {
  --primary: #407BFF;
  --primary-dark: #1E40AF;
  --primary-light: #60A5FA;
  --primary-50: #eef3ff;
  --primary-100: #dbe6ff;
  --secondary: #FF8B7B;
  --success: #10B981;
  --money: #047857;

  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  --bg: #FFFFFF;
  --surface: #F8F9FC;
  --tint: #F3F6FF;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(30, 64, 175, 0.35);

  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.grad {
  background: linear-gradient(100deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radius-full);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(64, 123, 255, 0.7); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(64, 123, 255, 0.8); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; color: var(--primary); }
.brand-name { background: linear-gradient(100deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--primary); }
.nav-cta { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-50); padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 18px;
}
.eyebrow-light { color: #fff; background: rgba(255,255,255,0.18); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: linear-gradient(180deg, var(--tint), #fff); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.12rem; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(64,123,255,0.10), transparent 60%),
    radial-gradient(50% 50% at 0% 30%, rgba(255,139,123,0.10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 22px; max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: .96rem; }
.i-check { width: 20px; height: 20px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* hero visual: rendered app image */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-app {
  width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 40px 60px rgba(30, 64, 175, 0.18));
  animation: heroFloat 7s var(--ease) infinite;
}
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* hero visual: phone mockup (legacy, unused) */
.hero-visual--legacy { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; background: #fff; border-radius: 38px; padding: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  position: relative; z-index: 2;
}
.phone-screen { background: var(--surface); border-radius: 26px; padding: 18px 16px; }
.app-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-bar-title { font-weight: 800; font-size: 1.1rem; }
.app-bar-dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.lead-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.lead-card:last-child { margin-bottom: 0; }
.lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lead-top strong { font-size: .98rem; }
.lead-card p { color: var(--muted); font-size: .85rem; margin: 4px 0 10px; }
.lead-foot { display: flex; align-items: center; justify-content: space-between; }
.money { color: var(--money); font-weight: 800; font-size: .95rem; }
.money.muted { color: var(--faint); font-weight: 600; }
.lead-date { color: var(--faint); font-size: .8rem; }
.chip { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); white-space: nowrap; }
.chip-won { color: #047857; background: rgba(16,185,129,0.14); }
.chip-nego { color: #6d4bc7; background: rgba(122,95,203,0.15); }
.chip-sub { color: #3a57c4; background: rgba(69,104,220,0.14); }

.floaty {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 11px;
}
.floaty strong { display: block; font-size: .98rem; }
.floaty small { color: var(--muted); font-size: .76rem; }
.floaty-1 { left: -8px; top: 22%; animation: float 6s var(--ease) infinite; }
.floaty-2 { right: -10px; bottom: 16%; animation: float 6s var(--ease) infinite 1.5s; }
.floaty-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--money), var(--success)); }
.floaty-2 .i-check { width: 26px; height: 26px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 30px 24px; }
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-size: 1.02rem; }
.trust-item span { color: var(--muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.problem h3 { margin-bottom: 16px; }
.x-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.x-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.x-list li::before {
  content: "\00d7"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 800; color: var(--secondary); background: rgba(255,139,123,0.16);
}

/* ---------- Charte de confiance ---------- */
.charter {
  max-width: 1020px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden;
}
.charter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 36px; background: var(--surface);
  border-bottom: 1px dashed var(--border-strong);
}
.charter-title { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.charter-ref { color: var(--faint); font-size: .82rem; font-weight: 600; }
.charter-body { display: grid; grid-template-columns: repeat(3, 1fr); }
.clause { padding: 34px 36px 38px; }
.clause + .clause { border-left: 1px dashed var(--border-strong); }
.clause-no {
  display: inline-block; font-weight: 800; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px;
}
.clause:nth-child(1) .clause-no { color: var(--primary); }
.clause:nth-child(2) .clause-no { color: #E2604A; }
.clause:nth-child(3) .clause-no { color: var(--money); }
.clause h3 { margin-bottom: 10px; }
.clause p { color: var(--muted); font-size: .96rem; }
.charter-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 36px; border-top: 1px dashed var(--border-strong);
}
.charter-fine { color: var(--faint); font-size: .82rem; }
.stamp {
  flex: none; transform: rotate(-5deg);
  border: 2px solid var(--primary); outline: 1.5px solid var(--primary); outline-offset: 3px;
  border-radius: 8px; padding: 5px 13px;
  color: var(--primary); font-weight: 800; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .14em; white-space: nowrap;
  opacity: .85;
}

/* ---------- Copilotes IA ---------- */
.copilot { display: flex; flex-direction: column; gap: 18px; }
.copilot-head { display: flex; align-items: center; gap: 18px; }
.copilot-av {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid #fff; box-shadow: var(--shadow);
}
.copilot-nina .copilot-av { background: var(--secondary); }
.copilot-leo .copilot-av { background: #1FA08F; }
.copilot-id h3 { font-size: 1.5rem; }
.copilot-role {
  display: inline-block; margin-top: 4px; font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .04em; padding: 4px 12px; border-radius: var(--radius-full);
}
.copilot-nina .copilot-role { color: #c0432e; background: rgba(255,139,123,0.16); }
.copilot-leo .copilot-role { color: #0f766e; background: rgba(31,160,143,0.14); }
.copilot-pitch { color: var(--ink-soft); }
.copilot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.copilot-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: .96rem; }
.copilot-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 800; }
.copilot-nina .copilot-list li::before { color: var(--secondary); }
.copilot-leo .copilot-list li::before { color: #1FA08F; }

/* ---------- Split sections ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy .section-sub { margin-bottom: 26px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .96rem; }
.fl-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: var(--primary); background: var(--primary-50); }
.price-flag { margin-top: 28px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink-soft); }
.price-flag strong { color: var(--primary); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, var(--primary), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lbl { color: var(--muted); font-size: .92rem; }

/* pipeline visual */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.pl-col { display: flex; flex-direction: column; gap: 10px; }
.pl-h { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pl-card { font-size: .86rem; font-weight: 600; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); }
.pl-card.sub { background: rgba(69,104,220,0.08); color: #3a57c4; }
.pl-card.qual { background: rgba(20,184,166,0.1); color: #0f766e; }
.pl-card.won { background: rgba(16,185,129,0.12); color: #047857; }

/* ---------- Parcours (comment ça marche) ---------- */
.journey {
  list-style: none; padding: 0; margin: 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.journey::before {
  content: ""; position: absolute; left: 12px; right: 56px; top: 15px;
  border-top: 2px dashed var(--primary-100);
}
.journey::after {
  content: "\20ac"; position: absolute; right: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff;
  background: linear-gradient(135deg, var(--money), var(--success));
  box-shadow: 0 8px 18px -8px rgba(4, 120, 87, 0.6);
}
.jstep { position: relative; padding-top: 70px; }
.jstep-node {
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary);
  box-shadow: 0 0 0 5px var(--primary-50);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.jstep:hover .jstep-node { background: var(--primary); box-shadow: 0 0 0 7px var(--primary-100); }
.jstep-ghost {
  position: absolute; left: 34px; top: -16px;
  font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--primary-100);
  user-select: none; pointer-events: none;
  transition: -webkit-text-stroke-color .25s var(--ease);
}
.jstep:hover .jstep-ghost { -webkit-text-stroke-color: rgba(64, 123, 255, 0.4); }
.jstep h3 { margin-bottom: 8px; }
.jstep p { color: var(--muted); font-size: .94rem; }

/* ---------- Banner (protection fiscale) ---------- */
.banner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(125deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.banner::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.banner h2 { color: #fff; }
.banner-copy p { color: rgba(255,255,255,0.9); margin-top: 14px; }
.banner-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.banner-list li { position: relative; padding-left: 28px; color: rgba(255,255,255,0.95); font-weight: 600; }
.banner-list li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: #fff; }
.banner .note { font-size: .82rem; color: rgba(255,255,255,0.7); margin-top: 22px; }
.banner-meter { position: relative; z-index: 1; }
.meter-card { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-lg); padding: 26px; backdrop-filter: blur(6px); }
.meter-label { font-size: .9rem; color: rgba(255,255,255,0.85); }
.meter-value { display: block; font-size: 2.4rem; font-weight: 800; margin: 6px 0 16px; letter-spacing: -0.02em; }
.meter-bar { height: 10px; border-radius: var(--radius-full); background: rgba(255,255,255,0.25); overflow: hidden; }
.meter-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fff, var(--secondary)); }
.meter-foot { display: block; margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,0.85); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-featured { border: 1.5px solid var(--primary); box-shadow: var(--shadow); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: .76rem; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-full); white-space: nowrap; }
.price-tag { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; }
.price-amount .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount .per { color: var(--muted); font-weight: 600; }
.price-desc { color: var(--muted); margin-bottom: 22px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.price-feats li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.price-feats li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; font-weight: 700; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .25s var(--ease); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding: 0 0 20px; margin: 0; }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: clamp(72px, 10vw, 128px); }
.cta-card {
  text-align: center; background: linear-gradient(135deg, #0b1f57, var(--primary-dark) 55%, var(--primary));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 80px) 24px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(255,139,123,0.25), transparent 60%); }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; }
.cta-card p { color: rgba(255,255,255,0.9); margin: 16px auto 0; max-width: 52ch; font-size: 1.1rem; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 30px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 12px 22px; border-radius: 14px; transition: transform .2s var(--ease); }
.store-badge:hover { transform: translateY(-3px); }
.store-ic { width: 26px; height: 26px; fill: var(--ink); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: .72rem; color: var(--muted); }
.store-badge strong { font-size: 1.05rem; }
.cta-note { font-size: .92rem; color: rgba(255,255,255,0.75) !important; margin-top: 22px !important; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1020; color: #cbd5e1; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { background: linear-gradient(100deg, #fff, var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand .brand-mark { color: var(--primary-light); }
.footer-brand p { color: #94a3b8; margin-top: 14px; max-width: 30ch; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); color: #64748b; font-size: .88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { max-width: 52ch; margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .split-visual { order: 2; }
  .cards-3 { grid-template-columns: 1fr; }
  .charter-body { grid-template-columns: 1fr; }
  .clause + .clause { border-left: 0; border-top: 1px dashed var(--border-strong); }
  .journey { grid-template-columns: 1fr; gap: 40px; padding-left: 38px; }
  .journey::before { left: 10px; right: auto; top: 6px; bottom: 28px; border-top: 0; border-left: 2px dashed var(--primary-100); }
  .journey::after { top: auto; bottom: -14px; left: -6px; right: auto; }
  .jstep { padding-top: 0; }
  .jstep-node { left: -36px; top: 3px; }
  .jstep-ghost { left: auto; right: 0; top: -12px; font-size: 3.2rem; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .banner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 6px;
    background: #fff; padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s var(--ease); z-index: 40;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .cards-2, .pricing, .stat-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 18px; }
  .charter-head, .charter-foot { padding-left: 24px; padding-right: 24px; }
  .clause { padding: 26px 24px 30px; }
  .trust-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
