/* =============================================================
   AI Optimization Service — Whitelabel Funnel Stylesheet
   Cream / Charcoal / Terracotta · Editorial agency palette
   Single self-contained stylesheet. Tokenized for resellers.
   ============================================================= */

:root {
  /* === LOCKED PALETTE — edit only if rebranding === */
  --bg:           #F5EFE6;   /* cream — page background */
  --bg-alt:       #EBE3D2;   /* darker cream — alternating sections */
  --bg-accent:    #F8F4ED;   /* lighter cream — card surfaces */
  --text:         #1C1C1C;   /* charcoal — primary text */
  --text-muted:   #5A5752;   /* warm grey — secondary text */
  --text-faint:   #8C8A85;   /* light warm grey — captions */
  --border:       #D8CFBE;   /* warm tan — dividers */
  --border-soft:  #E6DDC9;   /* lighter tan — card borders */
  --accent:       #A84B2F;   /* warm terracotta — CTAs */
  --accent-hover: #8E3E26;   /* darker terracotta — hover */
  --accent-soft:  #E8D8CE;   /* terracotta tint — pill bg */
  --gold-trim:    #B89B5E;   /* muted antique gold — pinstripes */

  /* === Type === */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* === Spacing scale === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;
  --space-9: 128px;

  /* === Type scale === */
  --text-xs:   12px;
  --text-sm:   13.5px;
  --text-base: 16px;
  --text-md:   17.5px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  32px;
  --text-3xl:  44px;
  --text-4xl:  56px;
  --text-hero: 68px;

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  --container: 1180px;
  --container-narrow: 880px;
  --container-text: 720px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--accent-hover); }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3, h4, h5 { margin: 0; color: var(--text); font-weight: 400; }
h1.h1-funnel {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, var(--text-hero));
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 auto var(--space-4);
  max-width: 920px;
  text-align: center;
}
h2.h2-funnel {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, var(--text-3xl));
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
}
h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ital {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
}
em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

p { margin: 0 0 var(--space-3); color: var(--text); }
.lead {
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: var(--container-text);
  margin-left: auto;
  margin-right: auto;
}
.body-copy {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--text-muted);
}
.text-max { max-width: var(--container-text); margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* === Eyebrow / pinstripe === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 0;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold-trim);
  display: inline-block;
}
.eyebrow.solo::after { display: none; }

/* === Container & sections === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section-pad {
  padding: clamp(56px, 8vw, 40px) var(--space-4);
}
.section-pad--tight {
  padding: clamp(40px, 6vw, 20px) var(--space-4);
}
.section--alt { background: var(--bg-alt); }
.section--accent { background: var(--bg-accent); }

/* === Hairline dividers in gold trim === */
.pinstripe {
  border-top: 1px solid var(--gold-trim);
  border-bottom: 1px solid var(--gold-trim);
  padding: var(--space-5) var(--space-4);
}
.pinstripe-glow {
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  position: relative;
  transition: border-color 200ms ease, transform 200ms ease;
}
.pinstripe-glow::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid transparent;
  border-top-color: var(--gold-trim);
  border-bottom-color: var(--gold-trim);
  pointer-events: none;
  opacity: 0.35;
  border-radius: var(--radius-sm);
}
.pinstripe-glow:hover { border-color: var(--accent); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.1;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 75, 47, 0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover {
  background: var(--accent);
  color: #FFFFFF;
}
.btn-arrow { font-family: inherit; font-weight: 400; margin-left: 4px; }

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: var(--space-6) auto 0;
  max-width: 540px;
}
.cta-note {
  font-size: var(--text-sm);
  color: var(--text-faint);
  text-align: center;
}
.cta-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* === Navigation === */
/* === Hero === */
.aio-hero {
  padding: clamp(40px, 10vw, 20px) var(--space-4) clamp(40px, 6vw, 20px);
  text-align: center;
}
.hero-eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

/* === Video frame (Kartra poster fallback) === */
.aio-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 760px;
  margin: var(--space-5) auto;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.aio-video .becky-video-poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
.aio-video.has-player .becky-video-poster { display: none; }
.aio-video:not(.has-player)::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(168, 75, 47, 0.18);
  border: 1px solid rgba(168, 75, 47, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 32px rgba(168, 75, 47, 0.25);
}
.aio-video:not(.has-player)::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  margin: -10px 0 0 -6px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--accent);
  z-index: 2;
  pointer-events: none;
}
.aio-video > div[class*="kartra_video_container"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
}
.aio-video > div[class*="kartra_video_container"] iframe,
.aio-video > div[class*="kartra_video_container"] video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* === Optin form (placeholder, dual-mode hook) === */
.wl-optin {
  max-width: 540px;
  margin: var(--space-6) auto 0;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: left;
}
.wl-optin-title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
  text-align: center;
}
.wl-optin label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: var(--space-3) 0 6px;
}
.wl-optin input[type="text"],
.wl-optin input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.wl-optin input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 75, 47, 0.14);
}
.wl-optin .btn { width: 100%; margin-top: var(--space-4); }
.wl-optin-fineprint {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-3);
}

/* === Factor grid (3 cards) === */
.factor-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container);
  margin: var(--space-6) auto 0;
}
.factor {
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.factor-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-trim);
  margin-bottom: var(--space-3);
}
.factor h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.factor p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* === Check list === */
.aio-check {
  list-style: none;
  padding: 0;
  margin: var(--space-5) auto 0;
  max-width: 720px;
  display: grid;
  gap: 14px;
}
.aio-check li {
  padding: 16px 16px 16px 44px;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  position: relative;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.6;
}
.aio-check li::before {
  content: '✓';
  position: absolute;
  left: 16px; top: 16px;
  width: 20px; height: 20px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.aio-check li strong { color: var(--text); font-weight: 600; }

/* === Widget shell === */
.widget-card {
  max-width: 760px;
  margin: var(--space-5) auto 0;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.widget-head { text-align: center; margin-bottom: var(--space-4); }
.widget-head .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.widget-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.widget-sub {
  color: var(--text-muted);
  font-size: var(--text-md);
  max-width: 580px;
  margin: 0 auto;
}
.widget-embed { margin-top: var(--space-4); }

/* === Urgency card === */
.urgency-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.urgency-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.urgency-card p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-3);
}

/* === Pricing === */
.hero-price-card {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  background: var(--bg-accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: var(--space-4) auto;
  font-family: var(--font-body);
}
.hero-price-card .big {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--accent);
}
.hero-price-card .small {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.pricing-block {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.price-main {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  color: var(--accent);
  line-height: 1;
}
.price-suffix {
  font-size: var(--text-md);
  color: var(--text-muted);
  font-weight: 500;
}
.price-setup {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}
.price-bullets {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.price-bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  line-height: 1.55;
}
.price-bullets li:last-child { border-bottom: none; }
.price-bullets li::before {
  content: '';
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.price-bullets li strong { color: var(--text); font-weight: 600; }

/* === What's Included (6 cards) === */
.aio-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container);
  margin: var(--space-6) auto 0;
}
.aio-card {
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
}
.aio-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.aio-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.aio-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

/* === Steps === */
.aio-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  max-width: var(--container);
  margin: var(--space-6) auto 0;
}
.aio-step {
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.aio-step h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
}
.aio-step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* === Guarantee === */
.guarantee-badge {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.badge-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-3);
}
.guarantee-badge h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, var(--text-2xl));
  font-weight: 400;
  margin-bottom: var(--space-3);
}
.guarantee-badge p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto var(--space-3);
}

/* === FAQ === */
.aio-faq {
  max-width: var(--container-narrow);
  margin: var(--space-6) auto 0;
  display: grid;
  gap: 10px;
}
.aio-faq details {
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: border-color 200ms ease;
}
.aio-faq details[open] { border-color: var(--accent); }
.aio-faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 32px;
  outline: none;
}
.aio-faq summary::-webkit-details-marker { display: none; }
.aio-faq summary::after {
  content: '+';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms ease;
}
.aio-faq details[open] summary::after { content: '−'; }
.aio-faq details > div { margin-top: 12px; }
.aio-faq details p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

/* === Intake cards (page 4) === */
.intake-card {
  max-width: 760px;
  margin: var(--space-5) auto 0;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.intake-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.intake-lead {
  color: var(--text-muted);
  font-size: var(--text-md);
  margin-bottom: var(--space-4);
}
.intake-divider {
  text-align: center;
  margin: var(--space-5) 0;
  position: relative;
}
.intake-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.intake-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg-accent);
  padding: 0 12px;
  color: var(--text-faint);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
}
.intake-manual {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
.intake-manual code {
  font-family: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.9em;
}
.intake-manual ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

/* === Process (ordered list) === */
.aio-process {
  list-style: none;
  padding: 0;
  margin: var(--space-5) auto 0;
  max-width: 720px;
  counter-reset: process;
}
.aio-process li {
  position: relative;
  padding: 18px 18px 18px 64px;
  background: var(--bg-accent);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  counter-increment: process;
  color: var(--text-muted);
  line-height: 1.65;
}
.aio-process li::before {
  content: counter(process);
  position: absolute;
  left: 14px; top: 14px;
  width: 36px; height: 36px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-md);
}
.aio-process li strong { color: var(--text); font-weight: 600; }

/* === Footer === */
.wl-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-7) var(--space-4) var(--space-5);
  margin-top: var(--space-8);
}
.wl-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--space-6);
}
/* === Final CTA card === */
.final-cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-5);
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, var(--text-3xl));
  font-weight: 400;
  margin-bottom: var(--space-3);
}

/* === Responsive === */
@media (max-width: 920px) {
  .factor-row, .aio-card-grid, .aio-steps {
    grid-template-columns: 1fr;
  }
  .wl-footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  }

@media (max-width: 540px) {
  .section-pad { padding: 56px var(--space-3); }
  .btn { padding: 16px 28px; font-size: var(--text-xs); }
}

/* === Print === */
@media print {
  }


