/* Justify — Marketing Site
   White canvas, dark inverted slabs, coloured section moments.
   Typography: Sora display · Inter UI · JetBrains Mono tags.

   RESPONSIVE BREAKPOINTS — must match src/lib/core/responsive/breakpoints.ts
   ───────────────────────────────────────────────────────────────────────
   xs  475px — ultra-narrow mobile (fold devices)
   sm  640px — text density only, NOT structural layout
   md  768px — THE mobile/desktop boundary (layout switches happen here)
   lg  1024px — tablet/desktop wide layouts
   xl  1280px
   2xl 1536px
   CSS custom properties can't be used in @media queries, so the values
   are repeated in @media rules. Keep them aligned to this table.
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Sora:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Light canvas */
  --bg: #ffffff;
  --bg-1: #fafbfc;
  --bg-2: #f4f5f7;
  --bg-3: #eaecef;
  --bg-4: #dde0e4;
  --ink: #0b0c0e;
  --ink-soft: #3d4148;
  --ink-mid: #6b7078;
  --ink-dim: #9aa0a8;
  --hair: rgba(11, 12, 14, 0.08);
  --hair-2: rgba(11, 12, 14, 0.12);
  --hair-3: rgba(11, 12, 14, 0.2);

  --accent: #00bfff;
  --accent-ink: #0a5bcc;
  --accent-soft: rgba(0, 191, 255, 0.1);
  --pos: #0e8170;
  --neg: #c43c20;
  --amber: #b27612;
  --violet: #6e35c2;
  --teal: #0e8170;

  /* Dark slab */
  --d-bg: #0a0a0b;
  --d-bg-1: #0f1012;
  --d-bg-2: #14161a;
  --d-bg-3: #1b1e23;
  --d-bg-4: #23272e;
  --d-ink: #f2f3f5;
  --d-ink-soft: #b6bac1;
  --d-ink-mid: #7e838b;
  --d-ink-dim: #4a4d54;
  --d-hair: rgba(255, 255, 255, 0.07);
  --d-hair-2: rgba(255, 255, 255, 0.11);
  --d-hair-3: rgba(255, 255, 255, 0.18);
  --d-accent: #00bfff;
  --d-pos: #3ad489;

  /* Coloured slabs */
  --cream: #f2ebe0;
  --sand: #e8e0d1;
  --indigo: #0c1230;
  --indigo-ink: #e8ecff;

  --serif: 'Sora', ui-sans-serif, system-ui;
  --sans: 'Inter', ui-sans-serif, system-ui;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --rail: clamp(24px, 5vw, 80px);
  --grid-cell: 56px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* ── STICKY INVARIANT ────────────────────────────────────────
   The nav (.nv) uses `position: sticky`. For it to stick to the
   viewport, NO ancestor may have overflow:hidden|auto|scroll|clip
   on the Y axis, and no ancestor may have transform/filter/
   perspective/will-change:transform (those create containing blocks
   that capture the sticky). Use `overflow-x: clip` (NOT hidden) on
   body — `clip` doesn't create a scroll container.
   A runtime canary in partials.js verifies this at load time.
   ──────────────────────────────────────────────────────────── */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  overflow-x: clip; /* modern browsers: clips without creating a scroll container */
  text-rendering: optimizeLegibility;
}
/* Fallback: older Safari (<16) doesn't support overflow:clip — hidden still works today. */
@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Accessibility: strong focus ring for keyboard users only */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 3px;
}

/* Accessibility: skip-to-main link (shown only when focused) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 8px;
}

/* ── Brand mark: Justify fishhook (raster) ─────────────── */
.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  object-fit: contain;
}
.on-dark .brand-mark,
.slab-dark .brand-mark {
  filter: invert(1);
}
/* legacy */
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  opacity: 0.65;
}

/* ── Mono tag ────────────────────────────────────────────── */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-mid);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 6px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 3px;
  background: rgba(11, 12, 14, 0.02);
}
.tag.on-dark {
  color: var(--d-ink-mid);
  border-color: var(--d-hair-2);
  background: rgba(255, 255, 255, 0.02);
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.tag-live {
  color: var(--accent);
  font-weight: 600;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ── NAV (Apple-style, minimal) ──────────────────────────── */
.nv {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nv.on-dark {
  background: rgba(10, 10, 11, 0.72);
  border-bottom-color: var(--d-hair);
}
.nv-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 12px var(--rail);
  gap: 32px;
}
.nv-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.nv.on-dark .nv-brand {
  color: var(--d-ink);
}
.nv-menus {
  justify-self: center;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nv-menu {
  position: relative;
}
.nv-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-radius: 999px;
  transition:
    color 0.15s,
    background 0.15s;
}
.nv-menu-btn:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nv-menu.open .nv-menu-btn {
  color: var(--ink);
  background: var(--bg-2);
}
.nv.on-dark .nv-menu-btn {
  color: var(--d-ink);
}
.nv.on-dark .nv-menu-btn:hover,
.nv.on-dark .nv-menu.open .nv-menu-btn {
  color: #fff;
  background: var(--d-bg-2);
}
.nv-menu-btn svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
  opacity: 0.7;
}
.nv-menu.open .nv-menu-btn svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Pricing — top-level link, styled to match .nv-menu-btn */
.nv-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  border-radius: 999px;
  text-decoration: none;
  transition:
    color 0.15s,
    background 0.15s;
}
.nv-link:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.nv.on-dark .nv-link {
  color: var(--d-ink);
}
.nv.on-dark .nv-link:hover {
  color: #fff;
  background: var(--d-bg-2);
}

.nv-drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--bg);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 8px;
  min-width: 320px;
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.nv-menu.open .nv-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nv.on-dark .nv-drop {
  background: var(--d-bg-1);
  border-color: var(--d-hair-2);
}

/* Mega menu — 4-pillar column layout for Platform dropdown.
   Width adapts to viewport: 880px ideal, or viewport-48px whichever is smaller.
   Prevents overflow on tablet widths (768–959px) where the mega menu is still shown. */
.nv-drop.nv-mega {
  width: min(880px, calc(100vw - 48px));
  min-width: auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 18px;
}
.nv-pillar-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nv-pillar-h {
  display: block;
  padding: 4px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--hair);
  cursor: default;
  user-select: none;
}
.nv.on-dark .nv-pillar-h {
  border-bottom-color: var(--d-hair);
}
.nv-pillar-h h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 3px;
}
.nv.on-dark .nv-pillar-h h6 {
  color: var(--d-accent);
}
.nv-pillar-h span {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
}
.nv.on-dark .nv-pillar-h span {
  color: var(--d-ink);
}
.nv-pillar-col > a:not(.nv-pillar-h) b {
  font-size: 13px;
  font-weight: 600;
}
.nv-pillar-col > a:not(.nv-pillar-h) span {
  font-size: 11.5px;
}

/* Feature stub — non-clickable label for features without a dedicated page yet.
   Matches the visual shape of the clickable anchors in the same column, but
   has no hover state and cursor: default to signal it's informational only. */
.nv-feat-stub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: default;
  opacity: 0.75;
}
.nv-feat-stub b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nv.on-dark .nv-feat-stub b {
  color: var(--d-ink);
}
.nv-feat-stub > span {
  font-size: 11.5px;
  color: var(--ink-mid);
}
.nv.on-dark .nv-feat-stub > span {
  color: var(--d-ink-mid);
}

.nv-drop a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nv-drop a:hover {
  background: var(--bg-2);
}
.nv.on-dark .nv-drop a:hover {
  background: var(--d-bg-2);
}
.nv-drop a b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nv.on-dark .nv-drop a b {
  color: var(--d-ink);
}
.nv-drop a span {
  font-size: 12px;
  color: var(--ink-mid);
}
.nv.on-dark .nv-drop a span {
  color: var(--d-ink-mid);
}

.nv-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nv-sign {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 8px 10px;
}
.nv-sign:hover {
  color: var(--ink);
}
.nv.on-dark .nv-sign {
  color: var(--d-ink-soft);
}
.nv.on-dark .nv-sign:hover {
  color: var(--d-ink);
}
.nv-start {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    background 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.nv-start:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.nv.on-dark .nv-start {
  background: var(--d-ink);
  color: var(--d-bg);
}
.nv.on-dark .nv-start:hover {
  background: var(--d-accent);
}
.nv-start span {
  font-family: var(--sans);
  font-weight: 600;
}

/* ── Section heads ───────────────────────────────────────── */
section {
  position: relative;
  background: var(--bg);
  color: var(--ink);
}
.sec-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--rail) 48px;
}
.sec-head.bordered {
  border-bottom: 1px solid var(--hair);
}
.sec-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 20px;
}
.sec-h {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 980px;
  color: var(--ink);
}
.sec-h em {
  color: var(--ink-mid);
  font-style: normal;
  font-weight: 700;
}
.sec-sub {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}
.on-dark .sec-eyebrow {
  color: var(--d-accent);
}
.on-dark .sec-h {
  color: var(--d-ink);
}
.on-dark .sec-h em {
  color: var(--d-ink-mid);
}
.on-dark .sec-sub {
  color: var(--d-ink-soft);
}

/* ── Dark slab ───────────────────────────────────────────── */
.slab-dark {
  background: var(--d-bg);
  color: var(--d-ink);
}
.slab-dark .sec-head.bordered {
  border-bottom-color: var(--d-hair);
}
.slab-cream {
  background: var(--cream);
  color: var(--ink);
}
.slab-sand {
  background: var(--sand);
  color: var(--ink);
}
.slab-indigo {
  background: var(--indigo);
  color: var(--indigo-ink);
}
.slab-indigo .sec-eyebrow {
  color: #7aa6ff;
}
.slab-indigo .sec-h {
  color: var(--indigo-ink);
}
.slab-indigo .sec-h em {
  color: rgba(232, 236, 255, 0.55);
}
.slab-indigo .sec-sub {
  color: rgba(232, 236, 255, 0.78);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-3);
}
.btn-ghost:hover {
  background: var(--bg-2);
  border-color: var(--hair-3);
}
.on-dark .btn-primary {
  background: var(--d-ink);
  color: var(--d-bg);
}
.on-dark .btn-primary:hover {
  background: var(--d-accent);
}
.on-dark .btn-ghost {
  color: var(--d-ink);
  border-color: var(--d-hair-3);
}
.on-dark .btn-ghost:hover {
  background: var(--d-bg-2);
}

/* ── Footer ──────────────────────────────────────────────── */
.ft {
  position: relative;
  overflow: hidden;
  background: var(--d-bg);
  color: var(--d-ink-soft);
  padding: 72px var(--rail) 40px;
}
.ft > .grid-bg {
  display: block;
  opacity: 0.5;
}
/* Grid effect is footer-only — SSOT, no per-page override */
.grid-bg {
  display: none;
}
.ft-in {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
}
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--d-hair);
}
.ft h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-ink-mid);
  margin: 0 0 14px;
  font-weight: 500;
}
.ft ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ft li {
  margin-bottom: 10px;
}
.ft a {
  color: var(--d-ink-soft);
  font-size: 13px;
  transition: color 0.15s;
}
.ft a:hover {
  color: var(--d-ink);
}
.ft-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.025em;
  color: var(--d-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ft-blurb {
  margin: 16px 0 0;
  font-size: 13px;
  max-width: 34ch;
  color: var(--d-ink-mid);
  line-height: 1.55;
}
.ft-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--d-ink-dim);
  letter-spacing: 0.04em;
}
.ft-bottom a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--d-ink-dim);
  margin-left: 24px;
}
.ft-bottom a:hover {
  color: var(--d-ink-soft);
}

/* ── Utilities ───────────────────────────────────────────── */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--rail);
}
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  opacity: 0.9;
}
.slab-dark .grid-bg,
.on-dark .grid-bg {
  background-image:
    linear-gradient(to right, var(--d-hair) 1px, transparent 1px),
    linear-gradient(to bottom, var(--d-hair) 1px, transparent 1px);
}
/* Scan-line removed per feedback — replaced with subtle corner ticks */
.scan-line {
  display: none;
}
.corner-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.corner-ticks i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--d-hair-3);
}
.corner-ticks i:nth-child(1) {
  top: 16px;
  left: 16px;
  border-right: 0;
  border-bottom: 0;
}
.corner-ticks i:nth-child(2) {
  top: 16px;
  right: 16px;
  border-left: 0;
  border-bottom: 0;
}
.corner-ticks i:nth-child(3) {
  bottom: 16px;
  left: 16px;
  border-right: 0;
  border-top: 0;
}
.corner-ticks i:nth-child(4) {
  bottom: 16px;
  right: 16px;
  border-left: 0;
  border-top: 0;
}

.chip {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.chip.dia {
  background: #0b3d6e;
  color: #e8f3ff;
}
.chip.gold {
  background: #5a3e08;
  color: #faf4e8;
}
.chip.silver {
  background: #3a3d44;
  color: #f2f3f4;
}
.chip.em {
  background: #234736;
  color: #f1f6f3;
}

/* ── Chat placeholder modal (provisional — swapped for real chat later) ── */
.chat-placeholder {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s;
}
.chat-placeholder.open {
  opacity: 1;
}
.chat-placeholder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chat-placeholder-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.chat-placeholder-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-mid);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.chat-placeholder-close:hover {
  background: var(--bg-2);
  color: var(--ink);
}
.chat-placeholder-card .chat-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 10px;
}
.chat-placeholder-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}
.chat-placeholder-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.chat-placeholder-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 11px 16px;
  border-radius: 999px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.chat-placeholder-cta:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}
.chat-placeholder-foot {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  font-family: var(--mono) !important;
  font-size: 10px !important;
  color: var(--ink-mid) !important;
  letter-spacing: 0.04em;
  line-height: 1.6 !important;
}

/* ── Mobile (< md: 768px) — matches src/lib/core/responsive/breakpoints.ts ── */
@media (max-width: 767px) {
  /* Simpler flex layout on mobile: brand on the left, cta on the right.
     Grid columns don't play nice when the middle child is display:none. */
  .nv-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .nv-menus {
    display: none;
  }
  .nv-cta {
    margin-left: auto;
  }
  .nv-drop {
    min-width: auto;
  }
  .nv-drop.nv-mega {
    min-width: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }
  .ft-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .ft-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ── Mobile hamburger + drawer ─────────────────────────────
   Drawer is HIDDEN by default (both desktop and mobile).
   Only shows when .open class is added (via hamburger click on mobile).
   Hamburger button only visible below 960px.
   ──────────────────────────────────────────────────────── */
.nv-ham {
  display: none;
  background: transparent;
  border: 0;
  padding: 11px;
  margin-left: 6px;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.15s;
}
.nv-ham:hover {
  background: var(--bg-2);
}
.nv.on-dark .nv-ham:hover {
  background: var(--d-bg-2);
}
.nv.on-dark .nv-ham {
  color: var(--d-ink);
}
.nv-ham svg {
  width: 22px;
  height: 22px;
}
.nv-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: transparent;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}
.nv-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0s;
}
.nv-drawer-panel {
  position: absolute;
  inset: 0;
  width: auto;
  background: rgba(8, 8, 10, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 72px 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: #fff;
  box-shadow: none;
  transform: translateY(-8px);
  transition: transform 0.22s ease;
}
.nv-drawer.open .nv-drawer-panel {
  transform: translateY(0);
}
/* Body scroll lock while drawer is open — prevents iOS rubber-band on the
   page behind the panel, which otherwise feels broken to users. */
body.nv-drawer-locked {
  overflow: hidden;
  touch-action: none;
}
/* Pricing row at the bottom of the drawer — no "Pricing" h6 kicker, just
   the link with a subtle rule above to separate it from Proof above. */
.nv-drawer-pricing {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 16px;
  margin-top: 4px;
}
.nv-drawer-pricing > a {
  border-bottom: 0;
}
.nv-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
}
.nv-drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
.nv-drawer-group {
  margin-bottom: 28px;
}
.nv-drawer-group h6 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
  font-weight: 500;
}
.nv-drawer-group > a {
  display: block;
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.015em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Parent-child pillar structure inside the mobile drawer.
   Uses <details>/<summary> for native accessible accordion — child items
   are hidden until the parent heading (summary) is tapped. No JS required. */
.nv-drawer-sub {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nv-drawer-sub:last-child {
  border-bottom: 0;
}
.nv-drawer-sub[open] {
  padding-bottom: 10px;
}
.nv-drawer-subh {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.15s;
}
.nv-drawer-subh::-webkit-details-marker {
  display: none;
}
.nv-drawer-subh::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
  flex: none;
}
.nv-drawer-sub[open] .nv-drawer-subh::after {
  content: '–';
}
.nv-drawer-subh em {
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-left: 8px;
  flex: 1;
}
.nv-drawer-sub a {
  display: block;
  padding: 8px 0 8px 16px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.nv-drawer-sub a:hover {
  border-left-color: var(--accent);
}
.nv-drawer-feat {
  display: block;
  padding: 8px 0 8px 16px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.nv-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.nv-drawer-cta a {
  padding: 14px 18px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.nv-drawer-cta .drawer-signin {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
/* Hamburger + drawer — visible only below md: 768px.
   Sign in and Start free stay visible on mobile — they're the primary
   conversion actions and mustn't live only inside the hamburger drawer.
   On narrow screens they shrink in padding to fit. */
@media (max-width: 767px) {
  .nv-ham {
    display: inline-flex;
  }
  .nv-cta {
    gap: 4px;
  }
  .nv-cta .nv-sign {
    padding: 8px 4px;
    font-size: 12px;
  }
  .nv-cta .nv-start {
    padding: 8px 12px;
    font-size: 12px;
  }
}
/* Ultra-narrow (< 380px) — hide Sign in text only; Start free + ham stay. */
@media (max-width: 379px) {
  .nv-cta .nv-sign {
    display: none;
  }
}
