/* ══════════════════════════════════════════════════════════════
   marketing.css — Cohere-inspired styles for all public pages.
   Loaded LAST on every public page, so these rules override
   both core.css and theme.css tokens and components.
   ══════════════════════════════════════════════════════════════ */

/* ── Token overrides ─────────────────────────────────────────── */
:root {
  --ink: #17171C;
  --text: #212121;
  --muted: #6B6B6B;
  --muted-2: #9B9B9B;
  --line: rgba(0,0,0,.08);
  --line-2: rgba(0,0,0,.04);
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
}

/* ── Global heading overrides ────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.02em; }
.sec-h .accent, .hero h1 .hi-accent { color: inherit; font-style: normal; font-weight: inherit; }

/* ── Buttons — flat dark pill ────────────────────────────────── */
.btn {
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  font-weight: 500; font-size: .95rem; padding: .8rem 1.5rem;
  border-radius: 9999px; box-shadow: none;
  transition: all .2s ease;
}
.btn:hover { background: #2E2E2E; border-color: #2E2E2E; box-shadow: 0 6px 20px rgba(137,62,255,.15); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98) !important; box-shadow: none !important; }

.btn.dark { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.dark:hover { background: #2E2E2E; box-shadow: 0 4px 12px rgba(0,0,0,.12); }

.btn.ghost { background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,.12); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(0,0,0,.24); color: var(--ink); background: var(--paper-2); box-shadow: none; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 80px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--disp); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center;
  padding: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow: hidden;
}
.brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: .55rem 1.2rem; font-size: .85rem; border-radius: 9999px; }

.burger { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.burger:active { transform: scale(0.9); }

/* Mobile Drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 998; opacity: 0; visibility: hidden; transition: .25s ease; }
.drawer-bg.on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
  background: #FFFFFF; z-index: 999; padding: 2.5rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: right .3s cubic-bezier(.22,.61,.36,1);
  border-left: 1px solid rgba(0,0,0,.06); box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.drawer.on { right: 0; }
.drawer a.m { color: var(--ink); font-size: 1.05rem; font-weight: 500; padding: 6px 0; }
.drawer a.m:hover { color: var(--muted); }
.drawer .x { align-self: flex-end; background: none; border: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; margin-bottom: 1rem; }
.drawer .x:hover { color: var(--ink); }

/* ── Padding utilities ───────────────────────────────────────── */
section { width: 100%; }
.pad { padding: 8rem 0; }
.pad-sm { padding: 6rem 0; }

/* ── Eyebrow — simple text, no pill ──────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  background: none; padding: 0; border-radius: 0;
  border: none; margin-bottom: 1.6rem; box-shadow: none;
}
.eyebrow i { font-size: .75rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   Hero — ultra-large lightweight heading, white background
   ══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 24px 8rem;
  text-align: center; position: relative;
  background:
    radial-gradient(70% 60% at 50% 25%, rgba(137,62,255,.05), transparent 70%),
    radial-gradient(50% 50% at 80% 80%, rgba(137,62,255,.03), transparent 60%),
    #FFFFFF;
  overflow: hidden;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--ink); font-weight: 400;
  margin: 0 auto 2rem; max-width: 18ch;
}
.hero h1 .hi-accent { color: inherit; font-style: normal; font-weight: 400; }
.hero p.lead {
  font-size: 1.15rem; line-height: 1.6; color: var(--muted);
  margin: 0 auto 3rem; max-width: 34rem; font-weight: 400;
}
.hero-cta { display: inline-flex; justify-content: center; }
.hero-cta .btn { border-radius: 9999px; padding: 1rem 2rem; font-size: 1rem; font-weight: 500; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); text-decoration: none;
  opacity: 0; animation: heroScrollFade .6s ease 1.1s forwards;
}
.hero-scroll:hover { color: var(--ink); }
.hero-scroll .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  animation: heroScrollBob 2.4s ease-in-out infinite;
}
@keyframes heroScrollFade { to { opacity: 1; } }
@keyframes heroScrollBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ══════════════════════════════════════════════════════════════
   Section system — generous padding, white/soft backgrounds
   ══════════════════════════════════════════════════════════════ */
.sec { padding: 8rem 24px; position: relative; overflow: hidden; }
.sec.tall { min-height: 88vh; display: flex; align-items: center; }
.sec-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: grid; gap: 4.5rem; align-items: center;
  /* Without an explicit track this is one `auto` column, which sizes to the
     widest child's max-content — a `white-space: pre` code block then drags
     the whole column past the section and .sec's overflow:hidden clips it.
     minmax(0, 1fr) pins the track to the container so wide children scroll
     inside themselves instead. */
  grid-template-columns: minmax(0, 1fr);
}
.sec-inner.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.sec-inner.centered { text-align: center; max-width: 820px; }
/* Centered heading copy, but room for a 4-across card grid underneath. */
.sec-inner.centered.wide { max-width: 1180px; }
.sec-inner.centered.wide .sec-h,
.sec-inner.centered.wide .sec-lead { max-width: 820px; }

.sec-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem;
}
.sec-h {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink); font-weight: 400;
  margin-bottom: 1.2rem; max-width: 20ch;
}
.sec-h .accent { color: inherit; font-style: normal; font-weight: inherit; }
.sec-lead {
  font-size: 1.08rem; line-height: 1.65; color: var(--muted);
  margin-bottom: 0; max-width: 34rem; font-weight: 400;
}
.sec-inner.centered .sec-h,
.sec-inner.centered .sec-lead { margin-left: auto; margin-right: auto; }

/* Section backgrounds — faded #893eff gradient washes */
.sec.bg-cream { background: linear-gradient(180deg, rgba(137,62,255,.03) 0%, #FFFFFF 100%); }
.sec.bg-white { background: #FFFFFF; }
.sec.bg-warm  { background: linear-gradient(180deg, #FAFAFA 0%, rgba(137,62,255,.025) 50%, #FFFFFF 100%); }
.sec.bg-ink   { background: linear-gradient(135deg, #2E2E2E 0%, #322E3D 100%); color: #FFF; }
.sec.bg-ink .sec-h { color: #FFF; }
.sec.bg-ink .sec-lead { color: rgba(255,255,255,.6); }
.sec.bg-ink .sec-eyebrow { color: rgba(255,255,255,.45); }
.sec.bg-ink .accent { color: #FFF; }

/* ══════════════════════════════════════════════════════════════
   Chat mocks — clean, no purple tints
   ══════════════════════════════════════════════════════════════ */
.mockchat {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: 22px;
  border: 1px solid rgba(0,0,0,.06);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(137,62,255,.08), 0 12px 24px rgba(0,0,0,.06);
}
.sec.bg-ink .mockchat { border-color: rgba(255,255,255,0.06); }
.mockchat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.mockchat-avatar {
  width: 36px; height: 36px; border-radius: 12px;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  padding: 4px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mockchat-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mockchat-title { font-weight: 600; color: var(--ink); font-size: .92rem; letter-spacing: -0.01em; }
.mockchat-sub {
  font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px;
}
.mockchat-sub::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.mockchat-body {
  padding: 20px 18px; display: flex; flex-direction: column; gap: 12px;
  background: #FAFAFA;
}
.mockchat-row { display: flex; gap: 10px; align-items: flex-end; }
.mockchat-row.user { flex-direction: row-reverse; }
.mockchat-av {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 700; flex-shrink: 0;
}
.mockchat-av.bot { background: #fff; border: 1px solid rgba(0,0,0,.08); padding: 3px; }
.mockchat-av.bot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mockchat-av.user { background: var(--ink); color: #fff; }
.mockchat-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: .88rem; line-height: 1.5; max-width: 78%;
}
.mockchat-bubble.bot { background: #fff; border: 1px solid rgba(0,0,0,.06); color: var(--ink); border-bottom-left-radius: 6px; }
.mockchat-bubble.user { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.mockchat-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.mockchat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #B9BFCC;
  animation: mcTyping 1.4s infinite ease-in-out;
}
.mockchat-typing span:nth-child(2) { animation-delay: .2s; }
.mockchat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes mcTyping {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Data card inside chat mock */
.mockchat-card {
  border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  background: var(--paper-2);
  padding: 12px 14px; font-size: .82rem;
}
.mockchat-card .kt { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.mockchat-card .kv { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--text); }
.mockchat-card .kv b { color: var(--ink); font-weight: 600; }
.mockchat-card .kv .status { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; padding: 2px 8px; border-radius: 999px; background: rgba(16,185,129,.12); color: #067A4A; font-weight: 600; }

/* Lead form inside chat mock */
.mockchat-lead {
  border: 1px solid rgba(0,0,0,.08); border-radius: 14px;
  background: #FFFFFF; padding: 14px; font-size: .82rem;
}
.mockchat-lead h4 { font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.mockchat-lead p { color: var(--muted); font-size: .78rem; margin-bottom: 12px; }
.mockchat-lead .field {
  height: 32px; border-radius: 8px; background: var(--paper-2);
  margin-bottom: 8px; padding: 0 10px;
  display: flex; align-items: center; color: var(--muted-2); font-size: .78rem;
}
.mockchat-lead .btn-mini {
  display: inline-block; padding: 8px 14px; border-radius: 8px;
  background: var(--ink); color: #fff;
  font-size: .8rem; font-weight: 600;
}

/* Reveal-on-scroll for chat rows */
html.reveal-ready .sec-observed .mockchat-row {
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.sec-observed.in .mockchat-row { opacity: 1; transform: none; }
.sec-observed.in .mockchat-row:nth-child(1) { transition-delay: .05s; }
.sec-observed.in .mockchat-row:nth-child(2) { transition-delay: .3s; }
.sec-observed.in .mockchat-row:nth-child(3) { transition-delay: .55s; }
.sec-observed.in .mockchat-row:nth-child(4) { transition-delay: .8s; }
.sec-observed.in .mockchat-row:nth-child(5) { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .sec-observed .mockchat-row { opacity: 1 !important; transform: none !important; }
}

/* ══════════════════════════════════════════════════════════════
   Filestack demo (Section 1)
   ══════════════════════════════════════════════════════════════ */
.filestack {
  position: relative; width: 100%; max-width: 460px; height: 340px;
  margin: 0 auto;
}
.filestack .file {
  position: absolute; left: 50%; top: 0;
  width: 220px; padding: 14px 16px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: var(--ink); font-weight: 500;
}
.filestack .file i { font-size: 1.1rem; color: var(--ink); flex-shrink: 0; }
.filestack .file.f1 { transform: translate(-50%, 0) rotate(-6deg); }
.filestack .file.f2 { transform: translate(-50%, 40px) rotate(2deg); z-index: 2; }
.filestack .file.f3 { transform: translate(-50%, 80px) rotate(-3deg); z-index: 3; }
.filestack .arrow-down {
  position: absolute; left: 50%; top: 170px; transform: translateX(-50%);
  color: var(--muted); font-size: 1.2rem;
  animation: fsDown 2s ease-in-out infinite;
}
@keyframes fsDown {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
.filestack .result {
  position: absolute; left: 50%; top: 220px; transform: translateX(-50%);
  width: 300px; padding: 14px 16px; border-radius: 16px;
  background: #FFFFFF; border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  font-size: .86rem; color: var(--ink); line-height: 1.5;
}
.filestack .result .tag {
  display: inline-block; font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════════════════════════
   Engine cards (Section 5)
   ══════════════════════════════════════════════════════════════ */
.engine-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem; max-width: 1180px; margin: 3.25rem auto 0; text-align: left;
  min-width: 0;
}
.ecard {
  background: #FFFFFF; border: 1px solid rgba(0,0,0,.08); border-radius: 20px;
  padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.03);
}
.ecard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(137,62,255,.1); border-color: rgba(137,62,255,.2); }
.ecard.on {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)) border-box;
  box-shadow: 0 16px 40px rgba(137,62,255,.14);
}
.ehead { display: flex; align-items: center; gap: 12px; }
.eicon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  background: linear-gradient(135deg, rgba(137,62,255,.12), rgba(65,105,225,.12));
  color: #6D3BEE;
}
.ecard.on .eicon { background: linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)); color: #fff; }
.ename { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); line-height: 1.2; }
.ebadge { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.ecard.on .ebadge { color: #6D3BEE; }
.etag { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.45; margin: 0; }
.edesc { color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0; }
.estack { display: flex; flex-wrap: wrap; gap: 6px; }
.echip {
  font-size: .7rem; font-weight: 500; padding: 4px 9px; border-radius: 999px;
  background: rgba(137,62,255,.06); color: #6D3BEE; border: 1px solid rgba(137,62,255,.1);
  white-space: nowrap;
}
.ebest {
  margin-top: auto; padding-top: .85rem; border-top: 1px dashed rgba(0,0,0,.08);
  font-size: .82rem; color: var(--muted); line-height: 1.5;
}
.ebest span {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px;
}
.engine-note {
  margin: 2rem auto 0; font-size: .92rem; color: var(--muted); text-align: center;
}

/* ══════════════════════════════════════════════════════════════
   Deploy card (Section 6)
   ══════════════════════════════════════════════════════════════ */
/* width:100% is load-bearing. This is a grid item with `margin-inline: auto`,
   and auto margins cancel the default stretch — the item then sizes to
   fit-content, which is driven by .deploy-tabs' min-content (four nowrap tabs
   ≈ 500px). On a 375px phone that pushed the card past the section and .sec's
   overflow:hidden sliced the right edge off. Pinning to 100% makes the item
   take the track width so the tab strip scrolls inside itself instead. */
.deploy-wrap {
  width: 100%; max-width: 860px; margin: 2.75rem auto 0; min-width: 0;
}
.deploy-card {
  background: linear-gradient(135deg, #2E2E2E 0%, #322E3D 100%); border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(137,62,255,.1), 0 12px 24px rgba(0,0,0,.15);
  text-align: left; min-width: 0;
}
.deploy-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,.08); }
.deploy-tab {
  flex: 1; padding: 15px 12px; text-align: center; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: .85rem; font-weight: 500;
  background: transparent; border: none; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: color .15s, background .15s;
}
.deploy-tab i { font-size: .82rem; opacity: .8; }
.deploy-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.deploy-tab.on { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 -2px 0 #fff; }
.deploy-tab:focus-visible { outline: 2px solid #C4A1FF; outline-offset: -3px; }

.deploy-panel { padding: 22px 24px 24px; }
.deploy-blurb {
  margin: 0 0 16px; color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.6;
}
.deploy-codewrap { position: relative; min-width: 0; }
.deploy-code {
  margin: 0; padding: 20px 20px; border-radius: 14px;
  background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.07);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .82rem; line-height: 1.7; color: rgba(255,255,255,.82);
  white-space: pre; overflow-x: auto;
}
.deploy-code code { font: inherit; color: inherit; background: none; padding: 0; }
.deploy-code .hl { color: #C4A1FF; font-weight: 500; }
.deploy-code .comment { color: rgba(255,255,255,.32); }

.copy-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75); font-family: inherit; font-size: .76rem; font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.copy-btn.copied { background: rgba(16,185,129,.2); border-color: rgba(16,185,129,.4); color: #6EE7B7; }
.copy-btn.failed { background: rgba(251,191,36,.16); border-color: rgba(251,191,36,.35); color: #FCD34D; }
.copy-btn:focus-visible { outline: 2px solid #C4A1FF; outline-offset: 2px; }

.deploy-facts {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px;
}
.deploy-facts li {
  display: flex; align-items: flex-start; gap: 8px;
  color: rgba(255,255,255,.55); font-size: .82rem; line-height: 1.5;
}
.deploy-facts i { color: #C4A1FF; font-size: .78rem; margin-top: 3px; flex-shrink: 0; }
.deploy-facts code {
  font-family: ui-monospace, Consolas, monospace; font-size: .78rem;
  background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; color: rgba(255,255,255,.8);
}

.deploy-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  flex-wrap: wrap; margin-top: 1.25rem; padding: 0 4px; text-align: left;
}
.deploy-foot > span {
  display: flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: .88rem; line-height: 1.5;
}
.deploy-foot i { color: #6D3BEE; }
.btn.sm { padding: .6rem 1.1rem; font-size: .86rem; border-radius: 999px; }

/* ══════════════════════════════════════════════════════════════
   Pricing lite (landing page)
   ══════════════════════════════════════════════════════════════ */
.pricing-lite {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem; max-width: 1120px; margin: 3.5rem auto 0;
  padding-top: 18px;
}
.plite {
  background: #FFFFFF; border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px; padding: 2.8rem 2.2rem 2.5rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1), border-color .3s ease;
  min-height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.plite:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(137,62,255,.1); border-color: rgba(137,62,255,.2); }
.plite.pop { 
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)) border-box;
  box-shadow: 0 20px 48px rgba(137,62,255,.15); position: relative; padding-top: 3rem; 
}
.plite.pop::before {
  content: 'Most popular'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; box-shadow: 0 4px 12px rgba(137,62,255,0.3); white-space: nowrap;
}
.plite .name { font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.plite .price { font-family: var(--disp); font-size: 2.8rem; font-weight: 500; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.plite .price .per { font-size: .95rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.plite .was { font-size: .85rem; color: var(--muted-2); line-height: 1.5; margin-top: -.6rem; }
.plite .desc { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.plite-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.plite-feats li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9rem; color: var(--muted); line-height: 1.5;
}
.plite-feats i { color: #6D3BEE; font-size: .78rem; margin-top: 4px; flex-shrink: 0; }
.plite .btn { margin-top: auto; border-radius: 9999px; padding: 1rem 1.4rem; justify-content: center; font-size: 1rem; }
.plite.pop .btn { background: linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)); border-color: transparent; }
.plite.pop .btn:hover { background: linear-gradient(135deg, rgba(117,42,235,1), rgba(45,85,205,1)); box-shadow: 0 6px 20px rgba(137,62,255,.2); }
.plite .btn.ghost { color: var(--ink); }

/* Placeholder cards shown until /api/plans answers, so the section keeps its
   height instead of the page jumping when the real prices land. */
.skeleton-plan {
  min-height: 420px; border-style: dashed; box-shadow: none;
  background: linear-gradient(100deg, rgba(0,0,0,.02) 30%, rgba(0,0,0,.05) 50%, rgba(0,0,0,.02) 70%);
  background-size: 300% 100%; animation: planShimmer 1.4s ease-in-out infinite;
}
.skeleton-plan:hover { transform: none; box-shadow: none; border-color: rgba(0,0,0,.08); }
@keyframes planShimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }

.price-foot {
  margin: 2.5rem auto 0; font-size: .92rem; color: var(--muted); line-height: 1.7;
}
.price-foot a { color: #6D3BEE; font-weight: 500; }
.price-foot a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   FAQ lite (landing page)
   ══════════════════════════════════════════════════════════════ */
.faq-lite {
  max-width: 780px; margin: 3rem auto 0;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-lite details {
  border: 1px solid rgba(0,0,0,.06); border-radius: 14px;
  background: #FFFFFF; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, height .28s ease;
  height: auto;
}
.faq-lite details[open] { border-color: rgba(137,62,255,.15); box-shadow: 0 6px 18px rgba(137,62,255,.06); }
.faq-lite summary {
  padding: 18px 22px; cursor: pointer;
  font-weight: 500; color: var(--ink); font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-lite summary::-webkit-details-marker { display: none; }
.faq-lite summary::after {
  content: ''; width: 10px; height: 10px; flex-shrink: 0;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s ease;
  margin-right: 4px;
}
.faq-lite details[open] summary::after { transform: rotate(-135deg); }
.faq-lite .a { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════ */
.foot {
  padding: 3rem 24px 2rem;
  background: linear-gradient(180deg, rgba(137,62,255,.02) 0%, #FFFFFF 40%);
  border-top: 1px solid rgba(137,62,255,.06);
}
.foot-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.foot .brand { font-size: 1rem; }
.foot .foot-links { display: flex; gap: 1.6rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.foot .foot-links a { color: var(--muted); transition: color .2s; }
.foot .foot-links a:hover { color: var(--ink); }
.foot .copyright { font-size: .82rem; color: var(--muted-2); }
@media (max-width: 900px) {
  .foot-inner { flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════════════════════ */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rev.in { opacity: 1; transform: none; }
.rev-pop { opacity: 0; transform: translateY(20px) scale(.985); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.rev-pop.in { opacity: 1; transform: none; }
.plan.pop.rev-pop.in { transform: scale(1.02); }
.hero .rev-load { opacity: 0; transform: translateY(16px); animation: heroIn .9s cubic-bezier(.22,1,.36,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media(prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rev, .rev-pop, .rev-load { opacity: 1 !important; transform: none !important; }
}

/* Logo mark — white tile for logo visibility */
.brand .mark:has(img),.sb-brand .mark:has(img),.snav .brand .mark:has(img),footer .brand .mark:has(img),.mark:has(img){background:#fff!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:8px!important;box-shadow:0 1px 3px rgba(0,0,0,.06)!important;padding:3px!important;overflow:hidden!important;}


/* ══════════════════════════════════════════════════════════════
   Page-specific: shared nav offset
   ══════════════════════════════════════════════════════════════ */
main { padding-top: 80px; }


/* ══════════════════════════════════════════════════════════════
   Login page
   ══════════════════════════════════════════════════════════════ */
body.pg-login {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 24px 3rem;
  background:
    radial-gradient(55% 55% at 75% 15%, rgba(137,62,255,.05), transparent 65%),
    radial-gradient(40% 50% at 20% 85%, rgba(137,62,255,.04), transparent 60%),
    #FFFFFF;
  overflow: hidden;
}
.login-card {
  width: 100%; max-width: 440px; background: #fff;
  border: 1px solid rgba(0,0,0,.08); border-radius: 22px;
  padding: 3rem 2.4rem; text-align: center;
  box-shadow: 0 24px 60px rgba(137,62,255,.08), 0 8px 20px rgba(0,0,0,.05);
  position: relative; z-index: 1;
}
.login-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  padding: 6px; margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.login-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-card h1 { font-size: 1.75rem; margin-bottom: .5rem; letter-spacing: -0.02em; font-weight: 400; }
.login-card .sub { color: var(--muted); font-size: 1rem; margin-bottom: 2rem; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; background: #fff; color: var(--ink);
  border: 1px solid rgba(0,0,0,.12); border-radius: 12px;
  padding: 14px 20px; font-weight: 500; font-size: 1rem; cursor: pointer;
  font-family: inherit; box-shadow: none;
  transition: all .2s ease;
}
.google-btn:hover { border-color: rgba(0,0,0,.2); background: var(--paper-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.google-btn:active { transform: scale(.98); box-shadow: none; }
.g-icon { width: 22px; height: 22px; }
.login-err {
  margin-top: 1.25rem; color: var(--err); background: var(--err-wash);
  border: 1px solid rgba(239,68,68,.25); padding: 12px; border-radius: 10px;
  font-size: .9rem; font-weight: 500;
}
.login-fine { font-size: .82rem; color: var(--muted); margin-top: 1.75rem; line-height: 1.6; }
.login-fine a { color: var(--ink); font-weight: 600; }
.login-fine a:hover { color: var(--muted); }
.login-nav {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,.06);
  font-size: .82rem;
}
.login-nav a { color: var(--muted); font-weight: 500; }
.login-nav a:hover { color: var(--ink); }


/* ══════════════════════════════════════════════════════════════
   About page
   ══════════════════════════════════════════════════════════════ */
.why-p { color: var(--text); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1rem; max-width: 42rem; }
.why-p em { color: var(--ink); font-style: italic; font-weight: 500; }
.step-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; max-width: 1080px; margin-left: auto; margin-right: auto;
}
.step {
  background: #fff; border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px; padding: 1.75rem 1.5rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-2px); border-color: rgba(137,62,255,.12); box-shadow: 0 12px 24px rgba(137,62,255,.06); }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink);
  font-family: var(--disp); font-weight: 600; font-size: 1rem;
  margin-bottom: 1rem;
}
.step h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.6; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 3rem; max-width: 1080px; margin-left: auto; margin-right: auto;
}
.feature {
  padding: 1.5rem; border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  background: #FFFFFF;
}
.feature .ic {
  color: var(--ink); font-size: 1.2rem; margin-bottom: .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2);
}
.feature h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.sec-inner .callout { max-width: 720px; margin: 3rem auto 0; border-radius: 16px; padding: 1.25rem 1.5rem; align-items: center; font-size: 1rem; }
@media (max-width: 900px) {
  .step-grid, .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
}


/* ══════════════════════════════════════════════════════════════
   Contact page
   ══════════════════════════════════════════════════════════════ */
body.pg-contact main { padding-top: 110px; }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem; align-items: start; margin-top: 3rem;
}
.channels { display: flex; flex-direction: column; gap: 14px; }
.chan {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  padding: 18px 20px; background: #fff;
  transition: border-color .18s ease, transform .18s ease;
}
.chan:hover { border-color: rgba(137,62,255,.12); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(137,62,255,.05); }
.chan .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; flex-shrink: 0;
}
.chan h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 3px; }
.chan p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.55; }
.chan a { color: var(--ink); font-weight: 600; }
.chan a:hover { color: var(--muted); }
form.contact-form {
  border: 1px solid rgba(0,0,0,.06); border-radius: 22px;
  padding: 2rem; background: #fff; box-shadow: none;
  display: flex; flex-direction: column; gap: 1rem;
}
form.contact-form h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin-bottom: 0; }
form.contact-form .sub { color: var(--muted); font-size: .9rem; margin-top: -8px; }
form.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
form.contact-form input, form.contact-form textarea, form.contact-form select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  border: 1px solid rgba(0,0,0,.08); border-radius: 10px;
  padding: 11px 14px; background: var(--paper-2);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
  outline: none; background: #fff; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23,23,28,.06);
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form .hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
form.contact-form .btn { margin-top: 4px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  body.pg-contact main { padding-top: 100px; }
}


/* ══════════════════════════════════════════════════════════════
   Legal pages (privacy, terms)
   ══════════════════════════════════════════════════════════════ */
.legal-hero { padding: 4rem 24px 2rem; background: #FFFFFF; text-align: center; }
.legal-hero .sec-h { margin-left: auto; margin-right: auto; }
.updated { color: var(--muted); font-size: .9rem; margin-top: .75rem; }
main section.body-wrap { padding: 2rem 24px 6rem; }

.callout {
  background: var(--paper-2); border: 1px solid rgba(0,0,0,.08);
  color: var(--text); border-radius: 12px;
  padding: 14px 18px; font-size: .95rem;
  display: flex; gap: 10px; align-items: flex-start;
  margin: 1.5rem 0;
}
.callout i { margin-top: 3px; color: var(--ink); }
.callout a { color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.2); }

.callout.callout-warn {
  background: var(--warn-wash); border: 1px solid #F3D9A6;
  color: #7C4A00;
}
.callout.callout-warn i { color: #7C4A00; }


/* ══════════════════════════════════════════════════════════════
   Pricing page
   ══════════════════════════════════════════════════════════════ */
.beta-banner {
  max-width: 560px; margin: 0 auto 2.5rem;
  padding: 12px 20px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid rgba(0,0,0,.08);
  color: var(--text); text-align: center;
  font-weight: 500; font-size: .9rem;
}
/* Sits under the list price while beta is on: the number above is what the
   plan will cost, this is what we're charging today. */
.beta-strike {
  display: inline-flex; align-items: center; gap: 6px;
  margin: .35rem 0 .1rem; padding: 4px 12px; border-radius: 999px;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.22);
  color: #047857; font-size: .78rem; font-weight: 600;
}
.beta-strike::before { content: '\f0eb'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .72rem; }
#planGrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; max-width: 1180px; margin: 3rem auto 0;
  padding-top: 18px; min-width: 0; text-align: left;
}
/* Five tiers need tighter cards or they overflow the container. */
#planGrid.cols-5 { gap: 1rem; }
#planGrid.cols-5 .card { padding: 2.2rem 1.5rem 2rem; }
#planGrid.cols-5 .card.featured { padding-top: 2.6rem; }
#planGrid.cols-5 .price { font-size: 2.2rem; }
#planGrid .card {
  background: #FFFFFF; border: 1px solid rgba(0,0,0,.08);
  border-radius: 24px; padding: 2.8rem 2.2rem 2.5rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .3s cubic-bezier(0.4, 0, 0.2, 1), border-color .3s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
#planGrid .card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(137,62,255,.1); border-color: rgba(137,62,255,.2); }
#planGrid .card.featured {
  border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)) border-box;
  box-shadow: 0 20px 48px rgba(137,62,255,.15); position: relative; padding-top: 3rem;
}
#planGrid .tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(137,62,255,0.3); white-space: nowrap;
}
#planGrid .card h3 {
  font-family: var(--disp); font-size: .85rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 0;
}
#planGrid .strike { color: var(--muted-2); text-decoration: line-through; font-size: .9rem; }
/* The plan's one-line pitch, under the name. Had no rule at all before, so it
   inherited body text and sat indistinguishable from the feature list. */
#planGrid .pdesc {
  color: var(--muted); font-size: .92rem; line-height: 1.5;
  min-height: 2.8em; margin-top: -.5rem;
}
#planGrid .pdesc:empty { min-height: 0; margin-top: 0; }
#planGrid .price-note { font-size: .82rem; color: var(--muted-2); margin-top: -.6rem; }
#planGrid .offer-chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 12px; border-radius: 999px; margin-top: -.4rem;
  background: rgba(232,106,51,.1); border: 1px solid rgba(232,106,51,.24);
  color: #C2410C; font-size: .78rem; font-weight: 600;
}
#planGrid .beta-strike { align-self: flex-start; }
#planGrid .price {
  font-family: var(--disp); font-size: 2.8rem; font-weight: 500; color: var(--ink);
  letter-spacing: -.03em; line-height: 1;
}
#planGrid .price small { font-size: .95rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
#planGrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#planGrid ul li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text); font-size: .95rem; line-height: 1.5;
}
#planGrid ul li i { color: rgba(137,62,255,1); font-size: .85rem; margin-top: 5px; flex-shrink: 0; }
#planGrid .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  margin-top: auto;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink); border-radius: 9999px;
  padding: 1rem 1.4rem; font-weight: 500; font-size: 1rem;
  box-shadow: none;
  transition: all .2s ease;
}
#planGrid .card.featured .cta {
  background: linear-gradient(135deg, rgba(137,62,255,1), rgba(65,105,225,1)); border-color: transparent;
}
#planGrid .card.featured .cta:hover { background: linear-gradient(135deg, rgba(117,42,235,1), rgba(45,85,205,1)); box-shadow: 0 6px 20px rgba(137,62,255,.2); }
#planGrid .cta:hover { background: #2E2E2E; box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(-1px); color: #fff; }
#planGrid .cta.ghost {
  background: #fff; color: var(--ink);
  border-color: rgba(0,0,0,.12); box-shadow: none;
}
#planGrid .cta.ghost:hover { border-color: rgba(0,0,0,.24); color: var(--ink); background: var(--paper-2); }
.foot-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2.5rem; }
.foot-note a { color: var(--ink); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   Offers strip
   ══════════════════════════════════════════════════════════════ */
.offer-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin: 0 auto 2rem; max-width: 900px;
}
.offer-card {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 18px; border-radius: 16px; flex: 1 1 320px; min-width: 0;
  background: linear-gradient(135deg, rgba(232,106,51,.07), rgba(137,62,255,.06));
  border: 1px solid rgba(232,106,51,.2);
}
.offer-amt {
  flex-shrink: 0; font-family: var(--disp); font-weight: 700; font-size: 1.15rem;
  color: #C2410C; line-height: 1.1; white-space: nowrap;
}
.offer-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.offer-body strong { font-size: .95rem; color: var(--ink); }
.offer-body span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.offer-scope { font-size: .78rem !important; color: var(--muted-2) !important; }
.offer-code {
  flex-shrink: 0; margin-left: auto; padding: 6px 12px; border-radius: 8px;
  background: #fff; border: 1px dashed rgba(232,106,51,.45);
  font-family: ui-monospace, Consolas, monospace; font-size: .82rem;
  font-weight: 700; color: #C2410C; letter-spacing: .05em;
}

/* ══════════════════════════════════════════════════════════════
   Feature comparison table (tick / cross)
   ══════════════════════════════════════════════════════════════ */
.cmp-wrap { margin-top: 3rem; overflow-x: auto; min-width: 0; }
table.cmp {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 18px;
  overflow: hidden; text-align: left; min-width: 620px;
}
table.cmp th, table.cmp td {
  padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: .92rem; vertical-align: middle;
}
table.cmp thead th {
  background: var(--paper-2, #FAF8F5); font-family: var(--sans);
  font-weight: 700; font-size: .85rem; color: var(--ink);
  position: sticky; top: 0; z-index: 1;
}
table.cmp thead th:first-child { color: var(--muted); font-weight: 500; }
table.cmp tbody th[scope="row"] { font-weight: 500; color: var(--text); }
table.cmp td { text-align: center; width: 1%; white-space: nowrap; }
table.cmp thead th:not(:first-child) { text-align: center; }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
/* The most-popular column gets a subtle wash the whole height of the table. */
table.cmp th.on, table.cmp td.on { background: rgba(137,62,255,.04); }
table.cmp thead th.on { background: rgba(137,62,255,.1); color: #6D3BEE; }
table.cmp tr.grp th {
  background: #fff; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2);
  padding-top: 22px; padding-bottom: 8px;
}
table.cmp .yes { color: #0E9F6E; font-size: 1rem; }
table.cmp .no  { color: rgba(0,0,0,.18); font-size: 1rem; }
/* Screen-reader text — the tick/cross glyphs alone say nothing to a
   screen reader, and title attributes aren't reliably announced. */
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 900px) {
  /* !important: pricing.js sets an inline column count from the plan count,
     which would otherwise beat this stacked layout. */
  #planGrid { grid-template-columns: 1fr !important; gap: 1.25rem; max-width: 440px; }
  #planGrid .card { padding: 1.75rem 1.5rem; }
  #planGrid .price { font-size: 2.2rem; }
  #planGrid .pdesc { min-height: 0; }
  .offer-card { flex: 1 1 100%; }
  .offer-code { margin-left: 0; }
}


/* ══════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════ */
@media(max-width: 980px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .pad { padding: 6rem 0; }
  .pad-sm { padding: 4.5rem 0; }
  /* !important: landing.js sets an inline grid-template-columns from the plan
     count, which would otherwise beat this stacked layout on mobile. */
  .pricing-lite { grid-template-columns: 1fr !important; gap: 1.25rem; max-width: 420px; }
  .engine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 900px) {
  .sec { padding: 5rem 20px; }
  .sec.tall { min-height: 0; }
  .sec-inner.split { grid-template-columns: 1fr; gap: 2.5rem; }
  .sec-inner.split > .rev[style*="order:2"] { order: 0; }
  .sec-h { font-size: clamp(1.7rem, 6vw, 2.2rem); max-width: none; }
  .sec-lead { font-size: 1rem; }
  .sec-inner.centered { max-width: 100%; }
  .filestack { max-width: 380px; height: 300px; }
  .filestack .file { width: 200px; }
  .filestack .result { width: 260px; top: 200px; }
  .filestack .arrow-down { top: 150px; }
  .mockchat { max-width: 100%; margin: 0 auto; }
  .plite { padding: 1.75rem 1.5rem; }
  .plite .price { font-size: 2.2rem; }
  .skeleton-plan { min-height: 260px; }
  .engine-grid { grid-template-columns: 1fr; max-width: 480px; }
  .deploy-panel { padding: 18px 16px 20px; }
  .deploy-code { font-size: .76rem; padding: 16px; }
  .deploy-tabs { overflow-x: auto; scrollbar-width: none; }
  .deploy-tabs::-webkit-scrollbar { display: none; }
  .deploy-tab { font-size: .8rem; padding: 12px 14px; flex: 0 0 auto; white-space: nowrap; }
  .deploy-facts { grid-template-columns: 1fr; }
  .deploy-foot { flex-direction: column; align-items: flex-start; }
  .faq-lite { max-width: 100%; }
  .faq-lite summary { padding: 16px 18px; font-size: .95rem; }
  .faq-lite .a { padding: 0 18px 16px; font-size: .9rem; }
}

@media(max-width: 560px) {
  .hero { padding: 4rem 20px 5rem; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero p.lead { font-size: 1rem; margin-bottom: 2.2rem; }
  .hero-cta .btn { width: 100%; padding: 1rem 1.4rem; }
  .hero-scroll { bottom: 22px; font-size: .68rem; }
  .sec { padding: 4rem 18px; }
  .sec-h { font-size: clamp(1.6rem, 7vw, 2rem); }
  .mockchat-bubble { font-size: .84rem; }
  .nav { padding: 0 20px; }
}

/* ══════════════════════════════════════════════════════════════
   Trust Banner (SaaS Conversion)
   ══════════════════════════════════════════════════════════════ */
.trust-banner {
  text-align: center;
  padding: 0 24px 4rem;
  background: #FFFFFF;
}
.trust-text {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-2);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  opacity: 0.6;
}
.trust-logo {
  font-size: 2rem;
  color: var(--muted);
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}
.trust-logo:hover {
  color: var(--ink);
  opacity: 1;
  transform: translateY(-2px);
}
@media(max-width: 560px) {
  .trust-logos { gap: 1.5rem; }
  .trust-logo { font-size: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   Billing Toggle
   ══════════════════════════════════════════════════════════════ */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
}
.bt-label {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bt-save {
  background: rgba(137,62,255,.1);
  color: #6D3BEE;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bt-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.bt-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.bt-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--muted-2);
  transition: .3s;
  border-radius: 26px;
}
.bt-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.bt-switch input:checked + .bt-slider {
  background-color: var(--ink);
}
.bt-switch input:focus + .bt-slider {
  box-shadow: 0 0 1px var(--ink);
}
.bt-switch input:checked + .bt-slider:before {
  transform: translateX(24px);
}

/* Pricing Feature Details Accordion */
.feat-details {
  margin: 1rem 0;
  padding: 0.5rem;
  background: var(--cream);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.feat-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feat-details summary::-webkit-details-marker {
  display: none;
}
.feat-details summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.2s ease;
}
.feat-details[open] summary::after {
  transform: rotate(180deg);
}
.more-feats {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.more-feats li {
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

/* Plan request feedback + the non-clickable "current plan" CTA state. */
.plan-notice {
  max-width: 620px; margin: 0 auto 1.75rem; padding: 12px 18px;
  border-radius: 14px; font-size: .92rem; line-height: 1.5;
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: rgba(16,185,129,.09); border: 1px solid rgba(16,185,129,.25);
  color: #047857;
}
.plan-notice.err {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); color: #B91C1C;
}
.plan-notice i { flex-shrink: 0; }

#planGrid button.cta { font-family: inherit; cursor: pointer; width: 100%; }
#planGrid .cta.current {
  cursor: default; background: var(--paper-2, #F8FAFC); color: var(--muted);
  border-color: rgba(0,0,0,.1); box-shadow: none;
}
#planGrid .cta.current:hover { transform: none; background: var(--paper-2, #F8FAFC); color: var(--muted); }

/* Engines nobody gets by plan — the comparison table shows a key, not a
   cross, because "no" would imply upgrading would fix it. */
table.cmp .req { color: #6D3BEE; font-size: .95rem; }
.ecard .erequest {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 2px; padding: 4px 11px; border-radius: 999px;
  background: rgba(137,62,255,.08); border: 1px solid rgba(137,62,255,.22);
  color: #6D3BEE; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
