/* =========================================================================
   AI EMPLOYEE FOR SMALL BUSINESS — Sales Funnel Stylesheet
   Design system: warm-neutral surface, single navy accent (matches the
   book's own interior design), serif display / sans body pairing.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --bg: #faf9f7;
  --bg-alt: #f1f2f4;
  --surface: #ffffff;
  --text: #1c2530;
  --text-muted: #55606b;
  --text-faint: #8a929b;
  --accent: #1f3a5f;
  --accent-dark: #142a45;
  --accent-soft: #eaf0f6;
  --accent-soft-border: #cddbe9;
  --border: #e1e4e8;
  --warn-bg: #fff4ec;
  --warn-border: #f0b37e;
  --warn-text: #8a4b0f;
  --focus-ring: #4d7ea8;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.32rem + 0.6vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.65rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.4rem, 2rem + 1.8vw, 3.4rem);
  --step-5: clamp(2.9rem, 2.3rem + 2.8vw, 4.4rem);

  /* Layout */
  --content-width: 1120px;
  --content-width-narrow: 760px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(28, 37, 48, 0.06), 0 1px 1px rgba(28, 37, 48, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 37, 48, 0.08), 0 2px 6px rgba(28, 37, 48, 0.05);
  --shadow-lg: 0 16px 40px rgba(20, 42, 69, 0.16), 0 4px 12px rgba(20, 42, 69, 0.08);
  --space-section: clamp(3.5rem, 3rem + 2.5vw, 6.5rem);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.25rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.container--narrow { max-width: var(--content-width-narrow); }

section { padding-block: var(--space-section); }
section.section--alt { background: var(--bg-alt); }
section.section--dark {
  background: var(--accent-dark);
  color: #eef2f6;
  position: relative;
  overflow: hidden;
}
section.section--dark::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}
section.section--dark .container { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
}
section.section--dark h1,
section.section--dark h2,
section.section--dark h3 { color: #fdfdfc; }

h1 { font-size: var(--step-5); font-weight: 600; }
h2 { font-size: var(--step-3); margin-bottom: 0.6em; }
h3 { font-size: var(--step-1); margin-bottom: 0.4em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1em;
}
.eyebrow::before {
  content: "";
  width: 1.4em;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 1.6rem + 1.5vw, 3.25rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 62ch;
}

p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 0.9em 1.7em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--accent-dark); box-shadow: var(--shadow-lg); }

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-soft-border);
}
.btn--secondary:hover { background: var(--accent-soft); }

.btn--on-dark {
  background: #fff;
  color: var(--accent-dark);
}
.btn--on-dark:hover { background: #eef2f6; }

.btn--block { width: 100%; }
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
.btn-row .price-note {
  font-size: var(--step--1);
  color: var(--text-faint);
}

/* ---------- Dev warning banner ---------- */
.dev-warning {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: var(--step--1);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  max-width: 46ch;
}
.dev-warning strong { display: block; margin-bottom: 0.2em; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand { font-size: 0.92rem; }
}
.header-cta { font-size: var(--step--1); padding: 0.65em 1.3em; min-height: 40px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding-block: clamp(3rem, 2.4rem + 3vw, 6rem) clamp(3rem, 2.2rem + 2vw, 5rem);
  overflow: hidden;
  position: relative;
}
.hero::before {
  /* restrained dot-grid texture, fades toward the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--accent-soft-border) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-copy > * {
  opacity: 0;
  animation: hero-rise 0.7s ease forwards;
}
.hero-copy .eyebrow { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.15s; }
.hero-copy .hero-sub { animation-delay: 0.28s; }
.hero-copy .hero-price { animation-delay: 0.4s; }
.hero-copy .btn-row { animation-delay: 0.5s; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.book-mockup-wrap {
  opacity: 0;
  animation: hero-rise 0.8s ease forwards;
  animation-delay: 0.25s;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .book-mockup-wrap { animation: none; opacity: 1; }
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 3vw, 4rem);
  align-items: center;
}
.hero h1 {
  white-space: pre-line;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.hero-price .amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  color: var(--accent);
}
.hero-price .format-tag {
  font-size: var(--step--1);
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* Book mockup */
.book-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  position: relative;
}
.book-mockup-wrap::before {
  /* ambient glow behind the cover — single accent color, restrained */
  content: "";
  position: absolute;
  width: min(420px, 85%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(31, 58, 95, 0.22) 0%, rgba(31, 58, 95, 0) 70%);
  filter: blur(10px);
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
.book-mockup {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 5 / 7.4;
  transform: rotateY(-18deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
  animation: book-float 5s ease-in-out infinite;
}
@keyframes book-float {
  0%, 100% { transform: rotateY(-18deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-18deg) rotateX(2deg) translateY(-10px); }
}
.book-mockup:hover {
  transform: rotateY(-10deg) rotateX(1deg) translateY(-4px);
  animation-play-state: paused;
}
.book-mockup img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px 6px 6px 3px;
  box-shadow: var(--shadow-lg);
}
.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 60%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9% 9%;
}
.book-cover::after {
  /* spine shading */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10%;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
}
.book-cover-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  font-family: var(--font-body);
  font-weight: 600;
}
.book-cover-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 1.4vw, 1.65rem);
  line-height: 1.15;
  font-weight: 600;
}
.book-cover-sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  line-height: 1.4;
  opacity: 0.85;
}
.book-mockup::before {
  /* page block edge under the cover */
  content: "";
  position: absolute;
  right: -6px;
  top: 3%;
  bottom: 3%;
  width: 10px;
  background: repeating-linear-gradient(#fff, #f0f0ee 1px, #fff 2px);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--shadow-sm);
  transform: translateZ(-6px);
  z-index: -1;
}
@media (prefers-reduced-motion: reduce) {
  .book-mockup, .book-mockup-wrap::before { animation: none; }
}

/* =========================================================================
   STACK DIAGRAM (signature element)
   ========================================================================= */
.stack-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-inline: auto;
}
.stack-node {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-block: 1.1rem;
}
.stack-node .stack-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--accent-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stack-diagram.is-active .stack-node .stack-dot {
  animation: dot-pop 0.45s ease backwards;
}
.stack-diagram.is-active .stack-node:nth-child(1) .stack-dot { animation-delay: 0.05s; }
.stack-diagram.is-active .stack-node:nth-child(2) .stack-dot { animation-delay: 0.2s; }
.stack-diagram.is-active .stack-node:nth-child(3) .stack-dot { animation-delay: 0.35s; }
.stack-diagram.is-active .stack-node:nth-child(4) .stack-dot { animation-delay: 0.5s; }
.stack-diagram.is-active .stack-node:nth-child(5) .stack-dot { animation-delay: 0.65s; }
.stack-diagram.is-active .stack-node:nth-child(6) .stack-dot { animation-delay: 0.8s; }
@keyframes dot-pop {
  0% { transform: scale(0.4); box-shadow: 0 0 0 0 var(--accent-soft); }
  60% { transform: scale(1.35); box-shadow: 0 0 0 6px var(--accent-soft); }
  100% { transform: scale(1); box-shadow: 0 0 0 4px var(--accent-soft); }
}
.stack-diagram.is-active .stack-node:not(:last-child)::before {
  animation: line-grow 0.5s ease backwards;
  transform-origin: top;
}
.stack-diagram--compact.is-active .stack-node:not(:last-child)::before {
  transform-origin: left;
}
.stack-diagram.is-active .stack-node:nth-child(1)::before { animation-delay: 0.15s; }
.stack-diagram.is-active .stack-node:nth-child(2)::before { animation-delay: 0.3s; }
.stack-diagram.is-active .stack-node:nth-child(3)::before { animation-delay: 0.45s; }
.stack-diagram.is-active .stack-node:nth-child(4)::before { animation-delay: 0.6s; }
.stack-diagram.is-active .stack-node:nth-child(5)::before { animation-delay: 0.75s; }
@keyframes line-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.stack-diagram--compact.is-active .stack-node:not(:last-child)::before {
  animation-name: line-grow-h;
}
@keyframes line-grow-h {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-diagram .stack-dot,
  .stack-diagram .stack-node::before { animation: none !important; }
}
.stack-node:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.8rem;
  bottom: -0.3rem;
  width: 2px;
  background: var(--accent-soft-border);
}
.stack-node .stack-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--text);
}
.stack-node .stack-desc {
  color: var(--text-muted);
  font-size: var(--step--1);
  margin-top: 0.15rem;
}
.stack-node.is-accent .stack-dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}

/* Compact horizontal variant for mechanism section */
.stack-diagram--compact {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: none;
  gap: 0.25rem;
}
.stack-diagram--compact .stack-node {
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 150px;
  padding-block: 0.5rem;
}
.stack-diagram--compact .stack-node:not(:last-child)::before {
  left: auto;
  top: 20px;
  right: -50%;
  bottom: auto;
  width: calc(100% - 14px);
  height: 2px;
}
.stack-diagram--compact .stack-desc { font-size: 0.78rem; }

/* =========================================================================
   PROBLEM / COMPARISON
   ========================================================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.compare-card h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.compare-card.is-before { border-top: 3px solid var(--text-faint); }
.compare-card.is-after { border-top: 3px solid var(--accent); }
.compare-card ol, .compare-card ul { display: flex; flex-direction: column; gap: 0.6rem; }
.compare-card li {
  font-size: var(--step--1);
  color: var(--text-muted);
  display: flex;
  gap: 0.6em;
}
.compare-card.is-after li { color: var(--text); }
.compare-card li .num {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  flex: none;
}

/* =========================================================================
   PARTS / CHAPTERS
   ========================================================================= */
.parts-list { display: flex; flex-direction: column; gap: 2.75rem; }
.part-block .part-label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.chapter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.chapter-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.chapter-card .chapter-num {
  font-family: var(--font-display);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--step--1);
}
.chapter-card h4 {
  font-family: var(--font-display);
  font-size: var(--step-0);
  margin-block: 0.3rem 0.4rem;
  line-height: 1.25;
}
.chapter-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================================
   WORKFLOW SHOWCASE
   ========================================================================= */
.workflow-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.workflow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.workflow-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.workflow-card-head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.workflow-card-head .wf-kind {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.workflow-card-head h4 {
  font-family: var(--font-display);
  font-size: var(--step-0);
  margin-top: 0.2rem;
}
.workflow-transform {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.workflow-transform > div { padding: 1.1rem 1.25rem; }
.workflow-transform .wf-before {
  background: var(--bg-alt);
  color: var(--text-muted);
}
.workflow-transform .wf-after {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.workflow-transform .wf-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.workflow-transform p { font-size: 0.83rem; line-height: 1.5; }

/* =========================================================================
   TOOLKIT
   ========================================================================= */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.toolkit-item {
  display: flex;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.toolkit-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--accent-soft-border); }
.toolkit-check {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.toolkit-item h4 { font-size: var(--step-0); margin-bottom: 0.25rem; font-family: var(--font-body); font-weight: 700; }
.toolkit-item p { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================================
   INDUSTRY CHIPS
   ========================================================================= */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.industry-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--text);
}
.industry-note {
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--text-faint);
  max-width: 60ch;
}

/* =========================================================================
   WHO IT'S FOR
   ========================================================================= */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.fit-card {
  padding: 1.75rem;
  border-radius: var(--radius-md);
}
.fit-card.is-yes {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
}
.fit-card.is-no {
  background: var(--surface);
  border: 1px solid var(--border);
}
.fit-card h3 { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.05em; }
.fit-card ul { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1rem; }
.fit-card li {
  display: flex;
  gap: 0.6em;
  font-size: var(--step--1);
}
.fit-card li::before { flex: none; font-weight: 700; }
.fit-card.is-yes li::before { content: "✓"; color: var(--accent); }
.fit-card.is-no li::before { content: "×"; color: var(--text-faint); }

/* =========================================================================
   OBJECTIONS / FAQ (native <details>)
   ========================================================================= */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.3rem 1.5rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: var(--step--1);
  max-width: 62ch;
}

/* =========================================================================
   OFFER
   ========================================================================= */
.offer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.offer-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-soft-border), transparent 40%, transparent 60%, var(--accent-soft-border));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.offer-box .offer-price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--accent);
  font-weight: 600;
  margin-block: 0.4rem 0.2rem;
}
.offer-includes {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.75rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.offer-includes li { display: flex; gap: 0.6em; font-size: var(--step--1); }
.offer-includes li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: none; }
.offer-fine-print {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* =========================================================================
   TESTIMONIAL PLACEHOLDER + GRID + AD
   ========================================================================= */
.testimonial-placeholder {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  color: var(--text-faint);
  font-size: var(--step--1);
  max-width: 640px;
  margin-inline: auto;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.testimonial-card-head strong {
  font-size: var(--step-0);
  color: var(--text);
}
.testimonial-stars { color: #d4a017; font-size: 0.9rem; letter-spacing: 0.08em; }
.testimonial-card .testimonial-business {
  font-size: var(--step--1);
  color: var(--text-faint);
  margin-bottom: 0.8rem;
}
.testimonial-card blockquote {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.6;
  border-left: 3px solid var(--accent-soft-border);
  padding-left: 0.9rem;
  margin: 0;
}
.testimonial-card .testimonial-date {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.9rem;
}

/* FIRST10 ad card */
.testimonial-ad {
  margin-top: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin-inline: auto;
}
.testimonial-ad-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
}
.testimonial-ad-body {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 1.5rem;
  padding: 1.75rem;
  align-items: center;
}
.testimonial-ad-copy h3 {
  font-size: var(--step-1);
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}
.testimonial-ad-copy p {
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.6;
}
.testimonial-ad-points {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--text);
}
.testimonial-ad-points li { display: flex; align-items: center; gap: 0.5em; flex-wrap: wrap; }
.coupon-code {
  background: #fff;
  border: 1.5px dashed var(--accent);
  padding: 0.2em 0.6em;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  font-family: var(--font-body);
}
.coupon-code--large { font-size: 1.25rem; padding: 0.4em 0.8em; }
.coupon-copy-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.75em;
  border-radius: 999px;
  border: 1px solid var(--accent-soft-border);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
}
.coupon-copy-btn:hover { background: var(--accent-soft); }
.coupon-copied { font-size: 0.78rem; color: #1a7a3a; font-weight: 600; }
.coupon-remaining { font-size: 0.78rem; color: var(--text-faint); }
.testimonial-ad-fine {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.ad-price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.ad-price-label { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin-bottom: 0.4rem; }
.ad-price-old { display: block; font-size: 0.95rem; color: var(--text-faint); text-decoration: line-through; }
.ad-price-new { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--accent); margin-top: 0.15rem; }
.ad-price-new small { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
.ad-price-save { display: inline-block; margin-top: 0.5rem; background: #1a7a3a; color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; padding: 0.3em 0.7em; border-radius: 999px; }

/* Testimonial form */
.testimonial-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-field span { font-size: var(--step--1); font-weight: 600; color: var(--text); }
.form-field small { font-weight: 400; color: var(--text-faint); }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--step--1);
  color: var(--text);
  background: var(--bg);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field textarea:focus { outline: 3px solid var(--focus-ring); outline-offset: 0; border-color: var(--focus-ring); background: #fff; }
.field-error { font-size: 0.78rem; color: #b42318; min-height: 1em; }
.field-hint { font-size: 0.78rem; color: var(--text-faint); text-align: right; }
.rating-input { display: flex; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); }
.rating-input label { display: inline-flex; align-items: center; gap: 0.4em; cursor: pointer; }
.form-consent { flex-direction: row; align-items: flex-start; gap: 0.7em; }
.form-consent input { margin-top: 0.3em; }
.success-card {
  background: #f0faf2;
  border: 1.5px solid #8fd0a0;
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.coupon-reveal {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem 1.25rem; margin-top: 1rem;
}
.coupon-inline { margin-top: 0.5rem; }

/* Policy page */
.policy-content { max-width: 720px; }
.policy-content h2 { font-size: var(--step-1); margin-top: 2rem; margin-bottom: 0.6rem; }
.policy-content p, .policy-content li { font-size: var(--step--1); color: var(--text-muted); line-height: 1.7; }
.policy-highlight {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.policy-highlight strong { color: var(--warn-text); display: block; margin-bottom: 0.35rem; }
.policy-list { list-style: disc; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }

@media (max-width: 700px) {
  .testimonial-ad-body { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  font-size: var(--step--1);
  color: var(--text-faint);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* =========================================================================
   STICKY MOBILE CTA
   ========================================================================= */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(20,42,69,0.08);
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.sticky-cta.is-hidden { transform: translateY(100%); }
.sticky-cta .sticky-price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.sticky-cta .btn { flex: 1; min-height: 46px; }

@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 4.5rem; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .book-mockup-wrap { order: -1; margin-bottom: 1rem; }
  .book-mockup { width: min(230px, 60vw); }
  .compare-grid,
  .fit-grid,
  .workflow-transform { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  h1 { font-size: var(--step-4); }
  .stack-diagram--compact .stack-node { width: 44%; }
  .stack-diagram--compact .stack-node:not(:last-child)::before { display: none; }
}
