/* ============================================================
   PRACTICE THE PAUSE — Landing Page
   Aesthetic: Editorial Thriller — Instrument Serif x Syne
   Warm parchment, burnt sienna accent, interactive P.A.U.S.E.
   ============================================================ */

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

:root {
  --bg: #F2ECE4;
  --bg-alt: #EAE3D9;
  --dark: #141210;
  --dark-soft: #1E1C18;

  --accent: #C74B2A;
  --accent-hover: #A83D20;
  --accent-glow: rgba(199, 75, 42, 0.12);

  --text: #1C1917;
  --text-mid: #57534E;
  --text-muted: #A8A29E;

  --red: #DC2626;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  --max-w: 1100px;
  --radius: 10px;
  --radius-lg: 16px;

  /* shared with training page */
  --bg-card: #FFFFFF;
  --border: #DED7CE;
  --border-light: #E8E3DC;
  --border-dark: #C8C0B5;
  --text-secondary: #586778;
  --text-on-dark: #F2ECE4;
  --text-on-dark-muted: #A8B5C4;
  --accent-bg: rgba(199, 75, 42, 0.07);
  --accent-border: rgba(199, 75, 42, 0.22);
  --green: #2E7D52;
  --green-bg: rgba(46, 125, 82, 0.06);
  --teal: #1A7A6D;
  --teal-bg: rgba(26, 122, 109, 0.06);
  --red-bg: rgba(220, 38, 38, 0.06);
  --amber: #B8860B;
  --font: var(--sans);
  --font-mono: var(--mono);
  --nav-h: 72px;
}

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

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* --- Focus States --- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* --- Grain Texture --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}


/* ============================================================
   ATTACK SIMULATION
   ============================================================ */
.attack {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.attack--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.attack__skip {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  z-index: 10;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s;
}

.attack__skip:hover {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.25);
}

/* Fake email card */
.attack__email {
  background: #fff;
  color: var(--text);
  width: 90%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.attack__email--visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.attack__email--shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-0.5deg); }
  40% { transform: translateX(8px) rotate(0.5deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.attack__email-head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: 0.92rem;
}

.attack__badge {
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}

.attack__email-addr {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.attack__email-subject {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--space-md);
}

.attack__email-body {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: none;
}

.attack__email-btn {
  display: inline-block;
  background: #2563EB;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  margin-bottom: var(--space-lg);
  cursor: default;
}

.attack__email-timer {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 500;
  padding-top: var(--space-md);
  border-top: 1px solid #F0F0F0;
}

/* Reveal screen */
.attack__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}

.attack__reveal--visible {
  opacity: 1;
  visibility: visible;
}

.attack__pause {
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 13rem);
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s var(--ease-out), transform 0.9s var(--ease-spring);
}

.attack__reveal--visible .attack__pause {
  opacity: 1;
  transform: scale(1);
}

.attack__feel {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-md);
  max-width: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.3s var(--ease-out), transform 0.5s 0.3s var(--ease-out);
}

.attack__reveal--visible .attack__feel {
  opacity: 1;
  transform: translateY(0);
}

.attack__explain {
  font-size: 1rem;
  color: rgba(255,255,255,0.45);
  max-width: 40ch;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.6s var(--ease-out), transform 0.5s 0.6s var(--ease-out);
}

.attack__reveal--visible .attack__explain {
  opacity: 1;
  transform: translateY(0);
}

.attack__seven {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2xl);
  max-width: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.9s var(--ease-out), transform 0.5s 0.9s var(--ease-out);
}

.attack__reveal--visible .attack__seven {
  opacity: 1;
  transform: translateY(0);
}

.attack__seven em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.3em;
}

.attack__enter {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 16px 52px;
  border-radius: 100px;
  cursor: pointer;
  min-height: 52px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 1.2s var(--ease-out), transform 0.5s 1.2s var(--ease-out), background 0.2s;
}

.attack__reveal--visible .attack__enter {
  opacity: 1;
  transform: translateY(0);
}

.attack__enter:hover {
  background: var(--accent-hover);
}


/* ============================================================
   SITE CONTAINER
   ============================================================ */
.site {
  opacity: 0;
  transition: opacity 0.8s 0.2s var(--ease-out);
}

.site--visible {
  opacity: 1;
}


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: 100;
  background: rgba(242, 236, 228, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav__logo {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.03em;
  word-spacing: -0.15em;
}

.nav__logo:hover { color: var(--accent); }

.nav__logo span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  margin: 0 1px;
}

.nav__logo::after {
  content: '';
  display: inline-block;
  width: 0.4em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav__link {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--active {
  color: var(--accent);
  font-weight: 600;
}

.nav__link--disabled {
  color: var(--text-muted);
  pointer-events: none;
  cursor: default;
}

.nav__start {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--dark);
  padding: 10px 28px;
  border-radius: 100px;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: background 0.2s, transform 0.15s;
}

.nav__start:hover {
  background: var(--dark-soft);
  color: #fff;
  transform: translateY(-1px);
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.hero__title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--text-mid);
  margin-bottom: var(--space-lg);
  max-width: none;
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

/* Hero entrance stagger */
.site--visible .hero__title {
  animation: fadeUp 0.8s 0.3s var(--ease-out) both;
}

.site--visible .hero__sub {
  animation: fadeUp 0.8s 0.5s var(--ease-out) both;
}

.site--visible .hero__desc {
  animation: fadeUp 0.8s 0.65s var(--ease-out) both;
}

.site--visible .hero .btn {
  animation: fadeUp 0.8s 0.8s var(--ease-out) both;
}

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


/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(199, 75, 42, 0.22);
}

.btn--large {
  font-size: 1rem;
  padding: 18px 52px;
  min-height: 56px;
}

/* Ghost variant for training page */
.btn--ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border-dark);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-alt);
}

.btn--primary {
  background: var(--dark);
  color: var(--text-on-dark);
}

.btn--primary:hover {
  background: var(--dark-soft);
  color: var(--text-on-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 42, 58, 0.18);
}


/* ============================================================
   SHARED LABEL
   ============================================================ */
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}


/* ============================================================
   PROGRAM OVERVIEW — Pinned Scroll Sequence
   ============================================================ */
.program {
  position: relative;
}

.program__pin {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  align-items: flex-start;
}

/* Left column: sticky context panel */
.program__left {
  width: 40%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--space-xl);
}

.program__heading {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.program__sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: var(--space-2xl);
}

/* Progress indicator */
.program__progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.program__progress-track {
  width: 120px;
  height: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.program__progress-fill {
  height: 100%;
  width: 14.28%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}

.program__progress-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Right column: module stack */
.program__right {
  width: 60%;
  position: relative;
}

.program__module {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) 0 var(--space-xl) var(--space-2xl);
  position: relative;
}

/* Accent line on left edge of each module */
.program__module::before {
  content: '';
  position: absolute;
  left: var(--space-xl);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--accent);
  opacity: 0;
  transition: height 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
}

.program__module.is-active::before {
  height: 80px;
  opacity: 1;
}

.program__num {
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0,0,0,0.08);
  display: block;
  margin-bottom: var(--space-lg);
  transition: -webkit-text-stroke-color 0.5s var(--ease-out);
  will-change: opacity, transform;
}

.program__module.is-active .program__num {
  -webkit-text-stroke-color: var(--accent);
}

.program__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-md);
  will-change: opacity, transform;
}

.program__desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 440px;
  will-change: opacity, transform;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--bg-alt);
}

.how__inner {
  max-width: var(--max-w);
  margin: 0 auto var(--space-2xl);
}

.how h2 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.how__steps {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.how__step {
  will-change: transform, opacity;
}

.how__step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.how__step h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.how__step p {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
}


/* (Evidence/stats section removed — content moved into problem section) */


/* ============================================================
   PRETEXT LABS CALLOUT
   ============================================================ */
.pretext {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--dark);
  position: relative;
}

.pretext__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.pretext .label {
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-md);
}

.pretext h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: #F2ECE4;
  margin-bottom: var(--space-lg);
}

.pretext__sub {
  font-size: 1.05rem;
  color: rgba(242, 236, 228, 0.6);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: none;
}

.btn--outline {
  background: transparent;
  color: #F2ECE4;
  border: 1px solid rgba(242, 236, 228, 0.25);
}
.btn--outline:hover {
  background: rgba(242, 236, 228, 0.08);
  border-color: rgba(242, 236, 228, 0.4);
}

/* ============================================================
   CLOSER / FINAL CTA
   ============================================================ */
.closer {
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.closer h2 {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.closer p {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-bottom: var(--space-2xl);
  max-width: none;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--text-mid);
}

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

.footer__credit a {
  color: var(--text-muted);
}

.footer__credit a:hover {
  color: var(--text-mid);
}


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav {
    padding: 0 var(--space-lg);
  }

  .nav__logo { font-size: 0.95rem; }

  .nav__links { gap: var(--space-md); }
  .nav__link { font-size: 0.75rem; }
  .nav__link--disabled { display: none; }

  .hero {
    min-height: auto;
    padding: 160px var(--space-lg) var(--space-3xl);
  }

  .program__pin {
    flex-direction: column;
    padding: 0 var(--space-lg);
  }

  .program__left {
    width: 100%;
    position: relative;
    height: auto;
    padding: var(--space-2xl) 0 var(--space-lg);
  }

  .program__right {
    width: 100%;
  }

  .program__module {
    min-height: 60vh;
    padding: var(--space-xl) 0 var(--space-xl) var(--space-xl);
  }

  .program__module::before {
    left: 0;
  }

  .program__num {
    font-size: 4rem;
  }

  .how {
    padding: var(--space-2xl) var(--space-lg);
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .pretext {
    padding: var(--space-2xl) var(--space-lg);
  }

  .closer {
    min-height: auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  }

  .footer {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .attack__email {
    padding: var(--space-lg);
    max-width: 400px;
  }

  .attack__email-subject { font-size: 1rem; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__sub {
    font-size: 1.2rem;
  }

  .evidence__number {
    font-size: 3rem;
  }

  .closer h2 {
    font-size: 1.8rem;
  }

  .nav__start {
    font-size: 0.75rem;
    padding: 8px 20px;
  }
}
