/*
  CASCERO V2 — Design system
  Light-first (~70%) · Dark accents (~20%) · Brand gradient accents
*/

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

:root {
  --green: #1ED3A6;
  --violet: #8B4DFF;
  --magenta: #D94DFF;
  --blue: #2BA9E1;
  --turquoise: #1ED3A6;
  --white: #FFFFFF;
  --off-white: #F7F8FC;
  --soft-gray: #EEF1F7;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FC;
  --bg-soft: #EEF1F7;
  --anthracite: #15151C;
  --text: #15151C;
  --text-muted: #5C5C6E;
  --text-faint: #8A8A9A;
  --dark: #0F1016;
  --dark-elevated: #171821;
  --charcoal: #1A1B24;
  --border: rgba(21, 21, 28, 0.08);
  --border-strong: rgba(21, 21, 28, 0.14);
  --border-light: rgba(255, 255, 255, 0.1);
  --grad-brand: linear-gradient(135deg, #1ED3A6 0%, #5C44FF 55%, #D94DFF 100%);
  --grad-text: linear-gradient(135deg, #1ED3A6 0%, #8B4DFF 55%, #D94DFF 100%);
  --grad-line: linear-gradient(90deg, #1ED3A6, #8B4DFF, #D94DFF);
  --grad-soft: linear-gradient(135deg, rgba(30, 211, 166, 0.12), rgba(92, 68, 255, 0.08), rgba(217, 77, 255, 0.1));
  --green-dim: rgba(30, 211, 166, 0.12);
  --violet-dim: rgba(139, 77, 255, 0.1);
  --blue-dim: rgba(43, 169, 225, 0.12);
  --magenta-dim: rgba(217, 77, 255, 0.1);
  --font-display: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --container: 1140px;
  --section-y: clamp(72px, 9vw, 120px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 50px rgba(21, 21, 28, 0.06);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

/* Menu ouvert : ne pas utiliser overflow:hidden seul (iOS remonte en haut) */
body.nav-open {
  overflow: hidden;
  touch-action: none;
}

section[id],
.page-hero,
.audit-hero,
.hero,
.clarify,
.cta-band,
.audit-band {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 28px); }

.section { padding: var(--section-y) 0; position: relative; background: var(--bg); }

.section-alt { background: var(--bg-alt); }

.section-dark { background: var(--dark); color: #F2F3F7; }

.section-dark .eyebrow { color: var(--green); }
.section-dark h2 { color: #FFFFFF; }
.section-dark p,
.section-dark .lead { color: rgba(242, 243, 247, 0.72); }

.section-header { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p { font-size: clamp(15px, 1.6vw, 17px); color: var(--text-muted); max-width: 540px; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.cta-band h2,
.audit-band h2,
.footer h4 { color: #FFFFFF; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-line);
}

.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.s-digital { color: var(--green); }
.s-marketing { color: var(--violet); }
.s-ia { color: var(--magenta); }
.s-dot { color: var(--text-faint); font-weight: 500; opacity: 0.7; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead { font-size: clamp(16px, 1.8vw, 18px); color: var(--text-muted); line-height: 1.7; max-width: 560px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), opacity 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad-brand); color: #0A0A0F; box-shadow: 0 10px 28px rgba(92, 68, 255, 0.22); }

.btn-primary:hover { box-shadow: 0 14px 34px rgba(92, 68, 255, 0.28); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }

.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }

.section-dark .btn-secondary,
.cta-band .btn-secondary,
.audit-band .btn-secondary { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.22); }

.section-dark .btn-secondary:hover,
.cta-band .btn-secondary:hover,
.audit-band .btn-secondary:hover { border-color: var(--green); color: var(--green); }

.btn-lg { padding: 16px 28px; font-size: 15px; }

.btn-sm { padding: 10px 16px; font-size: 12px; }

.btn-full { width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

.reveal.visible { opacity: 1; transform: translateY(0); }

.hero .reveal,
.page-hero .reveal,
.audit-hero .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  /* Hauteur fixe : éviter les sauts de layout au scroll (surtout mobile) */
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(21, 21, 28, 0.04);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
  gap: 10px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  max-width: 56px;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}

.nav-logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1;
}

.nav-menu { display: flex; align-items: center; gap: 2px; }

.nav-menu a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active { color: var(--anthracite); background: rgba(21, 21, 28, 0.04); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-audit-btn { display: inline-flex; }
.nav-devis-btn { display: inline-flex; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  width: 40px;
  height: 40px;
  z-index: 210;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-cta { display: none; }

.nav-backdrop,
#navBackdrop {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(15, 16, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

body.nav-open .nav-backdrop,
body.nav-open #navBackdrop,
#navbar:has(.nav-menu.open) + .nav-backdrop,
#navbar:has(.nav-menu.open) + #navBackdrop { display: block !important; opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }

.nav-menu {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-height: calc(100dvh - var(--nav-h));
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 20px clamp(20px, 5vw, 28px) calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.98);
  border-bottom: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 190;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.3s;
}

.nav-menu.open { transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }

.nav-menu > li { width: 100%; }

.nav-menu a {
  display: block;
  font-size: 17px;
  padding: 14px 4px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

  .nav-menu a:hover,
.nav-menu a.active { background: transparent; color: var(--violet); }

.nav-mobile-cta { display: list-item; margin-top: 8px; border-bottom: none !important; }

.nav-mobile-cta + .nav-mobile-cta { margin-top: 0; }

  .nav-mobile-cta a,
.nav-mobile-cta .btn {
  display: flex !important;
  width: 100%;
  margin-top: 10px;
  padding: 14px 18px !important;
  font-size: 14px !important;
  border-radius: var(--radius-pill) !important;
  border-bottom: none !important;
  text-align: center;
  justify-content: center;
}

  .nav-mobile-cta:first-of-type { margin-top: 18px; }
}

@media (min-width: 961px) {
  .nav-mobile-cta { display: none !important; }
}

/* ── Hero (home, light) ── */
.hero {
  position: relative;
  min-height: min(100dvh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(30, 211, 166, 0.14), transparent 60%),
    radial-gradient(ellipse 55% 50% at 88% 18%, rgba(139, 77, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 85%, rgba(217, 77, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.7;
  will-change: transform;
}

.hero-glow-1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -8%;
  left: -6%;
  background: rgba(30, 211, 166, 0.22);
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: min(460px, 60vw);
  height: min(460px, 60vw);
  top: 10%;
  right: -8%;
  background: rgba(139, 77, 255, 0.18);
  animation: glowDrift 18s ease-in-out infinite alternate-reverse;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 21, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 21, 28, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent 75%);
  pointer-events: none;
  opacity: 0.5;
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, 18px, 0) scale(1.06); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy { max-width: 640px; min-width: 0; }

.hero-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--violet-dim);
  color: var(--violet);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 22px;
  line-height: 1.7;
}

.hero-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.hero-scopes li {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--anthracite);
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 20px;
}

.hero-price-label {
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.hero-price strong {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-price-hint { font-size: 13px; color: var(--text-muted); }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
}

.hero-checks li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-visual { min-width: 0; position: relative; }

.report-stage {
  position: relative;
  min-height: 420px;
}

.report-card {
  background: var(--dark);
  color: #F2F3F7;
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 70px rgba(15, 16, 22, 0.22);
}

.report-card--cover {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.report-card--list {
  position: absolute;
  right: -8px;
  bottom: -28px;
  z-index: 2;
  width: min(240px, 72%);
  padding: 16px 16px 14px;
  background: #171821;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(3deg);
}

.report-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.report-card h2,
.report-card h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 4px;
}

.report-card > p {
  font-size: 13px;
  color: rgba(242, 243, 247, 0.6);
  margin-bottom: 18px;
}

.report-score {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.report-card .score-ring { width: 96px; height: 96px; margin: 0; }

.report-card .score-ring-center strong { font-size: 24px; }

.report-score-copy span { display: block; font-size: 12px; color: rgba(242, 243, 247, 0.5); }

.report-score-copy strong { color: #fff; font-size: 14px; }

.report-card--list ul { display: grid; gap: 10px; margin: 12px 0 10px; }

.report-card--list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(242, 243, 247, 0.85);
}

.prio {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
}

.prio-high { background: rgba(217, 77, 255, 0.18); color: #E9B0FF; }
.prio-mid { background: rgba(43, 169, 225, 0.18); color: #9DD8F5; }
.prio-ia { background: rgba(30, 211, 166, 0.18); color: #7EEFD0; }
.prio-ok { background: rgba(255, 255, 255, 0.08); color: rgba(242, 243, 247, 0.7); }

.report-disclaimer { font-size: 11px !important; color: rgba(242, 243, 247, 0.45) !important; margin: 0 !important; }

.hero-word { display: inline-block; animation: wordIn 0.7s var(--ease) both; animation-delay: calc(var(--d, 0) * 0.12s); }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(21, 21, 28, 0.18);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--violet);
  animation: scrollPulse 1.6s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* ── Clarify ── */
.clarify { padding: 0 0 clamp(40px, 6vw, 64px); background: var(--bg); }

.clarify-box { max-width: 820px; padding: clamp(28px, 4vw, 40px) 0 0; border-top: 1px solid var(--border); }

.clarify-box p {
  font-size: clamp(18px, 2.4vw, 24px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--anthracite);
}

.clarify-box strong { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Home experts ── */
.home-experts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }

.home-expert {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0 0;
  border-top: 2px solid transparent;
  border-image: var(--grad-line) 1;
  transition: transform 0.3s var(--ease);
}

.home-expert:hover { transform: translateY(-4px); }

.home-expert-index {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.home-expert h3 { font-size: clamp(24px, 3vw, 30px); }

.home-expert p { font-size: 15px; color: var(--text-muted); line-height: 1.65; flex: 1; }

.link-arrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  margin-top: 8px;
  transition: transform 0.25s var(--ease);
}

.home-expert:hover .link-arrow { transform: translateX(4px); }

/* ── Home benefits ── */
.home-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 32px); }

.home-benefit { padding-top: 20px; border-top: 1px solid var(--border); }

.home-benefit h3 { font-size: 18px; margin-bottom: 10px; }

.home-benefit p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Interactive diagnostic ── */
.diag {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.diag-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--soft-gray);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.diag-tab {
  flex: 1 1 auto;
  min-width: max-content;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.diag-tab:hover { color: var(--anthracite); }

.diag-tab.is-active { color: var(--anthracite); border-bottom-color: var(--violet); background: var(--white); }

.diag-panels { background: var(--white); }

.diag-panel { display: none; padding: clamp(28px, 4vw, 40px); animation: panelFade 0.35s var(--ease); }

.diag-panel.is-active { display: block; }

.diag-panel[hidden] { display: none !important; }

@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag-panel h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 24px; max-width: 520px; }

.diag-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }

.diag-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.diag-item strong { font-family: var(--font-display); font-size: 15px; font-weight: 700; }

.diag-item span { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

.diag-cta { padding: 0 clamp(28px, 4vw, 40px) clamp(28px, 4vw, 40px); }

/* ── Demo analytics ── */
.demo-dashboard {
  position: relative;
  padding: clamp(28px, 4vw, 40px);
  background: var(--dark);
  color: #F2F3F7;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.demo-dashboard::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(30, 211, 166, 0.18), transparent 65%);
  pointer-events: none;
}

.demo-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.demo-kpi { display: flex; flex-direction: column; gap: 6px; }

.demo-kpi-label {
  font-size: 12px;
  color: rgba(242, 243, 247, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.demo-kpi-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.demo-chart { position: relative; z-index: 1; padding-top: 8px; }

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 160px;
  margin-bottom: 14px;
}

.chart-bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(139, 77, 255, 0.55), rgba(30, 211, 166, 0.35));
  transform-origin: bottom;
  animation: barGrow 0.9s var(--ease) both;
}

.chart-bar.is-accent { background: var(--grad-brand); }

@keyframes barGrow {
  from { transform: scaleY(0.2); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

.demo-chart-caption { font-size: 12px; color: rgba(242, 243, 247, 0.45); }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }

.stat { padding-top: 8px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.stat-label {
  font-size: 15px;
  color: var(--anthracite);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.5;
}

.stat-source { font-size: 12px; color: var(--text-faint); line-height: 1.5; }

/* ── Method ── */
.method-compact { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 28px); }

.method-step { padding-top: 8px; }

.method-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}

.method-step h3 { font-size: 18px; margin-bottom: 8px; }

.section-dark .method-step h3 { color: #FFFFFF; }

.method-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.section-dark .method-step p { color: rgba(242, 243, 247, 0.65); }

/* ── IA split ── */
.ia-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 72px); align-items: center; }

.ia-split h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }

.ia-split .lead { margin-bottom: 24px; }

.ia-points { display: flex; flex-direction: column; gap: 14px; }

.ia-points li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--anthracite);
}

.ia-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ── Audit / CTA bands (dark impact) ── */
.audit-band,
.cta-band {
  position: relative;
  padding: clamp(64px, 9vw, 100px) 0;
  background: var(--dark);
  color: #F2F3F7;
  overflow: hidden;
}

.audit-band::before,
.cta-band::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 120%;
  top: -20%;
  right: -15%;
  background: radial-gradient(ellipse, rgba(139, 77, 255, 0.22), rgba(30, 211, 166, 0.1), transparent 70%);
  pointer-events: none;
}

.audit-band-inner,
.cta-band-inner { position: relative; z-index: 1; }

.audit-band-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 40px; align-items: center; }

.audit-band h2,
.cta-band h2 { font-size: clamp(28px, 4.2vw, 44px); margin-bottom: 12px; }

.audit-band p,
.cta-band p { color: rgba(242, 243, 247, 0.68); font-size: 16px; max-width: 520px; margin-bottom: 0; }

.cta-band-inner { text-align: center; max-width: 720px; margin: 0 auto; }

.cta-band-inner p { margin: 0 auto 28px; }

.cta-band-inner .btn-group { justify-content: center; }

.audit-band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.audit-price-tag {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ── Trust ── */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 40px); }

.trust-item { padding-top: 20px; border-top: 1px solid var(--border); }

.trust-item h3 { font-size: 18px; margin-bottom: 8px; }

.trust-item p { font-size: 14px; color: var(--text-muted); }

/* ── Page hero ── */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 clamp(48px, 7vw, 72px);
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(30, 211, 166, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 100% 10%, rgba(139, 77, 255, 0.1), transparent 50%),
    var(--bg);
}

.page-hero h1 { font-size: clamp(34px, 5.5vw, 56px); max-width: 780px; margin-bottom: 16px; }

.page-hero-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* ── Services switcher ── */
.services-switcher { display: grid; gap: 28px; }

.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  background: var(--soft-gray);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

.services-tab {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.services-tab.is-active { background: var(--white); color: var(--anthracite); box-shadow: 0 4px 16px rgba(21, 21, 28, 0.08); }

.services-panels { min-height: 200px; }

.services-panel { display: none; animation: panelFade 0.35s var(--ease); }

.services-panel.is-active { display: block; }
.services-panel[hidden] { display: none !important; }

.pillar-block h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 10px; }

.pillar-block .lead { margin-bottom: 28px; }

.service-list { display: flex; flex-direction: column; gap: 0; }

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 4px;
  border-top: 1px solid var(--border);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.service-row:last-child { border-bottom: 1px solid var(--border); }

.service-row:hover { transform: translateX(4px); }

.service-row svg { width: 28px; height: 28px; color: var(--violet); flex-shrink: 0; }

.service-row h3 { font-size: 17px; margin-bottom: 4px; }

.service-row p { font-size: 14px; color: var(--text-muted); }

.service-row .arrow { font-size: 20px; color: var(--text-faint); transition: transform 0.25s var(--ease), color 0.2s; }

.service-row:hover .arrow { color: var(--violet); transform: translateX(4px); }

/* ── Capability panels ── */
.capability-panels { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 28px); }

.capability-panel {
  position: relative;
  padding: clamp(28px, 4vw, 36px);
  background: var(--white);
  border-top: 3px solid var(--green);
  transition: transform 0.3s var(--ease);
}

.capability-panel:hover { transform: translateY(-3px); }

.capability-panel--sites { border-top-color: var(--green); }
.capability-panel--identite { border-top-color: var(--violet); }
.capability-panel--seo { border-top-color: var(--blue); }
.capability-panel--ia { border-top-color: var(--magenta); }

.capability-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.capability-panel h3 { font-size: 22px; margin-bottom: 10px; }

.capability-panel p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }

.capability-link { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--violet); }

/* ── Expertise pages ── */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 28px); }

.expertise-card,
.pillar-card { padding: 24px 0 8px; border-top: 1px solid var(--border); }

.expertise-card h3,
.pillar-card h3 { font-size: 18px; margin-bottom: 8px; }

.expertise-card p,
.pillar-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Works (optional) ── */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.work-card { padding-top: 16px; border-top: 1px solid var(--border); }

.work-card h3 { font-size: 17px; margin-bottom: 8px; }
.work-card p { font-size: 14px; color: var(--text-muted); }

/* ── Audit product page ── */
.audit-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 64px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 0%, rgba(30, 211, 166, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 40%, rgba(139, 77, 255, 0.1), transparent 55%),
    var(--bg);
}

.audit-hero-glow {
  position: absolute;
  inset: 8% 15% auto;
  height: 280px;
  background: radial-gradient(ellipse, rgba(30, 211, 166, 0.18), rgba(139, 77, 255, 0.12), transparent 70%);
  filter: blur(48px);
  pointer-events: none;
}

.audit-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.audit-hero h1 { font-size: clamp(34px, 5.5vw, 52px); margin-bottom: 14px; }

.audit-hero .page-hero-sub { margin-left: auto; margin-right: auto; margin-bottom: 8px; }

.audit-price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 28px 0 24px;
  padding: 28px 44px;
  background: var(--off-white);
  border: 1px solid rgba(30, 211, 166, 0.28);
  border-radius: var(--radius-lg);
}

.audit-price-box .amount {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.audit-price-box .hint { font-size: 13px; color: var(--text-faint); }

/* Journey / Product schema-friendly spacing */
.journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 0; }

.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 18px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  min-height: 160px;
}

.journey-step.is-active { border-color: rgba(30, 211, 166, 0.35); background: linear-gradient(180deg, rgba(30, 211, 166, 0.08), var(--off-white)); }

.journey-step--soon { opacity: 0.78; }

.journey-num {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  background: var(--grad-brand);
  color: #0A0A0F;
  margin-bottom: 4px;
}

.journey-step strong { font-family: var(--font-display); font-size: 16px; }

.journey-step > span:not(.journey-num):not(.journey-badge) { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.journey-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(139, 77, 255, 0.12);
  color: var(--violet);
}

.audit-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.audit-feature { padding: 8px 0 0; border-top: 1px solid var(--border); text-align: left; }

.audit-feature h3 { font-size: 17px; margin: 16px 0 8px; }

.audit-feature p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.audit-receive { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }

.audit-receive-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.audit-receive-item strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 4px; }

.audit-receive-item span { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Audit demo report */
.audit-demo {
  background: var(--dark);
  color: #F2F3F7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
}

.audit-demo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.audit-demo-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.audit-demo-note { font-size: 12px; color: rgba(242, 243, 247, 0.5); }

.audit-demo-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  margin-bottom: 28px;
}

.gauge { text-align: center; }

.score-ring { position: relative; width: 148px; height: 148px; margin: 0 auto 12px; }

.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-ring-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 10; }

.score-ring-value {
  fill: none;
  stroke: url(#scoreGrad);
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--score, 67) 100;
  transition: stroke-dasharray 1s var(--ease);
}

.score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.score-ring-center strong {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.score-ring-center span { font-size: 12px; color: rgba(242, 243, 247, 0.5); }

.gauge-caption { font-size: 13px; color: rgba(242, 243, 247, 0.55); }

.demo-bars { display: flex; flex-direction: column; gap: 16px; }

.demo-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}

.demo-bar-meta span { color: rgba(242, 243, 247, 0.7); }
.demo-bar-meta strong { font-family: var(--font-display); color: #FFFFFF; }

.demo-bar-track { height: 8px; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-pill); overflow: hidden; }

.demo-bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--bar, 50) * 1%);
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  transform-origin: left;
  animation: fillBar 1s var(--ease) both;
}

@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.priority-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.priority-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(242, 243, 247, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.priority-chip--high { background: rgba(217, 77, 255, 0.15); border-color: rgba(217, 77, 255, 0.3); color: #E9B0FF; }

.priority-chip--mid { background: rgba(43, 169, 225, 0.15); border-color: rgba(43, 169, 225, 0.3); color: #9DD8F5; }

.priority-chip--ia { background: rgba(30, 211, 166, 0.15); border-color: rgba(30, 211, 166, 0.3); color: #7EEFD0; }

/* Audit form card (interactive) */
.audit-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.audit-form-card h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; text-align: center; }

.audit-form-card > .lead { text-align: center; margin: 0 auto 28px; font-size: 15px; }

.audit-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: none;
  /* Ne pas utiliser sticky: évite les sauts de layout pendant le scroll iOS */
}

.audit-sticky-cta .inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-sticky-cta .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }

.form-row .form-group { margin-bottom: 0; }

label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--anthracite);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235C5C6E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

input:focus,
textarea:focus,
select:focus { border-color: rgba(139, 77, 255, 0.45); box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.12); background: var(--white); }

textarea { resize: vertical; min-height: 96px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 8px 0 18px;
  cursor: pointer;
  letter-spacing: 0;
  font-family: var(--font-body);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 0;
  accent-color: var(--violet);
  flex-shrink: 0;
}

.form-note { font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 14px; }

.hot-badge {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--magenta);
}

.hot-badge.show { display: block; }

/* ── Modal ── */
.modal-overlay,
.ty-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 16, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open,
.ty-overlay.open,
.modal-overlay.active,
.ty-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

.modal-box,
.ty-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 860px);
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  box-shadow: 0 30px 80px rgba(15, 16, 22, 0.25);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.open .modal-box,
.ty-overlay.open .ty-box,
.modal-overlay.active .modal-box,
.ty-overlay.active .ty-box { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--soft-gray);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover { background: var(--anthracite); color: var(--white); }

.modal-header { margin-bottom: 22px; padding-right: 28px; }

.modal-header h3 { font-size: 24px; margin-bottom: 8px; }

.modal-header p { font-size: 14px; color: var(--text-muted); }

.ty-box { text-align: center; max-width: 420px; }

.ty-box h3 { font-size: 24px; margin-bottom: 10px; }

.ty-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(242, 243, 247, 0.72); padding: clamp(48px, 6vw, 72px) 0 0; }

.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(36px, 5vw, 52px); }

.footer-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  background: transparent;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgba(242, 243, 247, 0.55);
  margin-bottom: 6px;
}

.footer-sig { font-size: 14px; color: #FFFFFF; font-weight: 500; }

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a,
.footer-contact a:not(.btn) { font-size: 14px; color: rgba(242, 243, 247, 0.65); transition: color 0.2s; }

.footer-links a:hover,
.footer-contact a:not(.btn):hover { color: var(--green); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.footer-cta { margin-top: 8px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; }

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: rgba(242, 243, 247, 0.45);
}

.footer-bottom a { color: rgba(242, 243, 247, 0.55); }

.footer-bottom a:hover { color: var(--green); }

/* ── Resources ── */
.resource-themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 32px); }

.resource-theme { padding-top: 20px; border-top: 1px solid var(--border); }

.resource-theme-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.resource-theme h3 { font-size: 20px; margin-bottom: 8px; }

.resource-theme p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }

.channel-list { display: flex; flex-direction: column; gap: 12px; }

.channel-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 4px;
  border-top: 1px solid var(--border);
  transition: transform 0.25s var(--ease);
}

.channel-card:last-child { border-bottom: 1px solid var(--border); }

.channel-card:hover { transform: translateX(4px); }

.channel-card strong { display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 2px; }

.channel-card span { font-size: 14px; color: var(--green); font-weight: 600; }

.channel-card small { display: block; font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ── About ── */
.about-split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(32px, 5vw, 56px); align-items: start; }

.check-list { display: flex; flex-direction: column; gap: 0; }

.check-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--anthracite);
  line-height: 1.5;
}

.check-list li:last-child { border-bottom: 1px solid var(--border); }

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ── JSON-LD / product spacing helpers ── */
[itemtype*="Product"],
[itemtype*="Offer"],
.product-block { display: block; margin-block: 0; }

.audit-hero-inner,
.audit-form-card,
.journey-steps { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ── Responsive: 960 ── */
@media (max-width: 960px) {
  .home-experts { grid-template-columns: 1fr; gap: 32px; }
  .home-benefits { grid-template-columns: 1fr 1fr; }
  .diag-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .method-compact { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ia-split { grid-template-columns: 1fr; gap: 32px; }
  .audit-band-inner { grid-template-columns: 1fr; gap: 28px; }
  .audit-band-cta { align-items: stretch; }
  .audit-band-cta .btn { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .capability-panels { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .audit-features { grid-template-columns: 1fr 1fr; }
  .audit-demo-grid { grid-template-columns: 1fr; justify-items: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .resource-themes { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .demo-kpis { grid-template-columns: 1fr; gap: 16px; }
  .nav-logo img { height: 44px; }
}

/* ── Responsive: 860 ── */
@media (max-width: 860px) {
  :root { --nav-h: 70px; --section-y: clamp(56px, 10vw, 88px); }

  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .page-hero h1 { font-size: clamp(30px, 8vw, 44px); }
  .expertise-grid { grid-template-columns: 1fr; }
  .audit-receive { grid-template-columns: 1fr; }
.services-tabs { width: 100%; border-radius: var(--radius-md); }
  .services-tab { flex: 1; text-align: center; padding: 12px 14px; }
.service-row { grid-template-columns: 1fr auto; }
  .service-row svg { display: none; }
  .audit-sticky-cta { display: block; }
.footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
.footer { padding-top: 40px; }
  .footer-brand img { height: 40px; margin-bottom: 10px; }
.footer-links ul { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
.footer-bottom-inner { flex-direction: column; gap: 6px; }
}

/* ── Responsive: 430 ── */
@media (max-width: 430px) {
  .home-benefits { grid-template-columns: 1fr; }
  .method-compact { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr; }
  .audit-features { grid-template-columns: 1fr; }
  .resource-themes { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { width: 100%; }
  .hero { padding-bottom: 72px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(32px, 9vw, 42px); }
  .report-stage { min-height: 0; padding-bottom: 0; }
  .report-card--list {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    transform: none;
    margin-top: 14px;
  }
  .chart-bars { height: 120px; gap: 6px; }
  .audit-price-box { padding: 22px 28px; width: 100%; }
  .diag-tab { font-size: 12px; padding: 14px 12px; }
  .nav-logo img { height: 40px; max-width: 48px; }
}

/* ── Responsive: 390 ── */
@media (max-width: 390px) {
  .container { padding: 0 18px; }
  .section-header h2 { font-size: clamp(26px, 8vw, 32px); }
  .cta-band-inner h2,
  .audit-band h2 { font-size: clamp(26px, 8vw, 32px); }
  .demo-kpi-value { font-size: 28px; }
  .stat-num { font-size: 44px; }
  .modal-box,
  .ty-box { padding: 24px 18px; }
  .audit-form-card { padding: 24px 18px; }
  .priority-chips { gap: 8px; }
  .priority-chip { font-size: 11px; padding: 7px 11px; }
}

/* ── Responsive: 375 ── */
@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .hero-sub { font-size: 15px; }
  .btn-lg { padding: 15px 20px; font-size: 14px; }
  .signature { font-size: 12px; gap: 6px; }
  .score-ring { width: 128px; height: 128px; }
  .score-ring-center strong { font-size: 30px; }
  .audit-sticky-cta .inner { flex-direction: column; align-items: stretch; }
  .audit-sticky-cta .btn { width: 100%; }
  .footer-cta { width: 100%; }
}

/* ── Misc polish ── */
::selection { background: rgba(139, 77, 255, 0.2); color: var(--anthracite); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.btn:focus-visible { outline-offset: 4px; }

script[type="application/ld+json"] { display: none; }

/* ── Mobile stability polish ── */
@media (max-width: 960px) {
  .btn { white-space: normal; text-align: center; }
  .btn-group { width: 100%; }
  .home-experts,
  .home-benefits,
  .diag,
  .demo-dashboard,
  .stats-grid,
  .method-compact,
  .capability-panels,
  .services-switcher,
  .audit-features,
  .audit-receive,
  .journey-steps {
    min-width: 0;
  }

  .diag-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .diag-tab {
    white-space: normal;
    line-height: 1.25;
    min-height: 48px;
  }

  .reveal {
    transform: translateY(10px);
  }
}

@media (max-width: 860px) {
  body:has(#auditSticky) {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 430px) {
  h1, .hero-title, .page-hero h1, .audit-hero h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nav-logo-word {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .container {
    overflow-wrap: break-word;
  }
}
