/* ═══════════════════════════════════════════════════════════════════
   COMPANY BIBLE — landing page
   Warm cream · editorial-tech · warm-amber accent
   Reference class: Linear · Vercel · Attio · Framer
═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:              #F5F1E8;
  --bg-elev:         #FCF8EF;
  --bg-panel:        #FFFDF7;
  --ink:             #1F1A12;
  --ink-2:           #4A4335;
  --ink-3:           #7A7368;
  --line:            #E8DFCB;
  --line-2:          #D5CAB1;
  --accent:          #C25A0E;   /* warm burnt amber */
  --accent-2:        #E48A2D;   /* logo amber */
  --accent-3:        #2A6F6A;   /* deep teal */
  --dark:            #1B1610;
  /* Ghost injects --gh-font-heading / --gh-font-body from Admin font settings.
     Fall back to the Company Bible defaults when unset. */
  --gh-font-heading: "Fraunces", ui-serif, Georgia, serif;
  --gh-font-body:    "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display:    var(--gh-font-heading, "Fraunces", ui-serif, Georgia, serif);
  --font-body:       var(--gh-font-body, "Inter", ui-sans-serif, system-ui, sans-serif);
  --font-mono:       "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --radius-sm:       8px;
  --radius:          14px;
  --radius-lg:       22px;
  --shadow-sm:       0 1px 2px rgba(31,26,18,.04), 0 1px 1px rgba(31,26,18,.03);
  --shadow:          0 12px 30px -14px rgba(31,26,18,.18), 0 4px 10px -4px rgba(31,26,18,.08);
  --shadow-lg:       0 40px 90px -30px rgba(31,26,18,.28), 0 12px 30px -12px rgba(31,26,18,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem;    font-weight: 600; letter-spacing: -0.005em; font-family: var(--font-body);}
p  { margin: 0; color: var(--ink-2); }

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.accent { color: var(--accent); }

/* ─── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(245,241,232,.85);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(232,223,203,.6);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links {
  display: flex; gap: 28px;
  margin-left: 48px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  margin-left: auto;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: var(--dark); color: #FFFDF7;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 760px){
  .nav-links { display: none; }
}

/* ─── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 60px clamp(20px, 5vw, 56px) 40px;
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
/* 960 not 900: the h1 caps at 70.4px and the intended first line
   ("Paste your URL. Twelve agents") needs 908px, so a 900px box orphaned
   the word "agents" on every viewport wide enough to hit the font cap. */
.hero-inner { max-width: 960px; }
/* Never let the accent phrase split across lines. */
.hero h1 .accent { white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(228,138,45,.15);
}
.hero h1 { margin-bottom: 24px; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.20rem);
  color: var(--ink-2);
  max-width: 780px;
  margin-bottom: 32px;
}

/* URL BAR */
.url-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  background: var(--bg-panel);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 10px 10px 10px 22px;
  gap: 8px;
  max-width: 640px;
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Bug AM-015: when an inline error appears inside the runbar, force it to
 * its own row so the URL text input isn't squeezed to 16px wide. */
.url-bar .intake-error,
.runbar .intake-error { flex: 1 1 100%; order: 99; }
.url-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194,90,14,.10), var(--shadow);
}
.url-scheme {
  font-family: var(--font-mono);
  font-size: 15px; color: var(--ink-3);
  letter-spacing: -0.01em;
  padding-right: 2px;
}
.url-bar input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 4px;
  outline: none;
}
.url-bar input::placeholder { color: var(--ink-3); }
.url-bar button {
  border: 0;
  background: var(--dark); color: #FFFDF7;
  font-family: inherit; font-weight: 500;
  font-size: 15px; letter-spacing: -0.005em;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.url-bar button:hover { background: var(--accent); }
.url-bar button:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.url-bar.large { max-width: 720px; margin: 0 auto; padding: 12px 12px 12px 26px;}
.url-bar.large input { font-size: 18px; padding: 16px 4px;}
.url-bar.large button { padding: 16px 26px; font-size: 16px; }

.hero-microcopy {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 10px 14px;
}
.hero-microcopy .sep { color: var(--line-2); }

/* Hero figure */
.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow-lg);
}
.hero-figure img { width: 100%; height: auto; display: block;}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

/* ─── PROOF STRIP ─────────────────────────────────────────────────── */
.proof-strip {
  padding: 32px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.strip-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.strip-label {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.strip-logos {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.05rem; color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.strip-logos span { opacity: .8; }

/* ─── SECTION HEAD ────────────────────────────────────────────────── */
section { padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 56px); }
.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .section-lede {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-top: 14px;
}

/* ─── HOW IT WORKS ────────────────────────────────────────────────── */
.how { max-width: 1400px; margin: 0 auto; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.steps li {
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.steps li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 20px;
}
.steps h3 { margin-bottom: 8px; }
@media (max-width: 900px){
  .steps { grid-template-columns: 1fr; }
}

/* ─── AGENTS ──────────────────────────────────────────────────────── */
.agents { max-width: 1400px; margin: 0 auto; }
.agent-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.agent-grid > article {
  background: var(--bg-panel);
  padding: 28px 24px;
  transition: background .2s ease;
}
.agent-grid > article:hover { background: var(--bg-elev); }
.agent-grid h4 { margin-bottom: 8px; color: var(--ink); }
.agent-grid p  { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.agent-lead-band {
  margin-top: 24px;
  padding: 32px 36px;
  background: var(--dark);
  color: rgba(255,253,247,.75);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
}
.agent-lead-tag {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-2);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.agent-lead-band p {
  color: rgba(255,253,247,.78);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 900px){
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .agent-lead-band { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}
@media (max-width: 540px){
  .agent-grid { grid-template-columns: 1fr; }
}

/* ─── REPORT SHOWCASE ─────────────────────────────────────────────── */
.report { max-width: 1400px; margin: 0 auto; }
.report-showcase { display: flex; flex-direction: column; gap: 32px; }
.report-card {
  margin: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.report-card figcaption {
  padding: 20px 26px 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.report-card figcaption strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }
.report-card figcaption span { font-size: 14px; color: var(--ink-2); }

.report-frame {
  background: var(--dark);
}
.frame-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #14100B;
  border-bottom: 1px solid rgba(255,253,247,.06);
}
.frame-chrome > span:not(.frame-url) {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,253,247,.15);
}
.frame-url {
  margin-left: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.02em;
  color: rgba(255,253,247,.45);
}
.report-frame img { width: 100%; display: block; }

.report-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 900px){ .report-row { grid-template-columns: 1fr; } }

.report-detail-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 8px;
}
.detail-card {
  margin: 0;
  background: var(--dark);
  border: 1px solid rgba(255,253,247,.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.detail-card img { width: 100%; display: block; }
.detail-card figcaption {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em;
  color: rgba(255,253,247,.55);
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255,253,247,.06);
  line-height: 1.5;
}
@media (max-width: 900px){
  .report-detail-row { grid-template-columns: 1fr; }
}

/* ─── JADA ────────────────────────────────────────────────────────── */
.jada {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px;
  align-items: center;
}
.jada-copy .kicker { margin-bottom: 12px; }
.jada-copy h2 { margin-bottom: 16px; }
.jada-copy p  { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 20px;}
.jada-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.jada-bullets li {
  padding: 16px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-2);
}
.jada-bullets strong { color: var(--ink); }
.jada-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-panel);
}
.jada-figure img { width: 100%; display: block; }
@media (max-width: 900px){
  .jada { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── ROADMAP ─────────────────────────────────────────────────────── */
.roadmap {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  align-items: center;
}
.roadmap-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-panel);
}
.roadmap-figure img { width: 100%; display: block; }
.roadmap-copy .kicker { margin-bottom: 12px; }
.roadmap-copy h2 { margin-bottom: 16px; }
.roadmap-copy p  { font-size: 1.05rem; color: var(--ink-2); }
@media (max-width: 900px){
  .roadmap { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── PRICING ─────────────────────────────────────────────────────── */
.pricing { max-width: 1400px; margin: 0 auto; }
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.price-card {
  padding: 34px 30px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-tag {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
}
.price-strike {
  color: var(--ink-3);
  text-decoration: line-through;
  font-size: 1.5rem;
  margin-right: 8px;
  font-weight: 400;
}
.price-unit {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 4px;
}
.price-lede {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 12px 0 20px;
  min-height: 44px;
}
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.price-card li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-cta {
  margin-top: auto;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line-2);
  text-align: center;
  font-weight: 500;
  color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.price-cta:hover { background: var(--dark); color: #FFFDF7; border-color: var(--dark); }
.price-cta.primary { background: var(--dark); color: #FFFDF7; border-color: var(--dark); }
.price-cta.primary:hover { background: var(--accent); border-color: var(--accent); }
.price-card.featured {
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.price-card.featured .price-tag { color: var(--accent-2); }
.price-card.featured .price-amount { color: #FFFDF7; }
.price-card.featured .price-unit   { color: rgba(255,253,247,.55); }
.price-card.featured .price-lede   { color: rgba(255,253,247,.75); }
.price-card.featured ul li         { color: rgba(255,253,247,.85); }
.price-card.featured .price-cta    { background: #FFFDF7; color: var(--dark); border-color: transparent; }
.price-card.featured .price-cta:hover { background: var(--accent-2); color: var(--dark); }
@media (max-width: 900px){
  .price-grid { grid-template-columns: 1fr; }
}

/* ─── FINAL CTA ───────────────────────────────────────────────────── */
.final-cta {
  background: var(--dark);
  color: #FFFDF7;
  padding: 100px clamp(20px,5vw,56px) 100px;
  text-align: center;
}
.cta-inner { max-width: 900px; margin: 0 auto; }
.final-cta h2 {
  color: #FFFDF7;
  margin-bottom: 32px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.final-cta .url-bar {
  background: rgba(255,253,247,.06);
  border-color: rgba(255,253,247,.14);
}
.final-cta .url-bar:focus-within {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(228,138,45,.20);
}
.final-cta .url-scheme { color: rgba(255,253,247,.55); }
.final-cta .url-bar input { color: #FFFDF7; }
.final-cta .url-bar input::placeholder { color: rgba(255,253,247,.45); }
.final-cta .url-bar button { background: var(--accent-2); color: var(--dark); }
.final-cta .url-bar button:hover { background: #FFFDF7; }
.cta-microcopy {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(255,253,247,.55);
}

/* ─── FOOTER ──────────────────────────────────────────────────────── */
.foot {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 40px clamp(20px, 5vw, 56px);
}
.foot-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600;
}
.foot-tag {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-3);
}
.foot-links {
  margin-left: auto;
  display: flex; gap: 24px;
  font-size: 14px; color: var(--ink-2);
}
.foot-links a:hover { color: var(--ink); }

/* ─── MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference){
  .hero-figure, .report-card, .price-card, .steps li, .jada-figure, .roadmap-figure {
    opacity: 0;
    transform: translateY(20px);
    animation: rise .8s cubic-bezier(.2,.7,.1,1) forwards;
  }
  .hero-figure { animation-delay: .1s; }
  .steps li:nth-child(1) { animation-delay: .05s; }
  .steps li:nth-child(2) { animation-delay: .15s; }
  .steps li:nth-child(3) { animation-delay: .25s; }
  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ═══════════════════════════════════════════════════════════════════
   GHOST MEMBERSHIP COMPONENTS
   Intake · account
═══════════════════════════════════════════════════════════════════ */

.nav-actions {
  display: flex; align-items: center; gap: 18px;
  margin-left: auto; padding-left: 32px;
}
.nav-actions .nav-cta { margin-left: 0; }
.nav-link-plain {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.nav-link-plain:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-link-plain { display: none; } }

/* ── intake ─────────────────────────────────────────────────────── */

.intake { width: 100%; }
.url-bar.loading button { opacity: .7; cursor: wait; }

.intake-step2 {
  margin-top: 18px; max-width: 620px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px 22px;
  animation: intake-in .28s cubic-bezier(.2,.7,.3,1) both;
}
.url-bar.large + .intake-step2,
.final-cta .intake-step2 { margin-left: auto; margin-right: auto; }
@keyframes intake-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.intake-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.intake-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(194,90,14,.09);
  border: 1px solid rgba(194,90,14,.2);
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.intake-target { margin: 0; font-size: 14px; color: var(--ink-2); }
.intake-target strong { color: var(--ink); font-family: var(--font-mono); font-size: 13px; }

.intake-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 8px;
}
.intake-email-row { display: flex; gap: 10px; }
.intake-email-row input {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.intake-email-row input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,90,14,.13);
}
.intake-email-row button {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 20px; white-space: nowrap;
  background: var(--dark); color: #FFFBF2;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background .15s, transform .15s;
}
.intake-email-row button:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 560px) {
  .intake-email-row { flex-direction: column; }
  .intake-email-row button { width: 100%; }
}

.intake-fineprint { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.intake-signedin { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.intake-signedin a { color: var(--accent); font-weight: 600; text-decoration: none; }

.intake-error, .intake-success { margin: 10px 0 0; font-size: 13px; }
.intake-error { color: #A32C1C; }
.intake-success { color: var(--accent-3); font-weight: 600; display: none; }
[data-members-form].success .intake-success { display: block; }
[data-members-form].success .intake-email-row,
[data-members-form].success .intake-label,
[data-members-form].success .intake-fineprint { display: none; }
[data-members-form].loading button { opacity: .7; cursor: wait; }
.intake-error-standalone { max-width: 620px; }

/* Bug 22: when a sidebar/header CTA scrolls the visitor down to the unlock
   card (see report.js), give the card a two-second glow so it is obvious
   this is what they were asked to look at. Deliberately outside the box so
   the layout does not shift. */

/* Bug 40: a real light-mode surface on the report page. The theme's own
   variables already carry the ink/paper palette; expose the toggle by
   flipping the base tokens so light mode actually lightens everything
   instead of just the report. */
html.am-light,
html.am-light body {
  background: #f5f4f2;
  color: #1f1c1a;
}

/* CRO Panel report: full-bleed dark canvas matching the designed
   cro-reports-viewer. Shadow DOM inside #am-cro-host carries cro_system.css. */
.am-cro-host {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: #0A1628;
  color: #fff;
}
.lock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); flex: none;
}

.gh-content { font-size: 17px; line-height: 1.72; color: var(--ink-2); }
.gh-content > * + * { margin-top: 1.15em; }
.gh-content h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 27px; line-height: 1.2; color: var(--ink);
  margin-top: 2.1em; margin-bottom: .5em;
}
.gh-content h3 {
  font-size: 19px; font-weight: 700; color: var(--ink);
  margin-top: 1.8em; margin-bottom: .4em;
}
.gh-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.gh-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }
.gh-content blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent-2);
  color: var(--ink); font-style: italic;
}
.gh-content table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; margin: 1.6em 0;
}
.gh-content th, .gh-content td {
  text-align: left; padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.gh-content th {
  font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 500;
}
.gh-content code {
  font-family: var(--font-mono); font-size: .88em;
  background: rgba(31,26,18,.06); padding: 2px 5px; border-radius: 4px;
}
.gh-content pre {
  background: var(--dark); color: #F1E9DA;
  padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: 13.5px; line-height: 1.6;
}
.gh-content pre code { background: none; padding: 0; color: inherit; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.report-downloads, .report-jada {
  margin-top: 44px; padding: 26px 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.report-downloads h3, .report-jada h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.report-downloads p, .report-jada p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.report-jada {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.report-jada .kicker { margin-bottom: 8px; display: block; }

/* ── account ────────────────────────────────────────────────────── */

.account { max-width: 780px; margin: 0 auto; padding: 60px 24px 90px; }
.account-head { margin-bottom: 34px; }
.account-head h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4.2vw, 42px); line-height: 1.1;
  letter-spacing: -.015em; margin: 10px 0 10px; color: var(--ink);
}
.account-sub { margin: 0; font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.account-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.account-badge.paid { color: var(--accent-3); background: rgba(42,111,106,.1); border: 1px solid rgba(42,111,106,.24); }
.account-badge.free { color: var(--ink-3); background: rgba(31,26,18,.05); border: 1px solid var(--line-2); }

.account-runs-title {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 14px; font-weight: 500;
}
.account-loading, .account-empty {
  padding: 34px 28px; text-align: center;
  background: var(--bg-panel); border: 1px dashed var(--line-2);
  border-radius: var(--radius); color: var(--ink-3); font-size: 14.5px;
}
.account-empty h3 { margin: 0 0 6px; font-size: 17px; color: var(--ink); }
.account-empty p { margin: 0; }

.run-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px; margin-bottom: 12px;
}
.run-card.is-done { border-color: rgba(42,111,106,.35); }
.run-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.run-target { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink); font-weight: 500; }
.run-stage {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 3px 9px; border-radius: 999px;
  background: rgba(31,26,18,.05); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.run-card.is-done .run-stage {
  color: var(--accent-3); background: rgba(42,111,106,.1);
  border-color: rgba(42,111,106,.24);
}
.run-bar {
  height: 5px; border-radius: 999px;
  background: rgba(31,26,18,.07); overflow: hidden;
}
.run-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width .5s cubic-bezier(.3,.8,.3,1);
}
.run-wait { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.run-open {
  display: inline-block; margin-top: 14px;
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  color: var(--accent);
}

.account-upsell, .account-new, .account-subs {
  margin-top: 34px; padding: 26px 28px;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-upsell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.account-upsell h3, .account-new h3, .account-subs h3 {
  margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--ink);
}
.account-upsell p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.account-new h3 { margin-bottom: 16px; }

.account-sub-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.account-sub-row:last-child { border-bottom: 0; }
.account-sub-tier { font-weight: 600; color: var(--ink); }
.account-sub-status {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}

.account-actions { margin-top: 34px; display: flex; gap: 20px; }
.account-actions a { font-size: 14px; color: var(--ink-3); text-decoration: none; }
.account-actions a:hover { color: var(--accent); }

.account-signin { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.account-signin input {
  flex: 1; min-width: 200px;
  font-family: var(--font-body); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
.account-signin input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,90,14,.13);
}
.account-signin button {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 13px 22px; background: var(--dark); color: #FFFBF2;
  border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.account-signin button:hover { background: var(--accent); }
.account-signin .intake-error, .account-signin .intake-success { flex-basis: 100%; }
.account-alt { margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.account-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ── static page ────────────────────────────────────────────────── */

.static-page { max-width: 720px; margin: 0 auto; padding: 60px 24px 90px; }
.static-page h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1;
  letter-spacing: -.015em; margin: 0 0 28px; color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════════════
   KOENIG EDITOR CARDS
   Required by Ghost so editor-inserted cards render correctly.
═══════════════════════════════════════════════════════════════════ */

.gh-content { --content-width: 760px; }

.gh-content .kg-card,
.gh-content figure { margin-top: 1.8em; margin-bottom: 1.8em; }

.kg-width-wide {
  position: relative;
  width: calc(100% + 160px);
  max-width: 100vw;
  margin-left: -80px;
  margin-right: -80px;
}
.kg-width-wide img { width: 100%; height: auto; border-radius: var(--radius); }

.kg-width-full {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50vw);
}
.kg-width-full img { width: 100%; height: auto; border-radius: 0; }

@media (max-width: 920px) {
  .kg-width-wide { width: 100%; margin-left: 0; margin-right: 0; }
}

.kg-image-card figcaption,
.kg-embed-card figcaption,
.kg-gallery-card figcaption {
  margin-top: 12px; text-align: center;
  font-size: 13px; color: var(--ink-3); line-height: 1.5;
}

.kg-gallery-container { display: flex; flex-direction: column; gap: 10px; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }

.kg-bookmark-card a.kg-bookmark-container {
  display: flex; text-decoration: none; color: inherit;
  background: var(--bg-panel); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.kg-bookmark-content { flex: 1; padding: 20px 22px; }
.kg-bookmark-title { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.kg-bookmark-description { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.kg-bookmark-metadata { margin-top: 12px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.kg-bookmark-icon { width: 18px; height: 18px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-callout-card {
  display: flex; gap: 12px; padding: 18px 20px;
  border-radius: var(--radius); background: var(--bg-elev);
  border: 1px solid var(--line);
}
.kg-callout-emoji { flex: none; }

.kg-toggle-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; background: var(--bg-panel);
}
.kg-toggle-heading { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.kg-toggle-card-icon { width: 14px; height: 14px; }

.kg-button-card a.kg-btn {
  display: inline-block; text-decoration: none;
  padding: 13px 24px; border-radius: var(--radius-sm);
  background: var(--accent); color: #FFFBF2; font-weight: 600;
}
.kg-button-card.kg-align-center { text-align: center; }

.kg-blockquote-alt { font-size: 21px; font-style: italic; color: var(--ink); }

.kg-header-card { text-align: center; padding: 48px 24px; }
.kg-product-card, .kg-audio-card, .kg-video-card, .kg-file-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-panel); padding: 18px 20px;
}

/* Same trap for any button-style link dropped into post content. */
.gh-content .kg-btn,
.gh-content .price-cta.primary { color: #FFFBF2; text-decoration: none; }

/* ── mobile overflow fix ─────────────────────────────────────────────
   The hero is a grid; its items default to min-width:auto, so the URL bar
   (scheme + input + button, none shrinkable) forced a 477px min-content
   track and pushed the whole page 107px wider than a 390px viewport.
   Verified with a horizontal scrollbar on the live site.
─────────────────────────────────────────────────────────────────── */

.hero-inner, .hero-figure, .intake, .cta-inner { min-width: 0; }

@media (max-width: 620px) {
  .url-bar,
  .url-bar.large {
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: var(--radius);
    max-width: 100%;
  }
  .url-scheme { flex: 0 0 auto; }
  .url-bar input,
  .url-bar.large input {
    flex: 1 1 60%;
    min-width: 0;
    font-size: 16px;      /* 16px avoids iOS zoom-on-focus */
    padding: 10px 2px;
  }
  .url-bar button,
  .url-bar.large button {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 15px 20px;
    font-size: 15px;
  }
  .hero-microcopy { flex-wrap: wrap; row-gap: 4px; }
  .intake-step2 { padding: 20px 18px 18px; }
}

/* Ghost renders its own upgrade aside inside {{content}} for gated posts.
   We render our own card from post.hbs instead — overriding
   partials/content-cta.hbs would have replaced the free preview too. */
.gh-post-upgrade-cta { display: none !important; }


.account-back { margin: 0 0 18px; }
.account-back a { color: #ae1800; font-weight: 600; text-decoration: none; }
.account-unlock-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.account-unlock-actions .price-cta { display: inline-flex; }
.account-unlock-note { margin: 8px 0 0; color: #5a5754; }

/* ── Account dashboard: the member's own reports ─────────────────────────── */
.account-runs{display:flex;flex-direction:column;gap:14px;margin:28px 0}
.account-empty{padding:22px;border:1px dashed var(--line,#d8d3cd);color:#5a5754;font-size:16px}
.account-run{display:flex;align-items:center;justify-content:space-between;gap:20px;
  flex-wrap:wrap;padding:20px 22px;background:#fff;border:1px solid rgba(32,30,29,.14)}
.account-run-main{min-width:0}
.account-run h4{margin:6px 0 0;font-size:21px;letter-spacing:-.01em}
.account-run-when{margin:4px 0 0;font-size:14px;color:#7d7979}
.account-run-wait{font-size:14px;color:#7d7979}
.account-run-state{display:inline-block;font:700 11px/1 Verdana,Geneva,sans-serif;
  letter-spacing:.09em;text-transform:uppercase;padding:5px 9px;border-radius:2px}
.account-run-state.pending{background:#fff1c9;color:#7a5a00}
.account-run-state.unpaid{background:#f7e9e5;color:#ae1800}
.account-run-state.paid{background:#d8f0e4;color:#0b7a5c}
.account-loading{padding:22px;color:#7d7979;font-size:16px}
@media (max-width:640px){
  .account-run{flex-direction:column;align-items:flex-start;gap:12px}
  .account-run-action .price-cta{display:inline-block}
}
@media (max-width:480px){
}

/* Screen-reader-only: the report supplies its own visible masthead. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;
  margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Bug 30: give the primary CTA a spinner while an intake request is in
   flight. The button already gets aria-busy=true from landing.js; this
   just paints the visual half of the feedback. */
button[aria-busy="true"]{position:relative;padding-right:44px !important;
  cursor:wait}
button[aria-busy="true"]::after{content:"";position:absolute;top:50%;
  right:16px;width:14px;height:14px;margin-top:-7px;border-radius:50%;
  border:2px solid currentColor;border-right-color:transparent;
  animation:amSpin .8s linear infinite;opacity:.85}
@keyframes amSpin{to{transform:rotate(360deg)}}
