/* ==========================================================================
   Covey homepage styles.
   Editorial, warm, plum & cream. Fraunces + Instrument Sans.
   ========================================================================== */

:root {
  /* Color */
  --cream:        #F5EFE6;
  --cream-deep:   #ECE3D2;
  --cream-warm:   #EEE4D1;
  --paper:        #FAF6EE;
  --plum:         #5D3A5A;
  --plum-deep:    #3E2340;
  --plum-soft:    #7A5677;
  --terracotta:   #C87A5A;
  --sage:         #7A8770;
  --amber:        #C9934F;
  --ink:          #231A27;
  --ink-muted:    #6B5B6B;
  --rule:         rgba(35, 26, 39, 0.14);
  --rule-strong:  rgba(35, 26, 39, 0.28);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-sans:    'Instrument Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Menlo', monospace;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(20px, 4vw, 48px);
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
}

/* ------------------------- Reset / baseline ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* Paper grain overlay */
.grain {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 9999;
  opacity: 0.08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.1 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ------------------------- Eyebrow / small type ------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 500;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.eyebrow.small { font-size: 10px; margin-bottom: 6px; color: var(--plum-soft); }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.14em; margin-bottom: 22px; }
.eyebrow.centered { display: block; text-align: center; }
.eyebrow span { color: var(--terracotta); font-weight: 500; }

/* ------------------------- Buttons -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.btn-primary:hover { background: var(--plum-deep); border-color: var(--plum-deep); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { background: var(--cream-deep); border-color: var(--plum); }

.link-quiet {
  color: var(--ink-muted);
  font-size: 14.5px;
  transition: color .18s;
}
.link-quiet:hover { color: var(--plum); }

/* ------------------------- Nav (brand + mark only; mega-menu at bottom) -- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
}
.mark {
  width: 28px; height: 28px;
  fill: var(--plum);
}
.mark.mini { width: 18px; height: 18px; }
.mark.xl { width: 56px; height: 56px; margin: 0 auto 32px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "opsz" 96;
  color: var(--plum);
  line-height: 1;
}

/* ------------------------- Hero ----------------------------------------- */
.hero {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle at 30% 30%, rgba(200, 122, 90, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -25%; left: -10%;
  width: 55vw; height: 55vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle at 60% 40%, rgba(122, 135, 112, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; text-align: center; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 70, "opsz" 144;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--plum-deep);
  margin-bottom: 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 26px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.hero-footnote {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}
.hero-footnote .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sage) 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.55; }
}

/* --- Product surface under hero --- */
.hero-surface-wrap {
  margin-top: 48px;
  position: relative;
  z-index: 1;
}
.hero-surface {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 30px 60px -30px rgba(61, 35, 64, 0.35),
    0 60px 100px -40px rgba(61, 35, 64, 0.18);
  border: 1px solid var(--rule);
  overflow: hidden;
  transform: perspective(1800px) rotateX(2deg);
  transform-origin: center top;
  animation: floatIn .8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: perspective(1800px) rotateX(6deg) translateY(30px); }
  to   { opacity: 1; transform: perspective(1800px) rotateX(2deg) translateY(0); }
}

.surface-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-warm);
}
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-strong); }
.chrome-dots span:nth-child(1) { background: #D98E7A; }
.chrome-dots span:nth-child(2) { background: #D8B46B; }
.chrome-dots span:nth-child(3) { background: #8FA485; }
.chrome-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--cream-deep);
  padding: 5px 14px;
  border-radius: 999px;
  max-width: 320px;
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chrome-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.surface-body { display: grid; grid-template-columns: 220px 1fr; min-height: 440px; }
.surface-side {
  background: var(--cream-warm);
  border-right: 1px solid var(--rule);
  padding: 20px 16px 20px 24px;
  display: flex; flex-direction: column;
}
.side-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--plum);
  padding-bottom: 20px; margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.side-nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.side-nav a {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  cursor: pointer;
}
.side-nav a.active {
  background: var(--cream-deep);
  color: var(--plum);
  font-weight: 500;
}
.side-foot {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  padding: 10px 8px;
  border-top: 1px dashed var(--rule);
  margin-top: 20px;
}
.ico-sun::before { content: "☀"; margin-right: 4px; color: var(--terracotta); }

.surface-main { padding: 24px 28px; }
.surface-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
}
.surface-header h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
}
.surface-header h3 .muted { color: var(--ink-muted); font-family: var(--font-sans); font-size: 15px; }

.pill-row { display: flex; gap: 8px; }
.pill {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.02em;
}
.pill-plum { background: var(--plum); color: var(--cream); }
.pill-outline { border: 1px solid var(--rule-strong); color: var(--ink-muted); }

/* Table */
.table { display: flex; flex-direction: column; }
.table-head, .table-row {
  display: grid;
  grid-template-columns: 2fr 0.9fr 2fr 0.9fr 1fr;
  gap: 16px;
  align-items: center;
}
.table-head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  padding: 8px 4px;
  border-bottom: 1px solid var(--rule);
}
.table-row {
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
  transition: background .15s;
}
.table-row:hover { background: var(--cream-deep); }
.table-row:last-child { border-bottom: none; }
.cell-member { display: flex; align-items: center; gap: 10px; }
.cell-member strong { display: block; font-weight: 500; color: var(--ink); }
.cell-member .muted { font-size: 12px; }
.emails { font-size: 13px; line-height: 1.4; }
.emails .muted { font-size: 12px; }
.muted { color: var(--ink-muted); }
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  background: color-mix(in oklab, var(--plum) 12%, var(--cream));
  color: var(--plum);
  vertical-align: 2px;
}
.tag-small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--terracotta);
  padding-left: 4px;
}
.chip {
  display: inline-block; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  font-weight: 500;
}
.chip-sage { background: color-mix(in oklab, var(--sage) 22%, var(--cream)); color: #4E5A44; }
.chip-amber { background: color-mix(in oklab, var(--amber) 28%, var(--cream)); color: #7A5A24; }

/* Avatar */
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--plum);
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  flex-shrink: 0;
}
.avatar.small { width: 24px; height: 24px; font-size: 9.5px; }
.avatar[data-avatar="BW"] { background: var(--plum); }
.avatar[data-avatar="JR"] { background: var(--terracotta); }
.avatar[data-avatar="LM"] { background: var(--sage); }
.avatar[data-avatar="AK"] { background: var(--amber); }

/* ------------------------- Stats strip --------------------------------- */
.stats {
  border-block: 1px solid var(--rule);
  background: var(--cream-warm);
  margin-top: 100px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-block: 48px;
}
.stats-inner > div {
  padding-inline: 28px;
  border-right: 1px dashed var(--rule);
}
.stats-inner > div:first-child { padding-left: 0; }
.stats-inner > div:last-child { border-right: none; padding-right: 0; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: -0.03em;
  color: var(--plum-deep);
  margin-bottom: 10px;
}
.stat-n span {
  font-size: 0.45em;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.stat-l {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 760px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
    padding-block: 36px;
  }
  .stats-inner > div {
    padding-inline: 20px;
  }
  .stats-inner > div:nth-child(2) { border-right: 0; }
  .stats-inner > div:nth-child(3) { padding-left: 0; border-top: 1px dashed var(--rule); padding-top: 28px; }
  .stats-inner > div:nth-child(4) { border-top: 1px dashed var(--rule); padding-top: 28px; }
  .stat-n { font-size: clamp(36px, 10vw, 52px); }
}
@media (max-width: 420px) {
  .stats-inner { grid-template-columns: 1fr; gap: 24px; }
  .stats-inner > div { padding: 0; border-right: 0; border-bottom: 1px dashed var(--rule); padding-bottom: 24px; }
  .stats-inner > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .stats-inner > div:nth-child(3), .stats-inner > div:nth-child(4) { border-top: 0; padding-top: 0; }
}

/* ------------------------- Section titles ------------------------------ */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: var(--plum-deep);
  margin-bottom: 24px;
  max-width: 22ch;
}
.section-title em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.section-lede {
  font-size: 18px;
  max-width: 56ch;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ------------------------- Wedge ---------------------------------------- */
.wedge {
  padding-top: 120px;
  padding-bottom: 56px;
  text-align: left;
}

/* ------------------------- Feature grid --------------------------------- */
.feature-grid { padding-bottom: 100px; }
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feat {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
  transition: background .2s;
}
.feat:hover { background: var(--cream-warm); }
.feat-icon {
  margin-bottom: 22px;
  color: var(--plum);
}
.feat-icon svg {
  width: 32px; height: 32px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.feat-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.feat h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  font-variation-settings: "opsz" 48, "SOFT" 50;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.feat p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.feat-source {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}

/* ------------------------- Product tour --------------------------------- */
.tour { padding-block: 40px 100px; }
.tour-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-block: 80px;
}
.tour-row-reverse .tour-copy { order: 2; }
.tour-row-reverse .tour-mock { order: 1; }

/* Stacked variant: copy on top (centered), mock below full-width */
.tour-row-stacked {
  grid-template-columns: 1fr;
  gap: 48px;
  padding-block: 72px 48px;
  align-items: start;
  text-align: center;
}
.tour-row-stacked .tour-copy {
  max-width: 720px;
  margin: 0 auto;
}
.tour-row-stacked .eyebrow {
  display: inline-flex;
  justify-content: center;
}
.tour-row-stacked .tour-title {
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .tour-row-stacked .tour-title { white-space: normal; }
}
.tour-row-stacked .tour-body {
  max-width: 58ch;
  margin-inline: auto;
}
.tour-row-stacked .tour-list {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 10px 36px;
  margin: 4px auto 0;
  text-align: left;
}
.tour-row-stacked .tour-mock { width: 100%; }
.tour-row-stacked .mock-window { max-width: none; }
.tour-row-stacked .mock-website .mw-body { min-height: 0; }
.tour-rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0 auto;
  width: min(1240px, calc(100% - 2 * var(--container-pad)));
}
.tour-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--plum-deep);
  margin-bottom: 20px;
}
.tour-body {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 44ch;
}
.tour-list { display: flex; flex-direction: column; gap: 10px; }
.tour-list li {
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink);
  position: relative;
}
.tour-list li::before {
  content: "◆";
  position: absolute; left: 0; top: 0;
  color: var(--terracotta);
  font-size: 9px;
  line-height: 1.9;
}

/* Shared mock window */
.mock-window {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow:
    0 20px 40px -25px rgba(61, 35, 64, 0.28),
    0 40px 80px -40px rgba(61, 35, 64, 0.14);
  overflow: hidden;
}
.mw-head {
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--cream-warm);
  border-bottom: 1px solid var(--rule);
}
.mw-body { padding: 24px; }

/* Cart mock */
.cart-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  gap: 16px;
}
.cart-item:last-of-type { border-bottom: 1px solid var(--rule-strong); }
.ci-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.ci-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--terracotta) 18%, transparent);
  flex-shrink: 0;
}
.ci-left strong { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); }
.ci-left .muted { font-size: 12px; }
.ci-price {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--plum);
  white-space: nowrap;
  padding-left: 8px;
}
.cart-sum { padding-top: 14px; font-size: 14px; }
.sum-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-muted);
}
.sum-row em { font-style: normal; }
.sum-total {
  border-top: 1px solid var(--rule);
  margin-top: 4px; padding-top: 10px;
  font-weight: 500; color: var(--ink); font-size: 15px;
}
.mock-btn {
  margin-top: 18px;
  background: var(--plum);
  color: var(--cream);
  border: none;
  padding: 14px 20px;
  width: 100%;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  transition: background .15s;
}
.mock-btn:hover { background: var(--plum-deep); }
.mock-btn.small { width: auto; padding: 10px 16px; font-size: 13px; margin-top: 0; }

/* Finance mock */
.fin-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  padding: 16px; border: 1px solid var(--rule);
  border-radius: var(--radius-sm); background: var(--cream);
}
.kpi-l { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.kpi-n { font-family: var(--font-display); font-size: 28px; font-weight: 400; font-variation-settings: "opsz" 96, "SOFT" 40; color: var(--plum-deep); letter-spacing: -0.015em; display: block; line-height: 1; margin-bottom: 4px; }
.kpi-d { font-size: 11.5px; color: var(--ink-muted); font-family: var(--font-mono); }
.kpi-d.up { color: var(--sage); }
.kpi-d.down { color: var(--sage); }
.fin-chart { padding: 8px 0 16px; }
.fin-chart svg { width: 100%; height: 100px; }
.fin-rows { display: flex; flex-direction: column; }
.fin-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
}
.fin-row strong { font-weight: 500; display: block; }
.fin-row .muted { font-size: 12px; }
.fin-row .money { font-family: var(--font-mono); font-size: 13px; color: var(--plum); font-weight: 500; }

/* Email mock */
.mw-email { padding: 18px 22px 20px; }
.email-field {
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 12px;
  align-items: center;
}
.ef-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  width: 70px;
}
.chip-inline {
  background: color-mix(in oklab, var(--plum) 10%, var(--cream));
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--plum);
}
.email-editor {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--rule);
}
.email-editor h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  font-variation-settings: "opsz" 64, "SOFT" 60;
  color: var(--plum-deep);
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.email-editor p { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 10px; }
.email-editor p em { color: var(--terracotta); font-style: italic; }
.gadget {
  margin: 14px 0;
  border: 1px dashed var(--rule-strong);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.gadget-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--terracotta);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gadget-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink);
  border-top: 1px dashed var(--rule);
}
.gadget-row:first-of-type { border-top: none; }
.gadget-row strong { font-weight: 500; }
.gadget-row span { color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }
.email-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  font-size: 12px;
  flex-wrap: wrap;
}

/* ------------------------- Website mock ---------------------------------
   A legit professional association site (navy + warm white + gold accents)
   distinct from Covey's own plum/cream palette, to show builder range.
--------------------------------------------------------------------------- */
.mock-website .mw-body {
  padding: 0;
  background: #F7F5EF;
  color: #1A1D24;
  min-height: 640px;
  font-size: 13px;
}

/* Utility topbar (navy) */
.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  background: #1D2A44;
  color: rgba(247, 245, 239, 0.82);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.site-topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.site-topbar-right > span:first-child {
  cursor: default;
}
.site-topbar .site-join {
  background: #B08B4F;
  color: #1D2A44 !important;
  padding: 4px 11px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Main nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.12);
  background: #F7F5EF;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-logomark {
  width: 36px;
  height: 36px;
  background: #1D2A44;
  color: #F7F5EF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 48, "SOFT" 60;
  font-size: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logotext {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1D2A44;
  line-height: 1;
  font-weight: 500;
}
.site-logotext em {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 72, "SOFT" 50;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #1D2A44;
  font-weight: 500;
  margin-top: 4px;
}
.site-links {
  display: flex;
  gap: 22px;
  font-size: 12.5px;
  color: #4D5566;
  font-family: var(--font-sans);
  font-weight: 500;
}
.site-links span { cursor: default; }

/* Hero */
.site-hero {
  position: relative;
  padding: 56px 40px 48px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
  background:
    linear-gradient(180deg, #F7F5EF 0%, #EFECE2 100%);
  text-align: center;
}
.site-hero::before {
  content: "";
  display: block;
  width: 48px; height: 2px;
  background: #B08B4F;
  margin: 0 auto 22px;
}
.site-hero .site-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #B08B4F;
  margin-bottom: 18px;
  display: block;
  font-weight: 500;
}
.site-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #1D2A44;
  margin: 0 auto 18px;
  max-width: 22ch;
}
.site-title em {
  font-style: italic;
  color: #B08B4F;
  font-weight: 400;
}
.site-lede {
  font-size: 13.5px;
  color: #4D5566;
  line-height: 1.55;
  max-width: 58ch;
  margin: 0 auto 22px;
}
.site-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-cta-primary {
  background: #1D2A44;
  color: #F7F5EF;
  padding: 11px 20px;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.site-cta-ghost {
  color: #1D2A44;
  font-size: 12.5px;
  font-weight: 500;
  border-bottom: 1px solid #1D2A44;
  padding-bottom: 2px;
}

/* Two-column events + new members */
.site-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 26px 40px 24px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
}
.site-col-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #B08B4F;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1D2A44;
  font-weight: 500;
}
.site-event {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid rgba(29, 42, 68, 0.08);
}
.site-event:first-of-type { border-top: none; padding-top: 6px; }
.site-event .se-date {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 64, "SOFT" 60;
  color: #B08B4F;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.site-event .se-body { display: flex; flex-direction: column; gap: 2px; }
.site-event strong {
  font-weight: 500;
  color: #1A1D24;
  font-size: 13.5px;
  line-height: 1.2;
}
.site-event .se-body span {
  color: #5C6370;
  font-size: 11.5px;
  font-family: var(--font-sans);
}

.site-member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(29, 42, 68, 0.08);
  align-items: center;
}
.site-member:first-of-type { border-top: none; padding-top: 4px; }
.site-member > div { min-width: 0; }
.site-member strong {
  display: block;
  font-weight: 500;
  color: #1A1D24;
  font-size: 13.5px;
  line-height: 1.2;
}
.site-member > div > span {
  color: #5C6370;
  font-size: 11.5px;
  display: block;
  margin-top: 2px;
}
/* Override avatar inside the professional-site mock */
.mock-website .avatar { background: #1D2A44; color: #F7F5EF; }

/* Sponsor band */
.site-sponsors {
  padding: 20px 40px 28px;
  text-align: center;
}
.site-sponsors-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5C6370;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(29, 42, 68, 0.1);
}
.site-sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 30px;
}
.site-sponsor-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #4D5566;
  font-weight: 500;
}

@media (max-width: 600px) {
  .site-topbar { font-size: 9.5px; padding: 6px 14px; }
  .site-nav { padding: 14px 16px; }
  .site-links { display: none; }
  .site-hero { padding: 32px 20px 28px; }
  .site-columns { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px; }
  .site-sponsors { padding: 18px 20px 24px; }
  .site-sponsor-row { gap: 18px 22px; }
}

/* ------------------------- Audiences ----------------------------------- */
.audiences {
  padding-block: 80px 100px;
  border-top: 1px solid var(--rule);
  background: var(--cream-warm);
  text-align: center;
}
.audience-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(24px, 3.4vw, 42px);
  color: var(--plum-deep);
  letter-spacing: -0.015em;
  margin: 32px 0 24px;
  line-height: 1.3;
}
.audience-row .sep {
  color: var(--terracotta);
  font-size: 0.45em;
  line-height: 1;
  position: relative;
  top: -0.45em;
}
.audience-note {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 52ch;
  margin: 0 auto;
}

/* ------------------------- Testimonial --------------------------------- */
.testimonial {
  padding-block: 140px;
  position: relative;
}
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  padding-left: 48px;
}
.mark-quote {
  position: absolute;
  left: -10px; top: -60px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 220px;
  line-height: 1;
  color: color-mix(in oklab, var(--terracotta) 45%, transparent);
}
.pullquote blockquote {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.22;
  color: var(--plum-deep);
  letter-spacing: -0.013em;
}
.pullquote figcaption {
  display: flex; align-items: center; gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.pullquote figcaption strong { display: block; font-weight: 500; }
.pullquote figcaption .muted { font-size: 13px; }

/* ------------------------- Logo wall ----------------------------------- */
.logowall {
  padding-block: 60px 100px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 48px;
  margin-top: 36px;
  text-align: center;
}
.logo-grid span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  opacity: 0.75;
  transition: opacity .18s, color .18s;
}
.logo-grid span:hover { opacity: 1; color: var(--plum); }

/* ------------------------- Pricing ------------------------------------- */
.pricing { padding-block: 120px; }
.pricing .eyebrow { margin-bottom: 28px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  align-items: stretch;
}
.price-card {
  padding: 32px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.price-feature {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
  transform: translateY(-12px);
  box-shadow: 0 40px 60px -40px rgba(61,35,64,0.5);
}
.price-feature .pc-desc,
.price-feature li { color: color-mix(in oklab, var(--cream) 82%, transparent); }
.price-feature .pc-eyebrow { color: var(--cream); }
.pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.pc-tag {
  font-size: 9.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500;
}
.pc-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: inherit;
}
.pc-price span {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink-muted);
  margin-left: 4px;
}
.price-feature .pc-price span { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.pc-desc {
  font-size: 14.5px; color: var(--ink-muted); line-height: 1.55;
  margin-bottom: 22px;
}
.price-card ul {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  margin-bottom: 28px;
  color: var(--ink);
}
.price-card ul li {
  padding-left: 22px; position: relative;
}
.price-card ul li::before {
  content: "";
  position: absolute; left: 2px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--terracotta);
  opacity: 0.9;
}
.price-feature ul li::before { background: var(--cream); opacity: 0.55; }
.price-card .btn { margin-top: auto; }
.price-feature .btn-primary { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.price-feature .btn-primary:hover { background: var(--cream-deep); border-color: var(--cream-deep); }

/* Enterprise panel */
.enterprise-panel {
  margin-top: 48px;
  padding: 44px 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--plum);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.enterprise-panel::after {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 80px; height: 3px;
  background: var(--terracotta);
}
.enterprise-eyebrow { margin-bottom: 20px; }
.enterprise-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--plum-deep);
  margin-bottom: 18px;
  max-width: 26ch;
}
.enterprise-desc {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 46ch;
}
.enterprise-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.enterprise-cta-row .link-quiet {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.enterprise-list {
  display: flex;
  flex-direction: column;
}
.enterprise-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-muted);
  align-items: baseline;
}
.enterprise-list li:first-child { border-top: none; padding-top: 4px; }
.enterprise-list li strong {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--plum);
  letter-spacing: -0.005em;
}

/* ------------------------- Migration ----------------------------------- */
.migration {
  background: var(--plum);
  color: var(--cream);
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}
.migration::before {
  content: "";
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 122, 90, 0.22), transparent 60%);
  pointer-events: none;
}
.migration-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.migration .eyebrow { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.migration .eyebrow span { color: var(--terracotta); }
.migration-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 22px;
}
.migration-title em {
  font-style: italic;
  color: var(--terracotta);
}
.migration-body {
  font-size: 17px;
  line-height: 1.55;
  color: color-mix(in oklab, var(--cream) 82%, transparent);
  margin-bottom: 28px;
  max-width: 46ch;
}
.migration .btn-primary {
  background: var(--cream); color: var(--plum); border-color: var(--cream);
}
.migration .btn-primary:hover { background: var(--cream-deep); border-color: var(--cream-deep); }
.migration-list {
  display: flex; flex-direction: column; gap: 18px;
  padding-left: 0;
  border-left: 1px solid color-mix(in oklab, var(--cream) 24%, transparent);
  padding-left: 28px;
}
.migration-list li {
  font-size: 15.5px;
  line-height: 1.5;
  color: color-mix(in oklab, var(--cream) 92%, transparent);
  display: flex; gap: 16px; align-items: flex-start;
}
.migration-list span {
  font-family: var(--font-mono);
  font-size: 12px;
  padding-top: 3px;
  color: var(--terracotta);
  font-weight: 500;
  flex-shrink: 0;
}

/* ------------------------- Final CTA ----------------------------------- */
.final-cta {
  text-align: center;
  padding: 140px 0 160px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(200, 122, 90, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(122, 135, 112, 0.09), transparent 55%);
  pointer-events: none;
}
.final-cta > .container { position: relative; z-index: 1; }
.final-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 70;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--plum-deep);
  margin-bottom: 24px;
}
.final-title em {
  font-style: italic;
  color: var(--terracotta);
}
.final-sub {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.final-foot {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ------------------------- Footer -------------------------------------- */
.footer {
  background: var(--cream-warm);
  border-top: 1px solid var(--rule);
  padding: 80px 0 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--plum);
  margin-bottom: 20px;
  max-width: 24ch;
}
.footer-small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer a {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  padding: 4px 0;
  transition: color .15s;
}
.footer a:hover { color: var(--plum); }

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

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

  .surface-body { grid-template-columns: 1fr; min-height: auto; }
  .surface-side { display: none; }
  .surface-main { padding: 20px; }
  .table-head, .table-row { grid-template-columns: 2fr 1fr 1fr; }
  .table-head > div:nth-child(3),
  .table-head > div:nth-child(4),
  .table-row > div:nth-child(3),
  .table-row > div:nth-child(4) { display: none; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stats-inner > div { padding: 0 16px; }
  .stats-inner > div:nth-child(2) { border-right: none; }
  .stats-inner > div:nth-child(3) { padding-left: 0; }

  .grid-6 { grid-template-columns: repeat(2, 1fr); }

  .tour-row { grid-template-columns: 1fr; gap: 36px; padding-block: 60px; }
  .tour-row-reverse .tour-copy { order: 1; }
  .tour-row-reverse .tour-mock { order: 2; }

  .fin-kpis { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-feature { transform: none; }

  .enterprise-panel { grid-template-columns: 1fr; gap: 36px; padding: 36px 32px; }
  .enterprise-list li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }

  .migration-inner { grid-template-columns: 1fr; gap: 48px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { --container-pad: 20px; }

  .nav-cta .link-quiet { display: none; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }

  .hero { padding-top: 56px; }
  .hero-surface { border-radius: 12px; transform: none; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }

  /* Hero footnote: the flex-wrap was stacking the dot on its own line. */
  .hero-footnote {
    display: block;
    text-align: center;
    line-height: 1.7;
    padding-inline: 8px;
  }
  .hero-footnote .dot { display: none; }

  /* Dashboard mock: trim chrome & header to fit narrow screens cleanly */
  .surface-chrome { grid-template-columns: auto 1fr; padding: 10px 14px; gap: 12px; }
  .chrome-meta { display: none; }
  .chrome-url { max-width: 200px; font-size: 10.5px; padding: 4px 10px; }

  .surface-main { padding: 16px; }
  .surface-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .surface-header h3 { font-size: 22px; }
  .pill-outline { display: none; }
  .pill { font-size: 10.5px; padding: 4px 10px; }

  /* Table: at narrow widths the status chip was clipping. Drop to 2 columns. */
  .table-head, .table-row { grid-template-columns: 1.7fr 1fr; gap: 10px; }
  .table-head > div:nth-child(2),
  .table-row > div:nth-child(2) { display: none; }
  .cell-member .muted { font-size: 11.5px; }
  .chip { font-size: 10.5px; padding: 2px 8px; }

  /* Sample-site topbar: the meta line crowds the buttons at 390px */
  .site-topbar > span:first-child { display: none; }
  .site-topbar { justify-content: flex-end; }

  /* Cart mock: stack title + meta above the price at narrow widths */
  .cart-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ci-price { padding-left: 24px; padding-top: 2px; }

  .stats-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats-inner > div { border-right: none; padding: 0; }

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

  .fin-kpis { grid-template-columns: 1fr; }

  .pullquote { padding-left: 0; text-align: left; }
  .mark-quote { font-size: 140px; top: -40px; left: -8px; }
}

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

/* ==========================================================================
   Beta signup modal
   ========================================================================== */
.beta-modal {
  position: fixed; inset: 0;
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 6vh, 64px) 20px;
  overflow-y: auto;
}
.beta-modal.is-open { display: flex; }
.beta-modal-scrim {
  position: absolute; inset: 0;
  background: rgba(35, 26, 39, 0.58);
  backdrop-filter: blur(2px);
  animation: betaScrimIn .25s ease both;
}
.beta-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(35,26,39,.28), 0 2px 0 rgba(255,255,255,.4) inset;
  padding: clamp(28px, 4vw, 44px);
  animation: betaCardIn .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes betaScrimIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes betaCardIn {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.beta-modal-close {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  font-size: 28px; line-height: 1;
  color: var(--ink-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.beta-modal-close:hover { background: rgba(35,26,39,.06); color: var(--ink); }
.beta-modal-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 10px 0 12px;
}
.beta-modal-title em {
  font-style: italic;
  color: var(--plum);
  font-variation-settings: "SOFT" 60;
}
.beta-modal-sub {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 42ch;
}
.beta-field {
  display: block;
  margin-bottom: 14px;
}
.beta-field > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: 6px;
}
.beta-field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.beta-field input:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(93,58,90,.16);
}
.beta-field-error {
  color: #9c3a3a;
  font-size: 13px;
  min-height: 1.2em;
  margin: 4px 0 10px;
}
.beta-form-foot {
  text-align: center;
  color: var(--ink-muted);
  font-size: 13px;
  margin-top: 14px;
}
.btn-full { display: block; width: 100%; text-align: center; }

.beta-modal-success {
  text-align: center;
  padding: 8px 0 4px;
}
.beta-modal-success .mark.xl { margin: 0 auto 14px; }

/* Toast — error surfacing */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(35,26,39,.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  max-width: 360px;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #6b2a2a; }

body.beta-modal-open { overflow: hidden; }

/* ==========================================================================
   SEO page styles (vs, alternatives, vertical, category, feature, use-case,
   tool, glossary, blog, hub, brand-jack). Shares tokens with the homepage.
   ========================================================================== */

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding: 20px 0 8px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: var(--rule-strong); }
.breadcrumbs a { color: var(--plum); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--ink); }

/* ---- Shared hero patterns ---- */
.vs-hero, .alt-hero, .vertical-hero, .cat-hero, .feat-hero, .uc-hero, .tool-hero, .glossary-hero, .blog-hero, .hub-hero, .bj-hero { padding: 60px 0 40px; }
.vs-title, .alt-title, .vertical-title, .cat-title, .feat-title, .uc-title, .tool-title, .glossary-title, .blog-title, .hub-title, .bj-title, .post-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 20ch;
}
.vs-title em, .alt-title em, .vertical-title em, .cat-title em, .feat-title em, .uc-title em, .tool-title em, .glossary-title em, .blog-title em, .hub-title em, .bj-title em, .post-title em {
  font-style: italic; color: var(--plum); font-variation-settings: "SOFT" 60;
}
.vs-lede, .alt-lede, .vertical-lede, .feat-lede, .uc-lede, .tool-lede, .glossary-lede, .blog-lede, .hub-lede, .bj-lede, .post-excerpt, .cat-lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 24px;
}

/* Keep prose readable inside wider sections */
.uc-step p, .post-section p, .bj-section p, .faq-item p, .pains-list li, .cap-card p, .workflow-card p, .wtlf-card p, .wedge-card p { max-width: 65ch; }

/* ---- Section titles (reuse between pages) ---- */
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 36px;
  max-width: 22ch;
}
.section-title em { font-style: italic; color: var(--plum); font-variation-settings: "SOFT" 60; }

/* ---- VS page ---- */
.vs-page section { padding: 60px 0; }
.vs-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.vs-verdict-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.vs-verdict-card.alt { background: var(--cream-deep); }
.vs-verdict-card p { margin: 8px 0 0; font-size: 16px; }

.vs-table { border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.vs-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-bottom: 1px solid var(--rule); }
.vs-row:last-child { border-bottom: 0; }
.vs-row > div { padding: 16px 20px; font-size: 15px; line-height: 1.5; border-right: 1px solid var(--rule); }
.vs-row > div:last-child { border-right: 0; }
.vs-row > div:first-child { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); background: var(--cream-warm); }
.vs-row.vs-head > div { background: var(--plum-deep); color: var(--cream); font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.vs-row.vs-head > div:first-child { background: var(--plum-deep); }
.vs-row.vs-head strong { display: block; font-size: 17px; font-weight: 500; }
.vs-row.vs-head .muted { display: block; font-size: 12px; color: rgba(245,239,230,0.7); margin-top: 2px; }

.vs-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.vs-feat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.vs-feat h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.vs-feat-row { padding: 12px 0; border-top: 1px solid var(--rule); }
.vs-feat-row:first-of-type { border-top: 0; padding-top: 0; }
.vs-feat-row.alt { color: var(--ink-muted); }
.vs-feat-brand { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); padding: 2px 8px; border: 1px solid var(--plum); border-radius: 999px; margin-bottom: 6px; }
.vs-feat-row.alt .vs-feat-brand { color: var(--ink-muted); border-color: var(--rule-strong); }
.vs-feat-row p { margin: 0; font-size: 14px; line-height: 1.55; }

.wedge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.wedge-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.wedge-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 10px; }
.wedge-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

.vs-strengths-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.plainlist li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.55; }
.plainlist li:last-child { border-bottom: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 22px; }
.faq-item summary { cursor: pointer; font-family: var(--font-display); font-weight: 400; font-size: 19px; line-height: 1.3; letter-spacing: -0.005em; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "＋"; display: inline-block; color: var(--plum); font-size: 16px; margin-right: 12px; transition: transform .15s ease; }
.faq-item[open] summary::before { content: "−"; }
.faq-item p { margin: 14px 0 4px; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

/* ---- Alternatives page ---- */
.alt-page section { padding: 50px 0; }
.alt-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.alt-quick > div { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; font-size: 15px; }
.alt-entry { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; margin-bottom: 18px; }
.alt-entry.featured { border-color: var(--plum); background: linear-gradient(to bottom, var(--cream-warm), var(--paper)); }
.alt-entry-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 14px; }
.alt-rank { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--plum); margin: 0; min-width: 70px; }
.alt-entry-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0 0 4px; }
.alt-tagline { margin: 0; color: var(--ink-muted); font-size: 15px; }
.alt-body { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.alt-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.alt-row strong { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--plum); }
.alt-cta { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.alt-ol { counter-reset: steps; padding: 0; }
.alt-ol li { counter-increment: steps; padding: 14px 0; border-top: 1px solid var(--rule); list-style: none; font-size: 15px; line-height: 1.6; }
.alt-ol li::before { content: counter(steps, decimal-leading-zero); font-family: var(--font-mono); color: var(--plum); margin-right: 12px; }

/* ---- Vertical page ---- */
.vertical-page section { padding: 50px 0; }
.vertical-page .stats { margin-top: 0; }
.pains-list li { padding: 14px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; }
.pains-list li:first-child { border-top: 0; }
.pains-list li::before { content: "×"; color: var(--terracotta); margin-right: 14px; font-size: 20px; }
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.workflow-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.workflow-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 8px 0 12px; }
.workflow-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.compare-strip { display: flex; gap: 16px; flex-wrap: wrap; }
.compare-chip { background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 16px 20px; display: block; flex: 1 1 240px; }
.compare-chip strong { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 400; margin-bottom: 4px; }
.compare-chip span { color: var(--ink-muted); font-size: 13px; }
.compare-chip:hover { border-color: var(--plum); }

/* ---- Category pillar ---- */
.category-page section { padding: 50px 0; }
.cat-definition { background: var(--cream-warm); border-left: 3px solid var(--plum); padding: 20px 24px; border-radius: var(--radius-sm); font-size: 17px; line-height: 1.6; margin: 0 0 28px; max-width: 72ch; }
.cat-toc-list { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-toc-list li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; font-family: var(--font-mono); font-size: 12px; }
.cat-toc-list a { color: var(--plum); }
.wtlf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.wtlf-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.wtlf-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin: 8px 0 12px; }
.wtlf-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); }
.cat-matrix-table { margin-bottom: 24px; }
.cat-compare-links { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-fit-body { font-size: 17px; line-height: 1.65; max-width: 72ch; margin-bottom: 36px; }

/* ---- Feature page ---- */
.feature-page section { padding: 50px 0; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cap-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.cap-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 8px 0 10px; }
.cap-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }

/* ---- Use-case page ---- */
.uc-page section { padding: 50px 0; }
.uc-steps-list { padding: 0; }
.uc-step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--rule); list-style: none; }
.uc-step:first-child { border-top: 0; }
.uc-step-n { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--plum); line-height: 1; }
.uc-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.uc-step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-muted); }
.uc-benefits-list li { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.55; }
.uc-benefits-list li:first-child { border-top: 0; }
.uc-benefits-list li::before { content: "✓"; color: var(--sage); margin-right: 12px; font-weight: 500; }

/* ---- Tool / calculator page ---- */
.tool-page section { padding: 40px 0; }
.tool-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); padding: 32px; }
.tool-form { display: flex; flex-direction: column; gap: 16px; }
.tool-field { display: block; }
.tool-field > span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin-bottom: 6px; }
.tool-field input[type="number"], .tool-field input[type="text"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.tool-field input[type="checkbox"] { transform: scale(1.3); margin-right: 8px; }
.tool-output { background: var(--plum-deep); color: var(--cream); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.tool-output-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin: 0 0 12px; }
.tool-output-value { font-family: var(--font-display); font-weight: 300; font-size: 56px; line-height: 1; margin: 0 0 20px; }
.tool-output-extra { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(245,239,230,.15); font-size: 14px; }
.tool-output-extra strong { font-weight: 500; }
.tool-notes { margin-top: 28px; padding: 20px; background: var(--cream-warm); border-radius: var(--radius); }

/* ---- Glossary ---- */
.glossary-index section { padding: 40px 0; }
.glossary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.glossary-card { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; height: 100%; }
.glossary-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.glossary-card span { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.glossary-card:hover { border-color: var(--plum); }
.glossary-term { padding: 40px 0 80px; }
.glossary-def { background: var(--paper); border-left: 3px solid var(--plum); padding: 20px 24px; border-radius: var(--radius-sm); margin: 0 0 32px; font-size: 17px; line-height: 1.65; }
.glossary-related { margin-top: 32px; }
.glossary-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* ---- Blog ---- */
.blog-index section { padding: 40px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.blog-card { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; height: 100%; }
.blog-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.25; margin: 8px 0 10px; }
.blog-card span { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin-bottom: 12px; }
.blog-card time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.blog-card:hover { border-color: var(--plum); }
/* Blog post: narrow every container to the reading-column width for editorial feel */
.blog-post .container,
.blog-post .breadcrumbs,
.blog-post .post-body .container,
.blog-post .related .container { max-width: 760px; }
.post-header { padding: 40px 0 28px; }
.post-title { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.05; margin-bottom: 20px; max-width: 24ch; }
.post-excerpt { font-size: 20px; line-height: 1.55; color: var(--ink-muted); max-width: 54ch; margin: 0 0 18px; }
.post-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.post-body { padding: 32px 0 72px; }
.post-section { margin-bottom: 44px; }
.post-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.post-section p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 64ch;
}
.post-section + .post-section { padding-top: 24px; border-top: 1px solid var(--rule); }

/* ---- Hub / index pages ---- */
.hub-page section { padding: 40px 0; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.hub-card { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; height: 100%; }
.hub-card strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 6px; }
.hub-card span { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }
.hub-card:hover { border-color: var(--plum); }

/* ---- Brand-jack pages (compare, switch) ---- */
.brandjack-page section { padding: 50px 0; }
.brandjack-page .container,
.brandjack-page .breadcrumbs,
.brandjack-page .bj-body .container,
.brandjack-page .related .container { max-width: 800px; }
.bj-hero { padding-top: 36px; padding-bottom: 20px; }
.bj-title { max-width: 22ch; }
.bj-lede { font-size: 19px; line-height: 1.6; max-width: 56ch; }
.bj-body { padding: 24px 0 72px; }
.bj-section { margin-bottom: 40px; }
.bj-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.14;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  max-width: 24ch;
}
.bj-section p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
}
.bj-section + .bj-section { padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---- Glossary term page (narrow prose) ---- */
.glossary-page .container,
.glossary-page .breadcrumbs,
.glossary-page .related .container { max-width: 720px; }
.glossary-term { padding: 40px 0 72px; }
.glossary-term .glossary-title { font-size: clamp(36px, 5vw, 56px); margin-bottom: 20px; }

/* ---- Shared CTA strip ---- */
.cta-strip {
  padding: 80px 0;
  background: var(--cream-deep);
  text-align: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 16px 0 16px;
  max-width: 26ch;
  margin-left: auto; margin-right: auto;
}
.cta-title em { font-style: italic; color: var(--plum); font-variation-settings: "SOFT" 60; }
.cta-sub { color: var(--ink-muted); font-size: 16px; margin: 0 auto 24px; max-width: 50ch; }
.cta-foot { color: var(--ink-muted); font-size: 13px; margin-top: 20px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Related reads ---- */
.related { padding: 60px 0; background: var(--paper); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.related-grid a { display: block; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cream); }
.related-grid strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 19px; margin-bottom: 6px; }
.related-grid span { font-size: 13px; color: var(--ink-muted); }
.related-grid a:hover { border-color: var(--plum); }

/* ---- Responsive: collapse grids on mobile ---- */
@media (max-width: 760px) {
  .vs-verdict, .vs-strengths-inner, .tool-card { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .vs-row > div:first-child { background: var(--cream-warm); font-family: var(--font-mono); font-size: 11px; padding: 10px 16px; }
  .vs-row > div { padding: 12px 16px; }
  .vs-title, .alt-title, .vertical-title, .cat-title, .feat-title, .uc-title, .tool-title, .hub-title, .post-title, .blog-title, .glossary-title, .bj-title { font-size: 40px; }
  .section-title { font-size: 30px; }
  .alt-entry-head { flex-direction: column; gap: 4px; }
  .alt-rank { font-size: 32px; }
  .alt-row { grid-template-columns: 1fr; gap: 4px; }
  .uc-step { grid-template-columns: 50px 1fr; gap: 16px; }
  .uc-step-n { font-size: 32px; }
  .tool-output-value { font-size: 40px; }
}

/* ==========================================================================
   Mega-menu navigation
   ========================================================================== */

.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  background: color-mix(in oklab, var(--cream) 85%, transparent);
  border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.nav .brand { text-decoration: none; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav-item { position: static; }
.nav-btn,
.nav-links > a {
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.nav-btn:hover, .nav-btn[aria-expanded="true"], .nav-links > a:hover { background: var(--cream-warm); color: var(--plum); }

/* Caret — a CSS chevron so we can swap character on mobile without changing HTML */
.nav-btn .caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  color: var(--ink-muted);
  transition: color .18s ease;
}
.nav-btn .caret::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-btn[aria-expanded="true"] .caret,
.nav-item:hover .nav-btn .caret,
.nav-item:focus-within .nav-btn .caret { color: var(--plum); }
.nav-btn[aria-expanded="true"] .caret::before,
.nav-item:hover .nav-btn .caret::before,
.nav-item:focus-within .nav-btn .caret::before { transform: translateY(1px) rotate(-135deg); }

/* Simplified mobile-only menu list (hidden on desktop, shown when item opens on mobile) */
.mega-mobile { display: none; list-style: none; padding: 0; margin: 0; }

/* Mega dropdown panel — anchored to the sticky .nav so it centers across the bar */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 700px;
  max-width: calc(100vw - 40px);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -20px rgba(35,26,39,.22), 0 8px 24px -8px rgba(35,26,39,.14);
  padding: 26px;
  display: grid;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  z-index: 101;
}
.mega-3 { grid-template-columns: repeat(3, 1fr); min-width: 780px; }
.mega-4 { grid-template-columns: repeat(4, 1fr); min-width: 980px; }

/* Open on hover, focus, or explicit is-open state */
.nav-item:hover > .mega,
.nav-item:focus-within > .mega,
.nav-item.is-open > .mega {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.mega-heading-2 { margin-top: 18px; }
.mega-col a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  transition: background .12s ease;
}
.mega-col a:hover { background: var(--cream-warm); }
.mega-col a strong { display: block; font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 1.3; }
.mega-col a span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; line-height: 1.35; }
.mega-col a.mega-all { color: var(--plum); font-weight: 500; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--rule); border-radius: 0; }
.mega-col a.mega-all:hover { background: transparent; text-decoration: underline; }

.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.link-quiet { font-size: 14.5px; color: var(--ink-muted); padding: 8px 12px; text-decoration: none; }
.link-quiet:hover { color: var(--plum); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  margin-left: auto;
}
.nav-mobile-bars { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-bars span {
  display: block; width: 18px; height: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-mobile-toggle[aria-expanded="true"] .nav-mobile-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-toggle[aria-expanded="true"] .nav-mobile-bars span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle[aria-expanded="true"] .nav-mobile-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .mega-4 { grid-template-columns: repeat(2, 1fr); min-width: 600px; }
  .mega-3 { grid-template-columns: repeat(2, 1fr); min-width: 520px; }
}

@media (max-width: 900px) {
  /* Hamburger moves to the right; desktop CTA buttons tuck into the drawer */
  .nav-mobile-toggle { display: inline-flex; margin-left: auto; order: 3; }
  .nav-cta { display: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 20px 40px -12px rgba(35,26,39,.18);
  }
  .nav-links.is-open { display: flex; }

  /* The CTA block that lives at the bottom of the mobile drawer */
  .nav-drawer-cta { display: flex; flex-direction: column; gap: 10px; padding: 18px 6px 4px; border-top: 1px solid var(--rule); margin-top: 10px; }
  .nav-drawer-cta .link-quiet { padding: 10px 4px; text-align: center; font-size: 15px; }
  .nav-drawer-cta .btn { width: 100%; justify-content: center; }
}
/* Keep the in-drawer CTA invisible on desktop (it's always in the DOM for SEO and accessibility) */
@media (min-width: 901px) {
  .nav-drawer-cta { display: none; }
}

@media (max-width: 900px) {
  .nav-item { width: 100%; }
  .nav-btn { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 16px; }

  /* Mobile: hide the full desktop mega grid entirely */
  .mega { display: none !important; }
  .nav-item:hover > .mega, .nav-item:focus-within > .mega, .nav-item.is-open > .mega { display: none !important; }

  /* Mobile: show the simplified list when the nav item is open */
  .mega-mobile {
    display: none;
    list-style: none;
    padding: 6px 0 12px;
    margin: 0 0 6px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-item.is-open > .mega-mobile { display: block; }
  .mega-mobile li { padding: 0; }
  .mega-mobile a {
    display: block;
    padding: 12px 16px 12px 28px;
    font-size: 15.5px;
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--radius-sm);
  }
  .mega-mobile a:hover, .mega-mobile a:active { background: var(--cream-warm); color: var(--plum); }

  /* Mobile: caret looks like + / − for accordion clarity */
  .nav-btn .caret { width: 22px; height: 22px; }
  .nav-btn .caret::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 0;
    background: transparent;
    position: relative;
    transform: none;
  }
  .nav-btn .caret::after {
    content: "";
    position: absolute;
    width: 12px; height: 1.5px;
    background: currentColor;
  }
  .nav-btn .caret {
    position: relative;
  }
  .nav-btn .caret::before {
    position: absolute;
    width: 1.5px; height: 12px;
    background: currentColor;
    transition: transform .2s ease;
  }
  .nav-item.is-open .nav-btn .caret::before { transform: scaleY(0); }
}

/* ==========================================================================
   Extended /vs/ sections: pricing, TCO, integrations, reviews, scenarios, support
   ========================================================================== */

/* Pricing comparison */
.vs-pricing-lede, .vs-tco-lede, .vs-reviews-lede { font-size: 17px; line-height: 1.6; color: var(--ink-muted); max-width: 68ch; margin: 0 0 28px; }
.vs-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs-pricing-col { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.vs-pricing-col:last-child { background: linear-gradient(to bottom, var(--cream-warm), var(--paper)); border-color: var(--plum-soft); }
.vs-pricing-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.pricing-tier-list { display: flex; flex-direction: column; gap: 14px; }
.pricing-tier-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.pricing-tier-list li:last-child { border-bottom: 0; }
.pricing-tier-list li strong { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--plum-deep); }
.pricing-tier-list li .price { font-family: var(--font-mono); font-size: 15px; color: var(--plum); font-weight: 500; }
.pricing-tier-list li .capacity, .pricing-tier-list li .note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.pricing-footnote { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

/* Year-one TCO */
.vs-tco-foot { margin-top: 16px; font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono); }

/* Integrations */
.vs-integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs-integ-col { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.vs-integ-col h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin: 0 0 16px; }
.integ-list { display: flex; flex-direction: column; gap: 10px; }
.integ-list li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.5; }
.integ-list li:first-child { border-top: 0; padding-top: 0; }
.integ-list li strong { color: var(--plum); }
.integ-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--ink-muted); }

/* Review sentiment */
.vs-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-review-col { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; }
.vs-review-col.praise { border-left: 3px solid var(--sage); }
.vs-review-col.critique { border-left: 3px solid var(--terracotta); }
.vs-review-col .eyebrow.small { margin-bottom: 16px; }
.vs-review-col .plainlist li { font-size: 14.5px; line-height: 1.55; }
.vs-reviews-sources { margin-top: 20px; font-size: 13px; color: var(--ink-muted); font-family: var(--font-mono); line-height: 1.55; }

/* Scenarios */
.scenario-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.scenario-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; border-left: 3px solid var(--plum); }
.scenario-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; }
.scenario-card p:last-child { margin-bottom: 0; color: var(--ink-muted); font-size: 14px; }
.scenario-when strong, .scenario-pick strong { color: var(--plum); display: inline-block; margin-right: 4px; }

/* Migration detail bullets */
.migration-bullets { list-style: none; padding: 0; margin: 20px 0 28px; }
.migration-bullets li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14.5px; line-height: 1.55; }
.migration-bullets li:first-child { border-top: 0; }
.migration-bullets li strong { color: var(--plum); margin-right: 4px; }

/* Section spacing adjustments for vs-page */
.vs-pricing, .vs-tco, .vs-integrations, .vs-reviews, .vs-scenarios, .vs-support { padding: 60px 0; border-top: 1px solid var(--rule); }
.vs-pricing { background: var(--paper); }
.vs-tco { background: var(--cream); }
.vs-integrations { background: var(--paper); }
.vs-reviews { background: var(--cream); }
.vs-scenarios { background: var(--paper); }
.vs-support { background: var(--cream); }

@media (max-width: 860px) {
  .vs-pricing-grid, .vs-integ-grid, .vs-review-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Fine-tunes: mobile stacked tour alignment, condensed footer
   ========================================================================== */

/* Stacked tour row (the "A website you'll actually be proud of" row): left-align on mobile */
@media (max-width: 720px) {
  .tour-row-stacked { text-align: left; }
  .tour-row-stacked .tour-copy { margin: 0; }
  .tour-row-stacked .eyebrow { justify-content: flex-start; }
  .tour-row-stacked .tour-title,
  .tour-row-stacked .tour-body { margin-inline: 0; }
  .tour-row-stacked .tour-list { margin: 4px 0 0; }
}

/* Condensed footer: 4 columns max, fewer links per column, link to hubs */
.footer-grid { grid-template-columns: 1.2fr repeat(4, 1fr); }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Fix: vs-migrate section needs dark plum background (text is cream-on-cream without it)
   ========================================================================== */
.vs-migrate {
  background: var(--plum);
  color: var(--cream);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  border-top: 0;
}
.vs-migrate .eyebrow { color: color-mix(in oklab, var(--cream) 70%, transparent); }
.vs-migrate .eyebrow span { color: var(--terracotta); }
.vs-migrate .btn-primary { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.vs-migrate .btn-primary:hover { background: var(--cream-deep); border-color: var(--cream-deep); }
.vs-migrate .migration-bullets { list-style: none; padding: 0; margin: 20px 0 28px; }
.vs-migrate .migration-bullets li { color: color-mix(in oklab, var(--cream) 92%, transparent); border-color: color-mix(in oklab, var(--cream) 20%, transparent); }
.vs-migrate .migration-bullets li strong { color: var(--terracotta); }

/* ==========================================================================
   Fix: mobile vs-table keeps 2-col values so you can tell which company is which
   ========================================================================== */
@media (max-width: 760px) {
  .vs-row {
    grid-template-columns: 1fr 1fr;
  }
  .vs-row > div:first-child {
    grid-column: 1 / -1;
    background: var(--cream-warm);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-muted);
    padding: 10px 16px;
    border-right: 0;
  }
  .vs-row > div:nth-child(2),
  .vs-row > div:nth-child(3) {
    padding: 14px 16px;
    font-size: 14px;
    border-right: 0;
    border-bottom: 0;
  }
  .vs-row > div:nth-child(2) { border-right: 1px solid var(--rule); }
  .vs-row.vs-head {
    grid-template-columns: 1fr 1fr;
  }
  .vs-row.vs-head > div:first-child { display: none; }
  .vs-row.vs-head > div:nth-child(2),
  .vs-row.vs-head > div:nth-child(3) {
    background: var(--plum-deep);
    color: var(--cream);
    padding: 14px 16px;
  }
}

/* ==========================================================================
   Mobile menu: taller drawer, better spacing, cleaner +/- carets
   ========================================================================== */
@media (max-width: 900px) {
  /* Taller drawer with breathing room */
  .nav-links {
    padding: 16px 20px 32px;
    gap: 6px;
  }

  /* Nav buttons: more height, cleaner spacing */
  .nav-btn {
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 500;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }
  .nav-btn:last-of-type { border-bottom: 0; }

  /* Cleaner +/- using plain text pseudo, not stacked borders */
  .nav-btn .caret {
    width: 24px;
    height: 24px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 300;
    color: var(--plum);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
  }
  .nav-btn .caret::before {
    content: "+";
    position: static;
    width: auto;
    height: auto;
    border: 0;
    background: none;
    transform: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
  }
  .nav-btn .caret::after {
    display: none;
  }
  .nav-item.is-open .nav-btn .caret::before {
    content: "−";
    transform: none;
  }

  /* Mega-mobile: more padding between items */
  .mega-mobile {
    padding: 8px 0 16px;
    margin: 0 0 4px;
  }
  .mega-mobile a {
    padding: 14px 16px 14px 32px;
    font-size: 16px;
  }

  /* Drawer CTA: more space above */
  .nav-drawer-cta {
    padding: 24px 8px 8px;
    margin-top: 16px;
  }
  .nav-drawer-cta .btn {
    padding: 16px 24px;
    font-size: 17px;
  }
}
