/* Landing marketing — ported from landing-nav-preview.html */

    :root {
      --bg: #ffffff;
      --surface: #ffffff;
      --surface-2: #f8fafc;
      --border: #e8edf2;
      --text: #1a1f2e;
      --text-secondary: #4a5568;
      --muted: #718096;
      --pastel-blue: #b8d9f0;
      --pastel-blue-deep: #7eb8e0;
      --pastel-blue-light: #e8f4fc;
      --pastel-yellow: #fde68a;
      --link-accent: #3b7ab8;
      --radius: 16px;
      --radius-pill: 9999px;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
      --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
      --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --header-height: 72px;
      --landing-bg: #f7f4ef;
      --landing-mobile-root-scale: 0.92;
    }

    /* reset omitted — production already sets box-sizing */
    html { scroll-behavior: smooth; }
    body.landing-active,
body.landing-marketing {
      background: var(--landing-bg, #f7f4ef);
    }
    /* links: keep production defaults; marketing anchors styled locally */
    button { font-family: inherit; }
    .hidden { display: none !important; }

    /* Preview banner */
    .preview-banner {
      background: var(--text);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 500;
      text-align: center;
      padding: 0.55rem 1rem;
    }
    .preview-banner code {
      background: rgba(255,255,255,0.12);
      padding: 0.1rem 0.4rem;
      border-radius: 4px;
      font-size: 0.75rem;
    }

    /* Sticky shell so mega menu always sits under the real header bottom
       (avoids cropping when the preview banner is still in view). */
    .nav-shell {
      position: sticky;
      top: 0;
      z-index: 200;
    }

    /* Header — OpenRouter-style right cluster, no search */
    .nav-shell .site-header {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: var(--header-height);
      padding: 0 1.75rem;
      background: rgba(247, 244, 239, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid transparent;
      z-index: 2;
      overflow: visible;
    }
    .nav-shell.is-menu-open .site-header {
      background: #fff;
      border-bottom-color: var(--border);
    }
    .nav-shell.is-mobile-open .site-header {
      background: #fff;
      border-bottom-color: transparent;
    }
    .nav-shell.is-mobile-open.is-menu-open .site-header {
      border-bottom-color: transparent;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      font-size: 1.2rem;
      letter-spacing: -0.03em;
      color: var(--text);
      cursor: pointer;
      user-select: none;
      flex-shrink: 0;
    }
    .logo-icon {
      width: 32px;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 0.15rem;
      /* Keep static so the mobile drawer positions against .site-header */
    }

    .nav-mobile-panel {
      display: flex;
      align-items: center;
      gap: 0.15rem;
    }

    .nav-tabs {
      display: flex;
      align-items: center;
      gap: 0.1rem;
      margin-right: 0.35rem;
    }

    .nav-item {
      position: static;
    }

    .nav-tab {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      background: none;
      border: none;
      color: var(--text-secondary);
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 500;
      padding: 0.5rem 0.85rem;
      border-radius: 8px;
      white-space: nowrap;
    }
    .nav-tab:hover,
    .nav-tab[aria-expanded="true"] {
      color: var(--text);
      background: rgba(26, 31, 46, 0.04);
    }
    .nav-tab-chevron {
      width: 10px;
      height: 10px;
      opacity: 0.55;
      transition: transform 0.15s ease;
    }
    .nav-tab[aria-expanded="true"] .nav-tab-chevron {
      transform: rotate(180deg);
      opacity: 0.85;
    }

    .nav-link {
      background: none;
      border: none;
      color: var(--text-secondary);
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 500;
      padding: 0.5rem 0.85rem;
      border-radius: 8px;
    }
    .nav-link:hover {
      color: var(--text);
      background: rgba(26, 31, 46, 0.04);
    }

    .btn-pastel {
      background: var(--text);
      color: #fff;
      padding: 0.55rem 1.15rem;
      font-size: 0.875rem;
      border-radius: var(--radius-pill);
      border: none;
      font-weight: 600;
      cursor: pointer;
      margin-left: 0.35rem;
    }
    .btn-pastel:hover { background: #27272a; }

    .btn-primary {
      background: var(--text);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.95rem;
      padding: 0.85rem 1.25rem;
      cursor: pointer;
      width: 100%;
    }
    .btn-primary:hover { background: #27272a; }

    .btn-secondary {
      background: #fff;
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 10px;
      font-weight: 600;
      font-size: 0.9rem;
      padding: 0.7rem 1.1rem;
      cursor: pointer;
    }
    .btn-secondary:hover { background: var(--surface-2); }

    /* Dropdown menus */
    .nav-dropdown {
      position: absolute;
      top: calc(100% + 0.85rem);
      left: 50%;
      transform: translateX(-50%);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: var(--shadow-lg);
      min-width: 280px;
      padding: 0.65rem;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.12s ease, visibility 0.12s ease;
      z-index: 220;
    }
    .nav-item.open .nav-dropdown {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .nav-dropdown-item {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      padding: 0.75rem 0.85rem;
      border-radius: 10px;
      color: var(--text);
    }
    .nav-dropdown-item:hover {
      background: var(--pastel-blue-light);
    }
    .nav-dropdown-item strong {
      font-size: 0.9rem;
      font-weight: 600;
    }
    .nav-dropdown-item span {
      font-size: 0.78rem;
      color: var(--muted);
      line-height: 1.4;
    }

    /* Solutions mega menu — Stripe-inspired; anchored under site-header */
    .mega-menu {
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      background: #fff;
      border-bottom: 1px solid var(--border);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.15s ease, visibility 0.15s ease;
      z-index: 1;
    }
    .mega-menu.open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .mega-menu-inner {
      max-width: 720px;
      margin: 0 auto;
      padding: 1.75rem 2rem 2rem;
    }
    .mega-col-title {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 1rem;
    }
    .mega-links {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 2.5rem;
      row-gap: 0.55rem;
    }
    .mega-link {
      color: var(--link-accent);
      font-size: 0.95rem;
      font-weight: 500;
      padding: 0.2rem 0;
      width: fit-content;
    }
    .mega-link:hover {
      opacity: 0.75;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .nav-backdrop {
      position: fixed;
      inset: 0;
      background: transparent;
      z-index: 190;
      display: none;
    }
    .nav-backdrop.open { display: block; }

    /* Mobile menu toggle */
    .nav-mobile-toggle {
      display: none;
      background: none;
      border: 1px solid var(--border);
      border-radius: 8px;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text);
    }

    /* Landing hero */
    .landing-page { background: var(--landing-bg); }
    .landing-hero {
      padding: 3rem 2.5rem 4rem;
      min-height: calc(100vh - var(--header-height) - 36px);
      display: flex;
      align-items: center;
    }
    .landing-scroll {
      padding: 0 0 5rem;
    }
    .landing-section-inner {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    /* OpenRouter-style highlight cards */
    .landing-highlights {
      padding: 1rem 0 4.5rem;
    }
    .highlight-carousel {
      position: relative;
      width: 100%;
    }
    .highlight-carousel-viewport {
      width: 100%;
      min-width: 0;
    }
    .highlight-carousel-btn {
      display: none;
    }
    .highlight-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
    }
    .highlight-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 1.15rem 1.15rem 1.25rem;
      display: flex;
      flex-direction: column;
      min-height: 280px;
      box-shadow: var(--shadow-sm);
    }
    .highlight-card:hover {
      box-shadow: var(--shadow-md);
    }
    .highlight-visual {
      height: 120px;
      border-radius: 10px;
      background: linear-gradient(160deg, #f3f6f9 0%, #eef4fa 100%);
      border: 1px solid var(--border);
      margin-bottom: 1.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
    .highlight-visual.models {
      background: linear-gradient(145deg, #eef6fc, #fff8e8);
    }
    .highlight-visual.pricing {
      background: linear-gradient(145deg, #f8fafc, #e8f4fc);
    }
    .highlight-visual.privacy {
      background: linear-gradient(145deg, #f0fdf4, #eef6fc);
    }
    .highlight-logo-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      justify-content: center;
      padding: 0.75rem;
    }
    .highlight-logo-pill {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0.3rem 0.55rem;
      font-size: 0.68rem;
      font-weight: 700;
      color: var(--text-secondary);
    }
    .highlight-model-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      justify-content: center;
      align-items: center;
      padding: 0.85rem 0.75rem;
    }
    .highlight-model-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 2.35rem;
      height: 2.35rem;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0;
      color: #111;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .highlight-model-chip img {
      width: 1.15rem;
      height: 1.15rem;
      display: block;
      object-fit: contain;
    }
    .highlight-price-mock {
      text-align: center;
      font-weight: 800;
      font-size: 1.5rem;
      letter-spacing: -0.03em;
      color: var(--text);
    }
    .highlight-price-mock span {
      display: block;
      font-size: 0.72rem;
      font-weight: 500;
      color: var(--muted);
      margin-top: 0.25rem;
    }
    .highlight-shield {
      width: 56px;
      height: 64px;
      color: var(--text-secondary);
    }
    .highlight-card h3 {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.45rem;
      line-height: 1.3;
    }
    .highlight-card p {
      font-size: 0.88rem;
      color: var(--muted);
      line-height: 1.5;
      flex: 1;
    }
    .highlight-link {
      margin-top: 0.9rem;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text);
      text-decoration: underline;
      text-underline-offset: 3px;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      width: fit-content;
    }
    .highlight-link:hover { opacity: 0.75; }

    /* How Minion AI works */
    .landing-how-it-works {
      padding: 1rem 0 3.5rem;
    }
    .landing-how-it-works .landing-section-inner {
      max-width: 1180px;
    }
    .how-header {
      text-align: center;
      max-width: 640px;
      margin: 0 auto 2rem;
    }
    .how-header h2 {
      font-size: clamp(1.6rem, 2.5vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin: 0 0 0.55rem;
      color: var(--text);
    }
    .how-header > p:last-child {
      color: var(--muted);
      font-size: 1.02rem;
      line-height: 1.6;
      margin: 0;
    }
    .how-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
      gap: 1.25rem;
      align-items: stretch;
    }
    .how-panel {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: calc(var(--radius) + 4px);
      box-shadow: var(--shadow-sm);
      padding: 1rem 1rem 1.15rem;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .how-panel-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 0.75rem;
    }

    /* Spacious horizontal flowchart */
    .how-flow {
      position: relative;
      flex: 1;
      min-height: 560px;
      border-radius: 16px;
      padding: 1.35rem 1.25rem 1.6rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.35rem;
      background:
        radial-gradient(ellipse 70% 45% at 50% 40%, rgba(184, 217, 240, 0.28), transparent 65%),
        linear-gradient(165deg, #f4f7fa 0%, #f7f4ef 100%);
      border: 1px solid var(--border);
      overflow: visible;
    }
    @media (prefers-reduced-motion: reduce) {
      .how-ux-track,
      .how-top-track,
      .highlight-carousel-track { transition: none; }
      .how-arrow,
      .how-v-arrow { animation: none; }
    }
    .how-top-carousel {
      position: relative;
      z-index: 1;
      min-width: 0;
    }
    .how-top-viewport {
      min-width: 0;
      overflow: visible;
    }
    .how-top-track,
    .how-top-split {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(160px, 0.85fr);
      gap: 0.85rem;
      align-items: stretch;
    }
    .how-top-slide,
    .how-top-split > .how-band {
      min-width: 0;
      box-sizing: border-box;
    }
    .how-top-dots {
      display: none;
    }
    .how-top-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      border: none;
      padding: 0;
      background: #cbd5e1;
      cursor: pointer;
      transition: width 0.25s ease, background 0.25s ease;
    }
    .how-top-dot.is-active {
      width: 18px;
      background: #3b7ab8;
    }
    .how-v-arrow {
      width: 2px;
      height: 36px;
      margin: 0.35rem auto;
      flex-shrink: 0;
      background: repeating-linear-gradient(
        180deg,
        #8aa4bc 0 4px,
        transparent 4px 9px
      );
      background-size: 2px 18px;
      animation: how-v-arrow 0.9s linear infinite;
      position: relative;
    }
    .how-v-arrow::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: -3px;
      transform: translateX(-50%);
      border-left: 4px solid transparent;
      border-right: 4px solid transparent;
      border-top: 6px solid #8aa4bc;
    }
    @keyframes how-v-arrow {
      to { background-position: 0 18px; }
    }

    .how-band {
      position: relative;
      z-index: 1;
      border: 1.5px dashed #c5d4e3;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.78);
      padding: 1rem 1rem 1.1rem;
    }
    .how-band-main {
      border-style: solid;
      border-color: #c5d9ea;
      background: rgba(255, 255, 255, 0.9);
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 1.65rem 1.1rem 1.25rem;
      margin: 0.15rem 0;
      overflow: visible;
    }
    .how-band-memory {
      margin-top: 0.15rem;
      padding: 1.15rem 1.1rem 1.25rem;
    }
    .how-band-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.45rem;
    }
    .how-band-title {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .how-band-note {
      margin: 0 0 0.7rem;
      font-size: 0.68rem;
      color: var(--muted);
      line-height: 1.4;
    }
    .how-skills-pill,
    .how-tools-pill {
      font-size: 0.62rem;
      font-weight: 700;
      border-radius: 999px;
      padding: 0.18rem 0.5rem;
      white-space: nowrap;
    }
    .how-skills-pill {
      color: #9a6700;
      background: #fef3c7;
    }
    .how-tools-pill {
      color: #1e4d7b;
      background: #dbeaf7;
    }
    .how-skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }
    .how-skill-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.4rem 0.65rem 0.4rem 0.4rem;
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    }
    .how-band-body {
      display: grid;
      gap: 0.7rem;
      align-items: stretch;
    }
    .how-band-body-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
    }
    .how-tools {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }
    .how-card {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem 0.8rem;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
      min-width: 0;
    }
    .how-card strong {
      display: block;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text);
      line-height: 1.25;
    }
    .how-card em {
      display: block;
      font-style: normal;
      font-size: 0.64rem;
      color: var(--muted);
      line-height: 1.3;
      margin-top: 0.1rem;
    }
    .how-card-orch {
      flex: 1.2;
      position: relative;
      z-index: 1;
      border-color: #b8d9f0;
      background: linear-gradient(180deg, #fff 0%, #eef6fc 100%);
      box-shadow: 0 8px 24px rgba(62, 120, 168, 0.12);
      padding: 0.95rem 1rem;
      overflow: visible;
    }
    .how-card-orch strong { font-size: 0.92rem; }
    .how-card-answer {
      border-color: #bbf7d0;
      background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
    }
    .how-card-user,
    .how-card-answer {
      flex: 0.9;
    }
    .how-card-tool {
      flex-direction: row;
      align-items: center;
      text-align: left;
      gap: 0.55rem;
      padding: 0.5rem 0.65rem;
    }
    .how-card-tool .how-ico {
      width: 28px;
      height: 28px;
      border-radius: 8px;
    }
    .how-card-tool .how-ico::before {
      width: 13px;
      height: 13px;
    }
    .how-card-tool strong {
      font-size: 0.74rem;
    }
    .how-card-tool em {
      font-size: 0.6rem;
      margin-top: 0.05rem;
    }
    .how-rank {
      width: 1.15rem;
      height: 1.15rem;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-size: 0.6rem;
      font-weight: 700;
      color: #fff;
      background: #3b7ab8;
      flex-shrink: 0;
    }
    .how-node-badge {
      position: absolute;
      top: -10px;
      right: 12px;
      z-index: 2;
      font-size: 0.58rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: #1e4d7b;
      background: #dbeaf7;
      border-radius: 999px;
      padding: 0.12rem 0.4rem;
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    }
    .how-arrow {
      width: 28px;
      flex-shrink: 0;
      align-self: center;
      height: 2px;
      position: relative;
      background: repeating-linear-gradient(
        90deg,
        #8aa4bc 0 4px,
        transparent 4px 9px
      );
      background-size: 18px 2px;
      animation: how-arrow-move 0.9s linear infinite;
    }
    .how-arrow-long {
      width: 56px;
      flex: 0 0 56px;
    }
    .how-arrow::after {
      content: "";
      position: absolute;
      right: -2px;
      top: 50%;
      width: 0;
      height: 0;
      border-top: 4px solid transparent;
      border-bottom: 4px solid transparent;
      border-left: 6px solid #8aa4bc;
      transform: translateY(-50%);
    }
    @keyframes how-arrow-move {
      to { background-position: 18px 0; }
    }

    .how-ico {
      width: 30px;
      height: 30px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      background: #f1f5f9;
      position: relative;
    }
    .how-ico-lg {
      width: 36px;
      height: 36px;
      background: #dceaf6;
    }
    .how-ico::before {
      content: "";
      width: 15px;
      height: 15px;
      background: currentColor;
      color: #475569;
      mask-size: contain;
      mask-repeat: no-repeat;
      mask-position: center;
      -webkit-mask-size: contain;
      -webkit-mask-repeat: no-repeat;
      -webkit-mask-position: center;
    }
    .how-ico-lg::before { width: 18px; height: 18px; color: #2f6ea3; }
    .how-ico[data-icon="user"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="orch"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M5 5l2 2M17 17l2 2M5 19l2-2M17 7l2-2'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="memory"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3a7 7 0 0 1 4 12.7V19a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-3.3A7 7 0 0 1 12 3z'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3a7 7 0 0 1 4 12.7V19a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-3.3A7 7 0 0 1 12 3z'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="chat"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="brief"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="image"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="search"]::before {
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    }
    .how-ico[data-icon="answer"]::before {
      color: #15803d;
      mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15l2 2 4-4'/%3E%3C/svg%3E");
      -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 15l2 2 4-4'/%3E%3C/svg%3E");
    }

    /* Right: phone screenshots */
    .how-ux-carousel {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      flex: 1;
      min-height: 0;
    }
    .how-ux-stage {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      min-width: 0;
      flex: 1;
    }
    .how-ux-carousel.has-arrows .how-ux-viewport {
      flex: 1;
      min-width: 0;
    }
    .how-ux-nav {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, box-shadow 0.15s ease;
      padding: 0;
    }
    .how-ux-nav:hover {
      background: var(--surface-2);
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    }
    .how-ux-nav svg {
      width: 16px;
      height: 16px;
    }
    .how-ux-viewport {
      overflow: hidden;
      border-radius: 14px;
      flex: 1;
      min-height: 480px;
      background: linear-gradient(165deg, #f8fafc, #f3f1ec);
      border: 1px solid var(--border);
    }
    .how-ux-track {
      display: flex;
      height: 100%;
      transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }
    .how-ux-slide {
      flex: 0 0 100%;
      width: 100%;
      padding: 0.9rem 0.85rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
      box-sizing: border-box;
    }
    .how-ux-caption {
      margin: 0;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.4;
      letter-spacing: -0.01em;
      min-height: 2.6em;
      text-align: center;
    }
    .how-ux-caption strong {
      color: #2f6ea3;
      font-weight: 700;
    }
    .how-phone {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 0;
    }
    .how-phone-frame {
      width: min(100%, 248px);
      aspect-ratio: 390 / 844;
      border-radius: 28px;
      border: 3px solid #1a1f2e;
      background: #111;
      box-shadow:
        0 0 0 1px rgba(255,255,255,0.08) inset,
        0 16px 40px rgba(15, 23, 42, 0.18);
      overflow: hidden;
      position: relative;
    }
    .how-phone-frame img,
    .how-phone-frame video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: center top;
      display: block;
      background: #fff;
    }
    .how-phone-frame video {
      object-fit: cover;
    }
    .how-ux-dots {
      display: flex;
      justify-content: center;
      gap: 0.4rem;
    }
    .how-ux-dot {
      width: 7px;
      height: 7px;
      border-radius: 999px;
      border: none;
      padding: 0;
      background: #cbd5e1;
      cursor: pointer;
      transition: width 0.25s ease, background 0.25s ease;
    }
    .how-ux-dot.is-active {
      width: 18px;
      background: #3b7ab8;
    }

    @media (max-width: 1100px) {
      .how-top-track,
      .how-top-split {
        grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.9fr);
        gap: 0.7rem;
      }
      .how-tools {
        flex-direction: column;
      }
      .how-arrow-long {
        width: 40px;
        flex-basis: 40px;
      }
    }
    @media (max-width: 960px) {
      .how-top-track,
      .how-top-split {
        grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.9fr);
      }
      .how-grid {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        max-width: 100%;
      }
      .how-panel {
        min-width: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
      }
      .how-panel-ux {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
      }
      .how-ux-carousel,
      .how-ux-viewport,
      .how-ux-slide {
        min-width: 0;
        max-width: 100%;
      }
      .how-ux-caption {
        max-width: 100%;
        overflow-wrap: anywhere;
        padding: 0 0.15rem;
      }
      .how-ux-viewport { min-height: 520px; }
      .how-phone-frame { width: min(100%, 260px); }
      .how-flow {
        min-height: 0;
        min-width: 0;
        max-width: 100%;
      }
    }
    @media (max-width: 720px) {
      .landing-how-it-works .landing-section-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        box-sizing: border-box;
        max-width: 100%;
      }
      .how-panel {
        padding: 0.9rem 0.85rem 1rem;
      }
      .how-ux-viewport { min-height: 480px; }
      .how-phone-frame { width: min(100%, 240px); }

      /* Skills / Shared tools: auto-swipe carousel */
      .how-top-carousel {
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
      }
      .how-top-viewport {
        overflow: hidden;
        border-radius: 16px;
      }
      .how-top-track {
        display: flex;
        gap: 0;
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
      }
      .how-top-slide {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
      }
      .how-top-dots {
        display: flex;
        justify-content: center;
        gap: 0.4rem;
      }
      .how-tools { flex-direction: column; }

      /* Match top carousel typography/scale to pipeline below */
      .how-top-slide {
        padding: 0.75rem 0.7rem 0.8rem;
      }
      .how-top-slide .how-band-head {
        margin-bottom: 0.3rem;
      }
      .how-top-slide .how-band-title {
        font-size: 0.62rem;
      }
      .how-top-slide .how-band-note {
        margin: 0 0 0.45rem;
        font-size: 0.56rem;
        line-height: 1.3;
      }
      .how-top-slide .how-skills-pill,
      .how-top-slide .how-tools-pill {
        font-size: 0.52rem;
        padding: 0.12rem 0.38rem;
      }
      .how-top-slide .how-skill-tags {
        gap: 0.3rem;
      }
      .how-top-slide .how-skill-tag {
        font-size: 0.6rem;
        padding: 0.28rem 0.5rem 0.28rem 0.3rem;
        gap: 0.28rem;
      }
      .how-top-slide .how-rank {
        width: 1rem;
        height: 1rem;
        font-size: 0.52rem;
      }
      .how-top-slide .how-tools {
        gap: 0.35rem;
      }
      .how-top-slide .how-card-tool {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.4rem;
        padding: 0.4rem 0.55rem;
      }
      .how-top-slide .how-card {
        gap: 0.4rem;
        padding: 0.55rem 0.6rem;
        border-radius: 10px;
      }
      .how-top-slide .how-card strong {
        font-size: 0.68rem;
      }
      .how-top-slide .how-card em {
        font-size: 0.56rem;
        line-height: 1.25;
      }
      .how-top-slide .how-ico {
        width: 26px;
        height: 26px;
        border-radius: 8px;
      }
      .how-top-slide .how-ico::before {
        width: 13px;
        height: 13px;
      }

      /* Keep pipeline horizontal to save vertical space */
      .how-band-main {
        flex-direction: row;
        align-items: stretch;
        gap: 0.35rem;
        padding: 1.35rem 0.55rem 0.85rem;
      }
      .how-band-main .how-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.35rem;
        padding: 0.65rem 0.4rem;
        min-width: 0;
      }
      .how-band-main .how-card strong {
        font-size: 0.68rem;
      }
      .how-band-main .how-card em {
        font-size: 0.56rem;
        line-height: 1.25;
      }
      .how-card-user,
      .how-card-orch,
      .how-card-answer {
        flex: 1 1 0;
      }
      .how-card-orch {
        padding: 0.75rem 0.4rem 0.65rem;
      }
      .how-card-orch strong { font-size: 0.72rem; }
      .how-node-badge {
        top: -9px;
        right: 4px;
        font-size: 0.52rem;
        padding: 0.1rem 0.32rem;
      }
      .how-band-main .how-ico {
        width: 26px;
        height: 26px;
        border-radius: 8px;
      }
      .how-band-main .how-ico-lg {
        width: 30px;
        height: 30px;
      }
      .how-band-main .how-ico::before {
        width: 13px;
        height: 13px;
      }
      .how-band-main .how-ico-lg::before {
        width: 15px;
        height: 15px;
      }
      .how-arrow,
      .how-arrow-long {
        width: 16px;
        flex: 0 0 16px;
        height: 2px;
        align-self: center;
        background: repeating-linear-gradient(
          90deg,
          #8aa4bc 0 3px,
          transparent 3px 7px
        );
        background-size: 14px 2px;
      }
      .how-arrow::after {
        right: -2px;
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-left: 5px solid #8aa4bc;
        border-right: 0;
      }

      /* Compact context row */
      .how-band-memory {
        padding: 0.85rem 0.7rem 0.95rem;
      }
      .how-band-body-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
      }
      .how-band-memory .how-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.3rem;
        padding: 0.55rem 0.35rem;
      }
      .how-band-memory .how-card strong {
        font-size: 0.62rem;
      }
      .how-band-memory .how-card em {
        font-size: 0.54rem;
      }
      .how-band-memory .how-ico {
        width: 26px;
        height: 26px;
      }
    }

    /* Landing product showcase — Create Agent / Prebuilt / Projects */
    .landing-create-agent {
      padding: 2rem 0 4rem;
    }
    .landing-create-agent .product-feature {
      padding-top: 2rem;
      padding-bottom: 2rem;
    }
    .landing-showcase {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
      width: 100%;
    }
    .landing-showcase-tabs {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding: 0 1.25rem;
    }
    .landing-showcase-tab {
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-secondary);
      border-radius: 999px;
      padding: 0.5rem 1rem;
      font-size: 0.88rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }
    @media (max-width: 720px) {
      .landing-showcase-tabs {
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0 0.85rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      .landing-showcase-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.45rem 0.35rem;
        font-size: 0.72rem;
        text-align: center;
        white-space: nowrap;
      }
    }
    .landing-showcase-tab:hover {
      border-color: #9eb8d4;
      color: var(--text);
    }
    .landing-showcase-tab.is-active {
      background: #3b7ab8;
      border-color: #3b7ab8;
      color: #fff;
    }
    .landing-showcase-tab:focus-visible {
      outline: 2px solid #3b7ab8;
      outline-offset: 2px;
    }
    .landing-showcase-viewport {
      overflow: hidden;
      width: 100%;
    }
    .landing-showcase-track {
      display: flex;
      width: 100%;
      transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
      align-items: flex-start;
    }
    .landing-showcase-slide {
      flex: 0 0 100%;
      width: 100%;
      min-width: 100%;
      box-sizing: border-box;
      padding: 0 1.25rem;
    }
    .landing-showcase-slide[aria-hidden="true"] {
      pointer-events: none;
    }
    .landing-showcase-slide .product-feature,
    .landing-showcase-slide .prebuilt-section {
      max-width: 1120px;
      margin: 0 auto;
    }
    .landing-showcase-slide .prebuilt-section {
      padding-top: 1.25rem;
      padding-bottom: 2rem;
    }
    /* Landing prebuilt mock: show ~3 rows, scroll for the rest */
    .landing-showcase-slide .prebuilt-browse-mock {
      height: auto;
    }
    .landing-showcase-slide .prebuilt-mock-scroll {
      --prebuilt-mock-card-h: 7.1rem;
      --prebuilt-mock-gap: 0.75rem;
      flex: 0 1 auto;
      max-height: calc(
        (3 * var(--prebuilt-mock-card-h)) + (2 * var(--prebuilt-mock-gap))
      );
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: #b7c4d2 transparent;
    }
    .landing-showcase-slide .prebuilt-mock-scroll::-webkit-scrollbar {
      width: 6px;
    }
    .landing-showcase-slide .prebuilt-mock-scroll::-webkit-scrollbar-thumb {
      background: #b7c4d2;
      border-radius: 999px;
    }
    .landing-showcase-slide .prebuilt-mock-card {
      min-height: var(--prebuilt-mock-card-h, 7.1rem);
      box-sizing: border-box;
    }

    /* FAQ accordion */
    .landing-faq {
      padding: 2rem 0 1rem;
    }
    .landing-faq-header {
      text-align: center;
      margin-bottom: 2rem;
    }
    .landing-faq-header h2 {
      font-size: clamp(1.6rem, 2.5vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 0.4rem;
    }
    .landing-faq-header p {
      color: var(--muted);
      font-size: 1rem;
    }
    .faq-list {
      max-width: 760px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
    .faq-item {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
    }
    .faq-trigger {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.15rem 1.25rem;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      text-align: left;
      color: var(--text);
      font-size: 1rem;
      font-weight: 600;
    }
    .faq-trigger:hover { background: rgba(26, 31, 46, 0.02); }
    .faq-icon {
      flex-shrink: 0;
      width: 22px;
      height: 22px;
      position: relative;
      color: var(--muted);
    }
    .faq-icon::before,
    .faq-icon::after {
      content: "";
      position: absolute;
      background: currentColor;
      border-radius: 1px;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .faq-icon::before {
      width: 12px;
      height: 1.5px;
    }
    .faq-icon::after {
      width: 1.5px;
      height: 12px;
      transition: transform 0.15s ease, opacity 0.15s ease;
    }
    .faq-item.open .faq-icon::after {
      transform: translate(-50%, -50%) scaleY(0);
      opacity: 0;
    }
    .faq-item.open .faq-icon {
      /* becomes × via rotated plus — hide vertical only */
    }
    .faq-panel {
      display: none;
      padding: 0 1.25rem 1.2rem;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.6;
    }
    .faq-item.open .faq-panel { display: block; }

    /* Product — prebuilt agents browse mock */
    .prebuilt-section {
      max-width: 1040px;
      margin: 0 auto;
      padding: 3rem 2rem 4rem;
      scroll-margin-top: calc(var(--header-height) + 1rem);
    }
    .prebuilt-section-header {
      margin-bottom: 1.75rem;
      max-width: 560px;
    }
    .prebuilt-browse-mock {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
      display: grid;
      grid-template-columns: 220px 1fr;
      height: min(560px, 70vh);
    }
    .prebuilt-browse-mock.is-sparse {
      height: auto;
      min-height: 0;
    }
    .prebuilt-browse-mock.is-sparse .prebuilt-mock-main {
      min-height: 0;
    }
    .prebuilt-browse-mock.is-sparse .prebuilt-mock-scroll {
      overflow: visible;
      flex: 0 1 auto;
    }
    .prebuilt-mock-sidebar {
      background: var(--collab-sidebar-bg, #faf7f2);
      border-right: 1px solid var(--border);
      padding: 1.15rem 0.85rem;
      overflow-y: auto;
    }
    .prebuilt-mock-sidebar h4 {
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted);
      margin: 0 0.35rem 0.85rem;
    }
    .prebuilt-mock-filters {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
    }
    .prebuilt-mock-filter {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      width: 100%;
      text-align: left;
      padding: 0.55rem 0.7rem;
      border: none;
      background: transparent;
      border-radius: 8px;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-secondary);
      font-family: inherit;
      cursor: pointer;
    }
    .prebuilt-mock-filter:hover {
      background: rgba(255, 255, 255, 0.7);
      color: var(--text);
    }
    .prebuilt-mock-filter.is-active {
      background: #fff;
      color: var(--text);
      font-weight: 600;
      box-shadow: var(--shadow-sm);
    }
    .prebuilt-mock-filter-count {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
    }
    .prebuilt-mock-filter.is-active .prebuilt-mock-filter-count {
      color: var(--text-secondary);
    }
    .prebuilt-mock-main {
      padding: 1.15rem 1.25rem 1.25rem;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }
    .prebuilt-mock-toolbar {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 0.75rem;
      flex-shrink: 0;
    }
    .prebuilt-mock-search {
      flex: 1;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0.65rem 0.9rem;
      font-size: 0.88rem;
      color: var(--text);
      background: #fff;
      font-family: inherit;
    }
    .prebuilt-mock-search::placeholder { color: var(--muted); }
    .prebuilt-mock-search:focus {
      outline: none;
      border-color: var(--pastel-blue-deep);
      box-shadow: 0 0 0 3px rgba(126, 184, 224, 0.2);
    }
    .prebuilt-mock-count {
      font-size: 0.8rem;
      color: var(--muted);
      flex-shrink: 0;
    }
    .prebuilt-mock-scroll {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      padding-right: 0.15rem;
      scrollbar-width: thin;
    }
    .prebuilt-mock-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
      align-content: start;
    }
    .prebuilt-mock-card {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1rem;
      background: #fff;
      width: 100%;
      min-width: 0;
      box-sizing: border-box;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .prebuilt-mock-card:hover {
      border-color: var(--pastel-blue);
      box-shadow: var(--shadow-sm);
    }
    .prebuilt-mock-card-top {
      display: flex;
      gap: 0.65rem;
      align-items: flex-start;
      margin-bottom: 0.55rem;
    }
    .prebuilt-mock-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--pastel-blue-light);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .prebuilt-mock-card h5 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.15rem;
    }
    .prebuilt-mock-card .role {
      font-size: 0.78rem;
      color: var(--muted);
    }
    .prebuilt-mock-card p {
      font-size: 0.8rem;
      color: var(--text-secondary);
      line-height: 1.45;
    }
    .prebuilt-mock-empty {
      grid-column: 1 / -1;
      text-align: center;
      padding: 2.5rem 1rem;
      color: var(--muted);
      font-size: 0.9rem;
    }
    .landing-hero-inner {
      max-width: 1140px;
      margin: 0 auto;
      width: 100%;
      display: grid;
      grid-template-columns: minmax(320px, 420px) 1fr;
      gap: 4rem;
      align-items: center;
    }
    .landing-hero-left {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
    }
    .landing-headline {
      font-size: clamp(2.5rem, 4vw, 3.5rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.12;
    }
    .landing-headline-link {
      color: inherit;
      text-decoration: none;
      cursor: pointer;
    }
    .landing-headline-link:hover {
      opacity: 0.82;
    }
    .landing-headline-link:focus-visible {
      outline: 2px solid #3b7ab8;
      outline-offset: 4px;
      border-radius: 4px;
    }
    .landing-subhead {
      font-size: 1.05rem;
      color: var(--muted);
      line-height: 1.6;
      max-width: 380px;
    }

    .auth-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      overflow: hidden;
      max-width: 380px;
    }
    .auth-card-banner {
      background: var(--pastel-blue-light);
      color: #3b7ab8;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.6rem 1.25rem;
      text-align: center;
    }
    .auth-card form { padding: 1.25rem 1.25rem 0.5rem; }
    .form-group { margin-bottom: 0.65rem; }
    .form-group input {
      width: 100%;
      padding: 0.8rem 1rem;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: #fff;
      font-size: 0.95rem;
      font-family: inherit;
      color: var(--text);
    }
    .form-group input:focus {
      outline: none;
      border-color: var(--pastel-blue-deep);
      box-shadow: 0 0 0 3px rgba(126, 184, 224, 0.25);
    }
    .auth-card-footer {
      text-align: center;
      font-size: 0.85rem;
      color: var(--muted);
      padding: 0 1.25rem 0.75rem;
    }
    .auth-link-btn {
      background: none;
      border: none;
      color: var(--link-accent);
      font-weight: 600;
      font-size: inherit;
      cursor: pointer;
      padding: 0;
    }
    .auth-card-legal {
      font-size: 0.72rem;
      color: var(--muted);
      text-align: center;
      padding: 0 1.25rem 1.1rem;
      line-height: 1.45;
    }

    .landing-hero-media { display: flex; justify-content: center; }
    .hero-media-frame {
      width: min(100%, 420px);
      aspect-ratio: 1;
      border-radius: 28px;
      overflow: hidden;
      position: relative;
      background: linear-gradient(145deg, #eef6fc 0%, #f7f4ef 55%, #fff8e8 100%);
      border: 1px solid rgba(232, 237, 242, 0.9);
    }
    .hero-media-visual {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-agent-core {
      width: 72px;
      height: auto;
      z-index: 2;
      filter: drop-shadow(0 8px 20px rgba(126, 184, 224, 0.35));
    }
    .hero-agent-node {
      position: absolute;
      z-index: 2;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 0.4rem 0.85rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-secondary);
      box-shadow: var(--shadow-sm);
    }
    .hero-agent-node-1 { top: 18%; left: 12%; }
    .hero-agent-node-2 { top: 16%; right: 10%; }
    .hero-agent-node-3 { bottom: 28%; right: 12%; }
    .hero-agent-node-4 { bottom: 24%; left: 10%; }
    .hero-agent-lines {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }
    .hero-agent-lines line {
      stroke: var(--pastel-blue-deep);
      stroke-width: 1.5;
      stroke-dasharray: 4 4;
      opacity: 0.55;
    }

    /* Inner pages — visibility controlled by production .hidden */
    .page-section {
      min-height: calc(100vh - var(--header-height));
      padding: 3.5rem 2rem 5rem;
    }
    .page-section.hidden { display: none !important; }
    .page-inner {
      max-width: 960px;
      margin: 0 auto;
    }
    .page-inner.solution-wide {
      max-width: 1100px;
    }
    .page-eyebrow {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--link-accent);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 0.75rem;
    }
    .page-section h1 {
      font-size: clamp(2rem, 3.5vw, 2.75rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 0.75rem;
    }
    .page-lead {
      font-size: 1.05rem;
      color: var(--muted);
      max-width: 720px;
      margin-bottom: 1.75rem;
    }
    .placeholder-note {
      background: #fff;
      border: 1px dashed var(--border-strong, #d1dce6);
      border-radius: 14px;
      padding: 1.5rem 1.75rem;
      color: var(--text-secondary);
      font-size: 0.95rem;
      max-width: 640px;
    }
    .placeholder-note strong { color: var(--text); }

    /* Solutions comparison template */
    .solution-compare-intro {
      font-size: 1rem;
      color: var(--muted);
      line-height: 1.55;
      max-width: 720px;
      margin-bottom: 1.25rem;
    }
    .solution-prompt {
      display: flex;
      align-items: flex-start;
      gap: 0.85rem;
      background: var(--text);
      color: #fff;
      border-radius: 14px;
      padding: 1rem 1.15rem;
      margin-bottom: 1.5rem;
    }
    .solution-prompt-badge {
      flex-shrink: 0;
      font-size: 0.68rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      padding: 0.3rem 0.55rem;
      border-radius: var(--radius-pill);
      background: rgba(255,255,255,0.14);
    }
    .solution-prompt-text {
      flex: 1;
      font-size: 0.92rem;
      line-height: 1.5;
      font-style: italic;
      min-width: 0;
    }
    .solution-side-switch {
      display: none;
    }
    .solution-compare-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 1rem;
      align-items: start;
      margin-bottom: 1.25rem;
    }
    .solution-col {
      min-width: 0;
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    .solution-col-head {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      min-height: 40px;
      margin-bottom: 0.75rem;
      flex-wrap: wrap;
    }
    .solution-brand-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: var(--text);
      color: #fff;
      border: none;
      border-radius: var(--radius-pill);
      padding: 0.45rem 0.9rem;
      font-size: 0.85rem;
      font-weight: 700;
      font-family: inherit;
    }
    .solution-model-switch {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      min-width: 0;
    }
    .solution-model-btn {
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text-secondary);
      border-radius: var(--radius-pill);
      padding: 0.4rem 0.75rem;
      font-size: 0.82rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .solution-model-btn .dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #cbd5e1;
    }
    .solution-model-btn[data-model="claude"] .dot { background: #ef4444; }
    .solution-model-btn[data-model="chatgpt"] .dot { background: #22c55e; }
    .solution-model-btn[data-model="grok"] .dot { background: #94a3b8; }
    .solution-model-btn[data-model="deepseek"] .dot { background: #3b82f6; }
    .solution-model-btn.is-active {
      background: var(--text);
      color: #fff;
      border-color: var(--text);
    }
    .solution-output-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      width: 100%;
      min-width: 0;
      height: 520px;
      max-height: 520px;
      overflow: hidden;
      box-sizing: border-box;
    }
    .solution-agent-meta {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 1rem 1.1rem 0.75rem;
      flex-shrink: 0;
      border-bottom: 1px solid var(--border);
      min-width: 0;
    }
    .solution-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--pastel-blue-light);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 0.9rem;
      flex-shrink: 0;
    }
    .solution-avatar.generic { background: #f1f5f9; }
    .solution-agent-meta strong {
      display: block;
      font-size: 0.95rem;
    }
    .solution-agent-meta span {
      font-size: 0.78rem;
      color: var(--muted);
    }
    .solution-output-scroll {
      flex: 1 1 auto;
      min-width: 0;
      min-height: 0;
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 1rem 1.1rem 1.15rem;
      font-size: 0.82rem;
      line-height: 1.55;
      color: var(--text-secondary);
      scrollbar-width: thin;
      scrollbar-gutter: stable;
    }
    .solution-output-scroll.md-body > *:first-child { margin-top: 0; }
    .solution-output-scroll.md-body > *:last-child { margin-bottom: 0; }
    .solution-output-scroll.md-body h1,
    .solution-output-scroll.md-body h2,
    .solution-output-scroll.md-body h3,
    .solution-output-scroll.md-body h4 {
      color: var(--text);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.3;
      margin: 1rem 0 0.45rem;
    }
    .solution-output-scroll.md-body h1 { font-size: 1.02rem; }
    .solution-output-scroll.md-body h2 { font-size: 0.95rem; }
    .solution-output-scroll.md-body h3 { font-size: 0.9rem; }
    .solution-output-scroll.md-body h4 { font-size: 0.86rem; }
    .solution-output-scroll.md-body p { margin: 0 0 0.65rem; }
    .solution-output-scroll.md-body ul,
    .solution-output-scroll.md-body ol {
      margin: 0 0 0.65rem;
      padding-left: 1.15rem;
    }
    .solution-output-scroll.md-body li { margin-bottom: 0.28rem; }
    .solution-output-scroll.md-body strong { color: var(--text); font-weight: 650; }
    .solution-output-scroll.md-body a { color: var(--link-accent); }
    .solution-output-scroll.md-body hr {
      border: none;
      border-top: 1px solid var(--border);
      margin: 0.85rem 0;
    }
    .solution-output-scroll.md-body blockquote {
      margin: 0.65rem 0;
      padding: 0.5rem 0.75rem;
      border-left: 3px solid var(--pastel-blue-deep);
      background: #f8fafc;
    }
    .solution-output-scroll.md-body .md-table-wrap {
      display: block;
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      overscroll-behavior-x: contain;
      margin: 0.65rem 0 0.85rem;
      border: 1px solid var(--border);
      border-radius: 10px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }
    .solution-output-scroll.md-body table {
      width: max-content;
      min-width: 100%;
      max-width: none;
      border-collapse: collapse;
      font-size: 0.74rem;
      line-height: 1.4;
    }
    .solution-output-scroll.md-body th,
    .solution-output-scroll.md-body td {
      padding: 0.55rem 0.7rem;
      border-bottom: 1px solid var(--border);
      text-align: left;
      vertical-align: top;
      font-size: 0.74rem;
      line-height: 1.4;
      font-weight: 400;
    }
    .solution-output-scroll.md-body th {
      background: #f8fafc;
      color: var(--text);
      font-weight: 650;
      white-space: nowrap;
    }
    /* Keep nested markdown (strong, code, headings, etc.) at the same small size */
    .solution-output-scroll.md-body th *,
    .solution-output-scroll.md-body td * {
      font-size: inherit;
      line-height: inherit;
    }
    .solution-output-scroll.md-body th strong,
    .solution-output-scroll.md-body td strong {
      font-weight: 600;
      color: var(--text);
    }
    .solution-output-scroll.md-body table h1,
    .solution-output-scroll.md-body table h2,
    .solution-output-scroll.md-body table h3,
    .solution-output-scroll.md-body table h4,
    .solution-output-scroll.md-body table p {
      font-size: inherit;
      font-weight: inherit;
      margin: 0;
      letter-spacing: normal;
    }
    .solution-output-scroll.md-body tr:last-child td { border-bottom: none; }
    .solution-output-scroll.md-body pre {
      margin: 0.75rem 0;
      padding: 0.75rem 0.85rem;
      background: #f8fafc;
      border: 1px solid var(--border);
      border-radius: 10px;
      max-width: 100%;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      -webkit-overflow-scrolling: touch;
      font-size: 0.78rem;
      line-height: 1.45;
      scrollbar-width: thin;
    }
    .solution-output-scroll.md-body code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.84em;
    }
    .solution-output-scroll.md-body :not(pre) > code {
      background: #f1f5f9;
      padding: 0.1rem 0.35rem;
      border-radius: 4px;
    }
    .solution-callout {
      border-radius: 10px;
      padding: 0.7rem 0.85rem;
      margin: 0.75rem 0;
      font-size: 0.86rem;
      line-height: 1.5;
    }
    .solution-callout.green { background: #f0fdf4; color: #166534; }
    .solution-callout.yellow { background: #fffbeb; color: #92400e; }
    .solution-callout.gray { background: #f8fafc; color: #475569; }
    .solution-specialists {
      margin-top: 1rem;
      padding: 0.65rem 0.8rem;
      background: #f8fafc;
      border-radius: 10px;
      font-size: 0.78rem;
      color: var(--muted);
    }
    .solution-specialists strong {
      color: var(--text-secondary);
      font-weight: 600;
    }
    .solution-excel-note {
      font-size: 0.82rem;
      color: var(--muted);
      margin: 0 0 1.5rem;
      font-style: italic;
    }
    .solution-coming-soon {
      display: none;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: var(--shadow-sm);
      padding: 3.5rem 2rem;
      text-align: center;
      margin-bottom: 1.5rem;
    }
    .solution-coming-soon.is-visible { display: block; }
    .solution-coming-soon-label {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--link-accent);
      margin-bottom: 0.75rem;
    }
    .solution-coming-soon h2 {
      font-size: clamp(1.5rem, 2.5vw, 1.85rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      color: var(--text);
      margin-bottom: 0.55rem;
    }
    .solution-coming-soon p {
      color: var(--muted);
      font-size: 0.95rem;
      max-width: 420px;
      margin: 0 auto;
      line-height: 1.5;
    }
    .solution-output-empty {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100%;
      text-align: center;
      padding: 2rem 1rem;
      color: var(--muted);
    }
    .solution-output-empty strong {
      display: block;
      color: var(--text);
      font-size: 1.05rem;
      margin-bottom: 0.35rem;
    }
    .solution-output-empty p {
      margin: 0;
      font-size: 0.86rem;
    }
    .solution-live-content.is-hidden { display: none; }
    .solution-metrics {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 14px;
      overflow: hidden;
    }
    .solution-metrics-head,
    .solution-metric-row {
      display: grid;
      grid-template-columns: minmax(160px, 1.1fr) 1fr 1fr;
      gap: 1rem;
      align-items: start;
      padding: 0.9rem 1.15rem;
    }
    .solution-metrics-head {
      background: #faf7f2;
      border-bottom: 1px solid var(--border);
    }
    .solution-metrics-head span {
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .solution-metric-row {
      border-bottom: 1px solid var(--border);
    }
    .solution-metric-row:last-child { border-bottom: none; }
    .solution-metric-label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--muted);
      line-height: 1.35;
      padding-top: 0.15rem;
    }
    .solution-metric-value {
      font-size: 0.9rem;
      color: var(--text);
      line-height: 1.4;
    }
    .solution-metric-value.good { color: #15803d; }
    .solution-metric-value.bad { color: #b91c1c; }
    .solution-metric-value.muted { color: var(--muted); }

    @media (max-width: 900px) {
      .solution-side-switch {
        display: flex;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 0.85rem;
      }
      .solution-side-switch .solution-model-btn[data-side="minion"] {
        background: var(--text);
        color: #fff;
        border-color: var(--text);
      }
      .solution-side-switch .solution-model-btn[data-side="minion"]:not(.is-active) {
        background: #fff;
        color: var(--text);
        border-color: var(--border);
      }
      .solution-compare-grid {
        grid-template-columns: minmax(0, 1fr);
      }
      .solution-compare-grid .solution-col-head {
        display: none;
      }
      .solution-compare-grid[data-active-side="minion"] .solution-col[data-side="other"],
      .solution-compare-grid:not([data-active-side="minion"]) .solution-col[data-side="minion"] {
        display: none;
      }
      .solution-prompt {
        flex-direction: column;
        gap: 0.65rem;
      }
      .solution-output-card {
        height: min(72vh, 640px);
        max-height: min(72vh, 640px);
        min-height: 520px;
      }
      .solution-metrics-head,
      .solution-metric-row {
        grid-template-columns: minmax(90px, 0.9fr) 1fr 1fr;
        gap: 0.5rem;
        padding: 0.75rem 0.85rem;
      }
      .solution-metrics-head span:first-child { display: block; }
      .solution-metric-label { font-size: 0.68rem; }
      .solution-metric-value { font-size: 0.8rem; }
    }

    /* Pricing */
    .plans-header { text-align: center; margin-bottom: 2rem; }
    .plans-header h1 { margin-bottom: 0.5rem; }
    .plans-subtitle {
      color: var(--muted);
      max-width: 520px;
      margin: 0 auto;
      font-size: 0.98rem;
    }
    .plans-billing-toggle {
      display: flex;
      width: fit-content;
      margin: 0 auto 2rem;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 0.25rem;
      gap: 0.15rem;
    }
    .plans-billing-tab {
      border: none;
      background: transparent;
      padding: 0.55rem 1.25rem;
      border-radius: var(--radius-pill);
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--muted);
      cursor: pointer;
    }
    .plans-billing-tab.is-active {
      background: var(--text);
      color: #fff;
    }
    .plans-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1rem;
      max-width: 1040px;
      margin: 0 auto;
    }
    .plan-card {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 1.5rem 1.25rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      box-shadow: var(--shadow-sm);
    }
    .plan-card:hover {
      border-color: var(--pastel-blue);
      box-shadow: var(--shadow-md);
    }
    .plan-card h3 {
      font-size: 1.1rem;
      font-weight: 700;
    }
    .plan-price {
      font-size: 2rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1;
    }
    .plan-price span {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--muted);
    }
    .plan-desc {
      font-size: 0.85rem;
      color: var(--muted);
      flex: 1;
      line-height: 1.45;
    }
    .plan-badge {
      display: inline-block;
      font-size: 0.7rem;
      font-weight: 700;
      color: #3b7ab8;
      background: var(--pastel-blue-light);
      padding: 0.2rem 0.55rem;
      border-radius: var(--radius-pill);
      width: fit-content;
    }
    .plans-topup-note {
      text-align: center;
      font-size: 0.85rem;
      color: var(--muted);
      max-width: 640px;
      margin: 1.75rem auto 0;
    }

    /* Product page — full scroll experience */
    .product-page {
      background: var(--landing-bg);
      padding: 0 0 5rem;
    }
    .product-hero {
      max-width: 720px;
      margin: 0 auto;
      padding: 4rem 2rem 3rem;
      text-align: center;
    }
    .product-hero h1 {
      font-size: clamp(2.25rem, 4vw, 3.25rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.12;
      margin-bottom: 1rem;
    }
    .product-hero .page-lead {
      margin: 0 auto 1.75rem;
      max-width: 520px;
    }
    .product-toc {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
    }
    .product-toc a {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 0.45rem 0.95rem;
    }
    .product-toc a:hover {
      color: var(--text);
      border-color: var(--pastel-blue-deep);
      opacity: 1;
    }
    .product-feature {
      max-width: 1040px;
      margin: 0 auto;
      padding: 3.5rem 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.5rem;
      align-items: center;
      scroll-margin-top: calc(var(--header-height) + 1rem);
    }
    /* Keep copy + product frame side-by-side */
    #feature-create-agent,
    #landing-create-agent {
      grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
      column-gap: 4rem;
      max-width: 1140px;
      align-items: center;
    }
    #feature-create-agent .product-feature-copy,
    #landing-create-agent .product-feature-copy {
      max-width: 340px;
      min-width: 240px;
      align-self: center;
    }
    .product-feature.reverse .product-feature-copy { order: 2; }
    .product-feature.reverse .product-feature-visual { order: 1; }
    .product-feature-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--link-accent);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      margin-bottom: 0.65rem;
    }
    .product-feature h2 {
      font-size: clamp(1.6rem, 2.5vw, 2.1rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.2;
      margin-bottom: 0.85rem;
    }
    .product-feature p {
      font-size: 1.02rem;
      color: var(--muted);
      line-height: 1.65;
      max-width: 420px;
    }
    .product-feature-visual {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 1.5rem;
      box-shadow: var(--shadow-md);
      min-height: 220px;
    }
    .product-feature-visual.tone-blue {
      background: linear-gradient(160deg, #eef6fc 0%, #fff 55%);
    }
    .product-feature-visual.tone-yellow {
      background: linear-gradient(160deg, #fff8e8 0%, #fff 55%);
    }
    .product-feature-visual.is-phone-demo {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      min-height: 0;
      width: 100%;
      max-width: 420px;
      justify-self: center;
    }
    #feature-create-projects {
      align-items: center;
    }
    #feature-create-projects .how-ux-viewport {
      min-height: 520px;
      background: linear-gradient(165deg, #fff8e8, #f7f4ef);
    }
    #feature-create-projects .how-phone-frame {
      width: min(100%, 248px);
    }
    .product-feature-visual.is-carousel {
      background: transparent;
      border: none;
      box-shadow: none;
      padding: 0;
      min-height: 0;
      width: 100%;
      max-width: 560px;
      justify-self: end;
      align-self: center;
    }

    /* Create Agent wizard carousel — identical card shape on every step */
    .wizard-carousel {
      --wizard-card-w: 420px;
      --wizard-card-h: 520px;
      --wizard-card-radius: 28px;
      position: relative;
      display: flex;
      align-items: center;
      gap: 0.65rem;
      width: 100%;
      max-width: calc(var(--wizard-card-w) + 5.5rem);
    }
    .wizard-carousel-btn {
      flex-shrink: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: #fff;
      color: var(--text);
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s ease, box-shadow 0.15s ease;
      z-index: 2;
      /* Center arrows on the white card, not the full shell */
      margin-top: 2.6rem;
      margin-bottom: 3.6rem;
    }
    .wizard-carousel-btn:hover {
      background: var(--surface-2);
      box-shadow: var(--shadow-md);
    }
    .wizard-carousel-btn svg {
      width: 16px;
      height: 16px;
    }
    .wizard-carousel-viewport {
      width: var(--wizard-card-w);
      max-width: calc(100vw - 7rem);
      overflow: hidden;
      flex-shrink: 0;
    }
    .wizard-carousel-track {
      display: flex;
      align-items: flex-start;
      transition: transform 0.4s ease;
      will-change: transform;
    }
    .wizard-slide {
      flex: 0 0 100%;
      width: 100%;
      min-width: 100%;
      box-sizing: border-box;
      padding: 0.1rem 0;
    }
    /* Identical shell geometry for every step */
    .wizard-demo-shell {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    .wizard-demo-top {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      height: 36px;
      margin-bottom: 0.9rem;
      padding: 0 0.1rem;
      flex-shrink: 0;
    }
    .wizard-demo-back {
      width: 36px;
      height: 36px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: #fff;
      color: var(--text-secondary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .wizard-demo-back.is-hidden {
      visibility: hidden;
    }
    .wizard-demo-progress {
      flex: 1;
      height: 6px;
      background: #eef2f6;
      border-radius: var(--radius-pill);
      overflow: hidden;
    }
    .wizard-demo-progress > span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, var(--pastel-blue-deep), var(--pastel-yellow-deep));
      border-radius: var(--radius-pill);
    }
    /* Fixed card shape — same on all 5 steps */
    .wizard-demo-card {
      width: 100%;
      height: var(--wizard-card-h);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--wizard-card-radius);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
      padding: 1.75rem 1.6rem 1.5rem;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .wizard-demo-title {
      font-size: 1.35rem;
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.25;
      margin-bottom: 0.35rem;
      color: var(--text);
      flex-shrink: 0;
    }
    .wizard-demo-sub {
      font-size: 0.92rem;
      color: var(--muted);
      margin-bottom: 1.15rem;
      line-height: 1.5;
      flex-shrink: 0;
    }
    .wizard-demo-body {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      scrollbar-width: thin;
    }
    .wizard-demo-body.is-name {
      justify-content: flex-end;
      overflow: hidden;
    }
    .wizard-demo-label {
      display: block;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--text-secondary);
      margin-bottom: 0.45rem;
    }
    .wizard-demo-input {
      width: 100%;
      padding: 0.8rem 1rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 0.95rem;
      font-family: inherit;
      color: var(--text);
      background: #fff;
    }
    .wizard-demo-bubbles {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-content: flex-start;
    }
    .wizard-demo-bubble {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.6rem 0.85rem;
      border: 1.5px solid var(--border);
      border-radius: var(--radius-pill);
      font-size: 0.84rem;
      font-weight: 500;
      color: var(--text-secondary);
      background: #fff;
      white-space: nowrap;
    }
    .wizard-demo-bubble.selected {
      border-color: var(--pastel-blue-deep);
      background: var(--pastel-blue-light);
      color: var(--text);
      box-shadow: 0 0 0 1px rgba(126, 184, 224, 0.2);
    }
    .wizard-demo-bubble .check {
      color: var(--pastel-blue-deep);
      font-weight: 700;
      font-size: 0.8rem;
      margin-left: 0.1rem;
    }
    .wizard-demo-custom {
      margin-top: auto;
      padding-top: 1rem;
      flex-shrink: 0;
    }
    .wizard-demo-custom-row {
      display: flex;
      gap: 0.5rem;
    }
    .wizard-demo-custom-row input {
      flex: 1;
      padding: 0.6rem 0.8rem;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 0.86rem;
      font-family: inherit;
      color: var(--muted);
      background: #fff;
    }
    .wizard-demo-custom-row button {
      border: 1px solid var(--border);
      background: #fff;
      border-radius: 12px;
      padding: 0.6rem 0.9rem;
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--text-secondary);
      cursor: default;
    }
    .wizard-demo-footer {
      margin-top: 1rem;
      height: 48px;
      flex-shrink: 0;
    }
    .wizard-demo-next {
      width: 100%;
      height: 100%;
      background: var(--text);
      color: #fff;
      border: none;
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 0.95rem;
      cursor: default;
      box-shadow: var(--shadow-sm);
    }
    .wizard-carousel-dots {
      display: flex;
      justify-content: center;
      gap: 0.4rem;
      margin-top: 0.85rem;
    }
    .wizard-carousel-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #d1dce6;
      border: none;
      padding: 0;
      cursor: pointer;
    }
    .wizard-carousel-dot.is-active {
      background: var(--text);
      width: 18px;
      border-radius: var(--radius-pill);
    }
    .product-mock-label {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }
    .product-mock-chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
    }
    .product-mock-chip {
      background: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-pill);
      padding: 0.4rem 0.8rem;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-secondary);
    }
    .product-mock-steps {
      display: flex;
      flex-direction: column;
      gap: 0.55rem;
    }
    .product-mock-step {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text-secondary);
    }
    .product-mock-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--pastel-blue-deep);
      flex-shrink: 0;
    }
    .product-mock-memory {
      display: flex;
      flex-direction: column;
      gap: 0.65rem;
    }
    .product-mock-memory-item {
      background: rgba(255,255,255,0.85);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 0.75rem 0.95rem;
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.4;
    }
    .product-mock-memory-item strong {
      display: block;
      color: var(--text);
      font-size: 0.8rem;
      margin-bottom: 0.2rem;
    }
    .product-cta {
      max-width: 640px;
      margin: 2rem auto 0;
      padding: 2.5rem 2rem;
      text-align: center;
    }
    .product-cta h2 {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      margin-bottom: 0.65rem;
    }
    .product-cta p {
      color: var(--muted);
      margin-bottom: 1.25rem;
    }
    .product-cta .btn-pastel {
      margin-left: 0;
      padding: 0.75rem 1.5rem;
      font-size: 0.95rem;
    }

    @media (max-width: 960px) {
      .landing-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
      }
      /* Mobile: drop hero graphic so headline + sign-up sit at the top */
      .landing-hero-media { display: none; }
      .plans-grid { grid-template-columns: repeat(2, 1fr); }
      .highlight-grid { grid-template-columns: repeat(2, 1fr); }
      .prebuilt-browse-mock {
        grid-template-columns: 1fr;
        height: min(640px, 75vh);
      }
      .prebuilt-browse-mock.is-sparse {
        height: auto;
      }
      .prebuilt-mock-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 160px;
      }
      .prebuilt-mock-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
      }
      .prebuilt-mock-filter {
        width: auto;
      }
      .prebuilt-mock-grid {
        grid-template-columns: 1fr;
      }
      .product-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding: 2.5rem 1.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
      }
      /* Stack Create Agent; keep the original compact card shape, centered */
      #feature-create-agent,
      #landing-create-agent {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        justify-items: center;
        column-gap: 0;
        row-gap: 1.5rem;
        max-width: 100%;
      }
      #feature-create-agent .product-feature-copy,
      #landing-create-agent .product-feature-copy {
        max-width: none;
        min-width: 0;
        width: 100%;
        justify-self: stretch;
      }
      #feature-create-agent .product-feature-visual.is-carousel,
      #landing-create-agent .product-feature-visual.is-carousel,
      #feature-create-projects .product-feature-visual.is-phone-demo {
        justify-self: center;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        margin-inline: auto;
      }
      #feature-create-projects .how-ux-viewport {
        min-height: 480px;
      }
      .product-feature.reverse .product-feature-copy,
      .product-feature.reverse .product-feature-visual { order: unset; }
      .wizard-carousel {
        --wizard-card-w: min(340px, calc(100vw - 7rem));
        --wizard-card-h: 460px;
        --wizard-card-radius: 24px;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        margin-inline: auto;
        box-sizing: border-box;
      }
      .wizard-carousel-btn {
        position: static;
        transform: none;
        margin: 0;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
      }
      .wizard-carousel-viewport {
        width: var(--wizard-card-w);
        max-width: min(var(--wizard-card-w), calc(100vw - 7rem));
        min-width: 0;
        flex: 0 0 auto;
      }
      .wizard-demo-card {
        padding: 1.35rem 1.25rem 1.25rem;
      }
      .wizard-demo-title { font-size: 1.2rem; }
      .wizard-demo-bubble {
        padding: 0.55rem 0.8rem;
        font-size: 0.8rem;
      }
    }

    @media (max-width: 720px) {
      .nav-mobile-toggle { display: inline-flex; }
      .nav-mobile-panel { display: none; }
      .nav-right.mobile-open .nav-mobile-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 0.75rem 1rem;
        gap: 0.5rem;
        margin: 0;
        box-shadow: var(--shadow-md);
        z-index: 5;
        box-sizing: border-box;
      }
      .nav-right.mobile-open .nav-tabs {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.25rem;
        margin: 0;
      }
      .nav-right.mobile-open .nav-auth-desktop {
        display: flex;
        position: static;
        background: transparent;
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: none;
        padding: 0.85rem 0.25rem 0.15rem;
        gap: 0.5rem;
        justify-content: flex-end;
        margin-top: 0.25rem;
      }
      .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
      }
      .mega-menu.open { display: block; }
      .mega-menu-inner { padding: 0.35rem 0.5rem 0.5rem 0.85rem; }
      .mega-col-title { margin-bottom: 0.55rem; font-size: 0.78rem; }
      .mega-links { grid-template-columns: 1fr; row-gap: 0.4rem; }
      .plans-grid { grid-template-columns: 1fr; }
      .nav-shell .site-header { padding: 0 1rem; }
      .landing-hero { padding: 2rem 1.25rem 3rem; }
      .landing-highlights .landing-section-inner {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
      }
      .highlight-carousel {
        display: flex;
        align-items: center;
        gap: 0.35rem;
      }
      .highlight-carousel-viewport {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
      }
      .highlight-grid,
      .highlight-carousel-track {
        display: flex;
        gap: 0;
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
      }
      .highlight-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 0;
      }
      .highlight-carousel-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: #fff;
        color: var(--text);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        padding: 0;
      }
      .highlight-carousel-btn svg {
        width: 16px;
        height: 16px;
        display: block;
      }
      .highlight-carousel-btn:hover {
        background: var(--surface-2);
      }
      .highlight-carousel-btn:focus-visible {
        outline: 2px solid #3b7ab8;
        outline-offset: 2px;
      }
      .prebuilt-section { padding: 2rem 1.25rem 3rem; }
      .prebuilt-browse-mock {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
      }
      .prebuilt-mock-main {
        min-height: 0;
        flex: 1 1 auto;
      }
      /* Show ~4 agents, scroll for the rest */
      .prebuilt-mock-scroll {
        --prebuilt-mock-card-h: 6.85rem;
        --prebuilt-mock-gap: 0.75rem;
        flex: 0 1 auto;
        max-height: calc(
          (4 * var(--prebuilt-mock-card-h)) + (3 * var(--prebuilt-mock-gap))
        );
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #b7c4d2 transparent;
        padding-right: 0.25rem;
      }
      .prebuilt-mock-scroll::-webkit-scrollbar {
        width: 6px;
      }
      .prebuilt-mock-scroll::-webkit-scrollbar-track {
        background: transparent;
      }
      .prebuilt-mock-scroll::-webkit-scrollbar-thumb {
        background: #b7c4d2;
        border-radius: 999px;
      }
      .prebuilt-browse-mock.is-sparse .prebuilt-mock-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
      }
      .prebuilt-mock-grid {
        grid-template-columns: 1fr;
        gap: var(--prebuilt-mock-gap, 0.75rem);
      }
      .prebuilt-mock-card {
        padding: 0.85rem 0.9rem;
        min-height: var(--prebuilt-mock-card-h, 6.85rem);
        box-sizing: border-box;
      }
      .prebuilt-mock-card p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .wizard-carousel {
        --wizard-card-w: min(320px, calc(100vw - 7rem));
        --wizard-card-h: 440px;
        --wizard-card-radius: 24px;
      }
      .product-page,
      .landing-page {
        overflow-x: clip;
      }
    }
  

/* Mobile: slightly smaller type across marketing views (home/product/solutions/pricing).
   Solution AI output keeps its original absolute size via inverse rem compensation. */
@media (max-width: 720px) {
  html.landing-active {
    font-size: calc(100% * var(--landing-mobile-root-scale));
  }

  html.landing-active .solution-output-scroll {
    font-size: calc(0.82rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body h1 {
    font-size: calc(1.02rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body h2 {
    font-size: calc(0.95rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body h3 {
    font-size: calc(0.9rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body h4 {
    font-size: calc(0.86rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body table,
  html.landing-active .solution-output-scroll.md-body th,
  html.landing-active .solution-output-scroll.md-body td {
    font-size: calc(0.74rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll.md-body pre {
    font-size: calc(0.78rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll .solution-callout {
    font-size: calc(0.86rem / var(--landing-mobile-root-scale));
  }
  html.landing-active .solution-output-scroll .solution-specialists {
    font-size: calc(0.78rem / var(--landing-mobile-root-scale));
  }
}

.page-section.hidden { display: none !important; }

#nav-marketing.hidden { display: none !important; }
body.home-workspace #nav-marketing,
body.auth-page #nav-marketing { display: none !important; }
.nav-auth-desktop #nav-guest:not(.hidden),
.nav-auth-desktop #nav-authed:not(.hidden) {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
