/* Page Layout — JayLeads landing page
   Extracted from index.html <style> block.
   Requires: jayleads-ds/dist/index.css (loaded first via <link>)
   Layer: page-layout (declared here, sits above DS components layer)
*/

@layer page-layout {

  :root {
    /* Token aliases — short page names → DS tokens */
    --bg-0: var(--jl-color-background-bg-0);
    --bg-1: var(--jl-color-background-bg-1);
    --bg-2: var(--jl-color-background-bg-2);
    --bg-3: var(--jl-color-background-bg-3);
    --line: var(--jl-color-border-line);
    --line-strong: var(--jl-color-border-line-strong);
    --ink-0: var(--jl-color-ink-ink-0);
    --ink-1: var(--jl-color-ink-ink-1);
    --ink-2: var(--jl-color-ink-ink-2);
    --ink-3: var(--jl-color-ink-ink-3);
    --accent: var(--jl-color-accent-accent);
    --accent-soft: var(--jl-color-accent-accent-soft);
    --accent-glow: var(--jl-color-accent-accent-glow);
    --accent-ink: var(--jl-color-accent-accent-ink);
    --success: var(--jl-color-semantic-success);
    --warn: var(--jl-color-semantic-warn);
    --radius-sm: var(--jl-radius-sm);
    --radius: var(--jl-radius-default);
    --radius-lg: var(--jl-radius-lg);
    --radius-xl: var(--jl-radius-xl);
    --ease: var(--jl-motion-ease);
    --ease-out: var(--jl-motion-ease-out);
    --container: var(--jl-spacing-container-max);
    color-scheme: dark;
  }

  /* ========= Container ========= */
  .container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

  /* ========= Nav — page-specific overrides ========= */
  /* DS provides .jl-nav base; bridge scrolled state (JS adds .scrolled) */
  .jl-nav.scrolled { border-bottom-color: var(--line); }
  /* Inline 'Jay' mentions throughout the page */
  .jay-name { color: var(--jl-color-semantic-brand-jay); }
  /* Mobile drawer: JS toggles .open class; bridge to DS open state */
  .jl-nav .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  /* Nav CTA button sizing on mobile */
  @media (max-width: 900px) {
    .jl-nav .nav-cta .jl-btn { padding: 10px 14px; font-size: 13.5px; }
  }

  .arrow { width: 14px; height: 14px; }

  /* ========= Hero ========= */
  .hero {
    position: relative;
    padding: 80px 0 100px;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
  }
  @media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  }

  /* .jl-eyebrow — provided by DS (eyebrow.css); dot animation: jl-pulse (in DS base.css) */

  h1.display {
    font-size: clamp(44px, 6.2vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    margin: 22px 0 0;
    font-weight: 500;
    color: var(--ink-0);
  }
  h1.display .accent-word {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.01em;
  }
  h1.display .line { display: block; }

  .hero-sub {
    margin-top: 22px;
    max-width: 520px;
    font-size: 18px; line-height: 1.55; color: var(--ink-1);
    text-wrap: pretty;
  }

  .hero-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

  .hero-meta {
    margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap;
    color: var(--ink-2); font-size: 13px;
  }
  .hero-meta .item { display: inline-flex; align-items: center; gap: 8px; }
  .hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

  /* .jl-tabs-compact — provided by DS (tabs.css) */
  /* Bridge: page JS uses data-active="true"; DS uses aria-selected="true" */
  .jl-tabs-compact button[data-active="true"] {
    background: color-mix(in oklch, var(--accent) 14%, transparent);
    color: var(--ink-0);
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent) inset;
  }
  /* Industry switcher margin (layout, not component) */
  .jl-tabs-compact { margin-top: 34px; }

  /* ========= Hero Demo (Phone + Calendar) ========= */
  .demo-stage {
    position: relative;
    min-height: 580px;
    display: flex; align-items: center; justify-content: center;
  }
  .demo-stage::before {
    content: ""; position: absolute; inset: -40px;
    background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
    filter: blur(20px); z-index: -1;
  }

  .phone {
    position: relative;
    width: 340px; height: 580px;
    border-radius: 42px;
    background: linear-gradient(180deg, #0B1228 0%, #0A1020 100%); /* theme-fixed: decorative device mockup */
    box-shadow: /* theme-fixed: decorative device mockup */
      0 0 0 1px rgba(120,150,220,0.14) inset,
      0 0 0 8px rgba(10, 16, 32, 0.9),
      0 0 0 9px rgba(140, 170, 230, 0.1),
      0 40px 80px -20px rgba(0, 0, 0, 0.6),
      0 20px 60px -20px var(--accent-glow);
    overflow: hidden;
    transform: translateY(-8px);
  }
  .phone-notch {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    width: 110px; height: 28px; background: #05070D; border-radius: 999px; z-index: 5; /* theme-fixed: decorative device mockup */
  }
  .phone-statusbar {
    position: absolute; top: 0; left: 0; right: 0; height: 44px;
    display: flex; align-items: flex-end; justify-content: space-between;
    padding: 0 26px 6px; font-size: 12px; font-weight: 600; color: var(--ink-0);
    z-index: 4;
  }
  .phone-statusbar .icons { display: inline-flex; gap: 6px; align-items: center; }
  .phone-statusbar svg { width: 14px; height: 14px; }

  .chat-header {
    position: absolute; top: 44px; left: 0; right: 0; height: 66px;
    padding: 12px 18px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 16, 32, 0.7); /* theme-fixed: decorative device mockup */
    backdrop-filter: blur(10px);
    z-index: 3;
  }
  /* .jl-avatar — provided by DS (avatar.css) */
  /* Chat-header avatar override: DS uses font-size:14px font-weight:500; page needs 13px/600 */
  .chat-header .jl-avatar { font-size: 13px; font-weight: 600; }
  .chat-header .meta { flex: 1; min-width: 0; }
  .chat-header .name { font-size: 14px; font-weight: 500; color: var(--ink-0); }
  .chat-header .status { font-size: 11.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
  .chat-header .status .online { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
  .chat-header .back { color: var(--accent); font-size: 22px; line-height: 1; }

  .chat-body {
    position: absolute;
    top: 110px; bottom: 0; left: 0; right: 0;
    padding: 18px 14px 120px;
    overflow: hidden;
    display: flex; flex-direction: column; gap: 8px;
    z-index: 2;
  }
  .msg {
    max-width: 78%;
    padding: 10px 14px;
    font-size: 13.5px; line-height: 1.4;
    border-radius: 18px;
    opacity: 0; transform: translateY(8px);
    animation: jl-msgIn .45s var(--ease-out) forwards;
  }
  .msg.ai {
    align-self: flex-start;
    background: #1A2547; /* theme-fixed: decorative device mockup */
    color: var(--ink-0);
    border-bottom-left-radius: 6px;
  }
  .msg.ai::before {
    content: "Jay"; display: block;
    font-size: 10px; font-family: 'Geist Mono', ui-monospace; letter-spacing: 0.06em;
    color: var(--jl-color-semantic-brand-jay); margin-bottom: 6px; text-transform: uppercase; font-weight: 500;
  }
  .msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-ink);
    border-bottom-right-radius: 6px;
    font-weight: 500;
  }
  .msg .book-card {
    margin-top: 8px; padding: 10px 12px; border-radius: 10px;
    background: rgba(91,140,255,0.12); /* theme-fixed: decorative device mockup */
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent) inset;
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  }
  .msg .book-card .cal-ico {
    width: 34px; height: 34px; border-radius: 8px;
    display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink);
  }
  .msg .book-card .cal-ico svg { width: 16px; height: 16px; }
  .msg .book-card .bc-title { font-size: 12.5px; font-weight: 500; color: var(--ink-0); }
  .msg .book-card .bc-sub { font-size: 11px; color: var(--ink-1); margin-top: 1px; }

  .typing {
    align-self: flex-start;
    padding: 12px 14px;
    background: #1A2547; border-radius: 18px; border-bottom-left-radius: 6px; /* theme-fixed: decorative device mockup */
    display: inline-flex; gap: 4px;
  }
  .typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2);
    animation: jl-blink 1.2s infinite;
  }
  .typing span:nth-child(2) { animation-delay: .15s; }
  .typing span:nth-child(3) { animation-delay: .3s; }

  /* @keyframes blink — uses jl-blink from DS base.css */
  /* @keyframes msgIn — uses jl-msgIn from DS base.css */

  .chat-inputbar {
    position: absolute; bottom: 0; left: 0; right: 0; height: 70px;
    padding: 14px 16px 22px;
    background: linear-gradient(180deg, transparent, rgba(5,7,13,0.95) 30%, #0A1020);
    display: flex; align-items: center; gap: 10px;
    z-index: 4;
    /* Uses hardcoded #0A1020 (dark bg-1) instead of var(--bg-1) because the phone
       mockup is always dark — var(--bg-1) resolves to light color in light mode */
  }
  .chat-inputbar .fake-input {
    flex: 1; height: 38px; border-radius: 999px;
    background: rgba(255,255,255,0.05); /* theme-fixed: decorative device mockup */
    box-shadow: 0 0 0 1px var(--line) inset;
    padding: 0 14px; display: flex; align-items: center;
    color: var(--ink-2); font-size: 12.5px;
  }
  .chat-inputbar .send {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--accent); display: grid; place-items: center;
    color: var(--accent-ink);
  }
  .chat-inputbar .send svg { width: 16px; height: 16px; }

  /* Floating booked card */
  .booked-card {
    position: absolute;
    top: 60px; right: -60px;
    width: 250px; padding: 14px;
    background: var(--bg-2);
    border-radius: 16px;
    box-shadow: var(--jl-shadow-card-float);
    transform: rotate(4deg) translateY(0);
    animation: jl-floatCard 6s ease-in-out infinite;
    z-index: 6;
  }
  /* @keyframes floatCard — uses jl-floatCard from DS base.css */
  .booked-card .bc-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-family: 'Geist Mono'; color: var(--success); text-transform: uppercase; letter-spacing: 0.08em; }
  .booked-card .bc-head .check {
    width: 16px; height: 16px; border-radius: 50%; background: var(--success); color: var(--jl-color-ink-on-accent);
    display: grid; place-items: center;
  }
  .booked-card .bc-head .check svg { width: 10px; height: 10px; stroke-width: 3; }
  .booked-card .bc-title2 { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink-0); letter-spacing: -0.01em; }
  .booked-card .bc-meta { margin-top: 4px; font-size: 12px; color: var(--ink-1); }
  .booked-card .bc-divider { height: 1px; background: var(--line); margin: 12px 0; }
  .booked-card .bc-row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); }
  .booked-card .bc-row strong { color: var(--ink-0); font-weight: 500; }

  /* Floating stat chip */
  .stat-chip {
    position: absolute;
    bottom: 90px; left: -50px;
    padding: 14px 18px;
    background: var(--bg-2);
    border-radius: 16px;
    box-shadow: var(--jl-shadow-card-float);
    transform: rotate(-3deg);
    animation: jl-floatCard 7s ease-in-out infinite .5s;
    z-index: 6;
  }
  .stat-chip .big {
    font-size: 28px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink-0);
    font-feature-settings: "tnum";
  }
  .stat-chip .big .accent { color: var(--accent); }
  .stat-chip .small { font-size: 11px; color: var(--ink-2); margin-top: 2px; font-family: 'Geist Mono', ui-monospace; text-transform: uppercase; letter-spacing: 0.08em; }

  @media (max-width: 520px) {
    .booked-card { right: -20px; width: 220px; }
    .stat-chip { left: -10px; bottom: 80px; }
  }

  /* ========= Logo strip ========= */
  .logos {
    padding: 40px 0 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .logos-inner {
    display: grid; grid-template-columns: 180px 1fr; gap: 40px; align-items: center;
  }
  .logos .label {
    font-size: 12px; font-family: 'Geist Mono', ui-monospace; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: 0.1em;
  }
  .logos .row { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
  .logos .logo-item { color: var(--ink-2); font-weight: 500; letter-spacing: -0.01em; font-size: 18px; opacity: .7; transition: opacity .2s var(--ease), color .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
  .logos .logo-item:hover { opacity: 1; color: var(--ink-0); }
  .logos .logo-item svg { width: 22px; height: 22px; }

  @media (max-width: 720px) {
    .logos-inner { grid-template-columns: 1fr; gap: 20px; }
  }

  /* ========= Section scaffolding ========= */
  /* .jl-eyebrow-section — provided by DS (eyebrow.css) */
  section.block { padding: 120px 0; position: relative; }
  h2.section-title {
    margin: 14px 0 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02;
    letter-spacing: -0.03em; font-weight: 500; max-width: 800px;
    text-wrap: balance;
  }
  h2.section-title em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }
  .section-lede { margin-top: 18px; max-width: 620px; font-size: 17px; line-height: 1.55; color: var(--ink-1); text-wrap: pretty; }

  /* ========= How it works ========= */
  /* .jl-card — base card component provided by DS (card.css) */
  .steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  @media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
  /* step-visual is page-specific layout inside the DS card */

  /* step visual 1 — capture */
  .capture-viz { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr 1fr 1fr; padding: 14px; gap: 6px; }
  .capture-viz .lead-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); /* theme-fixed: decorative device mockup */
    box-shadow: 0 0 0 1px var(--line) inset;
    font-size: 12px; color: var(--ink-1);
  }
  .capture-viz .lead-row .d { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .capture-viz .lead-row .src { margin-left: auto; font-family: 'Geist Mono', ui-monospace; font-size: 10px; color: var(--ink-2); }
  .capture-viz .lead-row.new { animation: jl-slideIn .5s var(--ease-out); }
  /* @keyframes slideIn — uses jl-slideIn from DS base.css */

  /* step visual 2 — cadence */
  .cadence-viz { width: 100%; height: 100%; padding: 14px; position: relative; }
  .cadence-viz .timeline {
    position: absolute; top: 50%; left: 14px; right: 14px; height: 2px;
    background: linear-gradient(to right, var(--line) 50%, transparent 50%);
    background-size: 8px 2px; transform: translateY(-50%);
  }
  .cadence-viz .ping {
    position: absolute; top: 50%; width: 32px; height: 32px;
    border-radius: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; color: var(--accent-ink);
    font-family: 'Geist Mono', ui-monospace; font-size: 9px; font-weight: 600;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 20%, transparent);
  }
  .cadence-viz .ping.ghost { background: rgba(91,140,255,0.15); color: var(--accent); box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 35%, transparent) inset; /* theme-fixed: decorative device mockup */ }

  /* step visual 3 — booked */
  .booked-viz { width: 100%; height: 100%; padding: 14px; display: flex; align-items: center; justify-content: center; gap: 14px; }
  .booked-viz .mini-cal {
    width: 92px; padding: 10px; border-radius: 10px; background: var(--bg-2);
    box-shadow: 0 0 0 1px var(--line) inset;
  }
  .booked-viz .mini-cal .mc-month { font-size: 10px; color: var(--ink-2); font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: 0.08em; }
  .booked-viz .mini-cal .mc-grid { margin-top: 8px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .booked-viz .mini-cal .mc-grid span { width: 8px; height: 8px; border-radius: 2px; background: rgba(120,150,220,0.12); /* theme-fixed: decorative device mockup */ }
  .booked-viz .mini-cal .mc-grid span.a { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }

  /* ========= Features grid ========= */
  /* .jl-card-feature / .jl-ficon — provided by DS (card.css, ficon.css) */
  .features { margin-top: 64px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  @media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
  .jl-card-feature { grid-column: span 2; }
  .jl-card-feature.wide { grid-column: span 3; }
  @media (max-width: 900px) { .jl-card-feature.wide { grid-column: span 2; } }

  /* ========= Use cases ========= */
  /* .jl-tabs — provided by DS (tabs.css) */
  /* Bridge: page JS uses data-active="true"; DS uses aria-selected="true" */
  .jl-tabs button[data-active="true"] {
    background: color-mix(in oklch, var(--accent) 18%, transparent);
    color: var(--ink-0);
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent) inset;
  }
  .usecases-wrap { margin-top: 56px; }

  .usecase-panel {
    margin-top: 28px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    padding: 40px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, var(--jl-color-cta-gradient-from), var(--jl-color-cta-gradient-to));
    box-shadow: 0 0 0 1px var(--line) inset;
    min-height: 340px;
  }
  @media (max-width: 900px) { .usecase-panel { grid-template-columns: 1fr; padding: 28px; } }
  .usecase-panel h3 {
    margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.1;
    letter-spacing: -0.02em; font-weight: 500;
  }
  .usecase-panel p { color: var(--ink-1); line-height: 1.6; margin: 18px 0; font-size: 15px; }
  .usecase-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
  .usecase-kpi .kpi { padding: 14px; border-radius: 12px; background: var(--jl-color-surface-overlay); box-shadow: 0 0 0 1px var(--line) inset; }
  .usecase-kpi .kpi .k { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink-0); font-feature-settings: "tnum"; }
  .usecase-kpi .kpi .k .accent { color: var(--accent); }
  .usecase-kpi .kpi .l { font-size: 11px; color: var(--ink-2); font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

  .usecase-thread {
    padding: 22px; border-radius: var(--radius-lg);
    background: var(--bg-0); box-shadow: 0 0 0 1px var(--line) inset;
    display: flex; flex-direction: column; gap: 8px;
    font-size: 13px; line-height: 1.45;
  }
  .usecase-thread .bubble {
    max-width: 82%; padding: 9px 13px; border-radius: 16px;
  }
  .usecase-thread .bubble.ai { align-self: flex-start; background: #1A2547; color: var(--ink-0); border-bottom-left-radius: 5px; /* theme-fixed: decorative device mockup */ }
  .usecase-thread .bubble.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 500; border-bottom-right-radius: 5px; }
  .usecase-thread .timestamp { font-size: 10px; color: var(--ink-3); font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: 0.1em; align-self: center; padding: 6px 0; }

  /* ========= Stats band ========= */
  .stats-band {
    margin-top: 0; padding: 80px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, var(--jl-color-accent-accent-mist), transparent);
  }
  .stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  }
  @media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
  .stat .big {
    font-size: clamp(44px, 5.5vw, 72px); line-height: 1; font-weight: 400;
    letter-spacing: -0.04em; font-feature-settings: "tnum";
    background: linear-gradient(180deg, var(--jl-color-gradient-stat-from), var(--jl-color-gradient-stat-to));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .stat .big .unit { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); -webkit-text-fill-color: var(--accent); }
  .stat .label { margin-top: 10px; font-size: 13.5px; color: var(--ink-1); max-width: 220px; text-wrap: pretty; }

  /* ========= Testimonial ========= */
  /* .jl-card-testimonial / .jl-card-testimonial-side / .jl-avatar — provided by DS */
  .testi-wrap {
    margin-top: 56px;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px;
  }
  @media (max-width: 900px) { .testi-wrap { grid-template-columns: 1fr; } }
  .testi-side {
    display: grid; grid-template-rows: 1fr 1fr; gap: 28px;
  }

  /* ========= FAQ ========= */
  /* .jl-faq — provided by DS (faq.css) */
  .jl-faq { margin-top: 56px; }

  /* ========= Final CTA ========= */
  .cta-final {
    padding: 80px 56px;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(800px 400px at 0% 100%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%),
      radial-gradient(700px 400px at 100% 0%, var(--jl-color-cta-glow), transparent 60%),
      linear-gradient(180deg, var(--jl-color-cta-gradient-base), var(--jl-color-background-bg-1));
    box-shadow: 0 0 0 1px var(--line-strong) inset;
    text-align: center;
    position: relative; overflow: hidden;
  }
  .cta-final::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, var(--jl-color-atmosphere-grid-strong) 1px, transparent 1px),
      linear-gradient(to bottom, var(--jl-color-atmosphere-grid-strong) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 80%);
  }
  .cta-final > * { position: relative; }
  .cta-final h2 {
    font-size: clamp(36px, 5vw, 64px); line-height: 1.02;
    letter-spacing: -0.03em; font-weight: 500; margin: 0 auto; max-width: 700px;
    text-wrap: balance;
  }
  .cta-final h2 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); font-weight: 400; }
  .cta-final p { margin: 18px auto 0; color: var(--ink-1); max-width: 540px; font-size: 16.5px; line-height: 1.5; }
  .cta-final .btns { margin-top: 32px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
  .cta-final .finep { margin-top: 18px; font-size: 12.5px; color: var(--ink-2); font-family: 'Geist Mono'; letter-spacing: 0.04em; }

  /* ========= Footer ========= */
  footer {
    margin-top: 60px; padding: 60px 0 40px;
    border-top: 1px solid var(--line);
  }
  .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
  @media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
  .foot-col h4 { font-size: 12px; font-family: 'Geist Mono'; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 18px; font-weight: 500; }
  .foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
  .foot-col a { font-size: 14px; color: var(--ink-1); transition: color .2s var(--ease); }
  .foot-col a:hover { color: var(--ink-0); }
  footer .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
    font-weight: var(--jl-typography-weight-semibold);
    font-size: var(--jl-typography-size-brand);
  }
  footer .brand .jay { color: var(--jl-color-semantic-brand-jay); }
  footer .brand .leads { color: var(--jl-color-ink-ink-0); }
  footer .brand-mark {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: var(--jl-color-accent-accent);
    box-shadow: var(--jl-shadow-brand-mark);
    color: var(--jl-color-ink-on-accent);
  }
  footer .brand-mark svg { width: 20px; height: 20px; display: block; }
  .foot-brand { font-size: 14px; color: var(--ink-1); line-height: 1.55; max-width: 320px; margin-top: 14px; }
  .foot-bottom { margin-top: 50px; display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-size: 12.5px; font-family: 'Geist Mono'; letter-spacing: 0.02em; border-top: 1px solid var(--line); padding-top: 28px; }
  .foot-bottom .social { display: inline-flex; gap: 14px; }
  .foot-bottom .social a { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--jl-color-white-white-4); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-1); transition: all .2s var(--ease); }
  .foot-bottom .social a:hover { color: var(--ink-0); background: var(--jl-color-accent-accent-mist); }
  .foot-bottom .social svg { width: 14px; height: 14px; }

  /* ========= Tweaks panel ========= */
  .tweaks-panel {
    position: fixed; bottom: 20px; right: 20px; z-index: 100;
    width: 300px; padding: 20px;
    background: var(--jl-color-surface-overlay-heavy);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: var(--jl-shadow-card-float);
    display: none;
    font-size: 13px;
  }
  .tweaks-panel.visible { display: block; animation: jl-slideUp .3s var(--ease-out); }
  /* @keyframes slideUp — uses jl-slideUp from DS base.css */
  .tweaks-panel h5 { margin: 0 0 16px; font-size: 13px; font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 500; display: flex; align-items: center; gap: 8px; }
  .tweaks-panel h5::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .tweak-row { margin-bottom: 14px; }
  .tweak-row label { display: block; font-size: 11px; color: var(--ink-2); font-family: 'Geist Mono'; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
  .swatches { display: flex; gap: 8px; }
  .swatch { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; transition: transform .15s var(--ease); }
  .swatch:hover { transform: scale(1.08); }
  .swatch.active { box-shadow: 0 0 0 2px var(--accent-ink), 0 0 0 4px var(--ink-0); }
  .tweaks-panel input[type=text], .tweaks-panel textarea {
    width: 100%; padding: 8px 10px; border-radius: 8px;
    background: var(--jl-color-white-white-4); color: var(--ink-0);
    border: 0; box-shadow: 0 0 0 1px var(--line) inset;
    font: inherit; font-size: 12.5px; resize: vertical;
  }
  .tweaks-panel textarea { min-height: 70px; font-family: inherit; }
  .tweaks-panel input:focus, .tweaks-panel textarea:focus { outline: 0; box-shadow: 0 0 0 1px var(--accent) inset; }
  /* .jl-tabs-mini — provided by DS (tabs.css) */
  /* Bridge: page JS uses data-active="true"; DS uses aria-selected="true" */
  .jl-tabs-mini button[data-active="true"] { background: var(--accent); color: var(--accent-ink); }

  /* ========= Pricing ========= */
  .pricing-grid {
    margin-top: 56px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    align-items: stretch;
  }
  @media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
  .price-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--jl-color-surface-card-gradient-from), var(--jl-color-surface-overlay));
    box-shadow: 0 0 0 1px var(--line) inset;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .price-card.featured {
    background:
      radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 70%),
      linear-gradient(180deg, var(--jl-color-surface-card-gradient-from), var(--jl-color-surface-overlay));
    box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent) 45%, transparent) inset,
                0 20px 60px -20px var(--accent-glow);
  }
  .price-tag {
    position: absolute; top: 18px; right: 18px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 10.5px; font-family: 'Geist Mono'; letter-spacing: 0.1em; text-transform: uppercase;
    background: var(--accent); color: var(--accent-ink); font-weight: 500;
  }
  .price-name {
    font-size: 13px; font-family: 'Geist Mono'; color: var(--ink-2);
    text-transform: uppercase; letter-spacing: 0.12em;
  }
  .price-num {
    margin-top: 18px;
    font-size: 52px; line-height: 1; letter-spacing: -0.035em; font-weight: 500;
    color: var(--ink-0); font-feature-settings: "tnum";
    display: flex; align-items: baseline; gap: 6px;
  }
  .price-num .per { font-size: 14px; color: var(--ink-2); font-weight: 400; letter-spacing: 0; font-family: 'Geist Mono'; }
  .price-desc { margin-top: 14px; font-size: 14.5px; color: var(--ink-1); line-height: 1.5; min-height: 44px; text-wrap: pretty; }
  .price-list { margin: 24px 0 28px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; flex: 1; }
  .price-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-1); line-height: 1.45; }
  .price-list li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--accent); margin-top: 2px; }
  .price-cta { width: 100%; justify-content: center; }

  .pricing-foot {
    margin-top: 24px; padding: 18px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-radius: var(--radius);
    background: var(--jl-color-surface-overlay);
    box-shadow: 0 0 0 1px var(--line) inset;
    font-size: 13.5px; color: var(--ink-1);
  }
  .pricing-foot a { color: var(--accent); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
  .pricing-foot a:hover { text-decoration: underline; }

  /* ========= Tablet: pull floating cards inside the stage ========= */
  @media (max-width: 1040px) and (min-width: 761px) {
    .demo-stage { overflow: visible; max-width: 100%; }
    .booked-card { right: 0; top: 30px; }
    .stat-chip { left: 0; bottom: 120px; }
  }

  /* ========= Mobile nav drawer — handled by DS (nav.css) ========= */
  /* Extra bridge: page JS uses .open class on nav-links */

  /* ========= Small phones: full responsive pass ========= */
  @media (max-width: 760px) {
    .container { padding: 0 20px; }
    section.block { padding: 72px 0; }

    /* Hero */
    .hero { padding: 40px 0 60px; }
    .hero-grid { gap: 40px; }
    h1.display { font-size: clamp(40px, 12vw, 56px); }
    .hero-sub { font-size: 16px; }
    .hero-ctas .jl-btn { flex: 1; justify-content: center; min-width: 0; }
    .hero-meta { gap: 14px; font-size: 12.5px; }
    /* .jl-tabs-compact responsive handled by DS */

    /* Demo phone */
    .demo-stage { min-height: 540px; padding: 30px 0; }
    .phone {
      width: min(300px, calc(100vw - 60px));
      height: 540px;
      border-radius: 38px;
    }
    .phone-notch { width: 90px; height: 24px; }
    .chat-header { height: 60px; padding: 10px 14px; }
    .chat-header .jl-avatar { width: 34px; height: 34px; font-size: 12px; }
    .chat-body { top: 104px; padding: 14px 12px 100px; }
    .msg { font-size: 13px; padding: 9px 12px; max-width: 82%; }
    .chat-inputbar { height: 62px; padding: 12px 14px 18px; }
    .chat-inputbar .fake-input { height: 34px; font-size: 11.5px; }
    .chat-inputbar .send { width: 34px; height: 34px; }

    /* Floating cards — repositioned for mobile */
    .booked-card {
      display: none;
    }
    /* @keyframes floatCardMobile — uses jl-floatCardMobile from DS base.css */
    .stat-chip {
      display: none;
    }
    /* @keyframes floatChipMobile — uses jl-floatChipMobile from DS base.css */
    .stat-chip .big { font-size: 22px; }

    /* Logo strip */
    .logos { padding: 28px 0 20px; }
    .logos .row { gap: 18px 22px; justify-content: flex-start; }
    .logos .logo-item { font-size: 14px; }
    .logos .logo-item svg { width: 18px; height: 18px; }

    /* Section titles */
    h2.section-title { font-size: clamp(30px, 8vw, 40px); }
    .section-lede { font-size: 15.5px; }

    /* Steps — .jl-card responsive handled by DS; override layout here */
    .steps { margin-top: 44px; gap: 16px; }

    /* Features — .jl-card-feature responsive handled by DS; override grid here */
    .features { grid-template-columns: 1fr; margin-top: 44px; }
    .jl-card-feature, .jl-card-feature.wide { grid-column: span 1; }

    /* Pricing */
    .pricing-grid { margin-top: 40px; gap: 14px; }
    .price-card { padding: 26px; }
    .price-num { font-size: 42px; }
    .price-desc { min-height: 0; }
    .pricing-foot { padding: 16px 18px; font-size: 13px; flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Use cases — .jl-tabs responsive handled by DS */
    .usecase-panel { padding: 24px; gap: 28px; margin-top: 20px; }
    .usecase-panel h3 { font-size: 22px; }
    .usecase-panel p { font-size: 14.5px; }
    .usecase-kpi { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .usecase-kpi .kpi { padding: 12px 10px; }
    .usecase-kpi .kpi .k { font-size: 20px; }
    .usecase-kpi .kpi .l { font-size: 10px; }
    .usecase-thread { padding: 18px; }

    /* Stats */
    .stats-band { padding: 56px 0; }
    .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
    .stat .big { font-size: clamp(40px, 11vw, 56px); }
    .stat .label { font-size: 13px; }

    /* Testimonials — .jl-card-testimonial responsive handled by DS */
    .testi-side { gap: 14px; }

    /* FAQ — .jl-faq responsive handled by DS */
    .jl-faq { margin-top: 40px; }

    /* Final CTA */
    .cta-final { padding: 48px 26px; }
    .cta-final .btns { flex-direction: column; width: 100%; }
    .cta-final .btns .jl-btn { width: 100%; }

    /* Footer */
    footer { padding: 40px 0 28px; }
    .foot-grid { grid-template-columns: 1fr; gap: 32px; }
    .foot-bottom { flex-direction: column; gap: 18px; align-items: flex-start; text-align: left; }

    /* Tweaks panel — keep out of the way */
    .tweaks-panel { left: 12px; right: 12px; bottom: 12px; width: auto; }
  }

  /* Extra small */
  @media (max-width: 380px) {
    .brand { font-size: 16px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .jl-btn { width: 100%; }
    .stats { grid-template-columns: 1fr; }
  }

  /* ========= Inline style replacements (CSS-04) ========= */
  .bc-row--spaced { margin-top: 6px; }
  .ping[data-pos="1"] { left: 12%; }
  .ping[data-pos="2"] { left: 36%; }
  .ping[data-pos="3"] { left: 60%; }
  .ping[data-pos="4"] { left: 84%; }
  .mini-cal--booked { background: color-mix(in oklch, var(--accent) 18%, var(--bg-2)); }
  .mc-month--accent { color: var(--accent); }
  .block--flush { padding-top: 0; }
  .block--tight { padding-top: 20px; }
  .block--compact { padding-top: 40px; }
  .testi-name { color: var(--ink-0); font-weight: 500; }
  .jl-link-accent { color: var(--accent); }
  /* Swatch colors are set via JS from data-color attribute */

  /* ========= Light-mode phone/thread dark-pinning =========
     The phone mockup and usecase thread have dark backgrounds
     (theme-fixed decorative elements). In light mode, token
     aliases (--ink-0, --accent, etc.) resolve to dark values
     meant for light backgrounds — unreadable on the dark phone.
     Re-pin these tokens to their dark-theme values inside these
     scoped containers so text stays light and readable.
     ========================================================= */
  [data-theme="light"] .phone,
  :root:not([data-theme]) .phone {
    --ink-0: #EAF0FF;
    --ink-1: #B0C0E8;
    --ink-2: #7A8FBF;
    --ink-3: #5A6E9A;
    --accent: #5B8CFF;
    --accent-soft: color-mix(in oklch, #5B8CFF 22%, transparent);
    --accent-glow: color-mix(in oklch, #5B8CFF 30%, transparent);
    --accent-ink: #05070D;
    --success: #3DDC97;
    --warn: #FFB547;
    --line: rgba(255, 255, 255, 0.06);
    --line-strong: rgba(255, 255, 255, 0.12);
    color: #EAF0FF;
  }

  [data-theme="light"] .usecase-thread,
  :root:not([data-theme]) .usecase-thread {
    --ink-0: #EAF0FF;
    --ink-3: #5A6E9A;
    --accent: #5B8CFF;
    --accent-ink: #05070D;
    --line: rgba(255, 255, 255, 0.06);
    background: #05070D;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }

  /* System mode: same pinning via @media for users without explicit data-theme */
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]) .phone {
      --ink-0: #EAF0FF;
      --ink-1: #B0C0E8;
      --ink-2: #7A8FBF;
      --ink-3: #5A6E9A;
      --accent: #5B8CFF;
      --accent-soft: color-mix(in oklch, #5B8CFF 22%, transparent);
      --accent-glow: color-mix(in oklch, #5B8CFF 30%, transparent);
      --accent-ink: #05070D;
      --success: #3DDC97;
      --warn: #FFB547;
      --line: rgba(255, 255, 255, 0.06);
      --line-strong: rgba(255, 255, 255, 0.12);
      color: #EAF0FF;
    }
    :root:not([data-theme]) .usecase-thread {
      --ink-0: #EAF0FF;
      --ink-3: #5A6E9A;
      --accent: #5B8CFF;
      --accent-ink: #05070D;
      --line: rgba(255, 255, 255, 0.06);
      background: #05070D;
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    }
  }

}
