/* ============================================================
   TWIN.CSS · Styling for the AI Twin page (rung 04.5)
   Load AFTER styles.css and mobile.css
   ============================================================ */

/* ===== TOPNAV: 4.5 link gets a distinctive treatment ===== */
.topnav a.twin-link {
  color: var(--bcg-green);
  font-weight: 600;
}
.topnav a.twin-link .step-num {
  color: var(--bcg-green);
  font-weight: 600;
}
.topnav a.twin-link::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--bcg-green);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: twin-pulse 2.4s ease-in-out infinite;
}
@keyframes twin-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
.topnav a.twin-link.active {
  background: var(--bcg-green-tint);
  color: var(--bcg-green);
}

/* ===== TWIN HERO: deeper green wash ===== */
.twin-hero {
  background:
    radial-gradient(ellipse 900px 500px at top right, var(--bcg-green-tint) 0%, transparent 65%),
    radial-gradient(ellipse 500px 300px at bottom left, var(--bcg-green-tint-2) 0%, transparent 60%),
    linear-gradient(180deg, var(--bcg-green-tint-2) 0%, var(--paper) 100%);
}

/* ===== TWIN THESIS · "Three of you" ===== */
.twin-thesis { background: var(--paper); }
.twin-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.twin-three-card {
  background: var(--bcg-green-tint-2);
  border: 1px solid var(--bcg-green-tint);
  border-top: 3px solid var(--bcg-green);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.twin-three-num {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--bcg-green);
  line-height: 1;
  margin-bottom: 14px;
}
.twin-three-h {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.twin-three-p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ===== TRUST LADDER ===== */
.trust-ladder {
  margin-top: 8px;
  position: relative;
}
.trust-rung {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--hair);
  position: relative;
}
.trust-rung:last-child { border-bottom: 1px solid var(--hair); }
.trust-rung-num {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: 56px;
  color: var(--bcg-green);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.trust-rung-h {
  font-family: 'Source Serif 4', serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.trust-rung-h em {
  font-style: italic;
  color: var(--bcg-green);
  font-weight: 400;
}
.trust-rung-p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.trust-rung-p strong { color: var(--ink); font-weight: 600; }
.trust-rung-ex {
  background: var(--gray-50);
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.trust-ex-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-right: 8px;
}

/* ===== TWIN BUILD SECTION ===== */
.twin-build-section { background: var(--gray-50); }

/* ===== HORIZONS · what happens at month 3/6/12 ===== */
.twin-next { background: var(--ink); color: var(--paper); }
.twin-next .section-tag { color: var(--bcg-green-bright); }
.twin-next .section-tag::before { background: var(--bcg-green-bright); }
.twin-next .section-h { color: var(--paper); }
.twin-next .section-h em { color: var(--bcg-green-bright); }
.twin-next .section-lede { color: rgba(255,255,255,0.7); }

.twin-horizons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.twin-horizon {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid var(--bcg-green-bright);
  border-radius: 4px;
  padding: 28px 24px;
}
.twin-horizon-when {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bcg-green-bright);
  margin-bottom: 10px;
  font-weight: 600;
}
.twin-horizon-h {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.twin-horizon-h em {
  font-style: italic;
  font-weight: 400;
  color: var(--bcg-green-bright);
}
.twin-horizon-p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}
.twin-horizon-p strong { color: var(--paper); font-weight: 600; }

/* ===== TWIN FOLLOWUP (soft offer at bottom) ===== */
.twin-followup {
  background: rgba(41, 186, 116, 0.08);
  border: 1px solid rgba(41, 186, 116, 0.25);
  border-radius: 4px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}
.twin-followup-mark {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 44px;
  color: var(--bcg-green-bright);
  line-height: 0.9;
}
.twin-followup-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bcg-green-bright);
  margin-bottom: 8px;
}
.twin-followup-text {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--paper);
  font-weight: 300;
}
.twin-followup-text em {
  font-style: italic;
  color: var(--bcg-green-bright);
}

/* ===== TWIN POINTER (on landing page, after the ladder) ===== */
.twin-pointer {
  display: block;
  grid-column: 1 / -1;
  margin-top: 24px;
  text-decoration: none;
  color: inherit;
}
.twin-pointer-inner {
  background:
    linear-gradient(135deg, var(--bcg-green-deep) 0%, var(--bcg-green) 100%);
  color: var(--paper);
  padding: 36px 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.twin-pointer:hover .twin-pointer-inner {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(13, 79, 55, 0.4);
}
.twin-pointer-inner::before {
  content: '04.5';
  position: absolute;
  top: 20px;
  right: 40px;
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 84px;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  letter-spacing: -0.04em;
}
.twin-pointer-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bcg-green-bright);
  margin-bottom: 10px;
  font-weight: 600;
}
.twin-pointer-h {
  font-family: 'Source Serif 4', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  max-width: 70%;
}
.twin-pointer-h em {
  font-style: italic;
  color: var(--bcg-green-bright);
}
.twin-pointer-sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  max-width: 70%;
  margin-bottom: 18px;
}
.twin-pointer-cta {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--bcg-green-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}
.twin-pointer:hover .twin-pointer-cta { gap: 14px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .twin-three, .twin-horizons {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .twin-three, .twin-horizons {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .twin-three-card, .twin-horizon { padding: 22px 18px; }
  .trust-rung {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 22px 0;
  }
  .trust-rung-num { font-size: 40px; }
  .trust-rung-h { font-size: 22px; }
  .trust-rung-p { font-size: 14px; }
  .trust-rung-ex { font-size: 11.5px; padding: 10px 12px; }

  .twin-followup {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 20px;
  }
  .twin-followup-mark { font-size: 32px; }
  .twin-followup-text { font-size: 16px; }

  .twin-pointer-inner { padding: 28px 24px; }
  .twin-pointer-h { font-size: 24px; max-width: 100%; }
  .twin-pointer-sub { max-width: 100%; font-size: 14px; }
  .twin-pointer-inner::before { font-size: 56px; top: 16px; right: 24px; }

  /* Mobile menu link: special treatment for 04.5 too */
  .mobile-menu-nav a.twin-link {
    color: var(--bcg-green-bright);
  }
  .mobile-menu-nav a.twin-link .step-num {
    color: var(--bcg-green-bright);
  }
}
