@font-face {
  font-display: swap;
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/bricolage-grotesque-v9-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/bricolage-grotesque-v9-latin-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/bricolage-grotesque-v9-latin-800.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2');
}

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

    :root {
      --primary: #217AFF;
      --primary-rgb: 82, 113, 255;
      --green: var(--primary);
      --accent: var(--primary);
      --bg: #040404;
      --surface: #141414;
      --surface2: #191919;
      --sidebar-bg: #0c0c0c;
      --border: rgba(255,255,255,0.07);
      --border-soft: rgba(255,255,255,0.04);
      --text: #ffffff;
      --muted: rgba(255,255,255,0.45);
      --muted2: rgba(255,255,255,0.25);
      --red: #ef4444;
      --font-display: 'Bricolage Grotesque', sans-serif;
      --font-body: 'DM Sans', sans-serif;
      --nav-h: 60px;
      --sidebar-w: 240px;
      --ui-scale: 1.2;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-body);
      font-size: calc(16px * var(--ui-scale));
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    /* ── PROGRESS BAR ── */
    #progress-bar {
      position: fixed;
      top: 0;
      left: 0;
      height: 2px;
      background: var(--green);
      width: 0%;
      z-index: 999;
      transition: width 0.1s linear;
    }

    /* ── NAVBAR ── */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 200;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      background: rgba(15,15,15,0.85);
      border-bottom: 1px solid var(--border);
      padding: 0 40px;
      height: var(--nav-h);
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
    }

    .nav-logo {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
      color: var(--text);
      text-decoration: none;
      letter-spacing: -0.02em;
      justify-self: start;
    }

    .nav-guide-text {
      justify-self: center;
      font-size: calc(11px * var(--ui-scale));
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
      pointer-events: none;
    }

    .nav-back {
      display: none;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      padding: 8px 18px;
      border-radius: 8px;
      font-family: var(--font-body);
      font-size: calc(13px * var(--ui-scale));
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      transition: color 0.15s, border-color 0.15s;
      justify-self: end;
    }
    .nav-back:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

    /* ── HERO (before sidebar layout) ── */
    .guide-hero {
      position: relative;
      padding: 80px 40px 72px;
      text-align: center;
      border-bottom: 1px solid var(--border);
      overflow: hidden;
      width: 100%;
    }

    .guide-hero-dots {
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
      -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
      pointer-events: none;
    }

    .guide-hero-glow {
      position: absolute;
      top: clamp(20px, 5vw, 56px);
      left: 50%;
      transform: translateX(-50%);
      width: min(920px, 78vw);
      height: clamp(220px, 32vw, 360px);
      background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 70%);
      pointer-events: none;
    }

    .guide-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(var(--primary-rgb), 0.08);
      border: 1px solid rgba(var(--primary-rgb), 0.2);
      border-radius: 100px;
      padding: 6px 14px 6px 10px;
      font-size: calc(12px * var(--ui-scale));
      font-weight: 500;
      color: var(--green);
      margin-bottom: 28px;
    }
    .hero-badge-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--green);
      flex-shrink: 0;
      position: relative;
    }
    .hero-badge-dot::after {
      content: '';
      position: absolute;
      inset: -3px;
      border-radius: 50%;
      background: var(--green);
      opacity: 0.3;
      animation: pulse-ring 1.8s ease-out infinite;
    }
    @keyframes pulse-ring {
      0%   { transform: scale(0.8); opacity: 0.4; }
      70%  { transform: scale(1.8); opacity: 0; }
      100% { transform: scale(0.8); opacity: 0; }
    }

    .guide-h1 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(28px, 3.8vw, 48px);
      line-height: 1.1;
      letter-spacing: -0.025em;
      color: var(--text);
      margin-bottom: 24px;
    }
    .guide-h1 .accent { color: var(--green); }

    .guide-subtitle {
      font-size: calc(17px * var(--ui-scale));
      color: var(--muted);
      max-width: 560px;
      margin: 0 auto 40px;
      line-height: 1.65;
    }

    .hero-btns {
      display: flex;
      gap: 12px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--green);
      color: #fff;
      padding: 13px 28px;
      border-radius: 10px;
      font-size: calc(14px * var(--ui-scale));
      font-weight: 500;
      text-decoration: none;
      transition: opacity 0.15s, box-shadow 0.2s;
      box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.18);
    }
    .btn-primary:hover { opacity: 0.88; box-shadow: 0 0 36px rgba(var(--primary-rgb), 0.3); }

    .btn-secondary {
      background: transparent;
      color: var(--muted);
      border: 1px solid var(--border);
      padding: 13px 28px;
      border-radius: 10px;
      font-size: calc(14px * var(--ui-scale));
      font-weight: 500;
      text-decoration: none;
      transition: color 0.15s, border-color 0.15s;
    }
    .btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

    /* ── PAGE BODY (sidebar + right column) ── */
    .page-body {
      display: flex;
      align-items: flex-start;
    }

    .page-main {
      flex: 1;
      min-width: 0;
    }

    /* ── LAYOUT ── */
    .guide-layout {
      display: flex;
      position: relative;
    }

    /* ── SIDEBAR ── */
    .sidebar {
      position: sticky;
      top: var(--nav-h);
      left: 0;
      width: var(--sidebar-w);
      flex-shrink: 0;
      height: calc(100vh - var(--nav-h));
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      z-index: 150;
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.08) transparent;
    }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

    .sidebar-inner {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding: 28px 0 116px;
    }

    .sidebar-title {
      font-size: calc(10px * var(--ui-scale));
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted2);
      padding: 0 20px;
      margin-bottom: 12px;
    }

    .sidebar-nav { list-style: none; }

    .sidebar-nav li a {
      display: block;
      padding: 6px 20px;
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      text-decoration: none;
      line-height: 1.45;
      border-left: 2px solid transparent;
      transition: color 0.15s, background 0.15s, border-color 0.15s;
    }
    .sidebar-nav li a:hover {
      color: rgba(255,255,255,0.75);
      background: rgba(255,255,255,0.02);
    }
    .sidebar-nav li a.active {
      color: var(--green);
      border-left-color: var(--green);
      background: rgba(var(--primary-rgb), 0.06);
    }

    .sidebar-nav li.sub a {
      padding-left: 32px;
      font-size: calc(12px * var(--ui-scale));
    }

    .sidebar-divider {
      height: 1px;
      background: var(--border);
      margin: 12px 20px;
    }

    .sidebar-cta {
      padding: 16px 16px 20px;
      border-top: 1px solid var(--border);
      margin-top: 0;
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--sidebar-bg);
      z-index: 2;
    }

    @media (min-width: 769px) {
      .sidebar-cta {
        position: fixed;
        left: 0;
        bottom: 0;
        width: var(--sidebar-w);
        padding: 12px 16px 16px;
        z-index: 180;
      }
    }

    .sidebar-cta a {
      display: block;
      background: var(--green);
      color: #fff;
      text-align: center;
      padding: 10px 16px;
      border-radius: 8px;
      font-size: calc(13px * var(--ui-scale));
      font-weight: 500;
      text-decoration: none;
      transition: opacity 0.15s;
    }
    .sidebar-cta a:hover { opacity: 0.85; }

    /* ── HAMBURGER ── */
    .hamburger {
      display: none;
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 300;
      width: 48px; height: 48px;
      background: var(--green);
      border: none;
      border-radius: 12px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
    }
    .hamburger span {
      display: block;
      width: 20px; height: 2px;
      background: #000;
      border-radius: 1px;
      transition: transform 0.2s, opacity 0.2s;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ── CONTENT ── */
    .guide-content {
      flex: 1;
      min-width: 0;
    }

    .content-inner {
      max-width: 800px;
      padding: 64px 56px 96px;
      margin: 0 auto;
    }

    /* ── TYPOGRAPHY ── */
    .section-anchor { scroll-margin-top: calc(var(--nav-h) + 32px); }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: calc(11px * var(--ui-scale));
      font-weight: 500;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 14px;
    }
    .section-label::before {
      content: '';
      display: block;
      width: 3px; height: 14px;
      background: var(--green);
      border-radius: 2px;
    }

    h2 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(26px, 3vw, 38px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--text);
      margin-bottom: 24px;
    }

    h3 {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 20px;
      color: var(--text);
      margin: 40px 0 14px;
      letter-spacing: -0.01em;
    }

    p {
      font-size: calc(15px * var(--ui-scale));
      color: rgba(255,255,255,0.65);
      line-height: 1.75;
      margin-bottom: 18px;
    }
    p strong { color: var(--text); font-weight: 600; }

    .section-sep {
      height: 1px;
      background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
      margin: 72px 0;
    }

    /* ── VISUAL COMPONENTS ── */

    /* Grid 2x2 */
    .grid-2x2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      margin: 32px 0;
    }
    .grid-card {
      background: var(--surface);
      padding: 28px 24px;
      transition: background 0.2s;
    }
    .grid-card:hover { background: var(--surface2); }
    .grid-card-icon {
      width: 30px; height: 30px;
      margin-bottom: 14px;
      color: var(--green);
      opacity: 0.85;
    }
    .grid-card-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--text);
      margin-bottom: 8px;
    }
    .grid-card-desc {
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      line-height: 1.65;
      margin: 0;
    }

    /* Two-col compare */
    .two-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 32px 0;
    }
    .col-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px 24px;
    }
    .col-top {
      height: 3px;
      border-radius: 12px 12px 0 0;
      margin: -28px -24px 24px;
    }
    .col-top.green { background: var(--green); }
    .col-top.red { background: var(--red); }
    .col-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--text);
      margin-bottom: 16px;
    }
    .check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .check-list li {
      display: flex; align-items: flex-start;
      gap: 8px; font-size: calc(13px * var(--ui-scale)); line-height: 1.5;
    }
    .check-list li svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
    .check-list li.green svg { color: var(--green); }
    .check-list li.red svg { color: var(--red); }
    .check-list li.gray { color: var(--muted); }
    .check-list li.gray svg { color: var(--muted2); }

    /* Big stat block */
    .stat-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 40px 32px;
      text-align: center;
      margin: 32px 0;
    }
    .stat-num {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(56px, 8vw, 88px);
      color: var(--green);
      letter-spacing: -0.04em;
      line-height: 1;
      display: block;
    }
    .stat-label {
      font-size: calc(14px * var(--ui-scale));
      color: var(--muted);
      margin-top: 10px;
      display: block;
    }

    /* Limitations bullet list (replaces stat-block) */
    .limitations-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin: 28px 0;
    }
    .limitation-item {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px 20px;
    }
    .limitation-icon {
      flex-shrink: 0;
      width: 32px; height: 32px;
      border-radius: 8px;
      background: rgba(239,68,68,0.08);
      border: 1px solid rgba(239,68,68,0.15);
      display: flex; align-items: center; justify-content: center;
    }
    .limitation-icon svg { width: 15px; height: 15px; color: var(--red); }
    .limitation-body { flex: 1; }
    .limitation-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
      margin-bottom: 3px;
    }
    .limitation-desc { font-size: calc(13px * var(--ui-scale)); color: var(--muted); line-height: 1.55; margin: 0; }

    /* Pourquoi maintenant — expanded two-cols */
    .now-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 28px 0;
    }
    .now-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px 24px 24px;
    }
    .now-card-top {
      height: 3px;
      border-radius: 12px 12px 0 0;
      margin: -28px -24px 24px;
    }
    .now-card-top.red { background: var(--red); }
    .now-card-top.green { background: var(--green); }
    .now-card-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 15px;
      color: var(--text);
      margin-bottom: 6px;
    }
    .now-card-intro {
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 18px;
    }
    .now-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .now-list li {
      display: flex; align-items: flex-start;
      gap: 8px; font-size: calc(13px * var(--ui-scale)); color: var(--muted); line-height: 1.55;
    }
    .now-list li svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; }
    .now-list li.bad svg { color: var(--red); }
    .now-list li.good svg { color: var(--green); }

    /* CASL block */
    .casl-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px 28px;
      margin: 32px 0;
    }
    .casl-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--green);
      margin-bottom: 20px;
    }
    .casl-items { display: flex; flex-direction: column; gap: 14px; }
    .casl-item {
      display: flex; align-items: flex-start; gap: 12px;
      font-size: calc(13px * var(--ui-scale)); line-height: 1.55;
    }
    .casl-num {
      flex-shrink: 0;
      width: 22px; height: 22px;
      background: rgba(var(--primary-rgb), 0.12);
      border: 1px solid rgba(var(--primary-rgb), 0.3);
      border-radius: 6px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: calc(11px * var(--ui-scale));
      color: var(--green);
      display: flex; align-items: center; justify-content: center;
    }

    /* Pillar cards grid */
    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin: 24px 0;
    }
    .pillar-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px 20px;
      position: relative;
      overflow: hidden;
      transition: background 0.2s;
    }
    .pillar-card:hover { background: var(--surface2); }
    .pillar-bg-num {
      position: absolute;
      top: -8px; right: 10px;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 64px;
      color: rgba(255,255,255,0.03);
      line-height: 1;
      pointer-events: none;
    }
    .pillar-card-icon {
      width: 28px; height: 28px;
      color: var(--green);
      margin-bottom: 12px;
    }
    .pillar-card-num {
      font-size: calc(11px * var(--ui-scale));
      color: var(--green);
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .pillar-card-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
      color: var(--text);
      margin-bottom: 6px;
    }
    .pillar-card-desc { font-size: calc(12px * var(--ui-scale)); color: var(--muted); line-height: 1.55; margin: 0; }

    /* Infrastructure mini grid — 4 items */
    .infra-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin: 28px 0;
    }
    .infra-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 16px 12px;
      text-align: center;
    }
    .infra-icon { width: 22px; height: 22px; color: var(--green); margin: 0 auto 8px; }
    .infra-label {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: calc(11px * var(--ui-scale));
      color: var(--text);
      margin-bottom: 4px;
    }
    .infra-desc { font-size: calc(10px * var(--ui-scale)); color: var(--muted); line-height: 1.4; margin: 0; }

    /* Numbered list styled */
    .num-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
    .num-list li {
      display: flex; align-items: flex-start; gap: 12px;
      font-size: calc(14px * var(--ui-scale)); color: rgba(255,255,255,0.65); line-height: 1.6;
    }
    .num-list li .num {
      flex-shrink: 0;
      width: 24px; height: 24px;
      background: rgba(var(--primary-rgb), 0.1);
      border: 1px solid rgba(var(--primary-rgb), 0.25);
      border-radius: 6px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: calc(12px * var(--ui-scale));
      color: var(--green);
      display: flex; align-items: center; justify-content: center;
      margin-top: 1px;
    }

    /* Pipeline horizontal */
    .pipeline {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin: 32px 0;
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
    }
    .pipeline-step {
      flex: 1;
      min-width: 100px;
      padding: 20px 16px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      position: relative;
      text-align: center;
    }
    .pipeline-step:last-child { border-right: none; }
    .pipeline-step-num {
      width: 28px; height: 28px;
      background: var(--green);
      color: #fff;
      border-radius: 50%;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: calc(12px * var(--ui-scale));
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 10px;
    }
    .pipeline-step-title { font-family: var(--font-display); font-weight: 700; font-size: calc(11px * var(--ui-scale)); color: var(--text); margin-bottom: 4px; }
    .pipeline-step-desc { font-size: calc(10px * var(--ui-scale)); color: var(--muted); line-height: 1.4; margin: 0; }

    /* Copywriting rules grid */
    .rules-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 32px 0;
    }
    .rule-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 22px 20px;
    }
    .rule-num {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 28px;
      color: var(--green);
      opacity: 0.4;
      line-height: 1;
      margin-bottom: 6px;
    }
    .rule-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 6px; }
    .rule-desc { font-size: calc(13px * var(--ui-scale)); color: var(--muted); line-height: 1.6; margin: 0; }

    /* Email template block */
    .email-template {
      background: #0d1117;
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      margin: 28px 0;
    }
    .email-chrome {
      background: #161b22;
      border-bottom: 1px solid var(--border);
      padding: 10px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .chrome-dots { display: flex; gap: 6px; }
    .chrome-dot {
      width: 10px; height: 10px;
      border-radius: 50%;
    }
    .chrome-dot.r { background: #ff5f57; }
    .chrome-dot.y { background: #febc2e; }
    .chrome-dot.g { background: #28c840; }
    .chrome-badge {
      font-size: calc(10px * var(--ui-scale));
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--green);
      background: rgba(var(--primary-rgb), 0.1);
      border: 1px solid rgba(var(--primary-rgb), 0.2);
      padding: 3px 8px;
      border-radius: 4px;
    }
    .email-body {
      padding: 24px 28px;
      font-family: 'Courier New', monospace;
      font-size: calc(13px * var(--ui-scale));
      line-height: 1.9;
      color: rgba(255,255,255,0.55);
    }
    .email-body .var { color: var(--green); font-weight: 700; }

    /* Callout box */
    .callout {
      border-left: 4px solid var(--green);
      background: rgba(var(--primary-rgb), 0.04);
      border-radius: 0 8px 8px 0;
      padding: 20px 24px;
      margin: 28px 0;
    }
    .callout p { font-size: calc(15px * var(--ui-scale)); color: rgba(255,255,255,0.72); margin: 0; font-style: italic; }

    /* Response rules 3 cards — icon + title only */
    .response-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin: 28px 0 16px;
    }
    .response-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px 20px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    .response-card-icon { width: 28px; height: 28px; color: var(--green); margin-bottom: 12px; }
    .response-card-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text); }

    /* Response rules expanded list (below the cards) */
    .response-rules-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0;
      margin: 0 0 28px;
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
    }
    .response-rule-item {
      display: grid;
      grid-template-columns: 180px 1fr;
      align-items: start;
      gap: 0;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
    }
    .response-rule-item:last-child { border-bottom: none; }
    .response-rule-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
      padding: 18px 20px;
      border-right: 1px solid var(--border);
      line-height: 1.5;
    }
    .response-rule-desc {
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      line-height: 1.65;
      margin: 0;
      padding: 18px 20px;
    }

    /* Martal-style funnel — left aligned trapezoid */
    .martal-funnel {
      margin: 32px 0;
      display: flex;
      flex-direction: column;
      gap: 3px;
    }
    .martal-row {
      display: flex;
      align-items: center;
      gap: 16px;
      min-height: 44px;
    }
    .martal-bar-wrap {
      flex: 1;
      min-width: 0;
      overflow: hidden;
    }
    .martal-bar {
      height: 40px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      padding: 0 16px;
      font-size: calc(12px * var(--ui-scale));
      font-weight: 500;
      color: rgba(255,255,255,0.7);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: opacity 0.15s;
    }
    .martal-bar:hover { opacity: 0.85; }
    .martal-bar.l1 { width: 100%; background: rgba(20, 38, 88, 0.85); }
    .martal-bar.l2 { width: 80%;  background: rgba(28, 53, 116, 0.85); }
    .martal-bar.l3 { width: 60%;  background: rgba(38, 68, 142, 0.85); }
    .martal-bar.l4 { width: 40%;  background: rgba(48, 82, 166, 0.85); }
    .martal-bar.l5 { width: 24%;  background: var(--green); color: #fff; font-weight: 700; min-width: 120px; }
    .martal-num {
      flex-shrink: 0;
      width: 120px;
      text-align: right;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: calc(13px * var(--ui-scale));
      color: var(--green);
    }
    .martal-num.dim { color: var(--muted2); font-size: calc(12px * var(--ui-scale)); font-weight: 500; }

    /* Metrics detail cards */
    .metric-detail-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 28px 0;
    }
    .metric-detail-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px 20px;
    }
    .metric-detail-header {
      display: flex;
      align-items: baseline;
      gap: 8px;
      margin-bottom: 12px;
    }
    .metric-detail-num { font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--green); }
    .metric-detail-label { font-size: calc(11px * var(--ui-scale)); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted2); font-weight: 600; }
    .metric-detail-desc { font-size: calc(13px * var(--ui-scale)); color: var(--muted); line-height: 1.65; margin: 0; }

    /* Maintenance timeline */
    .maint-timeline { display: flex; flex-direction: column; gap: 0; position: relative; margin: 28px 0; }
    .maint-timeline::before {
      content: '';
      position: absolute;
      left: 15px; top: 0; bottom: 0;
      width: 1px;
      background: linear-gradient(180deg, var(--green), rgba(var(--primary-rgb), 0.1));
    }
    .maint-item { display: flex; gap: 24px; padding-bottom: 32px; }
    .maint-item:last-child { padding-bottom: 0; }
    .maint-dot {
      flex-shrink: 0;
      width: 32px; height: 32px;
      border-radius: 50%;
      background: rgba(var(--primary-rgb), 0.12);
      border: 1px solid rgba(var(--primary-rgb), 0.3);
      display: flex; align-items: center; justify-content: center;
      position: relative; z-index: 1;
    }
    .maint-dot svg { width: 14px; height: 14px; color: var(--green); }
    .maint-content { padding-top: 4px; }
    .maint-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 6px; }
    .maint-desc { font-size: calc(13px * var(--ui-scale)); color: var(--muted); line-height: 1.65; margin: 0; }

    /* IF/THEN block */
    .if-then {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 32px 28px;
      margin: 28px 0;
    }
    .if-row {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      margin-bottom: 20px;
    }
    .if-row:last-child { margin-bottom: 0; }
    .if-tag {
      flex-shrink: 0;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: calc(13px * var(--ui-scale));
      color: var(--green);
      background: rgba(var(--primary-rgb), 0.1);
      border: 1px solid rgba(var(--primary-rgb), 0.2);
      border-radius: 6px;
      padding: 4px 10px;
      letter-spacing: 0.04em;
    }
    .if-content { font-size: calc(14px * var(--ui-scale)); color: rgba(255,255,255,0.7); line-height: 1.6; padding-top: 3px; }
    .if-content ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
    .if-content ul li { display: flex; align-items: flex-start; gap: 8px; }
    .if-content ul li::before {
      content: '→';
      color: var(--green);
      font-size: calc(12px * var(--ui-scale));
      margin-top: 2px;
      flex-shrink: 0;
    }
    .if-divider { height: 1px; background: var(--border); margin: 20px 0; }
    .then-tag {
      flex-shrink: 0;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: calc(13px * var(--ui-scale));
      color: #fff;
      background: var(--green);
      border-radius: 6px;
      padding: 4px 10px;
      letter-spacing: 0.04em;
    }
    .sinon-tag {
      flex-shrink: 0;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      border-radius: 6px;
      padding: 4px 10px;
      letter-spacing: 0.04em;
    }

    /* Conversion passation */
    .passation {
      display: flex;
      align-items: stretch;
      gap: 0;
      margin: 32px 0;
    }
    .passation-node {
      flex: 1;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px 16px;
      text-align: center;
      background: var(--surface);
      min-width: 120px;
    }
    .passation-node.highlight {
      background: rgba(var(--primary-rgb), 0.07);
      border: 1px solid rgba(var(--primary-rgb), 0.25);
      position: relative;
    }
    .passation-node.highlight::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 10px;
      background: radial-gradient(ellipse at 50% 0%, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
      pointer-events: none;
    }
    .passation-node .node-label {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 13px;
      color: var(--text);
    }
    .passation-node.highlight .node-label { color: var(--green); }
    .passation-node .node-sub { font-size: calc(11px * var(--ui-scale)); color: var(--muted); margin-top: 6px; }
    .passation-arrow {
      flex-shrink: 0;
      padding: 0 14px;
      color: var(--muted2);
      font-size: 18px;
      display: flex;
      align-items: center;
    }

    /* Conclusion timeline */
    .concl-timeline {
      display: flex;
      align-items: flex-start;
      gap: 0;
      margin: 32px 0;
      overflow-x: auto;
    }
    .concl-step { flex: 1; min-width: 90px; text-align: center; padding: 0 4px; }
    .concl-dot-row {
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      margin-bottom: 12px;
    }
    .concl-dot {
      width: 36px; height: 36px;
      border-radius: 50%;
      background: var(--green);
      color: #fff;
      font-family: var(--font-display);
      font-weight: 800;
      font-size: calc(11px * var(--ui-scale));
      display: flex; align-items: center; justify-content: center;
      position: relative;
      z-index: 1;
      flex-shrink: 0;
    }
    .concl-step:last-child .concl-dot { width: 42px; height: 42px; box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.35); }
    .concl-line {
      flex: 1;
      height: 2px;
      background: rgba(var(--primary-rgb), 0.2);
    }
    .concl-day { font-size: calc(11px * var(--ui-scale)); font-weight: 700; color: var(--green); letter-spacing: 0.04em; margin-bottom: 4px; }
    .concl-step:last-child .concl-day { color: var(--green); }
    .concl-title { font-family: var(--font-display); font-weight: 700; font-size: calc(12px * var(--ui-scale)); color: var(--text); margin-bottom: 2px; }
    .concl-sub { font-size: calc(11px * var(--ui-scale)); color: var(--muted); line-height: 1.3; }

    /* Recap 6 piliers */
    .recap-grid {
      display: grid;
      grid-template-columns: repeat(6, 1fr);
      gap: 8px;
      margin: 24px 0;
    }
    .recap-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 14px 8px;
      text-align: center;
    }
    .recap-item svg { width: 20px; height: 20px; color: var(--green); margin-bottom: 6px; }
    .recap-item-num { font-size: calc(9px * var(--ui-scale)); color: var(--green); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
    .recap-item-label { font-family: var(--font-display); font-weight: 700; font-size: calc(11px * var(--ui-scale)); color: var(--text); }

    /* Final CTA section */
    .final-cta-section {
      background: var(--surface);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 64px 56px;
    }
    .final-cta-inner {
      max-width: 800px;
      margin: 0 auto;
      text-align: left;
    }
    .final-cta-section h2 { font-size: clamp(22px, 2.5vw, 32px); margin-bottom: 16px; }
    .final-cta-section p { font-size: calc(15px * var(--ui-scale)); }
    .cta-btn-large {
      display: inline-block;
      background: var(--green);
      color: #fff;
      padding: 14px 32px;
      border-radius: 10px;
      font-size: calc(15px * var(--ui-scale));
      font-weight: 500;
      text-decoration: none;
      margin-top: 28px;
      box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.18);
      transition: opacity 0.15s, box-shadow 0.2s;
    }
    .cta-btn-large:hover { opacity: 0.88; box-shadow: 0 0 36px rgba(var(--primary-rgb), 0.3); }

    footer {
      padding: 28px 40px;
      text-align: center;
      font-size: calc(12px * var(--ui-scale));
      color: var(--muted2);
      letter-spacing: 0.04em;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      :root { --sidebar-w: 0px; }
      .sidebar { position: fixed; top: 0; transform: translateX(-100%); width: 260px; height: 100vh; transition: transform 0.25s ease; z-index: 250; }
      .sidebar.open { transform: translateX(0); }
      .hamburger { display: flex; }
      .guide-content { margin-left: 0; }
      .content-inner { padding: 40px 24px 80px; }
      .final-cta-section { padding: 56px 24px; }
      .guide-hero { padding: 56px 20px 56px; }
      .page-body { display: block; }
      .grid-2x2, .two-cols, .now-cols, .rules-grid, .metric-detail-grid { grid-template-columns: 1fr; }
      .pillars-grid { grid-template-columns: 1fr 1fr; }
      .recap-grid { grid-template-columns: repeat(3, 1fr); }
      .infra-grid { grid-template-columns: repeat(2, 1fr); }
      .response-cards { grid-template-columns: 1fr; }
      .response-rule-title { min-width: 120px; }
      .pipeline { flex-direction: column; }
      .pipeline-step { border-right: none; border-bottom: 1px solid var(--border); }
      .pipeline-step:last-child { border-bottom: none; }
      .passation { flex-direction: column; gap: 8px; }
      .passation-arrow { transform: rotate(90deg); align-self: center; }
      .navbar { padding: 0 20px; grid-template-columns: 1fr auto; }
      .nav-guide-text { display: none; }
      .martal-num { width: 60px; font-size: calc(11px * var(--ui-scale)); }
    }

    @media (max-width: 480px) {
      .pillars-grid { grid-template-columns: 1fr; }
      .recap-grid { grid-template-columns: repeat(2, 1fr); }
      .response-rules-list .response-rule-item { flex-direction: column; gap: 6px; }
      .response-rule-title { min-width: unset; }
    }
    /* ROI Calculator (guide) */
    .roi-calc {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 32px 28px;
      margin: 32px 0;
    }
    .roi-calc-label {
      font-size: calc(11px * var(--ui-scale));
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 28px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .roi-calc-label::before {
      content: '';
      display: inline-block;
      width: 3px; height: 12px;
      background: var(--accent);
      border-radius: 2px;
    }
    .roi-calc-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
      margin-bottom: 32px;
    }
    .roi-slider-block {}
    .roi-slider-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 10px;
    }
    .roi-slider-name { font-size: calc(13px * var(--ui-scale)); color: rgba(255,255,255,0.65); }
    .roi-slider-val {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: calc(15px * var(--ui-scale));
      color: var(--accent);
    }
    .roi-range {
      -webkit-appearance: none;
      width: 100%;
      height: 4px;
      background: rgba(255,255,255,0.08);
      border-radius: 2px;
      outline: none;
      cursor: pointer;
    }
    .roi-range::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35);
      cursor: pointer;
    }
    .roi-range::-moz-range-thumb {
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--accent);
      border: none;
      cursor: pointer;
    }
    .roi-slider-ends {
      display: flex;
      justify-content: space-between;
      font-size: calc(10px * var(--ui-scale));
      color: var(--muted2);
      margin-top: 6px;
    }
    .roi-result-block {
      border-top: 1px solid var(--border);
      padding-top: 24px;
      text-align: left;
    }
    .roi-result-num {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(36px, 5vw, 56px);
      color: var(--accent);
      letter-spacing: -0.03em;
      line-height: 1;
      margin-bottom: 6px;
    }
    .roi-result-label {
      font-size: calc(13px * var(--ui-scale));
      color: var(--muted);
      margin-bottom: 10px;
    }
    .roi-breakdown {
      font-family: 'Courier New', monospace;
      font-size: calc(11px * var(--ui-scale));
      color: var(--muted2);
      letter-spacing: 0.02em;
    }
    .roi-outcome {
      margin: 14px 0 0;
      padding: 12px 14px;
      border: 1px solid var(--border-soft);
      border-radius: 8px;
      background: rgba(255,255,255,0.02);
      font-size: calc(12px * var(--ui-scale));
      line-height: 1.65;
      color: rgba(255,255,255,0.72);
    }
    .roi-outcome strong { color: var(--text); font-weight: 600; }

    /* ── FRAMER-STYLE VISUAL UPGRADES ── */

    /* Cards — gradient border on hover */
    .grid-card, .col-card, .pillar-card, .rule-card, .now-card,
    .metric-detail-card, .roi-calc, .if-then, .limitation-item {
      transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .grid-card:hover, .pillar-card:hover, .rule-card:hover,
    .metric-detail-card:hover, .now-card:hover {
      background: var(--surface2) !important;
      box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.12), 0 4px 24px rgba(0,0,0,0.3);
      border-color: rgba(var(--primary-rgb), 0.12) !important;
    }

    /* Sidebar active item — subtle glow */
    .sidebar-nav li a.active {
      box-shadow: inset 3px 0 0 var(--green);
      background: rgba(var(--primary-rgb), 0.05) !important;
    }

    /* Section label accent bar — glow */
    .section-label::before {
      box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
    }

    /* Progress bar glow */
    #progress-bar {
      box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.6);
    }

    /* Callout — left border glow */
    .callout {
      background: rgba(var(--primary-rgb), 0.03) !important;
      box-shadow: inset 4px 0 0 rgba(var(--primary-rgb), 0.5);
    }

    /* Pipeline step num — soft glow */
    .pipeline-step-num {
      box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.3);
    }

    /* Maint timeline line — updated gradient */
    .maint-timeline::before {
      background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.6), rgba(var(--primary-rgb), 0.05)) !important;
    }
    .maint-dot {
      background: rgba(var(--primary-rgb), 0.08) !important;
      border-color: rgba(var(--primary-rgb), 0.25) !important;
      box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
    }

    /* CTA button — neon glow */
    .cta-btn-large {
      box-shadow: 0 0 16px rgba(var(--primary-rgb), 0.14), 0 0 36px rgba(var(--primary-rgb), 0.05) !important;
    }
    .cta-btn-large:hover {
      box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.22), 0 0 50px rgba(var(--primary-rgb), 0.08) !important;
    }

    /* Btn primary glow */
    .btn-primary {
      box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.12) !important;
    }
    .btn-primary:hover {
      box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2) !important;
    }

    /* Concl dot glow */
    .concl-step:last-child .concl-dot {
      box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4) !important;
    }

    /* ROI slider thumb glow */
    .roi-range::-webkit-slider-thumb {
      box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4) !important;
    }

    /* Subtle background texture */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: radial-gradient(circle at 80% 10%, rgba(var(--primary-rgb), 0.012) 0%, transparent 40%),
                        radial-gradient(circle at 10% 90%, rgba(var(--primary-rgb), 0.008) 0%, transparent 35%);
      pointer-events: none;
      z-index: -1;
    }
