/* ================================================================
   THE NYC SNIFF — Global Stylesheet
   A high-performance, conversion-focused design system
   ================================================================ */

/* ========== GOOGLE FONTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap');

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Brand Colors */
  --color-primary: #F7B500;
  --color-primary-dark: #D4A000;
  --color-primary-light: #FFF3C7;

  --color-secondary: #111111;
  --color-secondary-light: #333333;

  --color-white: #FFFFFF;
  --color-offwhite: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #EEEEEE;
  --color-gray-400: #BDBDBD;
  --color-gray-600: #757575;

  /* Typography */
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(247, 181, 0, 0.3);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Squeeze Accents */
  --accent-play: rgba(76, 175, 80, 0.12);
  --accent-dining: rgba(255, 152, 0, 0.12);
  --accent-commuter: rgba(33, 150, 243, 0.12);
}

/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

/* ========== LAYOUT UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

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

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: var(--space-4);
}

.gap-6 {
  gap: var(--space-6);
}

.text-center {
  text-align: center;
}

/* ========== HEADER ========== */
.site-header {
  padding: var(--space-5) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
}

.logo {
  height: 48px;
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-6);
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-secondary);
  margin: 6px 0;
  transition: var(--transition-fast);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
}

.hero--centered {
  text-align: center;
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
  max-width: 800px;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-secondary-light);
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.hero--centered .hero__title,
.hero--centered .hero__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 48px;
}

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

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

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-secondary-light);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-secondary);
}

.btn--outline:hover {
  background: var(--color-primary);
}

/* ========== PILLAR CARDS GRID ========== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  padding: var(--space-10) 0;
}

.pillar-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pillar-card__content {
  padding: var(--space-5);
}

.pillar-card__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.pillar-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.pillar-card__desc {
  font-size: var(--text-sm);
  color: var(--color-secondary-light);
  margin-bottom: var(--space-4);
}

.pillar-card__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}

.pillar-card__link:hover {
  color: var(--color-primary);
}

/* ========== SUBSTACK SIGNUP CONTAINER ========== */
.signup-section {
  padding: var(--space-10) 0;
  background: var(--color-gray-100);
}

.signup-container {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow:
    0 4px 20px rgba(247, 181, 0, 0.15),
    0 0 0 3px rgba(247, 181, 0, 0.25);
}

.signup-wrapper {
  display: flex;
  justify-content: center;
}

.signup-wrapper iframe {
  border: none !important;
  border-radius: var(--radius-md);
  max-width: 100%;
}

.signup-heading {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-4);
}

.microcopy {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  text-align: center;
  margin-top: var(--space-4);
}

/* ========== SQUEEZE PAGE STYLES ========== */
.squeeze {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.squeeze-header {
  padding: var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-200);
}

.squeeze-header .logo {
  margin: 0 auto;
}

.squeeze-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.squeeze-main h1 {
  font-size: var(--text-3xl);
  max-width: 700px;
  margin-bottom: var(--space-4);
}

.squeeze-main .subheadline {
  font-size: var(--text-lg);
  color: var(--color-secondary-light);
  max-width: 580px;
  margin-bottom: var(--space-6);
}

.benefits {
  list-style: none;
  text-align: left;
  max-width: 520px;
  margin: 0 auto var(--space-6);
}

.benefits li {
  font-size: var(--text-base);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.benefits li:last-child {
  border-bottom: none;
}

/* Squeeze page accent backgrounds */
.squeeze--play .squeeze-main {
  background: linear-gradient(180deg, var(--accent-play) 0%, var(--color-white) 50%);
}

.squeeze--dining .squeeze-main {
  background: linear-gradient(180deg, var(--accent-dining) 0%, var(--color-white) 50%);
}

.squeeze--commuter .squeeze-main {
  background: linear-gradient(180deg, var(--accent-commuter) 0%, var(--color-white) 50%);
}

/* ========== COMPLIANCE FOOTER ========== */
.compliance-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-8) var(--space-5);
  text-align: center;
}

.compliance-footer h3 {
  color: var(--color-white);
  font-size: var(--text-lg);
  margin-bottom: var(--space-5);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.footer-nav a {
  color: var(--color-primary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--color-primary-light);
}

.legal-links {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
}

.legal-links a {
  color: var(--color-gray-400);
  margin: 0 var(--space-2);
}

.legal-links a:hover {
  color: var(--color-white);
}

/* ========== BLOG ARTICLE STYLES ========== */
.article {
  padding: var(--space-10) 0;
}

.article__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.article__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.article__intro {
  font-size: var(--text-lg);
  color: var(--color-secondary-light);
  max-width: 700px;
  margin: 0 auto;
}

.article__content h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-gray-200);
}

.article__content p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.location-meta {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-3);
}

/* ========== ABOUT PAGE ========== */
.about-hero {
  padding: var(--space-12) 0;
  background: var(--color-primary-light);
  text-align: center;
}

.about-content {
  padding: var(--space-10) 0;
}

.about-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-4);
}

.about-content p {
  margin-bottom: var(--space-4);
  line-height: 1.75;
}

.mission-list {
  list-style: none;
  margin: var(--space-5) 0;
}

.mission-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-6);
  position: relative;
}

.mission-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ========== PRIVACY/LEGAL PAGE ========== */
.legal-page {
  padding: var(--space-10) 0;
}

.legal-page h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-5);
  padding-top: var(--space-8);
  border-top: 2px solid var(--color-gray-200);
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-3);
}

.legal-page p {
  margin-bottom: var(--space-4);
}

.legal-page ul {
  margin: var(--space-4) 0;
  padding-left: var(--space-6);
}

.legal-page li {
  margin-bottom: var(--space-2);
}

.effective-date {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

/* ========== SITE FOOTER ========== */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-8) 0;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
}

.footer-logo {
  height: 40px;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-links {
  display: flex;
  gap: var(--space-5);
}

.footer-links a {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--color-white);
}

.copyright {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  width: 100%;
  text-align: center;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-secondary-light);
}

/* ========== ARTICLE HERO IMAGE ========== */
.article-hero {
  width: 100%;
  margin-bottom: var(--space-8);
}

.article-hero-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

/* ========== BLOG CARDS GRID (Squeeze Footer) ========== */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
  max-width: 1000px;
  margin: 0 auto var(--space-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  border-color: var(--color-primary);
  background: rgba(247, 181, 0, 0.1);
  transform: translateY(-3px);
}

.blog-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.blog-card h4 {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.blog-card p {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  line-height: 1.4;
}

/* ========== MAP DIRECTION LINK ========== */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-secondary);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
  transition: all var(--transition-fast);
}

.map-link:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  :root {
    --text-4xl: 2.5rem;
    --text-3xl: 2rem;
    --text-2xl: 1.5rem;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .hero {
    padding: var(--space-8) 0;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .signup-container {
    padding: var(--space-4);
  }

  .squeeze-main h1 {
    font-size: var(--text-2xl);
  }

  .benefits li {
    font-size: var(--text-sm);
  }
}

/* ========== SPLIT TEST LAYOUTS (V2 & V3) ========== */

/* Hide/Show Utilities */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }
}

/* Split Layout Grid */
.split-layout {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
}

@media (min-width: 769px) {
  .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 split */
    gap: var(--space-10);
    align-items: center;
    padding: var(--space-10) var(--space-5);
    text-align: left;
    /* Left align on desktop */
  }

  /* Override squeeze-main centering for split layout */
  .squeeze-main.split-layout {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .split-col--content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .split-col--content h1,
  .split-col--content .subheadline {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    text-align: left;
  }

  .split-col--content .signup-container {
    margin-left: 0;
    /* Align left */
  }
}

/* Mockup Image */
.mockup-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  transition: transform var(--transition-normal);
}

.mockup-image:hover {
  transform: scale(1.02);
}

@media (min-width: 769px) {
  .mockup-image {
    margin-bottom: 0;
  }
}

/* Modal / Popup Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* Backdrop */
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 560px;
  animation: slideUp 0.3s;
  padding: var(--space-4);
}

.close-modal {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--color-gray-600);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color var(--transition-fast);
  /* CRO Fix: 44px tap target for iOS accessibility */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--color-secondary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

/* Button override for V2/V3 */
.btn--large {
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-8);
  width: 100%;
  max-width: 400px;
}

@media (min-width: 769px) {
  .btn--large {
    width: auto;
  }
}

/* ========== REFINED SPLIT TEST LAYOUTS (V2 & V3 - WOODWORKING STYLE) ========== */

/* Spacing Helpers */
.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

/* V2/V3 Main Container */
.squeeze-main-v2 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.header-section {
  margin-bottom: var(--space-8);
}

.header-section h1 {
  font-size: var(--text-3xl);
  /* CRO Fix: was missing font-size; fell back to 32px browser default */
  margin-bottom: var(--space-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.header-section .subheadline {
  font-size: var(--text-lg);
  color: var(--color-secondary-light);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Flex Wrapper for Mobile Stack */
.split-content-wrapper {
  display: flex;
  flex-direction: column;
  /* Stack by default on mobile */
}

/* Image Column */
.image-col {
  margin-bottom: var(--space-6);
  text-align: center;
}

.mockup-image {
  max-width: 100%;
  height: auto;
  /* Add subtle shadow to book */
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

/* CRO Fix: Cap book mockup on mobile — prevents CTA burial below fold */
@media (max-width: 768px) {
  .mockup-image {
    max-height: 280px;
    width: auto;
    object-fit: contain;
  }
}

/* CRO Fix: ConvertKit form UX — prevents iOS auto-zoom + fixes undersized button */
.signup-wrapper .formkit-input {
  font-size: 16px !important;
}

.signup-wrapper .formkit-submit {
  min-height: 52px !important;
}

/* Text Column */
.text-col {
  display: flex;
  flex-direction: column;
}

/* Substack iframe container override for text col */
.text-col .signup-container {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop Grid Override */
@media (min-width: 769px) {
  .split-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 50/50 Split */
    gap: var(--space-10);
    align-items: center;
    /* Center vertically */
  }

  .image-col {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    /* Center image in its col */
  }

  .mockup-image {
    max-width: 450px;
    /* Limit size on desktop */
  }

  .text-col {
    align-items: flex-start;
    /* Left align text content */
    text-align: left;
  }

  .text-col .benefits {
    margin-left: 0;
    /* Align bullets left */
  }

  .text-col .signup-container {
    margin-left: 0;
    /* Align form left */
  }
}

/* Modal Enhancements */
.signup-heading {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2);
  color: var(--color-secondary);
  line-height: 1.3;
}

/* ========== STICKY BAR — DESKTOP ONLY ========== */
.sticky-bar-desktop {
  display: none;
}

@media (min-width: 769px) {
  .sticky-bar-desktop {
    display: block;
  }
}

/* ========== THANK YOU PAGE ========== */
.thank-you-header {
  padding: var(--space-5);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-white);
}

.thank-you-hero {
  padding: var(--space-10) var(--space-5) var(--space-8);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 100%);
  text-align: center;
}

.thank-you-hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.thank-you-hero__subtext {
  font-size: var(--text-lg);
  color: var(--color-secondary-light);
  max-width: 560px;
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

@media (min-width: 769px) {
  .thank-you-hero__title {
    font-size: var(--text-4xl);
  }
}

.book-mockup-wrapper {
  text-align: center;
  margin-bottom: var(--space-6);
}

.book-mockup {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}

@media (min-width: 769px) {
  .book-mockup {
    max-width: 360px;
  }
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 380px;
  margin: 0 auto var(--space-8);
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-6);
}

.thank-you-body {
  padding: var(--space-8) var(--space-5);
}

.email-expectation-card {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  box-shadow: 0 4px 20px rgba(247, 181, 0, 0.12);
}

.email-expectation-card__title {
  font-size: var(--text-xl);
  text-align: center;
  margin-bottom: var(--space-3);
}

.email-expectation-card__body {
  font-size: var(--text-base);
  color: var(--color-secondary-light);
  margin-bottom: var(--space-5);
  line-height: 1.7;
}

.email-expectation-card__body strong {
  color: var(--color-secondary);
}

.inbox-steps-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
  color: var(--color-secondary);
}

.inbox-steps {
  list-style: none;
  counter-reset: step-counter;
  margin: 0 0 var(--space-4);
}

.inbox-steps li {
  counter-increment: step-counter;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-8);
  position: relative;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: var(--text-base);
  line-height: 1.5;
}

.inbox-steps li:last-child {
  border-bottom: none;
}

.inbox-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-note {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  margin-top: var(--space-4);
  text-align: center;
  line-height: 1.6;
}

/* ========== AUTHOR PROFILE PHOTO ========== */
.author-photo-wrapper {
  display: flex;
  justify-content: center;
  margin: var(--space-6) 0 var(--space-5);
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-primary);
  transition: transform var(--transition-normal);
}

.author-photo:hover {
  transform: scale(1.03);
}

/* ========== CRO AUDIT FIXES ========== */

/* Utility: mt-4 was missing (mt-6 and mt-8 existed) */
.mt-4 {
  margin-top: var(--space-4);
}

/* Fix: .btn--large on narrow mobile can micro-overflow */
@media (max-width: 768px) {
  .btn--large {
    max-width: 100%;
    width: 100%;
  }

  /* V2 column order: show text+CTA before image on mobile */
  .v2-layout .split-content-wrapper {
    display: flex;
    flex-direction: column;
  }

  .v2-layout .image-col {
    order: 2;
  }

  .v2-layout .text-col {
    order: 1;
  }
}

/* V2: Image acts as a popup trigger — hover hint */
.v2-layout .image-col.trigger-modal {
  transition: transform var(--transition-normal);
}

.v2-layout .image-col.trigger-modal:hover .mockup-image {
  transform: scale(1.03);
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.22));
}

/* ========== V3 MOBILE SPACING OVERRIDES ========== */
@media (max-width: 768px) {

  /* Add spacing between form card and image below */
  .v3-layout .signup-container.mobile-only {
    margin-bottom: var(--space-6);
  }

  /* Reduce gap between subheadline and form card */
  .v3-layout .header-section {
    margin-bottom: var(--space-4);
  }

  /* Keep reasonable gap between image and benefits */
  .v3-layout .image-col {
    margin-bottom: var(--space-5);
  }

  /* Reduce gap between last benefit and footer */
  .v3-layout .squeeze-main-v2 {
    padding-bottom: var(--space-4);
  }

  /* Reduce benefits list bottom margin */
  .v3-layout .benefits {
    margin-bottom: var(--space-3);
  }

  /* Suppress Kit branding element internal padding */
  .v3-layout .formkit-powered-by-convertkit-wrapper,
  .v3-layout [data-element="powered-by"] {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}