/* ============================================================
   Jib OS: Landing (lo-fi mockup)
   Goal: type-led, near-grayscale, content-first, mobile-friendly.
   No product colors yet. One subtle accent for primary CTA.
   ============================================================ */

:root {
  /* Neutrals: slightly hue-tinted (cool steel) using OKLCH. */
  --ink-900: oklch(0.18 0.018 256);
  --ink-800: oklch(0.27 0.018 256);
  --ink-700: oklch(0.36 0.018 256);
  --ink-600: oklch(0.44 0.018 256);
  --ink-500: oklch(0.52 0.018 256);
  --ink-400: oklch(0.64 0.014 256);
  --ink-300: oklch(0.80 0.012 256);
  --ink-200: oklch(0.89 0.008 256);
  --ink-100: oklch(0.94 0.005 256);
  --ink-50:  oklch(0.97 0.004 256);
  --paper:   oklch(0.995 0.002 256);
  --accent:  oklch(0.18 0.018 256);

  /* Jib OS brand */
  --brand:        #00A887;
  --brand-dark:   #00785e;
  --brand-darker: #005c47;
  --brand-light:  #e6f7f2;
  --brand-tint:   oklch(0.96 0.04 175);

  /* State palette (used by status pills, tags) */
  --state-success-bg: oklch(0.93 0.07 145);
  --state-success-fg: oklch(0.42 0.13 145);
  --state-success-solid: oklch(0.62 0.18 145);
  --state-warning-bg: oklch(0.93 0.10 80);
  --state-warning-fg: oklch(0.45 0.13 60);
  --state-danger-bg: oklch(0.93 0.04 25);
  --state-danger-fg: oklch(0.44 0.16 25);
  --state-danger-solid: oklch(0.58 0.20 25);

  /* Brand-platform colors (third-party identity, kept literal) */
  --brand-facebook: #1877f2;
  --brand-instagram: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366);
  --brand-tiktok: oklch(0.10 0.005 256);
  --brand-google: #4285f4;
  --brand-line: #06c755;

  --font-body: "Hanken Grotesk", "Noto Sans Thai", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", "Noto Sans Thai", ui-sans-serif, system-ui, sans-serif;
  --radius: 12px;
  --gap: 24px;
  --max-w: 1180px;

  /* Motion tokens (Emil Kowalski strong curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 140ms;
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-modal-in: 380ms;
  --dur-modal-out: 280ms;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Scroll-reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition-property: opacity, transform;
  transition-duration: 720ms;
  transition-timing-function: var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-children] > * {
  opacity: 0;
  transform: translateY(10px);
  transition-property: opacity, transform;
  transition-duration: 560ms;
  transition-timing-function: var(--ease-out);
  transition-delay: 0ms;
}
[data-reveal-children].is-in > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-children].is-in > *:nth-child(2) { transition-delay: 60ms; }
[data-reveal-children].is-in > *:nth-child(3) { transition-delay: 120ms; }
[data-reveal-children].is-in > *:nth-child(4) { transition-delay: 180ms; }
[data-reveal-children].is-in > *:nth-child(5) { transition-delay: 220ms; }
[data-reveal-children].is-in > *:nth-child(6) { transition-delay: 260ms; }
[data-reveal-children].is-in > *:nth-child(7) { transition-delay: 300ms; }
[data-reveal-children].is-in > *:nth-child(8) { transition-delay: 340ms; }
[data-reveal-children].is-in > *:nth-child(9) { transition-delay: 380ms; }
[data-reveal-children].is-in > *:nth-child(10) { transition-delay: 420ms; }
[data-reveal-children].is-in > * { opacity: 1; transform: translateY(0); }

/* ---------- A11y: skip link + global focus ---------- */
.ln-skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}
.ln-skip:focus { top: 12px; outline: none; }

:where(a, button, [role="button"], [tabindex]):focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 3px;
  border-radius: 4px;
}
.ln-modal:focus-visible,
.ln-modal[tabindex]:focus-visible { outline: none; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.ln-track-figure,
.ln-track-meta dt,
.ln-calc-amount,
.lm-kpi-val { font-variant-numeric: tabular-nums; }
.lm-creative img { outline: 1px solid color-mix(in oklch, var(--ink-900) 8%, transparent); outline-offset: -1px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ln-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); margin: 0; }
h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.04; }
h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.12; }
h3 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; }
h4 { font-size: 13px; text-transform: uppercase; color: var(--ink-500); }
.ln-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
}
.ln-eyebrow-lg {
  font-size: 15px;
  color: var(--ink-700);
  margin-bottom: 18px;
}
.ln-lede { font-size: 17px; color: var(--ink-600); margin: 12px 0 0; max-width: 60ch; }
.ln-fineprint { font-size: 12px; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.ln-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition-property: background-color, color, border-color, transform, box-shadow;
  transition-duration: var(--dur-press);
  transition-timing-function: var(--ease-out);
  white-space: nowrap;
  will-change: transform;
}
.ln-btn:active { transform: scale(0.97); }
.ln-btn-primary {
  background: var(--ink-900);
  color: var(--paper);
}
.ln-btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
@media (hover: hover) and (pointer: fine) {
  .ln-btn-primary:hover { background: var(--ink-700); }
  .ln-btn-ghost:hover { background: var(--ink-50); }
}
.ln-btn-lg { padding: 14px 22px; font-size: 15px; }
.ln-link { color: var(--ink-900); font-weight: 600; font-size: 14px; }
.ln-link:hover { text-decoration: underline; }
.ln-link-arrow::after { content: ""; }

/* ---------- Nav ---------- */
.ln-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-100);
}
.ln-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.ln-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #222;
  line-height: 1;
}
.ln-logo-img { height: 36px; width: auto; display: block; flex: 0 0 auto; }
.ln-logo-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ln-logo-text { display: inline-flex; align-items: baseline; color: #222; }
.ln-logo-tag { font-family: var(--font-body); font-size: 10px; font-weight: 500; color: var(--ink-500); letter-spacing: 0.01em; line-height: 1; }
.ln-logo-jib { font-weight: 600; color: #222; }
.ln-logo-os {
  font-weight: 300;
  margin-left: 4px;
  color: #222;
}
.ln-nav-links { display: flex; gap: 26px; margin-right: auto; }
.ln-nav-links a { font-size: 14px; color: var(--ink-700); }
.ln-nav-links a:hover { color: var(--ink-900); }
.ln-nav-actions { display: flex; align-items: center; gap: 12px; }
.ln-lang {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  gap: 0;
  box-shadow: 0 4px 16px -4px rgba(15,17,21,0.15), 0 1px 3px rgba(15,17,21,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ln-lang-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-500);
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.ln-lang-btn[data-lang="zh"] { display: none; }
.ln-lang-btn:hover { color: var(--ink-800); }
.ln-lang-btn.is-active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.ln-nav-toggle {
  display: none;
  background: transparent; border: none; font-size: 22px;
  cursor: pointer; color: var(--ink-900);
}

/* ---------- Hero ---------- */
.ln-hero {
  position: relative;
  padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.ln-hero::after {
  /* Subtle SVG turbulence noise overlay — only on hero, ~1.5% strength */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
.ln-hero-top {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ln-hero-top h1 {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink-900);
}
.ln-hero-line { display: block; }
html[lang="th"] .ln-hero-top h1 { line-height: 1.45; }
.ln-hero-sub {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-600);
  font-weight: 500;
  margin: 0 auto;
  max-width: 640px;
}
.ln-cta-row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ln-cta-row .ln-btn-lg { min-width: 180px; justify-content: center; }

/* Two side-by-side hero blocks — asymmetric 60/40 */
.ln-hero-blocks {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: clamp(16px, 1.6vw, 24px);
  align-items: stretch;
}
.ln-hblock {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  min-height: 460px;
  overflow: hidden;
  transition-property: transform, box-shadow, opacity;
  transition-duration: var(--dur-base);
  transition-timing-function: var(--ease-out);
  border: 1px solid transparent;
}
.ln-hblock:active { transform: scale(0.995); }
@media (hover: hover) and (pointer: fine) {
  .ln-hblock:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.22);
  }
}
.ln-hblock-demand {
  background:
    radial-gradient(120% 80% at 0% 0%, oklch(0.95 0.05 175 / 0.55), transparent 60%),
    radial-gradient(120% 100% at 100% 100%, oklch(0.90 0.07 175 / 0.45), transparent 55%),
    linear-gradient(135deg, oklch(0.95 0.03 180) 0%, oklch(0.88 0.05 180) 100%);
  color: var(--ink-900);
}
.ln-hblock-fulfill {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--ink-50) 100%);
  border: 1px solid var(--ink-100);
}
.ln-hblock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.ln-hblock-kicker {
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 4px;
}
.ln-hblock h3 {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  margin: 0;
  color: var(--ink-900);
  line-height: 1.2;
}
.ln-hblock-title-split { letter-spacing: -0.01em; }
.ln-hblock-title-bold {
  font-weight: 800;
  color: var(--ink-900);
}
.ln-hblock-title-grad {
  font-weight: 800;
  background: linear-gradient(95deg, oklch(0.55 0.20 265) 0%, oklch(0.60 0.22 295) 60%, oklch(0.62 0.22 320) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ln-hblock-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink-900);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.ln-hblock-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0 0 clamp(24px, 3vw, 32px);
  max-width: 42ch;
}
.ln-hblock-visual {
  margin-top: auto;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Fanned creative thumbnails centered over the report card */
.lm-creatives {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  grid-template-areas: "stack";
}
.lm-creative {
  grid-area: stack;
  width: 160px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.4), 0 2px 6px rgba(15, 23, 42, 0.18);
  background: var(--paper);
  border: 3px solid var(--paper);
  transform-origin: center bottom;
  transition: transform 0.55s var(--ease-out), opacity 0.35s var(--ease-out);
  will-change: transform, opacity;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .ln-hblock-demand:hover .lm-creative,
  .ln-hblock-demand:focus-visible .lm-creative { opacity: 1; }
}
.lm-creative img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Stacked default: all centered, slight fan rotation so the layers peek out */
.lm-creative-1 { transform: translate(-6px, 4px) rotate(-7deg); z-index: 1; }
.lm-creative-2 { transform: translate(0, 0) rotate(2deg); z-index: 2; }
.lm-creative-3 { transform: translate(6px, 4px) rotate(9deg); z-index: 3; }

/* Mini dashboard fades on hover so the fan takes the stage */
.lm-mini-ads {
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ln-hblock-demand:hover .lm-mini-ads,
  .ln-hblock-demand:focus-visible .lm-mini-ads {
    opacity: 0;
    transform: scale(0.96);
  }
  .ln-hblock-demand:hover .lm-creative-1,
  .ln-hblock-demand:focus-visible .lm-creative-1 {
    transform: translate(-105px, -6px) rotate(-10deg);
  }
  .ln-hblock-demand:hover .lm-creative-2,
  .ln-hblock-demand:focus-visible .lm-creative-2 {
    transform: translate(0, -12px) rotate(0deg);
    z-index: 4;
  }
  .ln-hblock-demand:hover .lm-creative-3,
  .ln-hblock-demand:focus-visible .lm-creative-3 {
    transform: translate(105px, -6px) rotate(10deg);
  }
}
@media (max-width: 720px) {
  .lm-creative { width: 116px; }
  .ln-hblock-demand:hover .lm-creative-1 { transform: translate(-74px, -4px) rotate(-10deg); }
  .ln-hblock-demand:hover .lm-creative-3 { transform: translate(74px, -4px) rotate(10deg); }
}

/* Mini ad widget inside demand block */
.lm-mini-ads {
  width: 100%;
  max-width: 380px;
  padding: 14px;
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--ink-100);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px -20px rgba(15, 23, 42, 0.28);
}
.lm-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lm-mini-title { font-size: 11px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; }
.lm-mini-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; background: var(--state-success-bg); color: var(--state-success-fg); border-radius: 999px; }
.lm-mini-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; height: 56px; margin-bottom: 12px; }
.lm-mini-bars span {
  background: linear-gradient(180deg, oklch(0.78 0.14 175) 0%, var(--brand) 100%);
  border-radius: 2px 2px 0 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.65s var(--ease-out);
}
.ln-hero-blocks.is-in .lm-mini-bars span { transform: scaleY(1); }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(1) { transition-delay: 80ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(2) { transition-delay: 140ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(3) { transition-delay: 200ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(4) { transition-delay: 260ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(5) { transition-delay: 320ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(6) { transition-delay: 380ms; }
.ln-hero-blocks.is-in .lm-mini-bars span:nth-child(7) { transition-delay: 440ms; }
@media (prefers-reduced-motion: reduce) {
  .lm-mini-bars span { transform: scaleY(1); transition: none; }
}
.lm-mini-rows { display: flex; flex-direction: column; gap: 6px; }
.lm-mini-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  background: var(--ink-50);
  border-radius: 6px;
  font-size: 11.5px;
}
.lm-mini-name { color: var(--ink-700); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Channel badges overlay on mini chat */
.lm-channels {
  position: absolute;
  top: -18px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}
.lm-channel {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(15,23,42,0.25), 0 0 0 2px var(--paper);
  opacity: 0;
  transform: translateY(-6px) scale(0.85);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lm-channel svg { width: 19px; height: 19px; }
.lm-channel-line { background: #06C755; }
.lm-channel-fb { background: #1877F2; }
.lm-channel-ig { background: linear-gradient(135deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%); }
.ln-hblock-fulfill:hover .lm-channel,
.ln-hblock-fulfill:focus-visible .lm-channel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ln-hblock-fulfill:hover .lm-channel:nth-child(2) { transition-delay: 60ms; }
.ln-hblock-fulfill:hover .lm-channel:nth-child(3) { transition-delay: 120ms; }

/* Mini chat widget inside fulfillment block */
.lm-mini-chat {
  position: relative;
  width: 100%;
  max-width: 380px;
  min-height: 260px;
  padding: 14px 14px 64px; /* reserve bottom space for the input/AI draft slot */
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--ink-100);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px -20px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-mini-msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lm-mini-msg {
  align-self: flex-start;
  max-width: 80%;
  padding: 8px 12px;
  background: var(--ink-50);
  font-size: 12px;
  color: var(--ink-800);
  border-radius: 14px 14px 14px 4px;
}
/* Sequential bubble entrance when chat scrolls into view */
.lm-mini-msgs[data-reveal-children] > .lm-mini-msg {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom left;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.lm-mini-msgs[data-reveal-children].is-in > .lm-mini-msg {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Override the global delays — conversational pacing */
.lm-mini-msgs[data-reveal-children].is-in > .lm-mini-msg:nth-child(1) { transition-delay: 200ms; }
.lm-mini-msgs[data-reveal-children].is-in > .lm-mini-msg:nth-child(2) { transition-delay: 900ms; }
.lm-mini-msgs[data-reveal-children].is-in > .lm-mini-msg:nth-child(3) { transition-delay: 1500ms; }
.lm-mini-ai {
  position: relative;
  padding: 10px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(135deg, var(--brand) 0%, oklch(0.62 0.18 270) 45%, oklch(0.65 0.22 330) 100%) border-box;
}
.lm-mini-ai::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.62 0.18 270) 45%, oklch(0.65 0.22 330) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .ln-hblock-fulfill:hover .lm-mini-ai::before,
  .ln-hblock-fulfill:focus-visible .lm-mini-ai::before { opacity: 0.85; }
}

/* AI input field — pinned to the bottom of the chat container */
.lm-mini-input {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-500);
  transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out);
}
.lm-mini-input-text { flex: 1; }
.lm-mini-input-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  font-size: 10px;
  color: var(--ink-600);
}
.lm-mini-input-spark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.62 0.18 270) 50%, oklch(0.65 0.22 330) 100%);
  box-shadow: 0 2px 8px -2px color-mix(in oklch, var(--brand) 50%, transparent);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .lm-mini-input-spark svg {
    animation: lm-spark-twinkle 2.4s var(--ease-in-out) infinite;
    transform-origin: center;
  }
}
@keyframes lm-spark-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50%      { transform: scale(1.12) rotate(8deg); opacity: 0.85; }
}

/* On hover, fade the input out so the AI draft takes the spotlight */
@media (hover: hover) and (pointer: fine) {
  .ln-hblock-fulfill:hover .lm-mini-input,
  .ln-hblock-fulfill:focus-visible .lm-mini-input {
    opacity: 0;
    transform: translateY(6px);
  }
}
.lm-mini-ai-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lm-mini-ai-body { font-size: 12px; color: var(--ink-800); line-height: 1.45; margin-bottom: 8px; }
.lm-mini-ai-foot { display: flex; gap: 6px; }
.lm-mini-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--state-success-bg);
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--state-success-fg);
  font-weight: 600;
}
.lm-mini-check { width: 16px; height: 16px; border-radius: 999px; background: var(--state-success-solid); color: white; display: grid; place-items: center; font-size: 10px; }

/* Hover-revealed AI draft (slides up; container height stays fixed) */
.lm-mini-reveal {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.55s var(--ease-out);
  pointer-events: none;
}
.lm-mini-reveal-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .ln-hblock-fulfill:hover .lm-mini-reveal,
  .ln-hblock-fulfill:focus-visible .lm-mini-reveal {
    opacity: 1;
    transform: none;
  }
}

/* App mock */
.ln-mock {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: var(--ink-50);
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(15, 23, 42, 0.18);
}
.ln-mock-bar {
  display: flex; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
}
.ln-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.ln-mock-body {
  display: grid;
  grid-template-columns: 30% 1fr;
  min-height: 320px;
}
.ln-mock-side {
  padding: 18px 14px;
  border-right: 1px solid var(--ink-200);
  display: flex; flex-direction: column; gap: 12px;
}
.ln-mock-main {
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.ln-mock-row {
  display: flex; gap: 12px; align-items: flex-start;
}
.ln-mock-ava {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink-200);
  flex-shrink: 0;
}
.ln-mock-line {
  height: 8px;
  border-radius: 4px;
  background: var(--ink-200);
}
.ln-mock-line.mt-4 { margin-top: 6px; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.ln-mock-bubble {
  align-self: flex-end;
  padding: 10px 14px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: 12px;
  font-size: 12px;
  font-style: italic;
}

/* ---------- Logo strip ---------- */
.ln-logos {
  padding: 32px 0;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: var(--ink-50);
}
.ln-logos-caption {
  text-align: center;
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 28px;
}
.ln-logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 32px clamp(48px, 7vw, 96px);
}
.ln-logo-pl {
  font-weight: 700;
  color: var(--ink-300);
  font-size: 22px;
  font-family: var(--font-display);
  height: 96px;
  display: inline-flex;
  align-items: center;
}
.ln-logo-pl img {
  max-height: 96px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.ln-logo-pl img:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- Sections ---------- */
.ln-section { padding: clamp(64px, 9vw, 120px) 0; }
.ln-section-alt { background: var(--ink-50); }
.ln-section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }

/* Ecosystem diagram */
.ln-eco {
  margin: 0 0 clamp(48px, 6vw, 88px);
  padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px);
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(0deg, var(--ink-50) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, var(--ink-50) 0 1px, transparent 1px 24px);
  background-blend-mode: normal, multiply, multiply;
  position: relative;
}

/* Top: channel chips feeding the funnel */
.ln-eco-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ln-eco-chip {
  font-size: 11px;
  padding: 4px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-600);
}
.ln-eco-funnel {
  margin: 0 auto 20px;
  width: min(560px, 80%);
  height: 28px;
  line-height: 0;
}
.ln-eco-funnel svg { width: 100%; height: 100%; display: block; }

/* Main flow */
.ln-eco-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
  gap: 0;
}
.ln-eco-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(20px, 2vw, 28px) clamp(14px, 1.4vw, 20px);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 4px;
  box-shadow: 4px 4px 0 var(--ink-100);
}
.ln-eco-node[data-stage="2"] { background: var(--ink-50); }
.ln-eco-node[data-stage="4"] { background: var(--ink-50); }
.ln-eco-num {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.ln-eco-glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  font-size: 28px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--ink-900);
  margin-bottom: 4px;
}
.ln-eco-node h4 {
  margin: 0;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.25;
}
.ln-eco-node p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 22ch;
}
.ln-eco-link { width: 100%; height: 80px; align-self: center; }

/* Loop-back */
.ln-eco-loop-svg {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: 4px;
}
.ln-eco-caption {
  margin: -28px 0 0;
  text-align: center;
}
.ln-eco-loop-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--ink-500);
  background: var(--paper);
  padding: 2px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
}

@media (max-width: 1024px) {
  .ln-eco-flow {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ln-eco-link { display: none; }
  .ln-eco-loop-svg { display: none; }
  .ln-eco-caption { margin-top: 16px; }
}
@media (max-width: 560px) {
  .ln-eco-flow { grid-template-columns: 1fr; }
  .ln-eco-funnel { width: 70%; }
}

/* Feature blocks (alternating) */
.ln-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px) 0;
  border-bottom: 1px solid var(--ink-100);
}
.ln-feature:last-child { border-bottom: none; }
.ln-feature-reverse .ln-feature-copy { order: 2; }
.ln-feature-reverse .ln-feature-visual { order: 1; }

.ln-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.ln-bullets li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ink-700);
  font-size: 15px;
}
.ln-bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink-900);
}

.ln-placeholder {
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    var(--ink-50) 0 12px,
    var(--paper) 12px 24px
  );
  display: grid;
  place-items: center;
  color: var(--ink-500);
  font-size: 13px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  padding: 24px;
  text-align: center;
}

/* ---------- Audiences ---------- */
.ln-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ln-audience {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.ln-audience-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 4px 10px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  align-self: flex-start;
}
.ln-audience p { color: var(--ink-600); font-size: 15px; margin: 0; }
.ln-audience .ln-bullets { margin-top: 4px; }
.ln-audience .ln-link { margin-top: auto; padding-top: 16px; }

/* ---------- Stats ---------- */
.ln-stats {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    linear-gradient(95deg, rgba(8,10,14,0.78) 0%, rgba(8,10,14,0.55) 55%, rgba(8,10,14,0.40) 100%),
    linear-gradient(180deg, rgba(8,10,14,0.30) 0%, rgba(8,10,14,0.15) 50%, rgba(8,10,14,0.55) 100%),
    url("creatives/clinic-hero.jpg") center/cover no-repeat,
    var(--ink-900);
  color: var(--paper);
  position: relative;
  isolation: isolate;
}
.ln-stats::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1.2px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.28;
  z-index: 0;
}
.ln-stats > * { position: relative; z-index: 1; }
.ln-stats h2 { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.ln-stats .ln-lede { text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.ln-stats .ln-eyebrow { color: rgba(255,255,255,0.78) !important; text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.ln-stats .ln-stat strong { text-shadow: 0 2px 14px rgba(0,0,0,0.55); }
.ln-stats .ln-stat span { color: rgba(255,255,255,0.82); text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.ln-stats .ln-stat-grid .ln-stat::before { background: rgba(255,255,255,0.22); }
.ln-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  text-align: left;
}
/* Editorial vertical gutter rules between tiles */
.ln-stats .ln-stat-grid .ln-stat {
  position: relative;
  padding-left: 18px;
}
.ln-stats .ln-stat-grid .ln-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.ln-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ln-stat span {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-300);
}

/* ---------- Quotes ---------- */
.ln-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ln-quote {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.ln-quote p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-900);
}
.ln-quote-by {
  display: flex; gap: 12px; align-items: center;
}
.ln-quote-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink-200);
  flex-shrink: 0;
}
.ln-quote-by strong { display: block; font-size: 13.5px; }
.ln-quote-by span { display: block; font-size: 12px; color: var(--ink-500); }

/* ---------- Pricing tiers ---------- */
.ln-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ln-tier {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.ln-tier p { color: var(--ink-600); font-size: 15px; margin: 0; }
.ln-tier-include {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln-tier-include { margin-top: 12px; }
.ln-tier-include + .ln-bullets { margin-top: -6px; }
.ln-tier .ln-bullets { margin-top: 0; }
.ln-tier-include::before {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.ln-bullet-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-500);
}
.ln-tier-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.ln-tier-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--paper);
}
.ln-tier-featured { border-color: var(--ink-900); box-shadow: 0 10px 30px -16px rgba(15, 23, 42, 0.3); }
.ln-tier-pharma { background: var(--ink-50); border-style: dashed; }
.ln-tier .ln-link, .ln-tier .ln-btn { margin-top: auto; }

/* ---------- Final CTA ---------- */
.ln-final {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--ink-900);
  color: var(--paper);
}
.ln-final-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.ln-final h2 { color: var(--paper); }
.ln-final .ln-lede { color: var(--ink-300); }
.ln-final .ln-eyebrow { color: var(--ink-300); }
.ln-cta-form {
  background: var(--paper);
  color: var(--ink-900);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ln-cta-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.ln-cta-form input,
.ln-cta-form select {
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: var(--paper);
  color: var(--ink-900);
}
.ln-cta-form input:focus,
.ln-cta-form select:focus {
  outline: none;
  border-color: var(--ink-900);
}
.ln-cta-form .ln-btn { justify-content: center; }
.ln-cta-form .ln-fineprint { margin: 0; text-align: center; }

/* Final CTA: stepper */
.ln-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ln-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 22px;
  position: relative;
  padding-bottom: 28px;
}
.ln-step:last-child { padding-bottom: 0; }
.ln-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}
.ln-step:last-child::before { display: none; }
.ln-step-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04), 0 8px 18px -8px rgba(0,168,135,0.55);
  z-index: 1;
}
.ln-step-body { padding-top: 6px; min-width: 0; }
.ln-step-body h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: var(--paper);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.25;
}
.ln-step-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-300);
  max-width: 52ch;
}

/* Final CTA: contact cards */
.ln-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ln-contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 22px 22px;
  background: var(--paper);
  color: var(--ink-900);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  box-shadow: 0 1px 2px rgba(15,17,21,0.04), 0 8px 24px -16px rgba(15,17,21,0.4);
}
.ln-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(15,17,21,0.06), 0 18px 36px -16px rgba(15,17,21,0.45);
}
.ln-contact-intent {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-dark);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.ln-contact-ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  box-shadow: 0 6px 16px -8px rgba(0,168,135,0.55);
}
.ln-contact-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}
.ln-contact-role {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
}
.ln-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #06C755;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.ln-footer {
  background: var(--ink-50);
  padding: 56px 0 28px;
  border-top: 1px solid var(--ink-100);
}
.ln-footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.ln-footer-brand .ln-fineprint { max-width: 30ch; margin-top: 12px; }
.ln-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.ln-footer-cols h4 { margin-bottom: 12px; }
.ln-footer-cols a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-700);
  padding: 4px 0;
}
.ln-footer-cols a:hover { color: var(--ink-900); }
.ln-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-200);
  font-size: 12.5px;
  color: var(--ink-500);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .ln-stat-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ln-audience-grid,
  .ln-quotes { grid-template-columns: 1fr 1fr; }
  .ln-tier-grid { grid-template-columns: 1fr 1fr; }
  .ln-footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .ln-nav-links { display: none; }
  .ln-nav-actions .ln-link { display: none; }
  .ln-nav-toggle { display: none; }
  .ln-nav-inner { justify-content: space-between; }
  .ln-nav-actions { margin-left: auto; }
  .ln-nav-actions .ln-lang { display: none; }
  .ln-announce { display: none; }

  .ln-hero-blocks { grid-template-columns: 1fr; }
  .ln-hblock { min-height: auto; }
  .ln-hblock-head { flex-direction: column; }

  .ln-feature,
  .ln-feature-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ln-feature-reverse .ln-feature-copy,
  .ln-feature-reverse .ln-feature-visual { order: initial; }

  .ln-audience-grid,
  .ln-quotes,
  .ln-tier-grid,
  .ln-stat-grid { grid-template-columns: 1fr; }

  .ln-final-inner { grid-template-columns: 1fr; }
  .ln-contact-grid { grid-template-columns: 1fr; }

  .ln-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .ln-footer-cols { grid-template-columns: 1fr 1fr; }
  .ln-footer-bottom { flex-direction: column; gap: 8px; }

  .ln-section-head h2 { font-size: 28px; }
}

/* Pricing: 3-tier layout overrides */
.ln-tier-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ln-tier-price {
  padding: 8px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ln-tier-price strong {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1;
}
.ln-tier-price span {
  font-size: 13px;
  color: var(--ink-500);
}
.ln-tier-price.is-blurred strong {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.ln-tier-price.is-blurred {
  position: relative;
}

/* Social proof: section head sits on dark stats band */
.ln-stats .ln-section-head { max-width: 760px; margin-left: 0; }
.ln-stats .ln-stat-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .ln-tier-grid-3 { grid-template-columns: 1fr 1fr; }
  .ln-stats .ln-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .ln-tier-grid-3 { grid-template-columns: 1fr; }
  .ln-stats .ln-stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Performance Partner: prominent offer card ---------- */
.ln-partner {
  position: relative;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: 16px;
  padding: 36px clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.5);
  overflow: hidden;
}
.ln-partner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px circle at 0% 0%, rgba(255,255,255,0.06), transparent 50%),
    radial-gradient(700px circle at 100% 100%, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
}
.ln-partner-tag {
  position: relative;
  display: inline-block;
  padding: 6px 14px;
  background: var(--brand);
  color: var(--paper);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px -6px rgba(0, 168, 135, 0.6);
}
.ln-partner-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.ln-partner-copy h3 {
  color: var(--paper);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
}
.ln-partner-copy > p {
  color: var(--ink-300);
  margin-top: 12px;
  font-size: 15.5px;
  max-width: 56ch;
}
.ln-bullets-light li { color: var(--ink-300); }
.ln-bullets-light li::before { background: var(--paper); }

/* Fee panel */
.ln-partner-fee {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ln-partner-fee > .ln-btn { align-self: center; }
.ln-calc {
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.ln-calc-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
}
.ln-calc-op {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-400);
  text-align: center;
  line-height: 1;
}
.ln-calc-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.ln-calc-label em {
  font-style: normal;
  color: var(--ink-400);
  font-weight: 500;
  font-size: 14px;
}
.ln-calc-amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
}
.ln-calc-amount small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  margin-left: 4px;
}
.ln-calc-total {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.ln-calc-total .ln-calc-label { font-weight: 700; }
.ln-calc-total .ln-calc-amount {
  font-size: 40px;
  letter-spacing: -0.02em;
}
.ln-calc-total .ln-calc-amount small {
  color: var(--ink-300);
}

/* Editable ad spend stepper */
.ln-calc-input {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 4px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.ln-calc-input:focus-within {
  border-color: var(--brand);
  background: rgba(0, 168, 135, 0.08);
}
.ln-calc-step {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--ink-300);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur-press) var(--ease-out), color var(--dur-press) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ln-calc-step:hover { background: rgba(255, 255, 255, 0.08); color: var(--paper); }
}
.ln-calc-step:active { transform: scale(0.92); }
.ln-calc-step:disabled { opacity: 0.35; cursor: not-allowed; }
.ln-calc-field {
  width: 7ch;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-align: right;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  padding: 0 2px;
  line-height: 1.1;
}
.ln-calc-field::-webkit-outer-spin-button,
.ln-calc-field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ln-calc-field:focus { outline: none; }
.ln-calc-currency {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--paper);
  padding-left: 6px;
  letter-spacing: -0.01em;
}
.ln-calc-input-suffix {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-400);
  padding: 0 8px 0 2px;
}

.ln-calc-free-tag {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(95deg, oklch(0.78 0.16 175) 0%, oklch(0.85 0.18 165) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ln-partner-savings { display: none; }
.ln-partner .ln-btn { margin-top: 6px; justify-content: center; }
.ln-btn-primary-invert {
  background: var(--paper);
  color: var(--ink-900);
  border: 1px solid var(--paper);
}
.ln-btn-primary-invert:hover { background: var(--ink-200); }
.ln-fineprint-light {
  color: var(--ink-300);
  margin: 0;
  text-align: center;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Divider between partner and standard tiers */
.ln-standard-head {
  max-width: 720px;
  margin: clamp(56px, 7vw, 96px) 0 clamp(28px, 3vw, 40px);
}
.ln-standard-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.ln-standard-head .ln-lede { margin-top: 12px; }

@media (max-width: 720px) {
  .ln-partner-inner { grid-template-columns: 1fr; }
  .ln-partner-fee { padding: 16px 12px; }
  .ln-calc-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 4px;
    padding: 8px 0;
    align-items: baseline;
  }
  .ln-calc-op { font-size: 14px; }
  .ln-calc-label {
    font-size: 14px;
    line-height: 1.2;
    gap: 2px 6px;
    flex-wrap: wrap;
  }
  .ln-calc-label em { font-size: 12px; line-height: 1.2; }
  .ln-calc-amount {
    font-size: 14px;
    gap: 2px;
  }
  .ln-calc-amount small { font-size: 10px; margin-left: 2px; }
  .ln-calc-total { padding-top: 14px; margin-top: 2px; }
  .ln-calc-total .ln-calc-label { font-size: 14px; }
  .ln-calc-total .ln-calc-amount { font-size: 20px; }
  .ln-calc-total .ln-calc-amount small { font-size: 10px; }
  .ln-calc-free-tag { font-size: 10px; padding: 2px 7px; }
  .ln-logos-row {
    flex-wrap: nowrap;
    gap: 16px;
    overflow: hidden;
  }
  .ln-logo-pl {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    justify-content: center;
  }
  .ln-logo-pl img {
    max-height: 56px;
    max-width: 100%;
  }
}

/* ---------- Hero: demand → fulfillment stacked visual ---------- */
.ln-hero-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ln-stack-card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px 20px;
  position: relative;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.18);
}
.ln-stack-demand { background: var(--ink-50); }
.ln-stack-fulfillment { background: var(--paper); }
.ln-stack-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 4px;
}
.ln-stack-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 14px;
}
.ln-stack-arrow {
  align-self: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  margin: -2px 0;
  z-index: 1;
}
.ln-stack-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-100);
  font-size: 12px;
  color: var(--ink-500);
}
.ln-stack-meta strong { color: var(--ink-900); margin-right: 2px; }

/* Mini ad mock */
.ln-ad-mock {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}
.ln-ad-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: var(--ink-200);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.ln-ad-copy { min-width: 0; }
.ln-ad-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--ink-900);
  color: var(--paper);
  border-radius: 6px;
}

/* Compact chat mock body in fulfillment card */
.ln-mock-body-compact {
  display: block;
  min-height: auto;
}
.ln-mock-body-compact .ln-mock-main {
  padding: 0;
  gap: 12px;
}

/* ============================================================
   Learn more: CTA + Modal
============================================================ */
.ln-learn {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-900);
  color: var(--paper);
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  padding: 11px 20px;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition-property: gap, transform, background, color, box-shadow;
  transition-duration: var(--dur-base), var(--dur-press), var(--dur-base), var(--dur-base), var(--dur-base);
  transition-timing-function: var(--ease-out);
}
.ln-learn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .ln-learn:hover {
    gap: 12px;
    background: var(--ink-800, #1a1a1a);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }
}

/* Modal shell */
.ln-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 4vw, 64px) 16px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear var(--dur-modal-out);
}
.ln-modal-root.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.ln-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur-modal-out) var(--ease-out);
}
.ln-modal-root.is-open .ln-modal-backdrop {
  opacity: 1;
  transition-duration: var(--dur-modal-in);
}
.ln-modal {
  position: relative;
  width: min(880px, 100%);
  background: var(--paper);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(15, 17, 21, 0.04),
    0 8px 24px -8px rgba(15, 17, 21, 0.18),
    0 32px 80px -16px rgba(15, 17, 21, 0.28);
  margin: auto;
  overflow: hidden;
  /* Initial / exit state — pushed below the viewport */
  opacity: 0;
  transform: translateY(56px);
  transform-origin: center bottom;
  transition-property: opacity, transform;
  transition-duration: var(--dur-modal-out);
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
  will-change: transform, opacity;
}
.ln-modal-root.is-open .ln-modal {
  opacity: 1;
  transform: translateY(0);
  transition-duration: var(--dur-modal-in);
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}
.ln-modal[hidden] { display: none; }
.ln-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  color: var(--ink-700);
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.ln-modal-close:hover { background: var(--ink-50); }

.ln-modal-head {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px) clamp(20px, 2vw, 28px);
  border-bottom: 1px solid var(--ink-100);
  background: linear-gradient(180deg, var(--ink-50) 0%, var(--paper) 100%);
}

/* Halftone hero header (Asian model + halftone treatment) */
.ln-modal-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  border-bottom: 1px solid var(--ink-900);
  background: var(--ink-900);
  overflow: hidden;
  align-items: stretch;
}
.ln-modal-hero-art {
  position: relative;
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 30% 35%, var(--brand-light) 0%, transparent 60%),
    var(--ink-900);
  overflow: hidden;
}
.ln-modal-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.ln-modal-hero-copy {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: oklch(0.18 0.02 256 / 0.85);
  color: var(--paper);
}
.ln-modal-hero-copy .ln-eyebrow,
.ln-modal-hero-copy .ln-eyebrow-lg { color: var(--ink-300); }
.ln-modal-hero-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}
.ln-modal-hero-copy .ln-modal-lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-300);
  max-width: 52ch;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .ln-modal-hero {
    grid-template-columns: 1fr;
  }
  .ln-modal-hero-art {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .ln-modal-hero-art img { object-position: center 20%; }
}
.ln-modal-head h2 {
  margin: 12px 0 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-900);
}
.ln-modal-lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 60ch;
}

.ln-modal-section {
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--ink-100);
}
.ln-modal-section:last-of-type { border-bottom: none; }
.ln-modal-section.ln-track {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(28px, 4vw, 44px);
  background: var(--ink-50);
}
.ln-modal-section.ln-modal-section-dark {
  background: var(--ink-900);
  border-color: var(--ink-900);
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}
.ln-modal-section-dark .ln-modal-h3 { color: var(--paper); }
.ln-modal-section-dark .ln-trap-prose { color: var(--ink-300); }
.ln-modal-section-dark .ln-trap-prose span { color: var(--paper); }
.ln-modal-section-dark .ln-callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 24px;
  color: var(--ink-300);
}
.ln-modal-section-dark .ln-callout strong { color: var(--paper); }
.ln-modal-h3 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* Stats grid */
.ln-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Question list */

/* Trap cards */
.ln-callout {
  padding: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-700);
  border-top: 2px solid var(--ink-900);
  margin-top: 24px;
}
.ln-callout strong {
  display: block;
  color: var(--ink-900);
  font-weight: 700;
  margin-bottom: 4px;
}
.ln-callout-light {
  background: var(--ink-50);
  color: var(--ink-700);
  border: 1px solid var(--ink-100);
  border-top: 1px solid var(--ink-100);
  border-radius: 12px;
  padding: clamp(20px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px);
  margin-top: 0;
}
.ln-callout-light strong { color: var(--ink-900); display: block; margin-bottom: 4px; }

/* Steps (1 → 2 → 3) */
@media (max-width: 720px) {
  .ln-steps { grid-template-columns: 1fr; gap: 12px; }
  .ln-step-arrow { transform: rotate(90deg); }
}

/* Visibility role cards (Tasks modal) */
.ln-vis-role {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}
/* Modal footer */
.ln-modal-foot {
  padding: 18px clamp(24px, 4vw, 48px);
  background: var(--ink-50);
  border-top: 1px solid var(--ink-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ln-modal-fine { font-size: 11px; color: var(--ink-400); }
.ln-modal-cta { display: flex; gap: 10px; }
.ln-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease;
}
.ln-btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--ink-200); }
.ln-btn-ghost:hover { background: var(--paper); }
.ln-btn-dark { background: var(--ink-900); color: var(--paper); }
.ln-btn-dark:hover { background: var(--ink-900); }

@media (max-width: 720px) {
  .ln-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .ln-modal-foot { flex-direction: column; align-items: stretch; }
  .ln-modal-cta { justify-content: flex-end; }
}

/* ============================================================
   Lo-fi mini dashboards (.lm-*): feature section visuals
============================================================ */
.lm {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.4;
}
.lm-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.lm-dots { display: flex; gap: 5px; }
.lm-dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--ink-200); }
.lm-bar-title { font-size: 11px; color: var(--ink-500); font-weight: 600; }

/* ---------- Ads dashboard ---------- */
.lm-ads-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.lm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lm-kpi {
  padding: 10px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 6px;
}
.lm-kpi-lbl { font-size: 10px; text-transform: uppercase; color: var(--ink-500); }
.lm-kpi-val { font-size: 15px; font-weight: 700; color: var(--ink-900); margin: 2px 0; }
.lm-kpi-trend { font-size: 10px; font-weight: 600; }
.lm-kpi-trend.up { color: var(--state-success-fg); }
.lm-kpi-trend.down { color: var(--state-success-fg); } /* CAC down is good */

.lm-chart {
  padding: 12px;
  background: var(--ink-50);
  border: 1px solid var(--ink-100);
  border-radius: 6px;
}
.lm-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; color: var(--ink-500); margin-bottom: 8px;
}
.lm-chart-legend { display: inline-flex; align-items: center; gap: 8px; }
.lm-chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.lm-chart-legend .dot-a { background: var(--ink-300); }
.lm-chart-legend .dot-b { background: var(--ink-900); }
.lm-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 6px;
  height: 80px;
}
.lm-bar-col { display: flex; align-items: end; justify-content: center; gap: 2px; height: 100%; position: relative; }
.lm-bar-col span {
  width: 7px;
  border-radius: 2px 2px 0 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.lm-bar-col .b-a { background: var(--ink-300); }
.lm-bar-col .b-b { background: var(--ink-900); }
/* Stagger bar growth when the feature row scrolls into view */
.ln-feature.is-in .lm-bar-col span { transform: scaleY(1); }
.ln-feature.is-in .lm-bar-col:nth-child(1) span { transition-delay: 60ms; }
.ln-feature.is-in .lm-bar-col:nth-child(2) span { transition-delay: 140ms; }
.ln-feature.is-in .lm-bar-col:nth-child(3) span { transition-delay: 220ms; }
.ln-feature.is-in .lm-bar-col:nth-child(4) span { transition-delay: 300ms; }
.ln-feature.is-in .lm-bar-col:nth-child(5) span { transition-delay: 380ms; }
.ln-feature.is-in .lm-bar-col:nth-child(6) span { transition-delay: 460ms; }
.ln-feature.is-in .lm-bar-col:nth-child(7) span { transition-delay: 540ms; }
.lm-bar-col .b-b { transition-delay: 80ms; }
@media (prefers-reduced-motion: reduce) {
  .lm-bar-col span { transform: scaleY(1); transition: none; }
}
.lm-bar-col em { position: absolute; bottom: -14px; font-size: 9px; color: var(--ink-400); font-style: normal; }

.lm-ads-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lm-ad-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ink-100);
  border-radius: 4px;
  background: var(--paper);
}
.lm-pf {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  color: var(--paper);
  flex-shrink: 0;
}
.lm-pf svg { width: 13px; height: 13px; display: block; }
.lm-pf-fb { background: var(--brand-facebook); }
.lm-pf-ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366); }
.lm-pf-tt { background: var(--ink-900); }
.lm-pf-gg { background: var(--brand-google); }
.lm-ad-name { font-size: 11.5px; color: var(--ink-700); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-ad-stat { font-size: 11px; color: var(--ink-500); font-weight: 600; }
.lm-tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.lm-tag-good { background: var(--state-success-bg); color: var(--state-success-fg); }
.lm-tag-warn { background: var(--state-warning-bg); color: var(--state-warning-fg); }

/* ---------- Chat inbox ---------- */
.lm-chat-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}

.lm-chat-threads { border-right: 1px solid var(--ink-200); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.lm-thread {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px;
  border-radius: 6px;
  cursor: default;
}
.lm-thread.active { background: var(--ink-50); }
.lm-thread-ava {
  width: 28px; height: 28px;
  border-radius: 999px;
  color: var(--paper);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--ink-400);
}
/* Distinct avatar colors per thread */
.lm-thread:nth-child(1) .lm-thread-ava { background: linear-gradient(135deg, oklch(0.62 0.18 25), oklch(0.55 0.18 15)); }
.lm-thread:nth-child(2) .lm-thread-ava { background: linear-gradient(135deg, oklch(0.65 0.16 260), oklch(0.55 0.18 270)); }
.lm-thread:nth-child(3) .lm-thread-ava { background: linear-gradient(135deg, oklch(0.68 0.15 155), oklch(0.55 0.16 165)); }
.lm-thread-mid { min-width: 0; overflow: hidden; }
.lm-thread-name { font-size: 11.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-thread-ch { color: var(--ink-400); font-weight: 400; font-size: 10px; }
.lm-thread-prev { font-size: 11px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-thread-time { font-size: 10px; color: var(--ink-400); align-self: start; }

.lm-chat-panel { position: relative; padding: 14px 14px 64px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }

/* Stagger overrides for chat bubble reveal */
.lm-chat-panel[data-reveal-children] > * {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom left;
  transition-property: opacity, transform;
  transition-duration: 460ms;
  transition-timing-function: var(--ease-out);
}
.lm-chat-panel[data-reveal-children].is-in > *:nth-child(1) { transition-delay: 120ms; }
.lm-chat-panel[data-reveal-children].is-in > *:nth-child(2) { transition-delay: 520ms; }
.lm-chat-panel[data-reveal-children].is-in > *:nth-child(3) { transition-delay: 980ms; }
.lm-chat-panel[data-reveal-children].is-in > *:nth-child(4) { transition-delay: 1400ms; }
.lm-chat-panel[data-reveal-children].is-in > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* AI composer pinned to the bottom of the chat panel */
.lm-chat-input {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  font-size: 12px;
  color: var(--ink-500);
}
.lm-chat-input-spark {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand) 0%, oklch(0.62 0.18 270) 50%, oklch(0.65 0.22 330) 100%);
  flex-shrink: 0;
  box-shadow: 0 2px 8px -2px color-mix(in oklch, var(--brand) 50%, transparent);
}
.lm-chat-input-text { flex: 1; }
.lm-chat-input-kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
  font-size: 10px;
  color: var(--ink-600);
}
.lm-msg {
  max-width: 80%;
  padding: 8px 12px;
  font-size: 11.5px;
  line-height: 1.45;
  border-radius: 14px;
}
.lm-msg-in { background: var(--ink-50); color: var(--ink-800); align-self: flex-start; border-bottom-left-radius: 4px; }
.lm-msg-sm { font-size: 11px; }

.lm-ai-card {
  margin-top: 4px;
  padding: 10px;
  background: var(--paper);
  border: 1.5px solid var(--ink-900);
  border-radius: 8px;
  position: relative;
}
.lm-ai-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lm-ai-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--ink-900);
  color: var(--paper);
  padding: 2px 7px;
  border-radius: 4px;
}
.lm-ai-conf { font-size: 10px; color: var(--ink-500); }
.lm-ai-body { font-size: 11.5px; color: var(--ink-800); line-height: 1.5; margin-bottom: 8px; }
.lm-ai-foot { display: flex; gap: 6px; }
.lm-ai-btn {
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 10px;
  border: 1px solid var(--ink-200);
  background: var(--paper);
  border-radius: 4px;
  cursor: default;
  color: var(--ink-700);
}
.lm-ai-btn.primary { background: var(--ink-900); color: var(--paper); border-color: var(--ink-900); }

.lm-ctx {
  margin-top: auto;
  padding: 8px 10px;
  border: 1px dashed var(--ink-200);
  border-radius: 4px;
  display: flex; flex-direction: column; gap: 3px;
}
.lm-ctx-row { display: flex; justify-content: space-between; font-size: 10.5px; }
.lm-ctx-k { color: var(--ink-400); text-transform: uppercase; font-size: 9.5px; }
.lm-ctx-v { color: var(--ink-700); font-weight: 600; }

/* ---------- Tasks list ---------- */
.lm-tasks-list {
  padding: 4px 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.lm-tasks-list .lm-row { will-change: transform; transition: opacity 420ms ease; }
.lm-status { transition: background 360ms ease, color 360ms ease; }
.lm-row-title { transition: text-decoration-color 420ms ease; }
.lm-list-head,
.lm-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 80px 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-100);
}
.lm-list-head {
  background: transparent;
  border-bottom: 1px solid var(--ink-100);
}
.lm-lh {
  font-size: 9.5px;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 700;
}
.lm-row {
  background: var(--paper);
  font-size: 11.5px;
  color: var(--ink-700);
  position: relative;
}
.lm-row:last-child { border-bottom: none; }

.lm-status {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  display: inline-block;
  width: fit-content;
}
.lm-status-todo { background: var(--ink-100); color: var(--ink-700); }
.lm-status-prog { background: var(--state-warning-bg); color: var(--state-warning-fg); }
.lm-status-done { background: var(--state-success-bg); color: var(--state-success-fg); }

.lm-row-title { font-size: 12px; font-weight: 600; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-row-type { font-size: 10.5px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-row-owner { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-600); }

.lm-task-ava {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--ink-200);
  color: var(--ink-700);
  display: grid; place-items: center;
  font-size: 9.5px; font-weight: 700;
}
.lm-task-br { font-size: 10px; color: var(--ink-500); padding: 1px 7px; background: var(--ink-50); border-radius: 999px; width: fit-content; }
.lm-row-done { opacity: 0.55; }
.lm-row-done .lm-row-title { text-decoration: line-through; text-decoration-color: var(--ink-300); }

@media (max-width: 720px) {
  .lm-kpis { grid-template-columns: repeat(2, 1fr); }
  .lm-chat-body { grid-template-columns: 1fr; }
  .lm-chat-threads { display: none; }
  .lm-list-head { display: none; }
  .lm-row {
    grid-template-columns: 90px 1fr auto;
    grid-template-areas:
      "status title title"
      "status owner  br";
    gap: 6px 10px;
  }
  .lm-row > .lm-status { grid-area: status; }
  .lm-row > .lm-row-title { grid-area: title; white-space: normal; }
  .lm-row > .lm-row-owner { grid-area: owner; }
  .lm-row > .lm-task-br { grid-area: br; justify-self: end; }
}

/* ============================================================
   Editorial track-record (replaces hero-metric tile grid)
============================================================ */
.ln-modal-section.ln-track { text-align: center; }
.ln-track-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-100);
  text-align: left;
  width: auto;
}
.ln-modal-section.ln-track .ln-track-meta { justify-content: center; }
.ln-track-figure {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.ln-track-line {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.45;
  color: var(--ink-700);
  max-width: 36ch;
  margin: 0;
}
@media (max-width: 640px) {
  .ln-track-hero { grid-template-columns: 1fr; gap: 12px; }
}
.ln-track-meta {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin: 20px 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.ln-track-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ln-track-meta dt {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
}
.ln-track-meta dd {
  margin: 0;
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
}

/* Visibility list (replaces 4 role cards) */
.ln-vis-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ln-vis-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}
.ln-vis-list li:last-child { border-bottom: none; }
.ln-vis-role {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
}
.ln-vis-line {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-600);
}
@media (max-width: 720px) {
  .ln-vis-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   Marketing modal: editorial questions, prose trap, playbook
============================================================ */
.ln-quotes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: q;
  display: flex;
  flex-direction: column;
}
.ln-quotes li {
  counter-increment: q;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-100);
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 16px;
}
.ln-quotes li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
}
.ln-quotes-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink-900);
}
.ln-quotes li:last-child { border-bottom: none; }
.ln-quotes li:first-child { border-top: 1px solid var(--ink-100); }

.ln-trap-prose {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0 0 20px;
  max-width: 60ch;
}
.ln-trap-prose span {
  font-weight: 700;
  color: var(--ink-900);
}

.ln-play {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ln-play li {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--ink-100);
}
.ln-play-body { min-width: 0; }
.ln-play li:last-child { border-bottom: none; }
.ln-play li:first-child { border-top: 1px solid var(--ink-100); }
.ln-play-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--ink-300);
  line-height: 0.9;
}
.ln-play h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--ink-900);
  text-transform: none;
}
.ln-play p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 56ch;
}

/* ============================================================
   Chat AI modal: split compare table + onboarding flow
============================================================ */
.ln-split {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ln-split thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink-200);
}
.ln-split thead th + th {
  padding-left: clamp(16px, 2vw, 28px);
}
.ln-split tbody td {
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-100);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-700);
  width: 50%;
}
.ln-split tbody td + td {
  padding-left: clamp(16px, 2vw, 28px);
  color: var(--ink-900);
  font-weight: 500;
}
.ln-split tbody tr:last-child td { border-bottom: none; }

/* Feature list: numbered editorial bullets (Jib AI capabilities, setup) — matches .ln-play */
.ln-feat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: feat;
}
.ln-feat-list li {
  counter-increment: feat;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-auto-flow: row;
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 4px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: start;
}
.ln-feat-list li:first-child { border-top: 1px solid var(--ink-100); }
.ln-feat-list li:last-child { border-bottom: none; }
.ln-feat-list li::before {
  content: counter(feat, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--ink-300);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.ln-feat-list h4 {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--ink-900);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
  line-height: 1.3;
}
.ln-feat-list p {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
  margin: 0;
  max-width: 56ch;
}

.ln-onboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ln-onboard li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(16px, 2vw, 28px);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: baseline;
}
.ln-onboard li:last-child { border-bottom: none; }
.ln-onboard-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--ink-400);
}
.ln-onboard p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-600);
}
.ln-onboard p strong { color: var(--ink-900); font-weight: 600; }

/* ============================================================
   Tasks modal: editorial scenarios
============================================================ */
/* Scenarios list (Tasks modal) — matches .ln-play */
.ln-scenarios {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: s;
}
.ln-scenarios li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-auto-flow: row;
  column-gap: clamp(16px, 2vw, 28px);
  row-gap: 4px;
  padding: clamp(20px, 2.4vw, 28px) 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: start;
}
.ln-scenarios li:first-child { border-top: 1px solid var(--ink-100); }
.ln-scenarios li:last-child { border-bottom: none; }
.ln-scenarios li::before {
  content: counter(s, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  color: var(--ink-300);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.ln-scenarios h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 600;
  color: var(--ink-900);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
}
.ln-scenarios p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 56ch;
}
.ln-scenarios em {
  font-style: italic;
  color: var(--ink-700);
}

@media (max-width: 720px) {
  .ln-play li,
  .ln-feat-list li,
  .ln-scenarios li { grid-template-columns: 1fr; gap: 4px; }
  .ln-play li::before,
  .ln-feat-list li::before,
  .ln-scenarios li::before { grid-row: auto; }
  .ln-onboard li { grid-template-columns: 1fr; gap: 4px; }
  .ln-split tbody td,
  .ln-split tbody td + td { display: block; width: 100%; padding-left: 0; }
  .ln-split thead { display: none; }
  .ln-split tbody td + td { padding-top: 6px; padding-bottom: 14px; }
}

/* ============================================================
   Feature spec list (Omnichannel Chat AI)
============================================================ */
.ln-features-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.ln-features-head h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.ln-spec {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink-200);
}
.ln-spec > div {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 2.6vw, 32px) 0;
  border-bottom: 1px solid var(--ink-100);
  align-items: baseline;
}
.ln-spec dt {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin: 0;
}
.ln-spec dd {
  margin: 0;
  font-size: clamp(14.5px, 1.3vw, 16.5px);
  line-height: 1.6;
  color: var(--ink-700);
  max-width: 72ch;
}
@media (max-width: 720px) {
  .ln-spec > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================================
   Voiceflow-inspired hero refinements
   ============================================================ */

/* Soft ambient glow behind hero, brand-tinted, capped by container width */
.ln-hero { position: relative; overflow: hidden; isolation: isolate; }
.ln-hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 50% 10%, color-mix(in oklch, var(--brand) 18%, transparent) 0%, transparent 70%),
    radial-gradient(50% 50% at 80% 0%, color-mix(in oklch, oklch(0.78 0.12 270) 14%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .ln-hero-glow { animation: ln-glow-drift 18s var(--ease-in-out) infinite alternate; }
}
@keyframes ln-glow-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.04); }
}

/* Announcement pill (GitBook/Wrangle/Pin pattern) */
.ln-announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--paper) 80%, transparent);
  border: 1px solid var(--ink-200);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-800);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ln-announce:hover {
  transform: translateY(-1px);
  border-color: var(--ink-300);
  box-shadow: 0 4px 14px -6px rgba(15, 23, 42, 0.12);
}
.ln-announce-tag {
  display: inline-grid;
  place-items: center;
  padding: 3px 10px;
  background: var(--brand);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.ln-announce-arrow {
  font-size: 14px;
  color: var(--ink-600);
  transition: transform var(--dur-fast) var(--ease-out);
}
.ln-announce:hover .ln-announce-arrow { transform: translateX(3px); color: var(--ink-900); }
@media (max-width: 560px) {
  .ln-announce-text { display: none; }
  .ln-announce { padding: 6px 12px 6px 6px; }
  .ln-announce-tag::after { content: " — Partner program"; font-weight: 500; text-transform: none; letter-spacing: 0; }
}

/* Italic accent on key phrase in hero h1 (Air/Relevance pattern) */
.ln-hero-top h1 em {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-darker) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.12em;
}
.ln-logo-jib,
.ln-logo-os {
  background: none;
  color: #222;
}

/* Arrow tucked into primary CTA (animates on hover) */
.ln-btn-primary span[aria-hidden] {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.ln-btn-primary:hover span[aria-hidden] { transform: translateX(3px); }

/* Trust line under CTAs */
.ln-hero-trust {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  font-size: 13px;
  color: var(--ink-600);
}
.ln-hero-trust strong { color: var(--ink-900); font-weight: 700; }
.ln-trust-sep { color: var(--ink-300); }
.ln-trust-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--state-success-solid);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--state-success-solid) 22%, transparent);
  margin-right: 2px;
}

/* Live status pulse on mini-ads dashboard (Voiceflow active dot) */
.lm-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--state-success-solid);
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .lm-live-dot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 999px;
    background: var(--state-success-solid);
    opacity: 0.5;
    animation: ln-pulse 1.8s var(--ease-out) infinite;
  }
}
@keyframes ln-pulse {
  0%   { transform: scale(0.6); opacity: 0.55; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Marketing learn-row (multiple CTAs) ---------- */
.ln-learn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 12px; margin-top: 8px; }
.ln-learn-row .ln-learn { margin-top: 0; }
.ln-learn-ghost { background: transparent; color: var(--ink-900); border-color: var(--ink-200); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .ln-learn-ghost:hover { background: var(--ink-50); color: var(--ink-900); gap: 8px; border-color: var(--ink-300); }
}

/* ---------- Case Study modal ---------- */
.ln-modal-case .ln-modal-hero {
  background-color: var(--ink-900);
  background-image:
    linear-gradient(180deg, rgba(8,10,14,0.35) 0%, rgba(8,10,14,0.15) 45%, rgba(8,10,14,0.55) 100%),
    url("creatives/finish-line.jpg");
  background-size: cover, cover;
  background-position: center, center 70%;
  background-repeat: no-repeat, no-repeat;
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 38vw, 520px);
}
.ln-modal-case .ln-modal-hero .ln-modal-hero-copy { position: relative; z-index: 1; }
.ln-modal-case .ln-modal-hero h2 { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.ln-modal-case .ln-modal-hero .ln-modal-lede { text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.ln-modal-case .ln-modal-hero .ln-eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
/* .ln-modal-hero-compact { padding-bottom: 8px; } */
.ln-modal-hero-compact .ln-modal-hero-copy { max-width: 720px; }
.ln-modal-hero-center { text-align: center; grid-template-columns: 1fr; }
.ln-modal-hero-center .ln-modal-hero-copy {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 64px);
}
.ln-modal-hero-center .ln-modal-lede { max-width: 64ch; margin-left: auto; margin-right: auto; }
.ln-play-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  counter-reset: none;
}
.ln-play-cols > li,
.ln-play-cols > li:first-child,
.ln-play-cols > li:last-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: 0;
}
.ln-play-cols > li::before { display: none; }
.ln-play-cols .ln-play-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink-300);
  letter-spacing: -0.02em;
}
.ln-play-cols .ln-play-body { padding-left: 0; }
@media (max-width: 720px) {
  .ln-play-cols { grid-template-columns: 1fr; gap: 20px; }
}

/* KPI strip */
.ln-cs-kpis-wrap {
  background: linear-gradient(135deg, oklch(0.96 0.04 175) 0%, oklch(0.97 0.02 185) 100%);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 28px clamp(20px, 3vw, 36px) 32px;
}
.ln-cs-kpi-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-darker);
  margin-bottom: 18px;
}
.ln-cs-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}
.ln-cs-kpi {
  border-left: 2px solid var(--brand);
  padding-left: 18px;
}
.ln-cs-kpi:first-child { padding-left: 0; border-left: 0; }
.ln-cs-kpi-figure {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-darker) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}
.ln-cs-kpi-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.ln-cs-kpi-delta {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 4px;
  line-height: 1.4;
}

/* Compare cards */
.ln-cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.ln-cs-compare-card {
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  padding: 22px;
  background: var(--paper);
}
.ln-cs-compare-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ln-cs-compare-card li {
  font-size: 15px;
  color: var(--ink-800);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.ln-cs-compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.ln-cs-compare-wrong { background: var(--ink-50); }
.ln-cs-compare-wrong .ln-cs-compare-label { color: var(--ink-500); }
.ln-cs-compare-wrong li { color: var(--ink-600); text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: var(--ink-300); }
.ln-cs-compare-wrong li::before { background: var(--ink-300); }
.ln-cs-compare-right { border-color: color-mix(in oklch, var(--brand), white 60%); box-shadow: 0 12px 30px -18px color-mix(in oklch, var(--brand), transparent 60%); }
.ln-cs-compare-right .ln-cs-compare-label { color: var(--brand-darker); }
.ln-cs-compare-right li::before { background: var(--brand); }
.ln-cs-compare-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Banner showcase */
.ln-cs-banner-title { text-align: center; }
.ln-cs-banner {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  justify-items: center;
}
.ln-cs-banner img {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.35), 0 0 0 1px var(--ink-100);
  display: block;
}
.ln-cs-banner figcaption {
  font-size: 13px;
  color: var(--ink-500);
  text-align: center;
  max-width: 540px;
  line-height: 1.5;
}

/* Punchline */
.ln-cs-punch { padding: 8px 0 6px; }
.ln-cs-punch-strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.ln-cs-punch-line {
  font-size: clamp(15px, 1.4vw, 17px);
  color: oklch(0.78 0.01 250);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 56ch;
}

@media (max-width: 720px) {
  .ln-cs-kpis { grid-template-columns: 1fr; gap: 18px; }
  .ln-cs-kpi { border-left: 0; border-top: 1px solid var(--ink-200); padding: 14px 0 0; }
  .ln-cs-kpi:first-child { border-top: 0; padding-top: 0; }
  .ln-cs-compare { grid-template-columns: 1fr; }
}

/* ---------- Demo modal · iframe player ---------- */
.ln-modal-demo {
  width: min(1280px, 96vw);
  height: min(820px, 92vh);
  max-height: 92vh;
  background: var(--ink-900);
  border-radius: 16px;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.18),
    0 24px 60px -12px rgba(0,0,0,0.45),
    0 60px 140px -20px rgba(0,0,0,0.55);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ln-modal-demo .ln-modal-close {
  top: 8px;
  right: 12px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1;
  border-radius: 6px;
  z-index: 2;
}
.ln-modal-demo .ln-modal-close:hover {
  background: rgba(255,255,255,0.10);
  color: var(--paper);
}
.ln-demo-frame-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
}
.ln-demo-frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 52px 12px 16px;
  background: #0f1115;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.ln-demo-frame-dots {
  display: inline-flex;
  gap: 6px;
}
.ln-demo-frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
}
.ln-demo-frame-dots span:nth-child(1) { background: #ff5f57; }
.ln-demo-frame-dots span:nth-child(2) { background: #febc2e; }
.ln-demo-frame-dots span:nth-child(3) { background: #28c840; }
.ln-demo-frame-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.ln-demo-frame-pill {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(38, 192, 145, 0.18);
  color: #6fe3b6;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ln-demo-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--paper);
  display: block;
}
@media (max-width: 720px) {
  .ln-modal-demo {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 18px;
    margin: 8px;
  }
  .ln-demo-frame-bar { padding: 10px 52px 10px 14px; font-size: 12px; }
  .ln-demo-frame-pill { display: none; }
}

/* ---------- Demo modal · tab toggle (Agent / Customer) ---------- */
.ln-demo-tabs {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
}
.ln-demo-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.ln-demo-tab:hover { color: rgba(255,255,255,0.9); }
.ln-demo-tab.is-active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.25);
}

.ln-demo-panel {
  flex: 1;
  min-height: 0;
  display: none;
}
.ln-demo-panel.is-active { display: flex; }
.ln-demo-panel[data-demo-panel="agent"] { background: var(--paper); }

/* Push the close button so it doesn't collide with the new tabs row on small viewports. */
@media (max-width: 720px) {
  .ln-demo-tabs { padding: 2px; gap: 0; }
  .ln-demo-tab { padding: 5px 10px; font-size: 11.5px; }
  .ln-demo-frame-title { display: none; }
}

/* ---------- Customer-view chat ---------- */
.ln-cust {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  background: linear-gradient(180deg, #f4f1ec 0%, #eef0ea 100%);
  overflow: hidden;
}
.ln-cust-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(15,17,21,0.08);
  background:
    radial-gradient(1200px 600px at 0% 0%, rgba(38,192,145,0.06), transparent 60%),
    radial-gradient(1200px 600px at 100% 100%, rgba(124,58,237,0.04), transparent 60%),
    var(--paper);
}
.ln-cust-chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15,17,21,0.06);
  background: var(--paper);
}
.ln-cust-chat-ava {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #e8efe9;
  flex-shrink: 0;
}
.ln-cust-chat-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln-cust-chat-id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.ln-cust-chat-id strong { font-family: var(--font-display); font-size: 14px; color: var(--ink-900); }
.ln-cust-chat-id span { font-size: 11.5px; color: var(--ink-500); }
.ln-cust-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-500);
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecf6f0;
}
.ln-cust-chat-status-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: #26c091; box-shadow: 0 0 0 3px rgba(38,192,145,0.18);
}
.ln-cust-chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.ln-cust-msg { display: flex; flex-direction: column; gap: 4px; max-width: 78%; }
.ln-cust-msg-bot { align-self: flex-start; }
.ln-cust-msg-user { align-self: flex-end; align-items: flex-end; }
.ln-cust-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ln-cust-msg-bot .ln-cust-bubble {
  background: var(--paper);
  color: var(--ink-900);
  border: 1px solid rgba(15,17,21,0.08);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(15,17,21,0.04);
}
.ln-cust-msg-user .ln-cust-bubble {
  background: #06C755; /* LINE green */
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ln-cust-meta { font-size: 10.5px; color: var(--ink-500); padding: 0 4px; }
.ln-cust-msg-user .ln-cust-meta { text-align: right; }

.ln-cust-typing {
  display: inline-flex; gap: 4px; padding: 12px 14px;
  background: var(--paper); border: 1px solid rgba(15,17,21,0.08);
  border-radius: 16px; border-bottom-left-radius: 4px;
}
.ln-cust-typing span {
  width: 6px; height: 6px; border-radius: 999px; background: #b8bcc4;
  animation: lnCustBounce 1.1s infinite ease-in-out;
}
.ln-cust-typing span:nth-child(2) { animation-delay: .15s; }
.ln-cust-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes lnCustBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ln-cust-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15,17,21,0.06);
  background: var(--paper);
}
.ln-cust-chat-form input {
  flex: 1;
  border: 1px solid rgba(15,17,21,0.12);
  background: #f5f6f4;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-900);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.ln-cust-chat-form input:focus {
  background: var(--paper);
  border-color: rgba(38,192,145,0.55);
  box-shadow: 0 0 0 3px rgba(38,192,145,0.14);
}
.ln-cust-chat-form button {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--ink-900);
  color: var(--paper);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ln-cust-chat-form button:hover { background: #000; transform: translateY(-1px); }

/* ---------- Customer-view prompt sidebar ---------- */
.ln-cust-prompt {
  display: flex;
  flex-direction: column;
  background: #1a1c20;
  color: var(--paper);
  padding: 22px 22px 18px;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
.ln-cust-prompt-head { display: flex; flex-direction: column; gap: 8px; }
.ln-cust-prompt-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6fe3b6;
  font-weight: 700;
}
.ln-cust-prompt h4 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ln-cust-prompt p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.62);
}
.ln-cust-prompt textarea {
  flex: 1;
  min-height: 0;
  resize: none;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.10);
  background: #0f1115;
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 14px 14px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ln-cust-prompt textarea:focus {
  border-color: rgba(111,227,182,0.55);
  box-shadow: 0 0 0 3px rgba(38,192,145,0.16);
}
.ln-cust-prompt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ln-cust-prompt-reset {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.88);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.ln-cust-prompt-reset:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.30);
}
.ln-cust-prompt-hint { font-size: 11px; color: rgba(255,255,255,0.45); }

@media (max-width: 880px) {
  .ln-cust {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
  .ln-cust-chat { border-right: 0; border-bottom: 1px solid rgba(15,17,21,0.08); }
}

/* ---------- Customer-view chat · markdown + state ---------- */
.ln-cust-bubble p { margin: 0; }
.ln-cust-bubble p + p,
.ln-cust-bubble p + ul,
.ln-cust-bubble ul + p { margin-top: 8px; }
.ln-cust-bubble ul { margin: 0; padding-left: 18px; }
.ln-cust-bubble li { margin: 2px 0; }
.ln-cust-bubble strong { font-weight: 700; }

.ln-cust-msg-bot .ln-cust-bubble-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.ln-cust-chat-form.is-busy input { opacity: 0.7; }
.ln-cust-chat-form input:disabled,
.ln-cust-chat-form button:disabled { cursor: not-allowed; }
.ln-cust-chat-form button:disabled { background: #6b7280; transform: none; }

/* ============================================================
   Customer-view · multi-stage flow (search → scan → ready → chat)
   ============================================================ */
.ln-cust-flow {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f1ec 0%, #eef0ea 100%);
}
.ln-cust-stage {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  width: 100%;
  overflow: hidden;
  animation: lnCustStageIn .35s cubic-bezier(.2,.7,.2,1) both;
}
.ln-cust-stage[hidden] { display: none; }
@keyframes lnCustStageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Stage 1 · search ---------- */
.ln-cust-stage-search {
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(38,192,145,0.07), transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(124,58,237,0.05), transparent 60%);
}
.ln-cust-search-inner {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ln-cust-search-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ln-cust-search-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}
.ln-cust-search-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-600);
}
.ln-cust-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(15,17,21,0.10);
  border-radius: 14px;
  padding: 4px 12px;
  box-shadow: 0 1px 2px rgba(15,17,21,0.04), 0 8px 24px -12px rgba(15,17,21,0.12);
  transition: border-color .15s ease, box-shadow .15s ease;
  margin-top: 6px;
}
.ln-cust-search-box:focus-within {
  border-color: rgba(38,192,145,0.45);
  box-shadow: 0 1px 2px rgba(15,17,21,0.04), 0 0 0 4px rgba(38,192,145,0.14);
}
.ln-cust-search-icon {
  font-size: 18px;
  color: var(--ink-500);
  padding: 0 6px;
  user-select: none;
}
.ln-cust-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  padding: 14px 4px;
  outline: none;
  color: var(--ink-900);
}
.ln-cust-search-spinner {
  width: 16px; height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(15,17,21,0.10);
  border-top-color: rgba(15,17,21,0.50);
  animation: lnCustSpin .9s linear infinite;
  display: none;
  margin-right: 6px;
}
.ln-cust-search-box.is-loading .ln-cust-search-spinner { display: inline-block; }
@keyframes lnCustSpin { to { transform: rotate(360deg); } }

.ln-cust-search-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin-top: 4px;
}
.ln-cust-search-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid rgba(15,17,21,0.08);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ln-cust-search-result:hover {
  border-color: rgba(38,192,145,0.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(38,192,145,0.45);
}
.ln-cust-search-result-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ln-cust-search-result-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff8e0;
  border: 1px solid #fde68a;
}
.ln-cust-search-result-addr {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.4;
}
.ln-cust-search-empty,
.ln-cust-search-error {
  padding: 10px 4px;
  font-size: 13px;
  color: var(--ink-500);
}
.ln-cust-search-error { color: #b91c1c; }
.ln-cust-search-skip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-size: 12.5px;
  padding: 8px 0 0;
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ln-cust-search-skip:hover { color: var(--ink-800); }

/* ---------- Stage 2 · scanning ---------- */
.ln-cust-stage-scanning {
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(900px 500px at 50% 30%, rgba(38,192,145,0.10), transparent 60%),
    linear-gradient(180deg, #0f1115 0%, #1a1c20 100%);
  color: var(--paper);
}
.ln-cust-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 420px;
  width: 100%;
}
.ln-cust-scan-orb {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.ln-cust-scan-orb-core {
  position: absolute;
  inset: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #6fe3b6, #26c091 60%, #00785e);
  box-shadow:
    0 0 0 4px rgba(38,192,145,0.20),
    0 0 24px rgba(38,192,145,0.55);
  animation: lnCustOrbBreathe 1.6s ease-in-out infinite;
}
.ln-cust-scan-orb-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(111,227,182,0.45);
  animation: lnCustOrbRipple 1.8s ease-out infinite;
  opacity: 0;
}
.ln-cust-scan-orb-pulse:nth-child(2) { animation-delay: .6s; }
@keyframes lnCustOrbBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes lnCustOrbRipple {
  0%   { transform: scale(0.6); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ln-cust-scan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--paper);
}
.ln-cust-scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.ln-cust-scan-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.ln-cust-scan-step-icon {
  width: 16px; height: 16px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.18);
  position: relative;
  flex-shrink: 0;
  transition: border-color .25s ease, background .25s ease;
}
.ln-cust-scan-steps li.is-active {
  color: rgba(255,255,255,0.92);
  background: rgba(38,192,145,0.10);
  border-color: rgba(38,192,145,0.30);
}
.ln-cust-scan-steps li.is-active .ln-cust-scan-step-icon {
  border-color: #6fe3b6;
  background:
    radial-gradient(circle, #6fe3b6 30%, transparent 32%);
  animation: lnCustStepPulse 1s ease-in-out infinite;
}
@keyframes lnCustStepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111,227,182,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(111,227,182,0); }
}
.ln-cust-scan-steps li.is-done {
  color: rgba(255,255,255,0.78);
}
.ln-cust-scan-steps li.is-done .ln-cust-scan-step-icon {
  background: #6fe3b6;
  border-color: #6fe3b6;
}
.ln-cust-scan-steps li.is-done .ln-cust-scan-step-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 45%, #0f1115 45%, #0f1115 55%, transparent 55%) center/8px 2px no-repeat,
    linear-gradient(-45deg, transparent 45%, #0f1115 45%, #0f1115 55%, transparent 55%) center/2px 8px no-repeat;
}

/* ---------- Stage 3 · ready / voila ---------- */
.ln-cust-stage-ready {
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.ln-cust-ready {
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ln-cust-ready-check {
  width: 72px;
  height: 72px;
  margin-bottom: 4px;
}
.ln-cust-ready-check svg {
  width: 100%; height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.ln-cust-ready-check circle {
  stroke: #26c091;
  stroke-width: 2;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: lnCustReadyCircle .6s .1s cubic-bezier(.2,.7,.2,1) forwards;
}
.ln-cust-ready-check path {
  stroke: #26c091;
  stroke-width: 3;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: lnCustReadyTick .35s .55s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes lnCustReadyCircle { to { stroke-dashoffset: 0; } }
@keyframes lnCustReadyTick   { to { stroke-dashoffset: 0; } }
.ln-cust-ready-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}
.ln-cust-ready-lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-600);
}
.ln-cust-ready-cta {
  margin-top: 12px;
  appearance: none;
  border: 0;
  background: var(--ink-900);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ln-cust-ready-cta:hover { background: #000; transform: translateY(-1px); }
.ln-cust-ready-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .ln-cust-search-title { font-size: 22px; }
  .ln-cust-scan-name { font-size: 19px; }
  .ln-cust-ready-title { font-size: 22px; }
}

/* ============================================================
   Brand DNA · save state + mobile single-panel
   ============================================================ */

/* ---- prompt foot: Reset · status · Save ---- */
.ln-cust-prompt-foot {
  flex-wrap: wrap;
  row-gap: 10px;
}
.ln-cust-prompt-status {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
  transition: color .2s ease;
}
.ln-cust-prompt-status.is-dirty { color: #fcd34d; }
.ln-cust-prompt-status.is-just-saved { color: #6fe3b6; font-weight: 600; }

.ln-cust-prompt-save {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: not-allowed;
  transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ln-cust-prompt-save.is-dirty {
  background: #26c091;
  color: #06241b;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(38,192,145,0.65);
}
.ln-cust-prompt-save.is-dirty:hover { background: #2bd4a1; transform: translateY(-1px); }

/* ---- chat header: edit button (mobile-priority but visible on desktop too) ---- */
.ln-cust-chat-edit {
  appearance: none;
  border: 1px solid rgba(15,17,21,0.10);
  background: transparent;
  color: var(--ink-700);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 6px;
  transition: background .15s ease, border-color .15s ease;
}
.ln-cust-chat-edit:hover { background: var(--ink-50); border-color: rgba(15,17,21,0.20); }

/* ---- prompt header: mobile back button ---- */
.ln-cust-prompt-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  font: inherit;
  font-size: 12.5px;
  padding: 0;
  cursor: pointer;
  text-align: left;
  align-self: flex-start;
  display: none;
  margin-bottom: 4px;
  transition: color .15s ease;
}
.ln-cust-prompt-back:hover { color: var(--paper); }

/* ============================================================
   Mobile (≤880px): single-panel chat with slide-over prompt
   ============================================================ */
@media (max-width: 880px) {
  /* Override the desktop two-row grid: show ONE panel, full size. */
  .ln-cust {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    position: relative;
  }
  .ln-cust-chat {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  /* Prompt panel becomes a layered slide-over hidden by default. */
  .ln-cust-prompt {
    position: absolute;
    inset: 0;
    z-index: 5;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .ln-cust-stage-chat .ln-cust.is-prompt-open .ln-cust-prompt,
  .ln-cust .is-prompt-open + .ln-cust-prompt {
    /* covered by the simpler selector below */
  }
  /* Use the chat stage's is-prompt-open flag to slide the prompt in. */
  .ln-cust-stage-chat.is-prompt-open .ln-cust-prompt { transform: translateX(0); }

  /* Show the chat-header edit button (mobile-only) */
  .ln-cust-chat-edit { display: inline-flex; }
  /* Show the prompt back button */
  .ln-cust-prompt-back { display: inline-block; }

  /* Tighten prompt foot layout on small screens */
  .ln-cust-prompt-foot { gap: 8px; }
  .ln-cust-prompt-status { flex-basis: 100%; order: 3; }
}
