/* ==========================================================================
   Phossil A/B Landing Page Stylesheet
   Shared by: discovery (variant A) and preserve (variant B)
   Colors remapped from mockup values to production Heirloom Gold tokens.
   ========================================================================== */

/* ==========================================================================
   1. :root variables
   ========================================================================== */

:root {
  /* Core palette — remapped to production Heirloom Gold */
  --gold: #D9A520;
  --gold-light: #EDB82F;
  --gold-deep: #9A7424;
  --gold-glow: rgba(217, 165, 32, 0.15);

  --everglade: #213535;
  --everglade-light: #2A4545;

  --terracotta: #C05746;

  --canvas: #F3F0E6;
  --canvas-warm: #EBE8DE;

  --parchment: #E5E2D9;

  --ink: #213535;
  --ink-light: #2A4545;
  --ink-muted: #4A6366; /* Improved contrast: was #68868A */
  --ink-faded: #68868A; /* Improved contrast: was #8FA5A8 */

  /* Shadows — derived from remapped base colors */
  --shadow-soft: 0 2px 20px rgba(33, 53, 53, 0.06);
  --shadow-medium: 0 4px 30px rgba(33, 53, 53, 0.1);
  --shadow-warm: 0 4px 30px rgba(217, 165, 32, 0.12);

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transitions */
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease-out;
}

/* ==========================================================================
   2. Reset + base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ==========================================================================
   3. Navigation
   ========================================================================== */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(243, 240, 230, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--gold);
  transition: all var(--transition-normal);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
  position: relative;
}

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

/* Products dropdown */
.nav-dropdown {
  position: relative;
}

/* Invisible bridge to fill gap between trigger and dropdown menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  pointer-events: none;
}

.nav-dropdown:hover::after {
  pointer-events: auto;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 200px;
  box-shadow: var(--shadow-medium);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: var(--canvas-warm);
  color: var(--ink);
}

.nav-dropdown-menu a .dd-label {
  font-weight: 600;
  color: var(--ink-light);
  display: block;
}

.nav-dropdown-menu a .dd-desc {
  font-size: 0.8rem;
  color: var(--ink-faded);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.nav-signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.nav-signin:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--everglade);
  color: #fff;
  padding: 0.6rem 1.35rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--everglade-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(33, 53, 53, 0.2);
}

/* ==========================================================================
   4. Sticky CTA bar
   ========================================================================== */

.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  height: 48px;
  background: var(--everglade);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.sticky-cta.visible {
  transform: translateY(64px);
}

.sticky-cta-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.sticky-cta-btn {
  background: #fff;
  color: var(--everglade);
  padding: 0.5rem 1.1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sticky-cta-btn:hover {
  background: var(--gold-light);
  color: var(--ink);
}

/* ==========================================================================
   5. Hero section
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Radial gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, var(--gold-glow), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(217, 165, 32, 0.05), transparent),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(33, 53, 53, 0.04), transparent);
  pointer-events: none;
  z-index: 1;
}

/* Background photo (faint texture). F2: /img/hero/slide-1.jpg never existed (404);
   repointed to a shipped on-theme hero asset. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/PHOSSIL_guide_hero_shoebox_overflow.png') center/cover no-repeat;
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp 0.8s ease-out;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.75rem;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-deep);
}

.hero-subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.8s ease-out 0.3s both;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease-out 0.4s both;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-faded);
  animation: fadeUp 0.8s ease-out 0.5s both;
}

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn-primary {
  background: var(--everglade);
  color: #fff;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--everglade-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(33, 53, 53, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-light);
  padding: 1rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  transition: all var(--transition-normal);
  border: 1.5px solid var(--parchment);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
  transform: translateY(-1px);
}

/* ==========================================================================
   7. Section utilities
   ========================================================================== */

section {
  padding: 4rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.section-heading em {
  font-style: italic;
  color: var(--gold-deep);
}

.section-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 640px;
}

/* ==========================================================================
   8. Discovery-only: The Weight
   ========================================================================== */

.the-weight {
  background: var(--canvas-warm);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
}

.weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.weight-stat-card {
  background: var(--canvas);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(217, 165, 32, 0.08);
}

.weight-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.weight-stat-label {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.weight-quotes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.weight-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.5;
  padding-left: 1.5rem;
  border-left: 3px solid var(--gold-light);
}

.weight-quote-source {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-faded);
  margin-top: 0.35rem;
  display: block;
}

/* ==========================================================================
   9. Discovery-only: The Promise
   ========================================================================== */

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

.promise-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-light);
  max-width: 750px;
  margin: 2rem auto 0;
}

.promise-statement strong {
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   10. Discovery-only: The Journey
   ========================================================================== */

.journey-steps {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.journey-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.journey-step:nth-child(even) {
  direction: rtl;
}

.journey-step:nth-child(even) > * {
  direction: ltr;
}

.step-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.step-highlight {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--gold-glow);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  color: var(--ink-light);
  font-weight: 500;
}

.step-visual {
  background: var(--canvas-warm);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px solid var(--parchment);
}

.step-visual-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-faded);
  font-style: italic;
}

.scan-demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
}

.scan-photo {
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--parchment);
  border: 1px solid rgba(217, 165, 32, 0.15);
  transition: all var(--transition-normal);
}

.scan-photo:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-warm);
}

.tags-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.ai-tag {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tag-person {
  background: rgba(33, 53, 53, 0.12);
  color: var(--everglade);
}

.tag-date {
  background: rgba(217, 165, 32, 0.15);
  color: var(--gold-deep);
}

.tag-place {
  background: rgba(192, 87, 70, 0.12);
  color: var(--terracotta);
}

.tag-event {
  background: rgba(33, 53, 53, 0.08);
  color: var(--ink-light);
}

/* ==========================================================================
   11. Discovery-only: Bottom Line
   ========================================================================== */

.bottom-line {
  text-align: center;
  background: var(--canvas-warm);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  padding: 5rem 2rem;
}

.bottom-line-stat {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--everglade);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.bottom-line-context {
  font-size: 1.25rem;
  color: var(--ink-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ==========================================================================
   12. Discovery-only: Scroll Cue
   ========================================================================== */

.scroll-cue {
  margin-top: 3rem;
  animation: fadeUp 0.8s ease-out 0.7s both;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-cue-text {
  font-size: 0.8rem;
  color: var(--ink-faded);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: bounceDown 2s ease-in-out infinite;
}

/* ==========================================================================
   13. Preserve-only: The Truth
   ========================================================================== */

.the-truth {
  background: var(--ink);
  color: var(--canvas);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.the-truth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(192, 87, 70, 0.06), transparent);
  pointer-events: none;
}

.the-truth .section-inner {
  position: relative;
}

.the-truth .section-label {
  color: var(--gold-light);
}

.the-truth .section-heading {
  color: var(--canvas);
}

.the-truth .section-heading em {
  color: var(--gold-light);
}

.the-truth .section-subtitle {
  color: rgba(243, 240, 230, 0.6);
}

.procrastination-timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 3rem;
}

.procrastination-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(217, 165, 32, 0.3),
    rgba(192, 87, 70, 0.5),
    rgba(192, 87, 70, 0.8)
  );
}

.timeline-beat {
  position: relative;
  margin-bottom: 2rem; /* Reduced from 2.5rem (20% reduction) */
  transition: transform 0.3s ease;
}

.timeline-beat::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ink);
}

.timeline-beat:last-child::before {
  border-color: var(--terracotta);
  background: var(--terracotta);
  box-shadow: 0 0 12px rgba(192, 87, 70, 0.4);
}

.beat-year,
.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.beat-text,
.timeline-text {
  font-size: 1.1rem;
  color: rgba(243, 240, 230, 0.75); /* Improved contrast: was 0.6 */
  line-height: 1.5;
}

/* Timeline step scroll animations */
.timeline-beat.in-view {
  transform: scale(1.05);
}

.timeline-beat:last-child.in-view {
  transform: scale(1.08);
}

.timeline-beat:last-child .beat-text,
.timeline-beat:last-child .timeline-text {
  color: var(--canvas);
  font-weight: 500;
  font-size: 1.2rem;
}

.timeline-beat:last-child .beat-year,
.timeline-beat:last-child .timeline-year {
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Year 10+ emphasis when in view */
.timeline-beat:last-child.in-view .beat-year,
.timeline-beat:last-child.in-view .timeline-year,
.timeline-beat:last-child.in-view .beat-text,
.timeline-beat:last-child.in-view .timeline-text {
  color: var(--terracotta);
}

/* ==========================================================================
   14. Preserve-only: The Permission
   ========================================================================== */

.the-permission {
  padding: 6rem 2rem;
  text-align: center;
}

.permission-inner {
  max-width: 700px;
  margin: 0 auto;
}

.permission-body {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.permission-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.perm-stat {
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.perm-number,
.perm-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.perm-caption,
.perm-stat-label {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================================
   15. Preserve-only: The Fix
   ========================================================================== */

.the-fix {
  background: var(--canvas-warm);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  padding: 4rem 2rem; /* Reduced from 6rem for tighter layout */
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  margin-top: 3rem;
}

.ba-card,
.ba-panel {
  padding: 2.5rem;
  border-radius: 16px;
}

.ba-before {
  background: rgba(192, 87, 70, 0.04);
  border: 1px solid rgba(192, 87, 70, 0.12);
}

.ba-after {
  background: rgba(33, 53, 53, 0.04);
  border: 1px solid rgba(33, 53, 53, 0.12);
}

.ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.ba-arrow {
  font-size: 2rem;
  color: var(--gold);
}

.ba-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.ba-before .ba-label {
  color: var(--terracotta);
}

.ba-after .ba-label {
  color: var(--everglade);
}

.ba-list {
  list-style: none;
}

.ba-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.ba-before .ba-list li::before {
  content: '\2717';
  color: var(--terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

.ba-after .ba-list li::before {
  content: '\2713';
  color: var(--everglade);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   16. Preserve-only: How Grid
   ========================================================================== */

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.how-card {
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
}

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

.how-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 165, 32, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.how-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.how-card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.how-time {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--parchment);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--everglade);
}

/* ==========================================================================
   17. Preserve-only: Proof Strip
   ========================================================================== */

.proof-strip {
  background: var(--ink);
  padding: 4rem 2rem;
  text-align: center;
}

.proof-strip .section-inner {
  position: relative;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.proof-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.proof-caption {
  font-size: 0.9rem;
  color: rgba(243, 240, 230, 0.55);
  line-height: 1.4;
}

.proof-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: rgba(243, 240, 230, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.proof-source {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(243, 240, 230, 0.65);
  margin-top: 1rem;
}

/* ==========================================================================
   18. Preserve-only: The Math
   ========================================================================== */

.the-math {
  text-align: center;
  background: var(--canvas-warm);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
  padding: 5rem 2rem;
}

.math-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.math-card {
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.math-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.math-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.math-versus {
  font-size: 0.85rem;
  color: var(--ink-faded);
}

.math-stat {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--everglade);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.math-vs {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--ink-faded);
  margin-bottom: 0.5rem;
}

.math-alt {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 1rem;
  text-decoration: line-through;
  opacity: 0.5;
}

.math-context {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 420px;
  margin: 0 auto;
}

/* ==========================================================================
   19. Experience grid
   ========================================================================== */

.the-experience {
  background: var(--ink);
  color: var(--canvas);
}

.the-experience .section-label {
  color: var(--gold-light);
}

.the-experience .section-heading {
  color: var(--canvas);
}

.the-experience .section-heading em {
  color: var(--gold-light);
}

.the-experience .section-subtitle {
  color: rgba(243, 240, 230, 0.6);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.experience-card {
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.experience-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.experience-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--everglade);
}

.experience-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--everglade);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.experience-card:hover .experience-icon svg {
  transform: scale(1.1);
}

.experience-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--everglade);
}

.experience-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted); /* Fixed: was invisible rgba(243, 240, 230, 0.55) */
}

/* ==========================================================================
   20. Comparison table
   ========================================================================== */

.comp-inner {
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 3rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparison-table th,
.comparison-table td {
  padding: 1.1rem 1.5rem;
  text-align: center; /* Center-aligned for better readability */
  font-size: 0.95rem;
  border-bottom: 1px solid var(--parchment);
}

.comparison-table tbody td:first-child {
  text-align: left; /* Keep first column (feature names) left-aligned */
}

.comparison-table thead th {
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-display);
  font-weight: 600;
}

.comparison-table thead th:first-child {
  background: var(--ink-light);
}

.comparison-table tbody td {
  background: #fff;
  color: var(--ink-muted);
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink-light);
}

.phossil-col {
  background: rgba(33, 53, 53, 0.04) !important;
  color: var(--everglade) !important;
  font-weight: 600;
}

thead .phossil-col {
  background: var(--everglade) !important;
  color: #fff !important;
}

.check {
  color: var(--everglade);
  font-weight: 700;
  font-size: 1.3rem;
}

.dash {
  color: var(--ink-faded);
  font-size: 1.1rem;
}

/* ==========================================================================
   21. Pricing cards
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--parchment);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-warm);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-photos {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--everglade);
  margin-bottom: 1.25rem;
  padding: 0.5rem 1rem;
  background: var(--gold-glow);
  border-radius: 8px;
  display: inline-block;
}

.pricing-price-original {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-faded);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-type {
  font-size: 0.85rem;
  color: var(--ink-faded);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--everglade);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.pricing-cta-primary {
  background: var(--everglade);
  color: #fff;
}

.pricing-cta-primary:hover {
  background: var(--everglade-light);
}

.pricing-cta-secondary {
  background: transparent;
  color: var(--ink-light);
  border: 1.5px solid var(--parchment);
}

.pricing-cta-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ==========================================================================
   22. Final CTA
   ========================================================================== */

.final-cta {
  text-align: center;
  background: var(--ink);
  color: var(--canvas);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(217, 165, 32, 0.08), transparent);
  pointer-events: none;
}

.final-cta .section-inner {
  position: relative;
}

.final-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.final-heading em {
  color: var(--gold);
  font-style: italic;
}

.final-sub {
  font-size: 1.1rem;
  color: rgba(243, 240, 230, 0.85); /* Fixed: was 0.55 (invisible) */
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.final-cta .btn-primary {
  font-size: 1.15rem;
  padding: 1.1rem 2.75rem;
}

.final-reassurance {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.final-reassurance span {
  font-size: 0.85rem;
  color: rgba(243, 240, 230, 0.65);
}

/* ==========================================================================
   23. Footer
   ========================================================================== */

footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-faded);
  border-top: 1px solid var(--parchment);
}

footer a {
  color: var(--gold-deep);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   24. Animations
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {
  0%, 100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: rotate(45deg) translateY(6px);
    opacity: 1;
  }
}

/* ==========================================================================
   25. Additional Components & Enhancements
   ========================================================================== */

/* Procrastination section with photo collage */
.truth-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.truth-left {
  padding-right: 2rem;
}

.truth-photo-collage {
  position: relative;
  width: 100%;
  height: 500px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 0.5rem;
  opacity: 0.25;
  filter: grayscale(40%) sepia(10%);
}

.truth-photo-collage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, var(--ink) 100%);
  pointer-events: none;
  z-index: 1;
}

.collage-photo {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  transition: opacity 0.3s ease;
}

.collage-photo:nth-child(1) { background-image: url('/img/collage/vintage-1.jpg'); }
.collage-photo:nth-child(2) { background-image: url('/img/collage/vintage-2.jpg'); }
.collage-photo:nth-child(3) { background-image: url('/img/collage/vintage-3.jpg'); }
.collage-photo:nth-child(4) { background-image: url('/img/collage/vintage-4.jpg'); }
.collage-photo:nth-child(5) { background-image: url('/img/collage/vintage-5.jpg'); grid-column: span 2; }
.collage-photo:nth-child(6) { background-image: url('/img/collage/vintage-6.jpg'); }
.collage-photo:nth-child(7) { background-image: url('/img/collage/vintage-7.jpg'); }
.collage-photo:nth-child(8) { background-image: url('/img/collage/vintage-8.jpg'); }
.collage-photo:nth-child(9) { background-image: url('/img/collage/vintage-9.jpg'); }

/* Living Portrait Video Slideshow Background */
.living-portrait-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  overflow: hidden;
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) sepia(10%);
}

/* Truth section scroll-triggered reveal */
.truth-reveal {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 0;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.truth-line {
  font-family: var(--font-display);
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease, font-size 0.6s ease;
}

.truth-line-1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: rgba(243, 240, 230, 0.9);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.truth-line-1.shrunk {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  opacity: 0.5;
}

.truth-line-2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: rgba(243, 240, 230, 0.9);
}

.truth-line-2.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.truth-line-2.shrunk {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  opacity: 0.5;
}

.truth-line-3 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--terracotta);
  font-weight: 700;
}

.truth-line-3.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.truth-line-3 em {
  font-style: italic;
}

/* Procrastination Timeline */
.procrastination-timeline {
  position: relative;
  padding-left: 3rem;
  margin: 3rem auto 0;
  max-width: 560px;
}

.procrastination-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(217, 165, 32, 0.3),
    rgba(192, 87, 70, 0.5),
    rgba(192, 87, 70, 0.8)
  );
}

.timeline-beat {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-beat.in-view {
  opacity: 1;
  transform: translateX(0) scale(1.05);
}

.timeline-beat::before {
  content: '';
  position: absolute;
  left: -2.85rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--ink);
}

.timeline-beat:last-child::before {
  border-color: var(--terracotta);
  background: var(--terracotta);
  box-shadow: 0 0 12px rgba(192, 87, 70, 0.4);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.timeline-text {
  font-size: 1.1rem;
  color: rgba(243, 240, 230, 0.75);
  line-height: 1.5;
}

.timeline-beat:last-child .timeline-text {
  color: var(--canvas);
  font-weight: 500;
  font-size: 1.2rem;
}

.timeline-beat:last-child .timeline-year {
  font-weight: 600;
  transition: color 0.3s ease;
}

.timeline-beat:last-child.in-view .timeline-year,
.timeline-beat:last-child.in-view .timeline-text {
  color: var(--terracotta);
}

/* Living Portrait demo component */
.lp-demo {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: var(--parchment);
}

.lp-demo-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-3deg) scale(1.05);
  transition: opacity 1s ease;
}

.lp-demo-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.lp-demo.playing .lp-demo-photo {
  opacity: 0;
}

.lp-demo.playing .lp-demo-video {
  opacity: 1;
}

.lp-demo-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.lp-demo-action.show {
  opacity: 1;
}

.lp-demo-action span {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: rgba(33, 53, 53, 0.8);
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  letter-spacing: 0.05em;
}

/* SuperScan video in step visual */
.step-visual video {
  width: 100%;
  border-radius: 12px;
}

/* The Math section button */
.the-math {
  position: relative;
}

.the-math .btn-primary {
  display: inline-block;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ==========================================================================
   26. Responsive -- tablet and below (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .nav-links {
    display: none;
  }

  /* Hero section fixes for mobile */
  .hero {
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height on supported browsers */
    padding: 6rem 1.5rem 3rem;
  }

  /* Slightly reduce opacity on mobile for better text readability */
  .living-portrait-slideshow {
    opacity: 0.12; /* Reduced from 0.15 for mobile */
  }

  .slideshow-video {
    object-fit: cover;
    object-position: center;
    min-height: 100%;
    min-width: 100%;
  }

  .hero-content {
    max-width: 100%;
  }

  /* Procrastination section - stack on mobile */
  .truth-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .truth-left {
    padding-right: 0;
  }

  .truth-photo-collage {
    height: 300px;
    opacity: 0.15;
  }

  .hero::after {
    opacity: 0.08;
  }

  .weight-grid,
  .journey-step,
  .experience-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .journey-step:nth-child(even) {
    direction: ltr;
  }

  .permission-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ba-divider {
    padding: 0.5rem 0;
    transform: rotate(90deg);
  }

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

  .proof-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .math-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.8rem;
  }

  .final-reassurance {
    flex-direction: column;
    gap: 0.5rem;
  }

  .sticky-cta.visible {
    transform: translateY(64px);
  }

  .truth-reveal {
    min-height: 40vh;
    padding: 2rem 0;
  }

  .procrastination-timeline {
    padding-left: 2.5rem;
    margin-top: 2rem;
  }

  .timeline-text {
    font-size: 1rem;
  }

  .timeline-beat:last-child .timeline-text {
    font-size: 1.05rem;
  }

  .lp-demo {
    max-width: 280px;
  }
}

/* ==========================================================================
   26. Responsive -- small mobile (max-width: 500px)
   ========================================================================== */

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

  .hero {
    padding: 5rem 1.25rem 2.5rem;
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.15;
  }

  .hero-subhead {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .weight-number {
    font-size: 2.75rem;
  }

  .step-number {
    font-size: 3.5rem;
  }

  .bottom-line-stat {
    font-size: 3rem;
  }
}

/* ==========================================================================
   27. Accessibility -- focus indicators
   ========================================================================== */

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.nav-cta:focus-visible,
.sticky-cta-btn:focus-visible,
.pricing-cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ==========================================================================
   28. Accessibility -- 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;
  }

  .slideshow-slide {
    transition: none;
  }

  .living-portrait-slideshow {
    /* Show only first slide as static background */
    opacity: 0.1;
  }

  /* Truth reveal: show all lines immediately, no animation */
  .truth-line {
    opacity: 1 !important;
    transform: none !important;
  }

  .truth-line-1.shrunk {
    font-size: inherit !important;
    opacity: 1 !important;
  }

  /* Living Portrait demo: show video directly, no animation */
  .lp-demo-action {
    display: none;
  }
}
