/* ==========================================================================
   Pixee — pixee.to landing page
   Vanilla CSS. No build step, no dependencies.
   Built on the Pixee brand guide: light scheme only, flat opaque surfaces,
   Space Grotesk + JetBrains Mono, violet primary, interaction-only motion.
   ========================================================================== */

/* ---------- Reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem; /* keep anchored sections clear of sticky header */
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

/* ---------- Design tokens ---------- */

:root {
  color-scheme: light;

  /* brand palette */
  --ink: #14121f;
  --paper: #ffffff;
  --canvas: #f8f7fd;
  --primary: #6d5ef5;
  --primary-strong: #5a47e0;
  --primary-soft: #e8e4ff;
  --coral: #ff6452;
  --mint: #2bc99a;
  --sun: #ffbe33;

  /* surfaces + lines (ink-derived, flat and opaque) */
  --bg: var(--paper);
  --surface: var(--canvas);
  --surface-2: #efedf9;
  --border: rgba(20, 18, 31, 0.1);
  --border-strong: rgba(20, 18, 31, 0.2);

  /* type colours */
  --text: var(--ink);
  --text-soft: rgba(20, 18, 31, 0.78);
  --muted: rgba(20, 18, 31, 0.6);
  --faint: rgba(20, 18, 31, 0.46);

  /* status accents — illustration/status use only, never large surfaces */
  --good: var(--mint);
  --warn: var(--sun);
  --bad: var(--coral);

  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;

  /* layout */
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection {
  background: var(--primary-soft);
  color: var(--ink);
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Work-in-progress bar ---------- */

.wip-bar {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

.wip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding-block: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  text-align: center;
}

.wip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--sun);
}

.wip-row a {
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: none;
}

.wip-row a:hover {
  color: var(--primary);
}

/* ---------- Buttons (cta role: 600 / lh 1 / pill, sentence case) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-bounce);
}

/* press squish */
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--primary);
  color: var(--paper);
}

/* hover = colour shift only */
.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-ghost {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: #dbd4ff;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand svg {
  height: 1.65rem;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-links a:hover {
  color: var(--primary-strong);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(5rem, 11vw, 8rem) clamp(4rem, 8vw, 6rem);
  text-align: center;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.eyebrow .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  margin: 1.6rem auto 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5rem); /* headline role: 32–80px */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero h1 .grad {
  color: var(--primary);
}

/* hero sub — subline role: 600 / 1.25 / 15–24px */
.hero .sub {
  margin: 1.4rem auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-soft);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--faint);
}

.hero-note strong {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Works-with strip ---------- */

.stack-strip {
  padding-block: 1.2rem 4.5rem;
}

.stack-label {
  /* small mono label */
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: center;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft);
}

.stack-badge svg {
  width: 1rem;
  height: 1rem;
}

a.stack-badge {
  text-decoration: none;
  transition: border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

a.stack-badge:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.stack-badge.more {
  border-style: dashed;
  background: transparent;
  color: var(--faint);
  font-weight: 500;
}

/* ---------- Section scaffolding ---------- */

.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 3.2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  /* small mono label */
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary-strong);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* section lead — subline role */
.section .lead {
  margin-top: 1rem;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Positioning ---------- */

.positioning-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.positioning-copy p {
  margin-top: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.positioning-copy p:first-of-type {
  margin-top: 0;
}

.positioning-copy strong {
  color: var(--text);
  font-weight: 600;
}

/* chat-style illustration, CSS only — flat surfaces */
.chat-demo {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.chat-bubble {
  position: relative;
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-bubble.user {
  justify-self: end;
  background: var(--primary);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
  justify-self: start;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-bottom-left-radius: 4px;
}

.chat-asset {
  justify-self: end;
  width: min(220px, 70%);
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--paper);
}

.chat-asset .bar {
  height: 0.55rem;
  width: 55%;
  border-radius: 4px;
  background: var(--primary);
  margin-bottom: 0.6rem;
}

.chat-asset .line {
  height: 0.4rem;
  border-radius: 3px;
  background: rgba(20, 18, 31, 0.16);
  margin-bottom: 0.45rem;
}

.chat-asset .line.short {
  width: 62%;
}

.chat-asset .row {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.chat-asset .chip {
  height: 1.5rem;
  flex: 1;
  border-radius: 6px;
  background: var(--primary-soft);
}

.chat-asset .chip:nth-child(2) {
  background: var(--primary);
}

.chat-asset .chip:nth-child(3) {
  background: var(--sun);
}

.chat-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--faint);
  margin-top: 0.9rem;
}

/* ---------- Asset cards (what it makes) ---------- */

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.asset-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px -20px rgba(20, 18, 31, 0.35);
}

.asset-visual {
  height: 7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--paper);
  overflow: hidden;
  position: relative;
}

/* card title — subline role */
.asset-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
}

.asset-card p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--muted);
}

.asset-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--primary-strong);
}

.asset-link .arrow {
  transition: transform var(--dur-base) var(--ease-out);
}

.asset-card:hover .asset-link .arrow {
  transform: translateX(4px);
}

/* tiny CSS mock-ups inside each card visual — flat fills */
.mock {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.mock .m {
  border-radius: 4px;
  background: rgba(20, 18, 31, 0.12);
}

.mock .m.head {
  height: 0.5rem;
  width: 45%;
  background: var(--primary);
}

.mock .m.line {
  height: 0.35rem;
  width: 88%;
}

.mock .m.line.w2 {
  width: 70%;
}

.mock .m.line.w3 {
  width: 52%;
}

/* banner: wide block */
.mock-banner {
  inset: auto 1rem;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  padding: 0;
  display: block;
}

.mock-banner .m {
  height: 2.6rem;
  border-radius: 6px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
}

/* header / OG: split hero shape */
.mock-header {
  padding: 0;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
}

.mock-header .m {
  height: 100%;
  min-height: 3.4rem;
  border-radius: 6px;
}

.mock-header .m:first-child {
  background: var(--primary-soft);
}

.mock-header .m:last-child {
  background: rgba(20, 18, 31, 0.08);
}

/* social: grid of tiles */
.mock-social {
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.mock-social .m {
  aspect-ratio: 1;
  border-radius: 6px;
}

.mock-social .m:nth-child(odd) {
  background: var(--primary-soft);
}

.mock-social .m:nth-child(even) {
  background: rgba(20, 18, 31, 0.08);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-strong);
}

/* card title — subline role */
.step h3 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.step p {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* code block — JetBrains Mono, dark ink terminal */
.code-block {
  position: relative;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* terminal blocks keep their own dark palette regardless of page theme */
.code-block,
.install-cmd {
  color: #c9c7dc;
}

.code-block .prompt,
.install-cmd .prompt {
  color: var(--mint);
  user-select: none;
}

.code-block .cmd,
.install-cmd .cmd {
  color: #ffffff;
}

.code-block .flag,
.install-cmd .flag {
  color: #b3a7ff;
}

.code-block .pkg,
.install-cmd .pkg {
  color: #ff9d8e;
}

.step-quote {
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--primary-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-soft);
  font-style: italic;
}

.section-ctas {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ---------- Comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.compare {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody th {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.compare td {
  color: var(--muted);
  line-height: 1.5;
}

/* highlight the Pixee column — selected-chip fill */
.compare th.pixee,
.compare td.pixee {
  background: var(--primary-soft);
  color: var(--ink);
  border-inline: 1px solid var(--primary);
}

.compare thead th.pixee {
  font-size: 1rem;
  font-weight: 700;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.mark svg {
  flex: 0 0 auto;
}

/* status accents — mint success, sun warning, coral danger */
.mark.good {
  color: var(--good);
}

.mark.warn {
  color: var(--warn);
}

.mark.bad {
  color: var(--bad);
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- Personas ---------- */

.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.persona {
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) var(--ease-out);
}

.persona:hover {
  border-color: var(--border-strong);
}

.persona .persona-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

/* card title — subline role */
.persona h3 {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
}

.persona p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.8rem;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

.faq-item[open] {
  border-color: var(--primary);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--muted);
  transition:
    transform var(--dur-fast) var(--ease-bounce),
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.faq-item .faq-body {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-soft);
}

/* ---------- Final CTA ---------- */

.final-cta {
  text-align: center;
  background: var(--canvas);
}

.final-cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.final-cta .lead {
  margin-inline: auto;
  max-width: 34rem;
}

.final-cta .hero-ctas {
  margin-top: 2rem;
}

.install-cmd {
  display: inline-block;
  max-width: 100%;
  margin-top: 2.2rem;
  padding: 0.9rem 1.3rem;
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
}

.final-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.4rem;
  font-size: 0.92rem;
}

.final-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}

.final-links a:hover {
  color: var(--primary-strong);
}

/* ---------- Subpages (about / terms) ---------- */

.page-hero {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  background: var(--canvas);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-hero .lead {
  margin: 1.2rem auto 0;
  max-width: 38rem;
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.prose {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.prose h2 {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--primary-strong);
  font-weight: 500;
  text-decoration: none;
}

.prose a:hover {
  color: var(--primary);
}

.prose .updated {
  color: var(--faint);
  font-size: 0.85rem;
}

.page-cta {
  text-align: center;
  background: var(--canvas);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2.5rem;
  background: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 0.8rem;
  max-width: 26rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-col h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.93rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--primary-strong);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-bottom a {
  color: var(--faint);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .persona-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .chat-bubble {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
