/* ==========================================================================
   SOQRATIC — A Refined Editorial Landing Page
   Design Philosophy: Literary confidence meets modern minimalism
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type Scale */
  --font-hero: clamp(2.75rem, 7vw, 4.5rem);
  --font-h1: clamp(2.25rem, 5vw, 3.5rem);
  --font-h2: clamp(1.75rem, 4vw, 2.25rem);
  --font-h3: clamp(1.25rem, 2.5vw, 1.5rem);
  --font-body: clamp(1rem, 1.5vw, 1.2rem);
  --font-small: clamp(0.875rem, 1.25vw, 1rem);
  --font-xs: clamp(0.75rem, 1vw, 0.875rem);

  /* Line Heights */
  --line-tight: 1.1;
  --line-snug: 1.25;
  --line-normal: 1.6;
  --line-relaxed: 1.8;

  /* Colors - Warm Palette */
  --color-black: #0a0a0a;
  --color-white: #ffffff;

  --grey-900: #1a1a1a;
  --grey-800: #2d2d2d;
  --grey-700: #404040;
  --grey-600: #525252;
  --grey-500: #6b6b6b;
  --grey-400: #8a8a8a;
  --grey-300: #a3a3a3;
  --grey-200: #d4d4d4;
  --grey-100: #e8e8e8;
  --grey-50: #f5f5f5;
  --grey-25: #fafafa;

  /* Semantic Colors */
  --text-primary: var(--color-black);
  --text-secondary: var(--grey-600);
  --text-muted: var(--grey-500);
  --bg-primary: var(--color-white);
  --bg-alt: var(--grey-50);
  --bg-dark: var(--grey-900);
  --border-color: var(--grey-200);
  --border-light: var(--grey-100);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  --section-padding: clamp(3rem, 6vw, 5rem);
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-xs: 500px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
  --duration-slower: 800ms;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.1);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: var(--line-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

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

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section__content {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__headline {
  font-family: var(--font-serif);
  font-size: var(--font-h1);
  font-weight: 400;
  line-height: var(--line-tight);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section__headline--large {
  font-size: var(--font-hero);
}

.section__headline-emphasis {
  font-style: italic;
  font-weight: 300;
}

.section__headline-sub {
  display: block;
  font-size: calc(var(--font-h1) * 0.65);
  font-weight: 300;
  font-style: italic;
  margin-top: var(--space-xs);
  color: var(--text-secondary);
}

.section__subheadline {
  font-size: var(--font-body);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-normal) var(--ease-out-expo);
}

.nav.scrolled {
  border-color: var(--border-light);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__logo img {
  height: 66px;
  width: auto;
}

.nav__cta {
  font-size: var(--font-small);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: var(--font-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--grey-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--small {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-small);
}

.btn--large {
  padding: var(--space-md) var(--space-xl);
  font-size: calc(var(--font-body) * 1.1);
}

.btn--full {
  width: 100%;
}

.btn__arrow {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--space-2xl)) var(--gutter) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(200, 200, 200, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(180, 180, 180, 0.1), transparent);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 900px;
  margin-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: var(--font-hero);
  font-weight: 400;
  line-height: var(--line-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__line {
  display: block;
}

.hero__line--emphasis {
  font-style: italic;
  font-weight: 300;
}

.hero__period {
  color: var(--grey-400);
  font-weight: 600;
}

.hero__subheadline {
  font-size: var(--font-h3);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--line-snug);
}

.hero__subtext {
  display: block;
  font-size: var(--font-body);
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

.hero__body {
  font-size: var(--font-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--line-relaxed);
}

/* Hero Comparison Visual */
.hero__comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
}

.hero__compare-side {
  text-align: center;
  min-width: 160px;
}

.hero__compare-side--before {
  color: var(--text-muted);
  opacity: 0.6;
}

.hero__compare-side--after {
  color: var(--text-primary);
  font-weight: 600;
}

.hero__compare-label {
  font-family: var(--font-display);
  font-size: var(--font-h4);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.hero__compare-item {
  font-size: var(--font-body);
  line-height: var(--line-relaxed);
}

.hero__compare-arrow {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero__compare-arrow svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .hero__comparison {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero__compare-arrow {
    transform: rotate(90deg);
  }
}

.hero__cta {
  margin-bottom: var(--space-xl);
}

.hero__trust {
  font-size: var(--font-small);
  color: var(--text-muted);
}

.hero__trust-label {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero__visual {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.transform-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--grey-25);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}

.transform-visual__panel {
  flex: 1;
  text-align: center;
  padding: var(--space-lg);
}

.transform-visual__panel--book {
  opacity: 0.6;
}

.transform-visual__panel--soqratic {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.transform-visual__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  color: var(--grey-400);
}

.transform-visual__icon--soqratic {
  color: var(--color-black);
}

.transform-visual__label {
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.transform-visual__amount {
  font-family: var(--font-serif);
  font-size: var(--font-h2);
  font-weight: 500;
  color: var(--text-secondary);
}

.transform-visual__amount--highlight {
  color: var(--color-black);
  font-size: var(--font-h1);
}

.transform-visual__range {
  font-size: 0.6em;
  color: var(--text-secondary);
}

.transform-visual__detail {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.transform-visual__flow {
  flex-shrink: 0;
  width: 80px;
  color: var(--grey-300);
}

.transform-visual__arrow-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawArrow 1s var(--ease-out-expo) 0.8s forwards;
}

@keyframes drawArrow {
  to {
    stroke-dashoffset: 0;
  }
}

/* --------------------------------------------------------------------------
   Problem Section — Ogilvy Editorial Style
   -------------------------------------------------------------------------- */
.section--problem {
  background: var(--bg-primary);
  padding: var(--section-padding) 0;
  padding-bottom: clamp(2.5rem, 5vw, 4rem); /* Tighter bottom for flow */
}

/* Visual bridge to solution section - Centered Rule */
.section--problem::after {
  content: '';
  display: block;
  width: 4rem;
  height: 1px;
  background: var(--grey-200);
  margin: 3.5rem auto 0;
}

/* Reduce gap between headline and body */
.section--problem .section__content {
  margin-bottom: var(--space-lg);
}

.problem-editorial__container {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}


/* Editorial Body */
.problem-editorial__body {
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.7;
  color: var(--text-secondary);
}

.problem-editorial__body p {
  margin-bottom: 1.25em;
}

/* Elevated Lede */
.problem-editorial__lede {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.625rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grey-100);
}

/* Narrative Break */
.problem-editorial__break {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  color: var(--text-primary);
  margin: 2.25rem 0 1.5rem;
}

/* The Punch */
.problem-editorial__punch {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin: 2.25rem 0;
  letter-spacing: -0.01em;
}

/* Pull Quote - Editorial Punctuation, Not Container */
.problem-editorial__pullquote {
  margin: 2.5rem 0 0;
  padding: 0;
  border: none;
  position: relative;
}

/* Subtle em-dash visual anchor */
.problem-editorial__pullquote::before {
  content: '—';
  display: block;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--grey-300);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5em;
}

.problem-editorial__pullquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
}

.problem-editorial__pullquote p:last-child {
  margin-top: 0.75em;
}

/* Italic closer - slightly smaller, more intimate */
.problem-editorial__pullquote p:last-child em {
  font-size: 0.95em;
  color: var(--text-secondary);
}

.problem-editorial__pullquote strong {
  font-weight: 600;
}

/* Constraint List */
.problem-editorial__constraints {
  margin: 1.75rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--grey-200);
}

.problem-editorial__constraints p {
  margin-bottom: 0.375rem;
  color: var(--text-secondary);
  font-size: calc(var(--font-body) * 0.95);
}

.problem-editorial__constraints p:last-child {
  margin-bottom: 0;
}

/* The Turn */
.problem-editorial__turn {
  font-style: italic;
  color: var(--text-primary);
}

/* ==========================================================================
   Editorial Citation / Footnote
   ========================================================================== */

/* Citation Container */
.problem-editorial__citation {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-100);
  position: relative;
}

/* Subtle left accent - magazine footnote style */
.problem-editorial__citation::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 2px;
  height: 1rem;
  background: var(--grey-200);
}

.problem-editorial__citation p {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  padding-left: 1rem;
  max-width: 42rem;
  letter-spacing: 0.01em;
}

/* Superscript in citation */
.problem-editorial__citation sup {
  font-family: var(--font-serif);
  font-size: 0.7em;
  font-weight: 500;
  color: var(--text-secondary);
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
  margin-right: 0.15em;
}

/* Citation link - understated but findable */
.problem-editorial__citation a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--grey-200);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.problem-editorial__citation a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

/* ==========================================================================
   Inline Superscripts (in lede and pullquote)
   ========================================================================== */

.problem-editorial__lede sup,
.problem-editorial__pullquote sup {
  font-family: var(--font-serif);
  font-size: 0.55em;
  font-weight: 400;
  color: var(--text-muted);
  vertical-align: baseline;
  position: relative;
  top: -0.5em;
  margin-left: 0.1em;
  line-height: 0;
}

/* Slightly bolder in the pullquote for visibility */
.problem-editorial__pullquote sup {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Problem Section Mobile */
@media (max-width: 600px) {
  .problem-editorial__constraints {
    margin-left: 0;
  }

  .section--problem::after {
    width: 3rem;
    margin-top: 2.5rem;
  }
}

/* Problem Section Body Animation */
.problem-editorial__body > * {
  opacity: 0;
  transform: translateY(16px);
  animation: editorialReveal 0.7s ease-out forwards;
}

.problem-editorial__body > *:nth-child(1) { animation-delay: 0.15s; }
.problem-editorial__body > *:nth-child(2) { animation-delay: 0.2s; }
.problem-editorial__body > *:nth-child(3) { animation-delay: 0.25s; }
.problem-editorial__body > *:nth-child(4) { animation-delay: 0.3s; }
.problem-editorial__body > *:nth-child(5) { animation-delay: 0.35s; }
.problem-editorial__body > *:nth-child(6) { animation-delay: 0.4s; }
.problem-editorial__body > *:nth-child(7) { animation-delay: 0.45s; }
.problem-editorial__body > *:nth-child(8) { animation-delay: 0.5s; }
.problem-editorial__body > *:nth-child(9) { animation-delay: 0.55s; }
.problem-editorial__body > *:nth-child(10) { animation-delay: 0.6s; }
.problem-editorial__body > *:nth-child(11) { animation-delay: 0.65s; }
.problem-editorial__body > *:nth-child(12) { animation-delay: 0.7s; }

@keyframes editorialReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-editorial__body > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Solution Section
   -------------------------------------------------------------------------- */
.section--solution {
  background: var(--bg-primary);
  padding-top: clamp(2rem, 4vw, 3rem); /* Tighter top for flow from problem */
}

.solution__body {
  text-align: center;
  margin: 0 auto var(--space-3xl);
}

.solution__body p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.solution__emphasis {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  color: var(--text-primary) !important;
  margin: var(--space-lg) 0 !important;
}

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

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.feature {
  padding: var(--space-xl);
  background: var(--grey-25);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.feature:hover {
  background: var(--grey-50);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature__title {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-weight: 500;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.feature__list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: var(--font-small);
  color: var(--text-secondary);
}

.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--grey-400);
  border-radius: 50%;
}

/* Chat Box Mockup */
.chatbox {
  max-width: 520px;
  margin: 0 auto;
}

.chatbox__window {
  background: var(--color-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

/* Messages Container */
.chatbox__messages {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-lg);
}

/* Individual Message */
.chatbox__message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.chatbox__message--user {
  justify-content: flex-end;
}

.chatbox__message--ai {
  justify-content: flex-start;
}

/* Message Bubbles */
.chatbox__bubble {
  max-width: 85%;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--font-small);
  line-height: var(--line-normal);
}

.chatbox__bubble--user {
  background: var(--grey-100);
  color: var(--text-primary);
  border-bottom-right-radius: var(--radius-sm);
}

.chatbox__bubble--user p {
  margin: 0;
}

.chatbox__bubble--ai {
  background: var(--color-white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  border-bottom-left-radius: var(--radius-sm);
}

.chatbox__bubble--ai p {
  margin: 0;
}

.chatbox__bubble--ai em {
  font-style: italic;
  color: var(--text-primary);
}

/* Source Label */
.chatbox__source {
  display: block;
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Avatars */
.chatbox__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 600;
}

.chatbox__avatar--user {
  background: var(--grey-200);
  color: var(--text-secondary);
}

.chatbox__avatar--ai {
  background: var(--color-black);
  color: var(--color-white);
}

/* Feedback Buttons */
.chatbox__feedback {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.chatbox__feedback-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--grey-400);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.chatbox__feedback-btn:hover {
  background: var(--grey-50);
  color: var(--text-secondary);
}

.chatbox__feedback-btn svg {
  width: 16px;
  height: 16px;
}

/* Input Area */
.chatbox__input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-top: 1px solid var(--border-light);
  background: var(--grey-25);
}

.chatbox__placeholder {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-small);
  color: var(--text-muted);
}

.chatbox__send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-white);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out-expo);
}

.chatbox__send:hover {
  background: var(--grey-800);
}

.chatbox__send svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Transformation Section
   -------------------------------------------------------------------------- */
.section--transform {
  background: var(--bg-alt);
}

/* Multiplier Comparison */
.multiplier {
  margin-bottom: var(--space-2xl);
}

.multiplier__comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.multiplier__side {
  text-align: center;
  padding: var(--space-xl);
}

.multiplier__side--before {
  opacity: 0.6;
}

.multiplier__side--after {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.multiplier__label {
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.multiplier__amount {
  font-family: var(--font-serif);
  font-size: var(--font-h1);
  font-weight: 500;
}

.multiplier__low,
.multiplier__high {
  font-size: 0.8em;
}

.multiplier__range {
  font-size: 0.6em;
  color: var(--text-secondary);
}

.multiplier__detail {
  font-size: var(--font-small);
  color: var(--text-muted);
}

.multiplier__arrow {
  width: 48px;
  color: var(--grey-400);
}

.multiplier__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-full);
  margin: 0 auto;
  width: fit-content;
}

.multiplier__badge-number {
  font-family: var(--font-serif);
  font-size: var(--font-h2);
  font-weight: 600;
  line-height: 1;
}

.multiplier__badge-label {
  font-size: var(--font-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Insights Card Component
   ========================================================================== */

.insights-card {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
}

.insights-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.insights-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.insights-card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.insights-card__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--grey-400);
}

.insights-card__list li:last-child {
  margin-bottom: 0;
}

.insights-card__closing {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-primary);
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--grey-100);
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Section Divider with +
   ------------------------------------------------------------------------- */

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-xl) auto;
  max-width: 300px;
}

.section-divider__line {
  flex: 1;
  height: 1px;
  background: var(--grey-300);
}

.section-divider__plus {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--grey-400);
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Insights Card: Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 600px) {
  .insights-card {
    padding: var(--space-lg) var(--space-md);
  }

  .insights-card__list li {
    font-size: 0.9375rem;
  }

  .insights-card__closing {
    font-size: 0.9375rem;
  }
}

/* Scenarios */
.scenarios {
  max-width: 900px;
  margin: 0 auto;
}

.scenarios__title {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.scenarios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.scenario {
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.scenario:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scenario--featured {
  border-color: var(--color-black);
  box-shadow: var(--shadow-lg);
}

.scenario__label {
  font-size: var(--font-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.scenario__book-sales {
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed var(--border-light);
}

.scenario__calc {
  font-size: var(--font-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.scenario__receive {
  font-size: var(--font-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.scenario__result {
  font-family: var(--font-serif);
  font-size: var(--font-h2);
  font-weight: 600;
  color: var(--text-primary);
}

.scenario__result span {
  font-size: 0.6em;
  font-weight: 400;
  color: var(--text-secondary);
}

.scenario__multiplier {
  font-size: var(--font-small);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.scenarios__note {
  text-align: center;
  font-size: var(--font-small);
  color: var(--text-muted);
}

.scenarios__footer {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  text-align: center;
  color: var(--text-muted);
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   How It Works Section
   -------------------------------------------------------------------------- */
.section--how {
  background: var(--bg-primary);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: var(--space-lg);
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-weight: 600;
  border-radius: 50%;
}

.step__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--grey-600);
}

.step__title {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.step__desc {
  font-size: var(--font-small);
  color: var(--text-secondary);
  line-height: var(--line-relaxed);
}

.step__connector {
  flex-shrink: 0;
  width: 60px;
  padding-top: 60px;
  color: var(--grey-300);
}

.steps__footer {
  text-align: center;
  color: var(--text-secondary);
}

.steps__footer p {
  margin-bottom: var(--space-sm);
}

.steps__footer strong {
  color: var(--text-primary);
}

.steps__highlight {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-style: italic;
  color: var(--text-primary);
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Social Proof Section
   -------------------------------------------------------------------------- */
.section--proof {
  background: var(--bg-alt);
}

/* Featured Testimonial */
.testimonial--featured {
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.testimonial--featured .testimonial__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--font-h2);
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial--featured .testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial--featured .testimonial__quote {
  font-family: var(--font-serif);
  font-size: var(--font-h3);
  font-weight: 400;
  font-style: normal;
  line-height: var(--line-snug);
  margin-bottom: var(--space-lg);
}

.testimonial--featured .testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial--featured .testimonial__author strong {
  font-size: var(--font-body);
}

.testimonial--featured .testimonial__author span {
  font-size: var(--font-small);
  color: var(--text-muted);
}

/* Additional Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
}

.testimonial {
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey-100);
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: var(--space-md);
}

.testimonial__quote {
  font-size: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--line-relaxed);
}

.testimonial__author {
  font-size: var(--font-small);
}

.testimonial__author strong {
  display: block;
  color: var(--text-primary);
}

.testimonial__author span {
  color: var(--text-muted);
}

/* Traction Stats */
.traction {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.traction__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-small);
  color: var(--text-secondary);
}

.traction__icon {
  width: 20px;
  height: 20px;
  color: var(--color-black);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section--cta {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.cta__background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(200, 200, 200, 0.15), transparent);
  pointer-events: none;
}

.section--cta .container {
  position: relative;
  z-index: 1;
}

/* MailerLite Form Overrides */
.ml-form-embedContainer,
.ml-form-embedContainer * {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.ml-form-embedContainer {
  max-width: 400px !important;
  margin: 0 auto var(--space-lg) !important;
}

.ml-form-embedWrapper {
  background: var(--color-white) !important;
  border: none !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  overflow: hidden;
}

.ml-form-embedWrapper.embedForm {
  max-width: 100% !important;
  width: 100% !important;
}

.ml-form-embedBody,
.ml-form-embedBody.ml-form-embedBodyDefault,
.ml-form-embedWrapper .ml-form-embedBody,
#mlb2-35293204.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody {
  padding: 32px 32px 32px 32px !important;
}

/* Hide MailerLite's default header content */
.ml-form-embedContent {
  display: none !important;
}

/* Email Input */
.ml-form-embedContainer input[type="email"],
.ml-form-embedContainer .ml-form-fieldRow input {
  width: 100% !important;
  padding: 14px 16px !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  border: 1px solid #d4d4d4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0a0a0a !important;
  transition: border-color 0.15s ease !important;
  box-sizing: border-box !important;
}

.ml-form-embedContainer input[type="email"]:focus,
.ml-form-embedContainer .ml-form-fieldRow input:focus {
  outline: none !important;
  border-color: #0a0a0a !important;
}

.ml-form-embedContainer input::placeholder {
  color: #6b6b6b !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Submit Button */
.ml-form-embedContainer .ml-form-embedSubmit button,
.ml-form-embedContainer button[type="submit"],
.ml-form-embedContainer button.primary {
  width: 100% !important;
  padding: 14px 24px !important;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  background: #0a0a0a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.ml-form-embedContainer .ml-form-embedSubmit button:hover,
.ml-form-embedContainer button[type="submit"]:hover,
.ml-form-embedContainer button.primary:hover {
  background: #2d2d2d !important;
}

/* Form field spacing */
.ml-form-embedContainer .ml-form-fieldRow {
  margin-bottom: 12px !important;
}

.ml-form-embedContainer .ml-form-fieldRow.ml-last-item {
  margin-bottom: 16px !important;
}

.ml-form-embedContainer .ml-form-formContent {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ml-form-embedContainer .ml-form-embedSubmit {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

/* Remove bottom margin from last form element */
.ml-form-embedContainer .ml-form-embedBody > *:last-child {
  margin-bottom: 0 !important;
}

/* reCAPTCHA - make it full width */
.ml-form-embedContainer .ml-form-recaptcha {
  margin-bottom: 16px !important;
  display: flex !important;
  justify-content: center !important;
}

.ml-form-embedContainer .g-recaptcha {
  transform: scale(1.03) !important;
  transform-origin: center !important;
}

/* Success Message */
.ml-form-embedContainer .ml-form-successBody {
  padding: 32px !important;
  text-align: center !important;
}

.ml-form-embedContainer .ml-form-successContent h4 {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.75rem !important;
  font-weight: 500 !important;
  color: #0a0a0a !important;
  margin-bottom: 8px !important;
}

.ml-form-embedContainer .ml-form-successContent p {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px !important;
  color: #525252 !important;
  margin: 0 !important;
}

.cta__privacy {
  text-align: center;
  font-size: var(--font-small);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.cta__b2b {
  text-align: center;
  padding: var(--space-lg);
  background: var(--grey-50);
  border-radius: var(--radius-lg);
}

.cta__b2b p {
  font-size: var(--font-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.cta__b2b-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.cta__b2b-link:hover {
  color: var(--grey-600);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-dark);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.footer__brand {
  margin-bottom: var(--space-md);
}

.footer__logo {
  filter: invert(1);
  margin: 0 auto var(--space-sm);
}

.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--grey-400);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: var(--font-small);
  color: var(--grey-300);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__divider {
  color: var(--grey-600);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__email {
  font-size: var(--font-small);
  color: var(--grey-300);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.footer__email:hover {
  color: var(--color-white);
}

.footer__backed {
  font-size: var(--font-xs);
  color: var(--grey-500);
}

.footer__copyright {
  font-size: var(--font-xs);
  color: var(--grey-500);
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

/* Hero animations */
.animate-hero {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  animation: heroReveal var(--duration-slower) var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Section animations */
.animate-section {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.animate-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Child stagger animations */
.animate-child {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-normal) var(--ease-out-expo),
    transform var(--duration-normal) var(--ease-out-expo);
}

.animate-child.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in utility */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .animate-hero,
  .animate-section,
  .animate-child {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .graph__line,
  .transform-visual__arrow-path {
    stroke-dashoffset: 0;
  }

  .graph__area {
    opacity: 1;
  }
}

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

/* Tablet and below */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .features .feature:last-child {
    grid-column: span 2;
    max-width: 400px;
    margin: 0 auto;
  }

  .scenarios__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto var(--space-md);
  }

  .steps {
    flex-wrap: wrap;
  }

  .step__connector {
    display: none;
  }

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

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(2.5rem, 6vw, 4rem);
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-xl)) var(--gutter) var(--space-xl);
  }

  .problem__visual-content {
    grid-template-columns: 1fr;
  }

  .problem__visual-content .graph {
    padding-bottom: var(--space-sm);
  }

  .hero__content {
    margin-bottom: var(--space-xl);
  }

  .hero__visual {
    padding: 0;
  }

  .transform-visual {
    flex-direction: column;
    padding: var(--space-lg);
  }

  .transform-visual__flow {
    width: 100%;
    height: 40px;
    transform: rotate(90deg);
  }

  .transform-visual__panel {
    width: 100%;
    padding: var(--space-md);
  }

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

  .features .feature:last-child {
    grid-column: span 1;
    max-width: none;
  }

  .multiplier__comparison {
    flex-direction: column;
    gap: var(--space-md);
  }

  .multiplier__arrow {
    transform: rotate(90deg);
  }

  .multiplier__side {
    width: 100%;
    max-width: 280px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .testimonial--featured {
    padding: var(--space-lg);
  }

  .testimonial--featured .testimonial__quote {
    font-size: var(--font-h3);
  }

  .traction {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer__nav {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer__divider {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .section__headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .btn--large {
    padding: var(--space-md) var(--space-lg);
    width: 100%;
  }

  .nav__cta {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-xs);
  }
}
