/* ─── TOKENS ─────────────────────────────────────────────────────────────────
   Layout : full-width sections, max-width 1120px centered, alternating text/visual
   Color  : --green brand anchor, near-white bg, deep-green dark surface
   Type   : Sora (display/headings) + Inter (body/UI)
   ──────────────────────────────────────────────────────────────────────────── */
:root {
  --green:       #1a6b5a;
  --green-mid:   #1e8068;
  --green-light: #e8f4f1;
  --green-glow:  rgba(26,107,90,.12);
  --bg:          #f8faf9;
  --bg-alt:      #ffffff;
  --surface:     #ffffff;
  --fg:          #0d1f1b;
  --fg-mid:      #3a5a52;
  --fg-muted:    #6b8c84;
  --border:      #d4e8e3;
  --shadow:      rgba(26,107,90,.08);
  --accent:        var(--green);
  --field-border:  #6f8f87;
  --danger:        #b42318;
  --logo-pay:      var(--green);
  --logo-flow:     var(--green);
  --logo-op:       .55;
  --footer-bg:     var(--fg);
  --footer-edge:   transparent;
  --ft-p:          rgba(255,255,255,.45);
  --ft-h:          rgba(255,255,255,.35);
  --ft-a:          rgba(255,255,255,.55);
  --ft-b:          rgba(255,255,255,.3);
  --ft-badge:      rgba(255,255,255,.4);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0b1612;
    --bg-alt:      #0f1f1a;
    --surface:     #162820;
    --fg:          #e8f4f1;
    --fg-mid:      #9ecfc4;
    --fg-muted:    #7fb0a6;
    --border:      #2a4f44;
    --shadow:      rgba(0,0,0,.3);
    --green-light: #0f2820;
    --green-glow:  rgba(26,107,90,.2);
  --accent:        #4fc7a8;
  --field-border:  #5c8f85;
  --danger:        #ff9b8f;
  --logo-pay:      #ffffff;
  --logo-flow:     rgba(255,255,255,.85);
  --logo-op:       .85;
  --footer-bg:     #07100d;
  --footer-edge:   #254a3f;
  --ft-p:          rgba(255,255,255,.72);
  --ft-h:          rgba(255,255,255,.62);
  --ft-a:          rgba(255,255,255,.78);
  --ft-b:          rgba(255,255,255,.62);
  --ft-badge:      rgba(255,255,255,.68);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:          #0b1612;
  --bg-alt:      #0f1f1a;
  --surface:     #162820;
  --fg:          #e8f4f1;
  --fg-mid:      #9ecfc4;
  --fg-muted:    #7fb0a6;
  --border:      #2a4f44;
  --shadow:      rgba(0,0,0,.3);
  --green-light: #0f2820;
  --green-glow:  rgba(26,107,90,.2);
  --accent:        #4fc7a8;
  --field-border:  #5c8f85;
  --danger:        #ff9b8f;
  --logo-pay:      #ffffff;
  --logo-flow:     rgba(255,255,255,.85);
  --logo-op:       .85;
  --footer-bg:     #07100d;
  --footer-edge:   #254a3f;
  --ft-p:          rgba(255,255,255,.72);
  --ft-h:          rgba(255,255,255,.62);
  --ft-a:          rgba(255,255,255,.78);
  --ft-b:          rgba(255,255,255,.62);
  --ft-badge:      rgba(255,255,255,.68);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── UTILS ── */
.container { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  background: var(--green-light); border-radius: 100px;
  padding: 4px 12px; margin-bottom: 20px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

h1,h2,h3 { font-family: 'Sora', sans-serif; text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { color: var(--fg-mid); }
a { color: inherit; text-decoration: none; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: .9rem;
  padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); box-shadow: 0 8px 24px var(--green-glow); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg);
  font-family: 'Inter', sans-serif; font-weight: 500; font-size: .9rem;
  padding: 13px 24px; border-radius: 8px;
  border: 1.5px solid var(--border); cursor: pointer;
  transition: border-color .2s, color .2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--green); color: var(--accent); }

/* ─── NAV ── */
nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}
.nav-logo {
  font-family: 'Sora', sans-serif; font-size: 1.35rem; line-height: 1;
  display: flex; align-items: baseline; gap: 0; flex-shrink: 0;
}
.nav-logo .pay { font-weight: 700; color: var(--logo-pay); }
.nav-logo .flow { font-weight: 300; color: var(--logo-flow); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--fg-mid);
  transition: color .15s;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn-primary { padding: 9px 20px; font-size: .85rem; }
.nav-cta .btn-ghost   { padding: 9px 18px; font-size: .85rem; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: all .2s; }
.mobile-menu { display: none; }

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    display: none; flex-direction: column; gap: 0;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-size: .95rem; font-weight: 500; color: var(--fg-mid);
    padding: 12px 0; border-bottom: 1px solid var(--border);
  }
  .mobile-menu .btn-primary { margin-top: 16px; justify-content: center; }
}

/* ─── HERO ── */
.hero {
  padding-block: 96px 80px;
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; inset: -20% -10%; z-index: 0;
  pointer-events: none;
}
.hero-blob svg { width: 100%; height: 100%; }
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-title { color: var(--fg); }
.hero-title em {
  font-style: normal; color: var(--accent);
}
.hero-sub { font-size: 1.05rem; line-height: 1.7; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* mock app card */
.hero-visual { position: relative; }
.app-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px var(--shadow);
  overflow: hidden;
}
.mockup-header {
  background: var(--green); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.mockup-logo { font-family: 'Sora',sans-serif; font-size: .95rem; font-weight: 700; color: #fff; }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mockup-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.stat-card .stat-num { font-family: 'Sora',sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { font-size: 10px; color: var(--fg-muted); }
.stat-card.highlight { background: var(--green-light); border-color: transparent; }
.stat-card.highlight .stat-num { color: var(--accent); }
.mockup-table { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mockup-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 12px;
  padding: 10px 14px; font-size: .78rem;
  border-bottom: 1px solid var(--border);
}
.mockup-row:last-child { border-bottom: none; }
.mockup-row .name { font-weight: 600; color: var(--fg); }
.mockup-row .email { color: var(--fg-muted); }
.mockup-row .info { display: flex; flex-direction: column; gap: 1px; }
.pill {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 100px;
  white-space: nowrap;
}
.pill.sent    { background: #d1fae5; color: #065f46; }
.pill.pending { background: #fef3c7; color: #92400e; }
.pill.opened  { background: #dbeafe; color: #1e40af; }

@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero { padding-block: 64px 56px; }
}

/* ─── LOGOS ── */
.logos-section {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.logos-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); text-align: center; margin-bottom: 24px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; }
.logo-item {
  font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700;
  color: var(--fg-muted); letter-spacing: -.01em; opacity: var(--logo-op);
  transition: opacity .2s;
}
.logo-item:hover { opacity: 1; }

/* ─── PROBLEMS ── */
.problems { padding-block: 96px; background: var(--bg); }
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 56px; }
.problem-item { background: var(--bg-alt); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.problem-icon { color: var(--accent); display: flex; }
.problem-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.problem-item h3 { font-size: 1rem; font-weight: 600; color: var(--fg); }
.problem-item p  { font-size: .875rem; line-height: 1.65; }

/* ─── HOW IT WORKS ── */
.how { background: var(--bg-alt); }
.how-pin-wrap {
  /* tall enough to scroll through 5 nodes */
  min-height: 280vh;
  position: relative;
}
.how-sticky {
  position: sticky; top: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  min-height: 100vh;
  padding-block: 96px;
}
.how-text { display: flex; flex-direction: column; gap: 0; }
.how-steps { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.step {
  display: flex; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: all .2s;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora',sans-serif; font-size: .8rem; font-weight: 700;
  background: var(--green-light); color: var(--accent);
  transition: all .2s;
}
.step.active .step-num { background: var(--green); color: #fff; }
.step-body { display: flex; flex-direction: column; gap: 6px; }
.step-title { font-weight: 600; color: var(--fg); font-size: 1rem; }
.step-desc { font-size: .875rem; color: var(--fg-mid); line-height: 1.65; }

/* flow diagram */
.how-visual { }
.flow-diagram {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; box-shadow: 0 8px 32px var(--shadow);
  display: flex; flex-direction: column; gap: 0;
}
.flow-node {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg);
  position: relative;
  transition: border-color .4s ease, background .4s ease;
}
.flow-node.active-node { border-color: var(--green); background: var(--green-light); }
.flow-node .node-icon { color: var(--accent); display: flex; flex-shrink: 0; }
.flow-node .node-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.flow-node .node-text { font-size: .875rem; font-weight: 600; color: var(--fg); }
.flow-node .node-desc { font-size: .75rem; color: var(--fg-muted); margin-top: 2px; }
.flow-arrow {
  width: 2px; height: 28px; background: var(--border);
  margin: 4px 0 4px 28px; position: relative;
  transition: background .4s ease;
}
.flow-arrow.passed { background: var(--green); }
.flow-arrow::after {
  content: ''; position: absolute; bottom: -4px; left: -3px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid var(--border);
  transition: border-top-color .4s ease;
}
.flow-arrow.passed::after { border-top-color: var(--green); }

@media (max-width: 860px) {
  .how-pin-wrap { min-height: unset; }
  .how-sticky { position: static; grid-template-columns: 1fr; gap: 48px; min-height: unset; padding-block: 64px; }
  .how-visual { display: none; }
}

/* ─── STATS ── */
.stats-section {
  padding-block: 96px;
  background: var(--green);
  position: relative; overflow: hidden;
}
.stats-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,255,255,.06) 0%, transparent 70%);
}
.stats-inner { position: relative; z-index: 1; text-align: center; }
.stats-inner h2 { color: #fff; margin-bottom: 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; overflow: hidden; }
.stat-big { background: rgba(255,255,255,.06); padding: 40px 32px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.stat-big .num { font-family: 'Sora',sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.stat-big .desc { font-size: .875rem; color: rgba(255,255,255,.7); text-align: center; line-height: 1.5; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }

/* ─── FEATURES ── */
.features { padding-block: 96px; background: var(--bg); }
.features-header { max-width: 640px; margin-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .2s, border-color .2s;
}
.feature-card:hover { border-color: var(--green); box-shadow: 0 8px 32px var(--green-glow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.05rem; }
.feature-card p  { font-size: .875rem; line-height: 1.7; }

/* ─── TESTIMONIAL ── */
.testimonial { padding-block: 96px; background: var(--bg-alt); }
.testimonial-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.quote-block { display: flex; flex-direction: column; gap: 28px; }
.quote-mark { font-family: 'Sora',sans-serif; font-size: 5rem; line-height: .8; color: var(--accent); font-weight: 700; }
.quote-text { font-family: 'Sora',sans-serif; font-size: 1.35rem; font-weight: 400; color: var(--fg); line-height: 1.5; font-style: italic; }
.quote-author { display: flex; flex-direction: column; gap: 4px; }
.quote-author strong { font-weight: 600; font-size: .9rem; }
.quote-author span { font-size: .8rem; color: var(--fg-muted); }
.testimonial-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; box-shadow: 0 8px 32px var(--shadow);
  display: flex; flex-direction: column; gap: 20px;
}
.email-preview {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.email-header { background: var(--green); padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.email-header-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; }
.email-header-text { font-size: .8rem; color: rgba(255,255,255,.9); font-weight: 500; }
.email-body { padding: 16px; font-size: .8rem; color: var(--fg-mid); line-height: 1.6; display: flex; flex-direction: column; gap: 10px; }
.email-body strong { color: var(--fg); }
.email-cta {
  display: inline-block; background: var(--green); color: #fff;
  font-size: .78rem; font-weight: 600; padding: 8px 16px; border-radius: 6px;
  align-self: flex-start;
}
.tracking-row { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; }
.tracking-row span { color: var(--fg-muted); }
.tracking-row strong { color: var(--accent); }

@media (max-width: 860px) { .testimonial-inner { grid-template-columns: 1fr; } }

/* ─── PRICING ── */
.pricing { padding-block: 96px; background: var(--bg); }
.pricing-header { text-align: center; max-width: 560px; margin: 0 auto 56px; display: flex; flex-direction: column; gap: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.plan.featured {
  background: var(--green); border-color: var(--green);
}
.plan-name { font-family: 'Sora',sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--fg); }
.plan.featured .plan-name { color: #fff; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-family: 'Sora',sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan.featured .amount { color: #fff; }
.plan-price .per { font-size: .875rem; color: var(--fg-muted); }
.plan.featured .per { color: rgba(255,255,255,.7); }
.plan-desc { font-size: .875rem; color: var(--fg-mid); line-height: 1.6; }
.plan.featured .plan-desc { color: rgba(255,255,255,.8); }
.plan-features { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.plan-features li { display: flex; gap: 10px; font-size: .875rem; color: var(--fg-mid); align-items: flex-start; }
.plan.featured .plan-features li { color: rgba(255,255,255,.85); }
.plan-features li::before { content: '✓'; font-weight: 700; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.plan.featured .plan-features li::before { color: rgba(255,255,255,.9); }
.plan .btn-primary { justify-content: center; }
.plan .btn-ghost { justify-content: center; }
.plan.featured .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.plan.featured .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ─── CTA FINALE ── */
.cta-final {
  padding-block: 96px;
  background: var(--bg-alt);
  text-align: center;
}
.cta-final-inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; align-items: center; }
.cta-final h2 { }
.cta-final p { font-size: 1rem; line-height: 1.7; }
.cta-final .btn-primary { font-size: 1rem; padding: 16px 36px; }

/* ─── FOOTER ── */
footer {
  background: var(--footer-bg);
  box-shadow: inset 0 1px 0 var(--footer-edge);
  padding-block: 56px 32px;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { font-family: 'Sora',sans-serif; font-size: 1.4rem; line-height: 1; }
.footer-logo .pay  { font-weight: 700; color: #fff; }
.footer-logo .flow { font-weight: 300; color: rgba(255,255,255,.6); }
.footer-brand p { font-size: .85rem; color: var(--ft-p); line-height: 1.7; max-width: 28ch; }
.footer-col h4 { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ft-h); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: .875rem; color: var(--ft-a); transition: color .15s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--ft-b); }
.footer-badges { display: flex; gap: 12px; }
.badge {
  font-size: .7rem; font-weight: 600; padding: 4px 10px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.15); color: var(--ft-badge);
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ─── REVEAL ANIMATION ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AJOUTS — calculateur de coûts
   Tout ce qui précède est la feuille de la maquette du PO (mode clair inchangé),
   hors correctifs d'accessibilité du mode sombre (tokens --accent, --logo-*, --ft-*).
   ═══════════════════════════════════════════════════════════════════════════ */

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn-primary:focus-visible, .btn-ghost:focus-visible { border-radius: 8px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── NAV : entrée Calculateur ── */
.nav-links a { display: inline-flex; align-items: center; gap: 8px; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-new {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  padding: 3px 7px; border-radius: 100px; background: var(--green); color: #fff;
}
.mobile-menu a[aria-current="page"] { color: var(--fg); }

/* ─── CHAMPS (partagés teaser + page calculateur) ── */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field > .field-label { font-size: .9rem; font-weight: 600; color: var(--fg); line-height: 1.35; }
.hint { font-size: .8rem; color: var(--fg-mid); line-height: 1.5; }
.field .field-error { font-size: .8rem; font-weight: 500; color: var(--danger); }

.control {
  display: flex; align-items: stretch; min-width: 0;
  background: var(--surface); border: 1.5px solid var(--field-border); border-radius: 8px;
  overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--green-glow); }
.control[data-invalid="true"] { border-color: var(--danger); }
.control input, .control select {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg);
  font: 600 1.05rem/1.2 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums;
  padding: 12px 14px; height: 48px; outline: none; appearance: textfield; -moz-appearance: textfield;
}
.control input::-webkit-outer-spin-button, .control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.control select { font-weight: 500; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236f8f87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.control input::placeholder { color: var(--fg-muted); font-weight: 400; }
.control .unit {
  display: flex; align-items: center; padding: 0 12px; font-size: .82rem; font-weight: 500;
  color: var(--fg-mid); white-space: nowrap; background: var(--bg); border-left: 1px solid var(--border);
}
.control .step-btn {
  flex: 0 0 44px; border: 0; background: var(--bg); color: var(--fg); cursor: pointer;
  font: 500 1.25rem/1 'Inter', sans-serif; transition: background .15s;
}
.control .step-btn:hover { background: var(--green-light); }
.control .step-btn:first-child { border-right: 1px solid var(--border); }
.control .step-btn:last-child { border-left: 1px solid var(--border); }
.control .step-btn:focus-visible { outline-offset: -3px; }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 24px; cursor: pointer; }

/* ─── TEASER (landing) ── */
.teaser {
  padding-block: 88px;
  background: var(--green-light);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.teaser-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.teaser-text { display: flex; flex-direction: column; gap: 20px; }
.teaser-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.teaser-text p { font-size: 1rem; line-height: 1.7; max-width: 48ch; }
.teaser-tool {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.teaser-out { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 1px solid var(--border); }
.teaser-out-label { font-size: .85rem; font-weight: 600; color: var(--fg-mid); }
.teaser-out-figure { font-family: 'Sora', sans-serif; font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.teaser-out-figure small { font-size: .95rem; font-weight: 600; color: var(--fg-mid); }
.teaser-tool .btn-primary { justify-content: center; }
.teaser-fine { font-size: .8rem; color: var(--fg-mid); text-align: center; }
@media (max-width: 860px) {
  .teaser { padding-block: 64px; }
  .teaser-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── Liens d'appoint ── */
.pricing-header .inline-link, .cta-final .inline-link {
  color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.pricing-header .inline-link:hover, .cta-final .inline-link:hover { text-decoration-thickness: 2px; }
.cta-final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-final .cta-final-actions .btn-ghost { font-size: 1rem; padding: 14px 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary, .btn-ghost, .control { transition: none; }
}

/* ─── PAGE DEMANDE DE DÉMO ── */
.control textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); resize: vertical;
  font: 500 1rem/1.55 'Inter', system-ui, sans-serif; padding: 12px 14px; min-height: 96px; outline: none;
}
.control textarea::placeholder { color: var(--fg-muted); font-weight: 400; }
.demo { padding-block: 72px 96px; }
.demo-grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 72px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 112px; }
.demo-copy .tag { align-self: flex-start; margin-bottom: 0; }
.demo-copy h1 { font-size: clamp(2rem, 4vw, 3rem); }
.demo-copy h1 em { font-style: normal; color: var(--accent); }
.demo-copy p { font-size: 1.02rem; line-height: 1.7; max-width: 48ch; }
.demo-plan { font-size: .9rem !important; color: var(--fg) !important; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.demo-card form { display: flex; flex-direction: column; gap: 18px; }
.demo-card .btn-primary { justify-content: center; }
.demo-card .consent { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--fg-mid); cursor: pointer; }
.demo-card .consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.demo-alert { padding: 12px 14px; border-radius: 8px; border: 1.5px solid var(--danger); font-size: .88rem !important; }
.demo-done { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; outline: none; }
.demo-done h2 { font-size: 1.4rem; }
.demo-done p { font-size: .95rem; line-height: 1.65; }
.demo-done .btn-primary { margin-top: 6px; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; }
@media (max-width: 900px) {
  .demo { padding-block: 48px 64px; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .demo-copy { position: static; }
  .demo-card { padding: 24px 20px; }
}

/* ─── Tarifs : grille alimentée par les plans publics ── */
.pricing-grid[data-count="1"] { max-width: 420px; }
.pricing-grid[data-count="2"] { max-width: 760px; }
.plan .plan-features { flex: 1; }
.plan-enterprise {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center;
  max-width: 960px; margin: 24px auto 0; padding: 32px 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.plan-enterprise-intro { display: flex; flex-direction: column; gap: 10px; }
.plan-enterprise .plan-price .amount { font-size: 1.8rem; }
.plan-enterprise .plan-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.plan-enterprise .btn-primary { justify-content: center; white-space: nowrap; }
@media (max-width: 900px) {
  .plan-enterprise { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
}
@media (max-width: 560px) {
  .plan-enterprise .plan-features { grid-template-columns: minmax(0, 1fr); }
}
.plan-features li.off { color: var(--fg-mid); }
.plan-features li.off::before { content: '–'; color: var(--fg-muted); }
.plan.featured .plan-features li.off { color: rgba(255,255,255,.82); }
.plan.featured .plan-features li.off::before { color: rgba(255,255,255,.7); }

/* ─── PRICING: billing toggle ── */
.billing-toggle { display: flex; width: max-content; max-width: 100%; margin: -24px auto 32px; padding: 4px; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.billing-toggle button { font: inherit; font-size: .875rem; font-weight: 600; color: var(--fg-mid); background: transparent; border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }
.billing-toggle button.active { background: var(--green); color: #fff; }
.billing-badge { font-size: .75rem; font-weight: 600; margin-left: 4px; opacity: .85; }
.plan-annual { display: flex; flex-direction: column; gap: 6px; }
.plan-annual[hidden], .plan-price[hidden] { display: none; }
.plan-annual-monthly { display: flex; align-items: baseline; gap: 4px; }
.plan-annual .amount { font-family: 'Sora',sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan-annual .per, .plan-annual-note { font-size: .875rem; color: var(--fg-muted); line-height: 1.5; }
.plan.featured .plan-annual .amount { color: #fff; }
.plan.featured .plan-annual .per, .plan.featured .plan-annual-note { color: rgba(255,255,255,.7); }
