/* =========================================================
   Vibe Coding Bible — design system
   - WCAG AA contrast on all body / interactive text
   - Respects prefers-reduced-motion
   - Mobile-first, fluid type, generous tap targets
   ========================================================= */

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

:root {
  /* palette */
  --bg: #0b1020;
  --bg-elev: #11172c;
  --bg-elev-2: #161d39;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f7fb;
  --text-dim: #c6cae0;
  --text-mute: #8a91b4;
  --accent: #22d3a5; /* emerald-mint */
  --accent-2: #7c5cff; /* indigo */
  --accent-soft: rgba(34, 211, 165, 0.14);
  --warn: #f59e0b;
  --danger: #ef4444;
  --ok: #22c55e;

  /* type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", monospace;

  /* layout */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 25px 60px rgba(0, 0, 0, 0.45);

  /* spacing */
  --container: 1140px;
  --container-narrow: 760px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(34, 211, 165, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-size: 17px;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  color: var(--text-dim);
}

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

ul,
ol {
  padding-left: 1.25rem;
}

ul li,
ol li {
  margin-bottom: 0.4rem;
  color: var(--text-dim);
}

::selection {
  background: var(--accent);
  color: #0b1020;
}

/* visually hidden but readable by screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 14px;
  background: var(--accent);
  color: #0b1020;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ------- layout primitives ------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.6rem, 5vw + 1rem, 4.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 2.5vw + 1rem, 2.8rem);
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  font-size: clamp(1.2rem, 0.6vw + 1rem, 1.4rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  color: var(--text-dim);
  max-width: 60ch;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* ------- nav ------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #0b1020;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-1);
}

.brand-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  color: var(--text-dim);
  font-size: 0.93rem;
  font-weight: 500;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ------- buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  text-align: center;
  line-height: 1.2;
  min-height: 48px;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5ee7c3);
  color: #000;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(34, 211, 165, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(34, 211, 165, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm {
  padding: 10px 14px;
  font-size: 0.88rem;
  min-height: 38px;
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1.05rem;
  min-height: 56px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.note {
  color: var(--text-mute);
  font-size: 0.85rem;
}

/* ------- HERO ------- */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(48px, 6vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 strong {
  color: var(--accent);
  font-weight: 600;
}

.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.18rem);
  color: var(--text-dim);
  max-width: 56ch;
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.9rem;
}

.hero-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--text-mute);
  border-radius: 50%;
}

.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.price-tag .price {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-tag .price-old {
  color: var(--text-mute);
  text-decoration: line-through;
  font-size: 0.95rem;
}

/* ------- Book mock cover ------- */
.cover-wrap {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1500px;
}

/* Real cover photograph — clean, no blur halo */
.cover {
  position: relative;
  width: min(480px, 90vw);
  aspect-ratio: 1 / 1;
  display: block;
}

.cover-img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 1;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cover-img:hover {
  transform: scale(1.02);
}

/* small "Original" stamp — positioned on the image */
.cover-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--accent);
  color: #062017;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ------- retailers slider ------- */
.retailers {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
}

.retailers-label {
  text-align: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.retailers-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.retailers-slide {
  display: flex;
  gap: 40px;
  animation: retailer-scroll 30s linear infinite;
  width: max-content;
}

.retailer-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0.7;
}

@keyframes retailer-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .retailers-slide {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* ------- Trust strip ------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.trust-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-cell .num {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 1.8rem;
  font-weight: 700;
}

.trust-cell .lbl {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ------- cards / grids ------- */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 6px;
}

.card .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-bottom: 14px;
}

.card p {
  font-size: 0.96rem;
}

/* ------- section variants ------- */

/* OUTCOMES: numbered cards with accent border-top */
.outcomes-grid .card {
  border-top: 3px solid var(--accent);
  background: linear-gradient(180deg, rgba(34, 211, 165, 0.06) 0%, var(--bg-elev) 40%);
}

/* WHO IT'S FOR: pill-style compact cards in horizontal flow */
.audience-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.audience-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 60px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audience-card:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
}

.audience-card .emoji {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.audience-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
}

.audience-card p {
  display: none;
}

@media (min-width: 768px) {
  .audience-card {
    padding: 18px 32px 18px 24px;
  }
  
  .audience-card p {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0;
    max-width: 260px;
  }
}

/* INSIDE THE BOOK: timeline/accordion style */
.toc-section {
  position: relative;
}

.toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-left: 2px solid var(--line-strong);
  margin-left: 20px;
  padding-left: 32px;
}

.toc-item {
  position: relative;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 32px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.toc-item h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.toc-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.toc-item li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--text-mute);
}

@media (min-width: 900px) {
  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 48px;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  
  .toc-item {
    padding: 28px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 20px;
  }
  
  .toc-item:last-child {
    border-bottom: 1px solid var(--line);
  }
  
  .toc-item::before {
    display: none;
  }
  
  .toc-item h3 {
    padding-left: 0;
  }
}

/* ------- bullet list ------- */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.55;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 211, 165, 0.4);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------- highlighted callouts ------- */
.callout {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 165, 0.1));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

.callout h2 {
  margin-bottom: 12px;
}

/* ------- author block ------- */
.author {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

.author-photo {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-2);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-quote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-top: 14px;
  color: var(--text);
  font-style: italic;
}

/* ------- testimonials ------- */
.testimonial {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.testimonial blockquote {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.65;
  font-style: italic;
  font-family: var(--font-display);
  margin: 0;
}

.testimonial figcaption {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-style: normal;
}

.testimonial-source {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-mute);
}

/* ------- video testimonial ------- */
.video-testimonial {
  margin-top: 48px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-testimonial h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 20px;
  text-align: center;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-testimonial-details {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-align: center;
}

.video-testimonial-quote {
  margin-top: 16px;
  padding: 16px 24px;
  background: rgba(34, 211, 165, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------- price card ------- */
.price-card {
  background:
    radial-gradient(600px 300px at 100% -10%, rgba(124, 92, 255, 0.2), transparent 55%),
    radial-gradient(500px 200px at -10% 110%, rgba(34, 211, 165, 0.18), transparent 55%),
    var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-2);
}

.price-card-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.price-card .big-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 4vw + 1rem, 3.6rem);
  color: var(--text);
  line-height: 1;
}

.price-card .old-price {
  color: var(--text-mute);
  text-decoration: line-through;
  font-size: 1.1rem;
  margin-left: 12px;
}

.price-card .save-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ------- timeline (updates page) ------- */
.timeline {
  border-left: 2px solid var(--line-strong);
  margin-top: 24px;
  padding-left: 28px;
  position: relative;
}

.timeline-entry {
  position: relative;
  padding-bottom: 36px;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--text-mute);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.timeline-entry h3 {
  margin-top: 4px;
}

.timeline-entry ul {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .timeline { padding-left: 22px; }
  .timeline-entry::before { left: -30px; width: 12px; height: 12px; }
}

/* ------- comparison table ------- */
.compare {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
}

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

.compare th,
.compare td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-dim);
}

.compare thead th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.compare thead th.col-vcb {
  color: var(--accent);
  background: var(--accent-soft);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
  width: 28%;
  background: rgba(255, 255, 255, 0.015);
}

.compare td.col-vcb {
  color: var(--text);
  background: rgba(34, 211, 165, 0.05);
}

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

@media (max-width: 900px) {
  .compare {
    border: none;
    background: transparent;
    border-radius: 0;
    overflow-x: visible;
  }

  .compare table,
  .compare thead,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }

  .compare thead {
    display: none;
  }

  .compare tbody tr {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 8px 0;
  }

  .compare tbody th {
    background: transparent;
    color: var(--text);
    padding: 10px 16px 6px;
    border-bottom: 0;
    font-size: 1rem;
    font-weight: 700;
  }

  .compare tbody td {
    border-bottom: 0;
    padding: 8px 16px;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .compare tbody td::before {
    content: attr(data-col);
    display: block;
    color: var(--text-mute);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  .compare tbody td.col-vcb {
    background: rgba(34, 211, 165, 0.08);
    color: var(--text);
    border-top: 1px solid var(--line);
    margin-top: 8px;
    border-radius: 0 0 var(--radius) var(--radius);
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .compare tbody td.col-vcb::before {
    content: "Vibe Coding Bible";
    color: var(--accent);
    font-weight: 600;
  }
}

/* ------- book grid (Also by Tom) ------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.book-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.book-card img {
  width: 70px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.book-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.book-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.book-card--cta {
  align-items: center;
  justify-content: center;
  text-align: center;
  border-style: dashed;
}

.book-card--cta h3 {
  color: var(--accent);
}

@media (max-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .book-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-card img {
    width: 90px;
    height: auto;
  }
}

/* ------- FAQ ------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin-top: 12px;
  color: var(--text-dim);
}

/* ------- footer ------- */
footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-mute);
  font-size: 0.85rem;
}

.footer-bot a {
  color: var(--text-dim);
}

.developed-by {
  color: var(--text-dim);
}

/* ------- subpage hero ------- */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 24px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-mute);
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-mute);
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
}

.breadcrumb-sep {
  color: var(--text-mute);
}

/* ------- prose for content pages ------- */
.prose h2 {
  margin-top: 36px;
  margin-bottom: 14px;
}

.prose h3 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p {
  margin-bottom: 14px;
  color: var(--text-dim);
}

.prose ul,
.prose ol {
  margin-bottom: 20px;
}

.prose li {
  color: var(--text-dim);
}

.prose code {
  font-family: var(--font-mono);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--text);
}

/* ------- forms ------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.field input,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  min-height: 48px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.form-success,
.form-error {
  display: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-top: 8px;
}

.form-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.form-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* `.reveal` is a no-op marker kept for future animation hooks.
   Content stays visible by default so crawlers, screenshots, and
   no-JS clients always see it. */
.reveal { opacity: 1; transform: none; }

/* ------- reading-progress bar ------- */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}

.reading-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 0.1s linear;
}

/* ------- floating sticky CTA ------- */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 18px;
  background: var(--accent);
  color: #062017;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(34, 211, 165, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.2s ease;
  max-width: calc(100vw - 40px);
}

.float-cta.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.float-cta:hover {
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(34, 211, 165, 0.5), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.float-cta-close {
  background: rgba(6, 32, 23, 0.22);
  border: none;
  color: #062017;
  font-size: 0.85rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.float-cta-close:hover {
  background: rgba(6, 32, 23, 0.38);
}

.float-cta-close:focus {
  outline: 2px solid #062017;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .float-cta {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

/* ------- announcement bar ------- */
.announce {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  color: #062017;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 18px;
}

.announce a {
  color: #062017;
  text-decoration: underline;
}

/* ------- responsive ------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cover-wrap {
    order: -1;
  }

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
  }

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

  .price-card-grid {
    grid-template-columns: 1fr;
  }

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

  .author-photo {
    width: 100px;
    height: 100px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16.5px;
  }

  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 16px;
    gap: 4px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 10px 0;
    display: block;
    font-size: 1rem;
  }

  .nav .btn-sm {
    width: 100%;
    margin-top: 8px;
  }

  .nav .btn-primary {
    color: #000;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .cover {
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------- print ------- */
@media print {
  .nav,
  .announce,
  .hero-cta,
  .float-cta,
  .reading-bar,
  footer .footer-grid {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
