  :root {
    /* Tameri Palette from homepage.md */
    --background:           oklch(0.9851 0 0);
    --foreground:           oklch(0.145 0 0);
    --primary:              oklch(0.4771 0.0713 206.811); /* Teal */
    --secondary:            oklch(0.7453 0.1659 64.2192); /* Amber */
    --muted:                oklch(0.97 0 0);
    --border:               oklch(0.922 0 0);
    --card:                 oklch(1 0 0);
    
    --primary-soft:    color-mix(in oklch, var(--primary) 12%, transparent);
    --secondary-soft:  color-mix(in oklch, var(--secondary) 15%, transparent);

    --font-sans:    "Inter", sans-serif;
    --font-display: "Inter Tight", sans-serif;
    --radius:       0.625rem;
    --radius-md:    0.75rem;
    --radius-lg:    1rem;
    --radius-xl:    1.35rem;
    --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);

    --muted-foreground: oklch(0.55 0 0);
    --input:            var(--border);
    --ring:             color-mix(in oklch, var(--primary) 35%, white);
    --primary-line:     color-mix(in oklch, var(--primary) 28%, white);
    --secondary-line:   color-mix(in oklch, var(--secondary) 30%, white);
    --shadow-sm:        0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-md:        0 10px 24px -8px rgba(0, 0, 0, 0.12);
    --shadow-lg:        0 18px 40px -18px rgba(0, 0, 0, 0.18);
    --shadow-xl:        0 28px 60px -28px rgba(0, 0, 0, 0.22);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    position: relative;
    isolation: isolate;
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  .bg-pattern {
    background-image: url("./images/bg-pattern-africa-6.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right 0% bottom 62%;
    background-attachment: fixed;
  }

  .bg-pattern::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.10) 22%,
        rgba(255, 255, 255, 0.10) 78%,
        rgba(255, 255, 255, 0.55) 100%);
  }

  .bg-mesh-static::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background-image:
      radial-gradient(at 0% 0%, rgba(30, 104, 113, 0.32) 0px, transparent 55%),
      radial-gradient(at 100% 0%, rgba(242, 146, 13, 0.26) 0px, transparent 55%),
      radial-gradient(at 100% 100%, rgba(30, 104, 113, 0.22) 0px, transparent 55%),
      radial-gradient(at 0% 100%, rgba(242, 146, 13, 0.20) 0px, transparent 55%),
      radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 255, 255, 0.45), transparent 70%);
  }

  /* ────────────────────────────────────────────────────────────
    STICKY NAVIGATION
    ──────────────────────────────────────────────────────────── */
  .nav-sticky {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--foreground);
  }
  .brand-logo {
    display: block;
    height: 30px;
    width: auto;
  }
  .brand-mark { width: 24px; height: 24px; color: var(--primary); }

  .nav-actions { display: flex; align-items: center; gap: 1rem; }

  /* Sized to match the app design system: .btn = h-10 / px-4 / text-sm / gap-2 */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    cursor: pointer;
    border: none;
  }
  .btn-primary {
    background: var(--primary);
    color: white;
  }
  .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  .btn-secondary {
    background: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    font-size: 0.82em;
    font-weight: 500;
    opacity: 0.7;
    box-shadow: none;
    padding: 0.45rem 0.9rem;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
  }
  .btn-secondary:hover, .btn-secondary:focus {
    background: var(--border);
    color: var(--foreground);
    opacity: 0.85;
  }

  /* ────────────────────────────────────────────────────────────
    LOCALE SWITCHER (dropdown)
    ──────────────────────────────────────────────────────────── */
  .locale-switcher { position: relative; }

  /* Trigger sized like the app's pill switcher: py-2 / px-4 / text-sm / h-5 flag */
  .locale-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    cursor: pointer;
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
  }
  .locale-trigger:hover,
  .locale-trigger:focus-visible {
    color: var(--foreground);
    border-color: color-mix(in oklch, var(--primary) 50%, transparent);
    outline: none;
  }

  .locale-flag {
    display: inline-flex;
    width: 1.7rem;
    height: 1.2rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
  }
  .locale-flag svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
  }

  .locale-chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s var(--ease-out);
  }
  .locale-switcher.open .locale-chevron { transform: rotate(180deg); }

  /* Menu mirrors .dropdown-menu-content: rounded-md / border / shadow-md / p-1 / scale anim */
  .locale-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 10rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.25rem;
    z-index: 120;
    opacity: 0;
    transform: scale(0.95);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  }
  .locale-switcher.open .locale-menu {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  /* Item mirrors .dropdown-menu-item: rounded-sm / text-sm / hover bg-accent */
  .locale-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius) - 0.25rem);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s var(--ease-out);
  }
  .locale-option:hover { background: var(--muted); }
  .locale-option.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
  }

  /* ────────────────────────────────────────────────────────────
    PROGRESS INDICATOR
    ──────────────────────────────────────────────────────────── */
  .progress-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 110;
  }
  .progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s linear;
  }

  /* ────────────────────────────────────────────────────────────
    HORIZONTAL RAIL
    ──────────────────────────────────────────────────────────── */
  .experience { position: relative; height: 100vh; }
  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }
  .rail {
    display: flex;
    height: 100%;
    width: max-content;
    will-change: transform;
  }
  .slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10vw;
    position: relative;
  }

  /* ────────────────────────────────────────────────────────────
    VISUAL CONTINUITY (The Thread)
    ──────────────────────────────────────────────────────────── */
  .thread-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
  }
  .thread-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  .thread-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    opacity: 0.15;
  }

  /* ────────────────────────────────────────────────────────────
    CONTENT STYLING
    ──────────────────────────────────────────────────────────── */
  .slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    width: 100%;
  }
  .eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: block;
  }
  .accent { color: var(--primary); }
  h1, h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
  }
  .highlight { color: var(--primary); }
  .lede {
    font-size: 1.25rem;
    line-height: 1.6;
    color: oklch(0.45 0 0);
    max-width: 60ch;
  }

  /* ────────────────────────────────────────────────────────────
    ANIMATIONS
    ──────────────────────────────────────────────────────────── */
  .reveal { opacity: 0; transform: translateY(30px); }

  /* ────────────────────────────────────────────────────────────
    TRAP CARDS (Slide 1)
    ──────────────────────────────────────────────────────────── */
  .trap-cards {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.85rem;
    margin-top: 2.5rem;
  }
  .trap-card {
    flex: 1 1 0;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.4rem 1.5rem;
    display: grid;
    /* grid-template-columns: auto 1fr; */
    grid-template-columns: 100%;
    gap: 1.1rem;
    align-items: start;
    align-content: start;
    transition: all 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
  }
  .trap-card:hover {
    border-color: var(--secondary);
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
  }
  .trap-card-icon {
    /* width: 44px; height: 44px; */
    width: 30px; height: 30px;
    border-radius: var(--radius-md);
    background: var(--secondary-soft);
    border: 1px solid var(--secondary-line);
    color: oklch(0.55 0.16 64);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .trap-card-icon svg { width: 22px; height: 22px; }
  .trap-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin-bottom: 0.2rem;
    text-wrap: balance;
  }
  .trap-card-line {
    font-size: 0.92rem;
    color: var(--muted-foreground);
    line-height: 1.45;
  }

  /* ────────────────────────────────────────────────────────────
    SLIDES 3 TO 6
    ──────────────────────────────────────────────────────────── */
  .slide-inner {
    position: relative;
    z-index: 10;
    width: min(1120px, 100%);
  }

  .slide-solution .slide-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.2rem 1.4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
  }

  .step:hover {
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
  }

  .step-when {
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    white-space: nowrap;
    min-width: 5.5rem;
  }

  .step-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--foreground);
  }

  .step-arrow {
    color: var(--muted-foreground);
    transition: transform 0.3s, color 0.3s;
  }

  .step:hover .step-arrow {
    color: var(--primary);
    transform: translateX(4px);
  }

  .step-arrow svg {
    width: 20px;
    height: 20px;
  }

  .slide-engine .slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }

  .engine-points {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.75rem;
  }

  .engine-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .engine-point-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--secondary);
    letter-spacing: -0.04em;
    min-width: 2.5rem;
  }

  .engine-point-text {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.35;
    letter-spacing: -0.015em;
  }

  .engine-point-text b { font-weight: 700; }

  .engine-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .window {
    position: absolute;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.15rem;
    box-shadow: var(--shadow-xl);
  }

  .window-1 { top: 0; left: 0; width: 70%; z-index: 3; transform: rotate(-2deg); }
  .window-2 { top: 30%; right: 0; width: 65%; z-index: 2; transform: rotate(2deg); }

  .window-3 {
    bottom: 0;
    left: 10%;
    width: 70%;
    z-index: 1;
    transform: rotate(-1deg);
    background: var(--secondary-soft);
    border-color: var(--secondary-line);
  }

  .window-eyebrow {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.4rem;
  }

  .window-3 .window-eyebrow { color: oklch(0.50 0.16 64); }

  .window-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin-bottom: 0.75rem;
  }

  .window-bar {
    height: 6px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
  }

  .window-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    width: 68%;
  }

  .window-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--muted-foreground);
    font-weight: 500;
  }

  .window-meta b { color: var(--primary); font-weight: 700; }

  .window-locked {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .window-mod {
    border-radius: var(--radius-md);
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
  }

  .window-mod.now {
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--primary-line);
  }

  .window-mod.lock {
    background: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .window-mod.lock svg {
    width: 12px;
    height: 12px;
  }

  .slide-interface .slide-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
  }

  .iface-text {
    display: flex;
    flex-direction: column;
  }

  .iface-points {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .iface-point {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.5;
  }

  .iface-point svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
  }

  .iface-point b { color: var(--foreground); font-weight: 600; }

  .iface-hint {
    margin-top: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary);
  }

  .iface-hint svg {
    width: 22px;
    height: 22px;
    animation: hint-bob 1.8s ease-in-out infinite;
  }

  @keyframes hint-bob {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
  }

  .iface-demo {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
  }

  .iface-demo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
  }

  .iface-demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .iface-demo-step {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
  }

  .iface-demo-step-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .iface-demo-step b {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: var(--foreground);
    transition: opacity 0.2s;
  }

  .iface-demo-step b.swapping { opacity: 0; }

  .iface-demo-count {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted-foreground);
    letter-spacing: -0.005em;
    white-space: nowrap;
  }

  .iface-demo-count b {
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.4rem;
    margin-right: 0.35rem;
  }

  .iface-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.85rem;
    margin-bottom: 1.5rem;
    align-content: start;
    min-height: 7.5rem;
  }

  .iface-field { display: none; }

  .iface-field.shown {
    display: block;
    animation: field-appear 0.5s var(--ease-out) both;
  }

  .iface-field.shown.unlocking {
    animation: field-appear 0.5s var(--ease-out) both,
      field-flash 0.9s var(--ease-out) 0.4s;
  }

  @keyframes field-appear {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
  }

  @keyframes field-flash {
    0% { background: var(--secondary-soft); border-radius: var(--radius-md); }
    100% { background: transparent; }
  }

  .iface-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted-foreground);
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
  }

  .iface-field input,
  .iface-field select {
    width: 100%;
    background: var(--background);
    border: 1px solid var(--input);
    color: var(--foreground);
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.85rem;
  }

  .iface-field input::placeholder {
    color: var(--muted-foreground);
    opacity: 0.55;
  }

  .iface-field input:focus,
  .iface-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
  }

  .iface-scrubber {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
  }

  .iface-track-wrap {
    position: relative;
    padding: 1rem 0 0.5rem;
    cursor: ew-resize;
  }

  .iface-track {
    height: 4px;
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    position: relative;
  }

  .iface-track-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    width: 0%;
    transition: width 0.3s var(--ease-out);
  }

  .iface-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow-md);
  }

  .iface-handle::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--primary);
    border-radius: 50%;
  }

  .iface-ticks {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .iface-ticks span {
    width: 1px;
    height: 8px;
    background: var(--ring);
    transform: translateY(-2px);
    opacity: 0.6;
  }

  .iface-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.85rem;
    font-weight: 600;
    font-size: 0.65rem;
    color: var(--muted-foreground);
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .iface-labels span {
    transition: color 0.3s;
    flex: 1;
    text-align: center;
  }

  .iface-labels span:first-child { text-align: left; }
  .iface-labels span:last-child { text-align: right; }
  .iface-labels span.active { color: var(--primary); font-weight: 700; }

  .slide-views .slide-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .views-head { max-width: 50ch; }

  .views-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .view-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem 1.85rem;
    position: relative;
    transition: all 0.4s var(--ease-out);
    box-shadow: var(--shadow-sm);
  }

  .view-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
  }

  .view-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .view-icon svg {
    width: 24px;
    height: 24px;
  }

  .view-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 1.8vw, 1.85rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--foreground);
    margin-bottom: 0.75rem;
  }

  .view-card p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.55;
  }

  .view-card-tag {
    margin-top: 1.25rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--border);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
  }

  @keyframes bounceIn {
          0% { opacity: 0; transform: scale(0.7) translateY(60px); }
          60% { opacity: 1; transform: scale(1.05) translateY(-10px); }
          80% { transform: scale(0.98) translateY(4px); }
          100% { opacity: 1; transform: scale(1) translateY(0); }
        }
        @keyframes fadeInUp {
          0% { opacity: 0; transform: translateY(40px); }
          100% { opacity: 1; transform: translateY(0); }
        }

  /* ────────────────────────────────────────────────────────────
    SUMMARY (between interface and CTA)
    ──────────────────────────────────────────────────────────── */
  .slide-summary .slide-inner {
    display: grid;
    place-items: center;
  }

  .summary-wrap {
    width: min(900px, 100%);
    text-align: center;
    padding: 2.2rem;
    border-radius: var(--radius-xl);
    border: 1px solid color-mix(in oklch, var(--primary) 20%, var(--border));
    background: color-mix(in oklch, var(--card) 88%, white);
    box-shadow: var(--shadow-lg);
  }

  .summary-title {
    margin-top: 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .summary-brand { color: var(--primary); }
  .summary-brand-sub { color: var(--foreground); }

  .summary-logo {
    margin: 1.2rem auto 0;
    display: flex;
    justify-content: center;
  }

  .summary-logo img {
    width: clamp(150px, 26vw, 240px);
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  }

  .anchor-compare {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
  }

  .compare-pill {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted-foreground);
  }

  .compare-pill.erp.is-active {
    border-color: var(--secondary-line);
    color: oklch(0.55 0.16 64);
    background: color-mix(in oklch, var(--secondary-soft) 90%, white);
  }

  .compare-pill.tameri.is-active {
    border-color: var(--primary-line);
    color: var(--primary);
    background: color-mix(in oklch, var(--primary-soft) 90%, white);
  }

  .anchor-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 10%, var(--border));
    overflow: hidden;
  }

  .anchor-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 8px 20px rgba(17, 87, 106, 0.35);
  }

  .summary-wrap.gamified {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, color-mix(in oklch, var(--secondary-soft) 65%, white) 0, transparent 28%),
      radial-gradient(circle at bottom right, color-mix(in oklch, var(--primary-soft) 72%, white) 0, transparent 34%),
      color-mix(in oklch, var(--card) 90%, white);
  }

  .summary-wrap.gamified::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(to right, color-mix(in oklch, var(--primary) 8%, transparent) 1px, transparent 1px),
      linear-gradient(to bottom, color-mix(in oklch, var(--primary) 8%, transparent) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.45;
    pointer-events: none;
  }

  .summary-progress-head,
  .summary-progress-lane {
    position: relative;
    z-index: 1;
  }

  .summary-progress-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .summary-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid color-mix(in oklch, var(--primary) 26%, var(--border));
    box-shadow: var(--shadow-md);
  }

  .summary-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  .progress-lane {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .progress-chip {
    position: relative;
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    transform: translateY(18px) scale(0.98);
    opacity: 0.45;
  }

  .progress-chip.is-on {
    border-color: var(--primary-line);
    box-shadow: var(--shadow-lg);
  }

  .progress-chip-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-line);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
  }

  .progress-chip-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--foreground);
  }

  .progress-chip-copy {
    margin-top: 0.35rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--muted-foreground);
  }

  /* ────────────────────────────────────────────────────────────
    RESPONSIVE
    ──────────────────────────────────────────────────────────── */
  /* ────────────────────────────────────────────────────────────
    DOTS NAV
    ──────────────────────────────────────────────────────────── */
  .dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-md);
  }
  .dots-fixed {
    position: fixed !important;
    left: 50% !important;
    bottom: 2.5rem !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
  }

  /* Larger hit-target with a visible pill that stays accessible */
  .dot {
    /* visible pill */
    width: 32px;
    height: 6px;
    border-radius: 3px;
    background: oklch(0.85 0 0);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.4s var(--ease-out);
    position: relative;
    /* expand click area without changing layout */
    -webkit-tap-highlight-color: transparent;
  }
  .dot::before {
    content: '';
    position: absolute;
    inset: -10px -6px;
  }
  .dot:hover { background: var(--muted-foreground); }
  .dot.active {
    background: var(--primary);
    width: 56px;
    box-shadow: 0 0 10px color-mix(in oklch, var(--primary) 35%, transparent);
  }
  .dot.done { background: var(--muted-foreground); }

  .dot-label {
    position: absolute;
    bottom: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--card);
    background: var(--foreground);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .dot:hover .dot-label,
  .dot:focus-visible .dot-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  @media (max-width: 768px) {
    .nav-sticky { padding: 1rem; }
    .nav-actions .locale-label { display: none; }
    h1 { font-size: 2.5rem; }
    .slide { padding: 0 5vw; }
    .slide-solution .slide-inner,
    .slide-engine .slide-inner,
    .slide-interface .slide-inner,
    .views-grid {
      grid-template-columns: 1fr;
    }
    .iface-demo { padding: 1.25rem; }
    .iface-demo-head,
    .step {
      grid-template-columns: 1fr;
    }
    .iface-form { grid-template-columns: 1fr; }
    .anchor-compare {
      grid-template-columns: 1fr;
      gap: 0.55rem;
    }
    .progress-lane {
      grid-template-columns: 1fr;
    }
  }

  /* CTA Slide Custom Layout */
  .slide-cta {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    position: relative;
    background: none;
    overflow: hidden;
  }
  .slide-cta-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    z-index: 1;
    pointer-events: none;
  }
  .slide-cta-content {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 50vh;
    max-width: 70vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 2vw;
  }

  .slide-cta-eyebrow {
    position: absolute;
    top: 2.5rem;
    left: 2.5vw;
    margin-bottom: 0;
    z-index: 2;
    text-align: left;
    font-size: 1.1rem;
  }

  .slide-cta-logo {
    position: /*absolute;*/relative;
    left: 50%;
    top: -9%;
    transform: translate(-50%, -50%);
    z-index: 3;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .slide-cta-logo img {
    max-width: 450px;
    width: 60vw;
    height: auto;
    animation: bounceIn 1.2s cubic-bezier(.68,-0.55,.27,1.55);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.12));
  }
  .slide-cta-bottom-btn {
    position: /*absolute;*/ relative;
    /* Sits over the character's lower back ("kidney") in the CTA video.
       relative offsets: +right shifts left, -bottom shifts down. */
    right: -54vw;
    bottom: -7vh;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
  }
  .slide-cta-btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    background: var(--secondary) !important;
    color: white !important;
    border-radius: var(--radius-xl);
    min-width: 160px;
  }

  .trap-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    /* Reserve space for a two-line title so the icon and the description
       below stay aligned across all three cards (1- or 2-line titles). */
    min-height: 2.76rem;
  }
  @media (max-width: 900px) {
    .slide-cta-content {
      max-width: 98vw;
      height: 60vh;
      padding: 0 2vw;
    }
    .slide-cta-logo img { max-width: 70vw; }
    .slide-cta-bottom-btn { right: 3vw; bottom: 3vh; }
    .slide-cta-eyebrow { top: 1.2rem; left: 4vw; font-size: 1rem; }
  }
  @media (max-width: 700px) {
    .slide-cta-content {
      max-width: 100vw;
      height: 65vh;
      padding: 0 2vw;
    }
    .slide-cta-logo img { max-width: 90vw; }
    .slide-cta-bottom-btn { right: 2vw; bottom: 2vh; }
    .slide-cta-eyebrow { top: 0.8rem; left: 4vw; font-size: 0.95rem; }
  }


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — vertical stack on tablet & mobile (≤ 900px)
   The GSAP horizontal pin is disabled in app.js below 901px, so the
   rail lays its slides out as a normal vertical column instead of an
   off-screen horizontal row.
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Unpin the rail → vertical flow of full-width sections */
  .experience { height: auto; }
  .stage { position: static; height: auto; overflow: visible; }
  .rail {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
    will-change: auto;
  }
  .slide {
    width: 100%;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 6.5rem 6vw 4rem;
  }

  /* The connecting thread is drawn for the horizontal layout — hide it */
  .thread-container { display: none; }

  /* Two-column slide bodies collapse to one column */
  .slide-solution .slide-inner,
  .slide-engine .slide-inner,
  .slide-interface .slide-inner { grid-template-columns: 1fr !important; gap: 2rem; }

  /* Problem cards: row → single column */
  .trap-cards { flex-direction: column; }

  /* Visuals shouldn't overflow narrow screens */
  .engine-visual, .iface-demo { width: 100%; }

  /* ── CTA slide: center the stack, neutralise desktop offsets ── */
  .slide-cta { min-height: 100vh; min-height: 100svh; }
  .slide-cta-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    top: auto;
    transform: none;
    align-items: center;
    text-align: center;
    padding: 7rem 6vw 4rem;
    gap: 1.25rem;
  }
  .slide-cta-eyebrow {
    position: static;
    top: auto; left: auto;
    text-align: center;
    font-size: 1rem;
  }
  .slide-cta-logo { position: static; top: auto; left: auto; transform: none; }
  .slide-cta-logo img { width: 72vw; max-width: 340px; }
  .slide-cta-bottom-btn {
    position: static;
    right: auto; bottom: auto;
    align-items: center;
    width: 100%;
  }
  /* Keep the animated character readable behind the centered content */
  .slide-cta-video-bg { object-fit: contain; opacity: 0.55; }
}

/* ── Phones (≤ 600px): tighten spacing & nav ───────────────────── */
@media (max-width: 600px) {
  .nav-sticky { padding: 0.75rem 1rem; }
  .brand-logo { height: 24px; }
  .nav-actions { gap: 0.5rem; }
  .slide { padding: 5.5rem 5vw 3rem; }
  h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .lede { margin-bottom: 1.75rem; }
  .trap-cards { gap: 1rem; margin-top: 1.75rem; }
  .steps-grid { gap: 0.75rem; }
  .cta-link { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
  .slide-cta-logo img { width: 80vw; }
}

/* Respect users who ask for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
