/* ==========================================================================
   Wafi CRM - Landing page (enterprise)
   Palette « Casbah » : blanc chaux + bleu Casbah. One accent (#1552A3), one radius system:
   cards 22px, media 14px, inputs 12px, buttons full pill.
   ========================================================================== */

:root {
  --green-50: #EEF3FB;
  --green-100: #DCE7F7;
  --green-200: #B9CDEB;
  --green-500: #2A6BC2;
  --green-600: #1552A3;
  --green-700: #10438A;
  --green-800: #0E3D7C;
  --green-900: #0C2D5E;
  --green-950: #0C1A33;

  --ink: #0C1A33;
  --ink-2: #33405A;
  --muted: #5A6680;
  --line: #E1E7F0;
  --line-2: #EEF2F7;
  --bg: #ffffff;
  --bg-soft: #F6F7F9;

  --r-card: 22px;
  --r-media: 14px;
  --r-input: 12px;

  --shadow-sm: 0 1px 2px rgba(12, 26, 51, .06), 0 2px 8px rgba(12, 26, 51, .05);
  --shadow-md: 0 12px 32px -12px rgba(12, 26, 51, .22), 0 4px 10px -4px rgba(12, 26, 51, .08);
  --shadow-lg: 0 40px 80px -30px rgba(12, 26, 51, .38), 0 18px 36px -18px rgba(12, 26, 51, .18);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  font-synthesis-weight: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Readex Pro', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--green-700);
  background: var(--green-50); border: 1px solid var(--green-100);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.section-title { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; max-width: 22ch; }
.section-lead { color: var(--muted); font-size: 1.075rem; max-width: 60ch; margin-top: 18px; }
.section-lead a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.section-head { margin-bottom: 56px; }
.section-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head-center .section-title { max-width: 26ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s var(--ease), color .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: scale(.98); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(21, 82, 163, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { background: var(--green-700); box-shadow: 0 16px 32px -12px rgba(21, 82, 163, .75), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary .ph { transition: transform .35s var(--ease); }
.btn-primary:hover .ph { transform: translateX(3px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green-200); background: var(--green-50); color: var(--green-800); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; flex: none; background: url("../assets/brand/wafi-icon.svg") center / contain no-repeat; color: transparent; font-size: 0; overflow: hidden; }
.footer-brand .brand-mark { background-image: url("../assets/brand/wafi-icon-white.svg"); }
.brand-name span { color: var(--green-600); }
.header-nav { display: flex; gap: 4px; }
.header-nav a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background-color .2s; }
.header-nav a:hover { color: var(--green-800); background: var(--green-50); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.link-login { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.link-login:hover { color: var(--green-700); }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 22px; place-items: center; }
.mobile-drawer {
  position: fixed; top: var(--header-h); left: 12px; right: 12px; z-index: 49;
  display: flex; flex-direction: column; gap: 4px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.mobile-drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-drawer > a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.mobile-drawer > a:not(.btn):hover { background: var(--green-50); }
.mobile-drawer .btn { margin-top: 6px; }
@media (max-width: 1024px) {
  .header-nav, .link-login, .header-actions > .btn { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 56px) 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 110%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 45% at 78% 38%, rgba(214, 154, 60, .14), transparent 70%),
    radial-gradient(30% 35% at 12% 12%, rgba(21, 82, 163, .08), transparent 70%),
    linear-gradient(180deg, var(--green-50) 0%, #fff 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; align-items: center; min-height: min(640px, calc(100dvh - var(--header-h) - 80px)); }
.hero-title { font-size: clamp(2.4rem, 3.9vw, 3.6rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; }
.hero-title em { font-style: italic; font-weight: 700; color: var(--green-600); padding-right: .06em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* 3D product stage: real screenshots, tilted with the pointer (JS sets --rx / --ry) */
.hero-stage { perspective: 2000px; perspective-origin: 30% 40%; height: 540px; position: relative; }
.hero-scene {
  --rx: 0deg; --ry: 0deg;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-16deg + var(--ry))) rotateZ(1.5deg);
  transition: transform .9s var(--ease);
}
.shot {
  position: absolute; border-radius: var(--r-media); overflow: hidden; background: #fff;
  border: 1px solid rgba(12, 26, 22, .08); box-shadow: var(--shadow-lg);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot-main { width: 96%; aspect-ratio: 16 / 10; left: 4%; top: 12%; transform: translateZ(0); }
.shot-back { width: 70%; aspect-ratio: 16 / 10; right: -8%; top: -4%; transform: translateZ(-160px); opacity: .9; filter: saturate(.9); }
.shot-front {
  width: 36%; aspect-ratio: 4 / 5; left: -4%; bottom: -2%; transform: translateZ(140px);
  box-shadow: 0 50px 90px -30px rgba(12, 26, 51, .5), 0 18px 36px -18px rgba(12, 26, 51, .3);
}
.shot-front img { object-position: top center; }
/* Entrance: the scene settles into place */
@media (prefers-reduced-motion: no-preference) {
  .hero-scene { animation: scene-in 1.6s var(--ease) both .15s; }
  .shot-front { animation: float 7s ease-in-out infinite 1.8s; }
  @keyframes scene-in { from { opacity: 0; transform: rotateX(24deg) rotateY(-34deg) translateY(60px) scale(.94); } }
  @keyframes float { 50% { transform: translateZ(140px) translateY(-10px); } }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .hero-stage { height: 440px; max-width: 760px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 40px; }
  .hero-stage { height: 300px; perspective: 1200px; }
  .shot-back { display: none; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Marquee (single one on the page) ---------- */
.marquee { border-block: 1px solid var(--line-2); background: #fff; overflow: hidden; padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; gap: 48px; padding-right: 48px; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 550; color: var(--ink-2); font-size: 15px; }
.marquee-list .ph { font-size: 20px; color: var(--green-600); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* ---------- Statement (parallax photo) ---------- */
.statement { position: relative; isolation: isolate; color: #fff; overflow: hidden; margin: 96px 0 0; }
.statement-media { position: absolute; inset: -12% 0; z-index: -2; }
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
.statement::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(8, 18, 38, .94) 0%, rgba(14, 61, 124, .82) 48%, rgba(21, 82, 163, .35) 100%); }
.statement-inner { padding: 128px 24px; }
.statement-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; max-width: 24ch; }
.statement-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; max-width: 980px; }
.statement-facts div { border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 18px; }
.statement-facts dt { font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; }
.statement-facts dd { color: rgba(255, 255, 255, .78); font-size: 15px; margin-top: 4px; max-width: 26ch; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .statement-media { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
  }
}
@media (max-width: 768px) {
  .statement-inner { padding: 88px 16px; }
  .statement-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
}

/* ---------- Features bento ---------- */
.features { padding: 128px 0 112px; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); gap: 18px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line);
  background: var(--bg-soft); display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease), transform .5s var(--ease), border-color .3s;
}
.tile:hover { box-shadow: var(--shadow-md); border-color: var(--green-100); }
.tile-copy { padding: 30px 30px 0; position: relative; z-index: 1; }
.tile-copy h3 { font-size: 1.3rem; letter-spacing: -0.02em; font-weight: 650; line-height: 1.25; }
.tile-copy p { color: var(--muted); margin-top: 10px; max-width: 46ch; font-size: 15.5px; }
.tile-icon { font-size: 26px; color: var(--green-600); margin-bottom: 16px; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; border: 1px solid var(--green-100); }
.tile-media { margin: 26px 0 0 30px; flex: 1; min-height: 190px; border-radius: var(--r-media) 0 0 0; overflow: hidden; border: 1px solid var(--line); border-right: 0; border-bottom: 0; box-shadow: var(--shadow-md); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.035); }

.tile-invoice { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, var(--green-50) 0%, #fff 60%); flex-direction: row; }
.tile-invoice .tile-copy { flex: 0 0 44%; padding-bottom: 30px; align-self: center; }
.tile-invoice .tile-copy h3 { font-size: 1.8rem; }
.tile-media-doc { margin: 34px 0 0 0; border-radius: var(--r-media) 0 0 0; }
.tile-media-doc img { object-position: top center; }
.tile-pipeline { grid-column: span 2; grid-row: span 2; }
.tile-stock { grid-column: span 3; grid-row: span 2; }
.tile-team { grid-column: span 3; color: #fff; border: 0; justify-content: flex-end; min-height: 300px; }
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile-team::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 18, 38, .9) 10%, rgba(8, 18, 38, .15) 75%); }
.tile-team:hover .tile-bg { transform: scale(1.04); }
.tile-copy-over { padding-bottom: 30px; }
.tile-copy-over p { color: rgba(255, 255, 255, .82); }
.tile-copy-over .tile-icon { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.tile-reminders { grid-column: span 3; background: #fff; flex-direction: row; align-items: center; }
.tile-reminders .tile-copy { padding-bottom: 30px; flex: 1; }
.tile-security { grid-column: span 6; background: radial-gradient(70% 140% at 100% 0%, var(--green-700), var(--green-950)); color: #fff; border: 0; flex-direction: row; align-items: center; gap: 32px; padding-right: 30px; }
.tile-security .tile-copy { padding-bottom: 30px; flex: 0 0 38%; }
.security-points { list-style: none; flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 30px 0; }
.security-points li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: 14px; color: rgba(255, 255, 255, .75); }
.security-points strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.security-points .ph { font-size: 22px; color: var(--green-200); flex: none; }
.tile-security p { color: rgba(255, 255, 255, .78); }
.tile-security .tile-icon { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: var(--green-200); }

/* Reminder "radar": motion communicates a live alert */
.orbit { position: relative; width: 150px; height: 150px; flex: 0 0 150px; margin-right: 30px; display: grid; place-items: center; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--green-200); }
.orbit-ring.r2 { inset: 26px; border-color: var(--green-100); }
.orbit-dot { width: 58px; height: 58px; border-radius: 50%; background: var(--green-600); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 12px 26px -10px rgba(21, 82, 163, .8); }
@media (prefers-reduced-motion: no-preference) {
  .orbit-ring { animation: pulse-ring 3.2s var(--ease) infinite; }
  .orbit-ring.r2 { animation-delay: 1.1s; }
  .orbit-dot .ph-fill { animation: ring 3.2s ease-in-out infinite; transform-origin: 50% 10%; }
  @keyframes pulse-ring { 0% { transform: scale(.55); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
  @keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(14deg); } 72% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } 84% { transform: rotate(-4deg); } }
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-invoice { grid-column: span 2; grid-row: auto; }
  .tile-pipeline, .tile-stock { grid-column: span 1; grid-row: auto; }
  .tile-team, .tile-reminders, .tile-security { grid-column: span 2; }
  .tile-security { flex-direction: column; align-items: stretch; padding: 0 30px 30px 0; gap: 0; }
  .security-points { padding: 0 0 0 30px; }
}
@media (max-width: 768px) { .security-points { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .features { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-invoice, .tile-pipeline, .tile-stock, .tile-team, .tile-reminders, .tile-security { grid-column: auto; }
  .tile-invoice { flex-direction: column; }
  .tile-invoice .tile-copy h3 { font-size: 1.45rem; }
  .tile-media-doc { margin: 24px 0 0 30px; height: 260px; flex: none; }
  .tile-reminders { flex-direction: column; align-items: flex-start; }
  .orbit { margin: 0 0 28px 30px; }
}

/* ---------- Story (sticky visual, steps scroll) ---------- */
.story { padding: 112px 0; background: var(--bg-soft); border-block: 1px solid var(--line-2); }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.story-head { margin-bottom: 40px; }
.story-step { padding: 34px 0 34px 28px; border-left: 2px solid var(--line); min-height: 42vh; display: flex; flex-direction: column; justify-content: center; transition: border-color .4s, opacity .4s; opacity: .45; }
.story-step.is-active { border-left-color: var(--green-600); opacity: 1; }
.story-index { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13px; color: var(--green-700); font-weight: 500; }
.story-step h3 { font-size: 1.55rem; letter-spacing: -0.025em; margin-top: 8px; font-weight: 650; }
.story-step p { color: var(--muted); margin-top: 10px; max-width: 44ch; }
.story-visual { position: sticky; top: calc(var(--header-h) + 40px); }
.story-frame { position: relative; aspect-ratio: 16 / 10.5; border-radius: var(--r-card); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.story-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.03) translateY(12px); transition: opacity .7s var(--ease), transform 1s var(--ease); }
.story-shot-doc { object-position: top center; }
.story-shot.is-active { opacity: 1; transform: none; }
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-visual { position: relative; top: 0; order: -1; }
  .story-step { min-height: 0; opacity: 1; padding: 24px 0 24px 22px; }
}

/* ---------- Pricing ---------- */
.pricing { padding: 128px 0 112px; }
.billing-toggle { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); background: #fff; }
.billing-toggle .active { color: var(--ink); }
.billing-toggle small { color: var(--green-700); font-weight: 700; margin-left: 4px; }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .3s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.switch.active { background: var(--green-600); }
.switch.active span { transform: translateX(20px); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px 30px; background: #fff; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-featured { background: linear-gradient(170deg, var(--green-800), var(--green-950)); color: #fff; border: 0; box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: 22px; right: 22px; font-size: 12.5px; font-weight: 700; color: var(--green-950); background: var(--green-200); padding: 5px 12px; border-radius: 999px; }
.plan-name { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }
.plan-desc { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 44px; }
.plan-featured .plan-desc { color: rgba(255, 255, 255, .72); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 26px 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan-featured .plan-price { border-color: rgba(255, 255, 255, .16); }
.pricing-amount { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-currency { font-weight: 700; font-size: 1.1rem; }
.pricing-period { width: 100%; color: var(--muted); font-size: 13.5px; }
.plan-featured .pricing-period { color: rgba(255, 255, 255, .7); }
.plan-list { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.plan-list .ph { font-size: 18px; color: var(--green-600); margin-top: 2px; flex: none; }
.plan-featured .plan-list .ph { color: var(--green-200); }
.plan-list li.off { color: #9aa7a3; }
.plan-list li.off .ph { color: #c3ccc9; }
.plan-featured .plan-list li.off { color: rgba(255, 255, 255, .42); }
.plan-featured .plan-list li.off .ph { color: rgba(255, 255, 255, .3); }
.plan-featured .btn-primary { background: #fff; color: var(--green-800); box-shadow: none; }
.plan-featured .btn-primary:hover { background: var(--green-50); }

/* ---------- Testimonials ---------- */
.voices { padding: 32px 0 128px; }
.voices-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: stretch; }
.voice-feature { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; color: #fff; isolation: isolate; }
.voice-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.voice-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 18, 38, .95) 15%, rgba(8, 18, 38, .25) 80%); }
.voice-feature blockquote p { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -0.02em; font-weight: 550; max-width: 30ch; }
.voice-stack { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.voice-stack .section-title { margin-bottom: 12px; }
.voice { border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; background: #fff; }
.voice blockquote p { font-size: 1.08rem; color: var(--ink-2); line-height: 1.55; }
figcaption { display: flex; flex-direction: column; margin-top: 18px; font-size: 14px; }
figcaption span { color: var(--muted); }
.voice-feature figcaption span { color: rgba(255, 255, 255, .75); }
@media (max-width: 1024px) {
  .voices-grid { grid-template-columns: 1fr; }
  .voice-feature { min-height: 420px; padding: 28px; }
}

/* ---------- FAQ ---------- */
.faq { padding: 112px 0; background: var(--bg-soft); border-top: 1px solid var(--line-2); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-photo { margin-top: 36px; border-radius: var(--r-card); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: border-color .3s, box-shadow .3s; }
.faq-item.active { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; text-align: left; font-weight: 600; font-size: 1.04rem; }
.faq-question .ph { font-size: 20px; color: var(--green-600); flex: none; transition: transform .4s var(--ease); }
.faq-item.active .faq-question .ph { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-answer-inner { padding: 0 24px 22px; color: var(--muted); }
@media (max-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-aside { position: static; }
  .faq-photo { display: none; }
}

/* ---------- Signup ---------- */
.signup { padding: 112px 0 128px; }
.signup-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: stretch; }
.signup-visual { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 560px; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.signup-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.signup-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, rgba(8, 18, 38, .95) 20%, rgba(14, 61, 124, .55) 70%, rgba(21, 82, 163, .2)); }
.signup-visual-copy { padding: 40px; }
.signup-visual-copy h2 { font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.035em; line-height: 1.08; font-weight: 650; }
.signup-visual-copy ul { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.signup-visual-copy li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .88); }
.signup-visual-copy .ph { font-size: 20px; color: var(--green-200); }
.signup-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 40px; background: #fff; box-shadow: var(--shadow-md); }
.signup-title { font-size: 1.6rem; letter-spacing: -0.03em; font-weight: 650; }
.signup-desc { color: var(--muted); margin: 6px 0 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfd9d5; border-radius: var(--r-input); background: #fff; color: var(--ink);
  font: inherit; font-size: 15px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #7a8a85; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(21, 82, 163, .14); }
.field small { font-size: 12.5px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alert { display: none; padding: 14px 16px; border-radius: var(--r-input); font-size: 14.5px; margin-bottom: 18px; font-weight: 500; }
.form-alert.success { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-200); }
.form-alert.error { background: #fdf0ee; color: #a3261b; border: 1px solid #f4c6bf; }
.signup-legal { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.signup-legal a { color: var(--green-700); text-decoration: underline; }
@media (max-width: 1024px) {
  .signup-grid { grid-template-columns: 1fr; }
  .signup-visual { min-height: 360px; }
}
@media (max-width: 640px) {
  .signup { padding: 72px 0 88px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .signup-card { padding: 26px 20px; }
  .signup-visual-copy { padding: 28px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .72); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name span { color: var(--green-200); }
.footer-brand p { margin-top: 16px; max-width: 34ch; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 22px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Scroll reveal (IntersectionObserver adds .visible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
  .js .reveal.visible { opacity: 1; transform: none; }
}

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

/* ==================== Offre de lancement Wafi 3.4 ==================== */
.offer-pill { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px; border: 1px solid var(--green-200); border-radius: 999px; background: var(--green-50); color: var(--green-900); font-size: 13.5px; line-height: 1.3; text-decoration: none; transition: border-color .2s, background-color .2s; }
.offer-pill:hover { border-color: var(--green-500); background: #fff; }
.offer-pill strong { font-weight: 700; }
.offer-pill span:last-child { color: var(--ink-2); }
.offer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px rgba(21, 82, 163, .15); flex: none; }
.countdown { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 460px; }
.countdown-label { width: 100%; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.countdown-unit { display: inline-flex; align-items: baseline; gap: 5px; }
.countdown-unit b { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown-unit small { font-size: 13px; color: var(--muted); }
.countdown.is-over { display: none; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 14px auto 0; }
.plan-price-offer .plan-amount-free { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price-offer s { opacity: .75; }
.plan-locked { opacity: .55; filter: grayscale(.6); pointer-events: none; user-select: none; }
.plan-locked:hover { transform: none; box-shadow: none; }
.plan-flag-muted { background: var(--line-2); color: var(--muted); }
.btn[disabled] { cursor: not-allowed; opacity: .7; }
@media (prefers-reduced-motion: reduce) { .offer-pill { transition: none; } }

.signup-cgu { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 16px; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.signup-cgu input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--green-700); }
.signup-cgu a { color: var(--green-700); text-decoration: underline; }

/* ---------- Compte de démonstration ---------- */
.btn-demo { gap: 10px; }
.btn-demo .ph { font-size: 20px; color: var(--green-600); }
.hero-demo-note { margin-top: 12px; max-width: 52ch; font-size: 13.5px; color: var(--muted); }
.link-demo { color: var(--green-700); }
.signup-demo {
  display: flex; align-items: center; gap: 10px; margin: -10px 0 22px; padding: 12px 14px;
  border: 1px dashed var(--green-200); border-radius: var(--r-input); background: var(--green-50);
  color: var(--green-800); font-size: 14px; font-weight: 600; text-decoration: none;
}
.signup-demo:hover { border-style: solid; }
.signup-demo .ph { font-size: 20px; flex: none; }

/* ==================== NOUVEAUTÉS 4.1 ==================== */
.nouveautes { padding: 96px 0 40px; }
.nv-badge { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--green-50); color: var(--green-700);
  font-size: .8rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.nv-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.nv-carte { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s; }
.nv-carte:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--green-200); }
.nv-carte .ph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-600); font-size: 22px; }
.nv-carte h3 { margin: 16px 0 6px; font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.nv-carte p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .nv-carte { transition: none; } .nv-carte:hover { transform: none; } }
