.pe-page {
  --pe-forest: #2e3d38;
  --pe-forest-2: #3b4d46;
  --pe-mint: #c9dbcf;
  --pe-cream: #faf7f2;
  --pe-line: rgba(23, 63, 54, 0.13);
  background: var(--bg);
}

.pe-page .footer-cta { display: none; }
.pe-page .pe-main { margin-top: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.pe-page .pe-container { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.pe-page .pe-eyebrow { margin: 0 0 20px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; color: var(--accent); }
.pe-page h1, .pe-page h2, .pe-page h3, .pe-page p { margin-top: 0; }
.pe-page h2 { margin-bottom: 24px; font-family: 'Lora', Georgia, serif; font-size: clamp(34px, 4.5vw, 56px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.pe-page .pe-section-head { max-width: 850px; margin-bottom: 48px; }
.pe-page .pe-section-lead { max-width: 650px; margin-bottom: 28px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.pe-hero { position: relative; overflow: hidden; padding: 88px 0; color: #f7f3e9; background: radial-gradient(circle at 88% 16%, rgba(126, 190, 154, .20), transparent 32%), radial-gradient(circle at 4% 100%, rgba(188, 228, 206, .10), transparent 28%), var(--pe-forest); }
.pe-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, transparent, #000); }
.pe-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(400px, .94fr); gap: 72px; align-items: center; }
.pe-hero .pe-eyebrow { color: var(--pe-mint); }
.pe-hero h1 { margin-bottom: 30px; font-family: 'Lora', Georgia, serif; font-size: clamp(44px, 5.5vw, 76px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
body.pe-page main .pe-hero h1,
body.pe-page main .pe-cycle-steps b { color: #f7f3e9 !important; }
.pe-hero h1 em { color: var(--pe-mint); font-style: italic; }
.pe-hero-lead { max-width: 650px; margin-bottom: 34px; color: rgba(247, 243, 233, .78); font-size: 19px; line-height: 1.7; }
.pe-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pe-btn { display: inline-flex; min-height: 50px; box-sizing: border-box; align-items: center; justify-content: center; padding: 13px 24px; border: 1px solid transparent; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.pe-btn:hover { transform: translateY(-2px); }
.pe-btn-primary { color: var(--pe-forest); background: var(--pe-mint); }
.pe-btn-primary:hover { background: #d7f1df; }
.pe-btn-ghost { color: #f7f3e9; border-color: rgba(247, 243, 233, .35); background: rgba(255,255,255,.03); }
.pe-btn-ghost:hover { border-color: rgba(247, 243, 233, .7); background: rgba(255,255,255,.07); }
.pe-btn-secondary { color: var(--pe-forest); border-color: var(--pe-line); background: transparent; }
.pe-btn-secondary:hover { background: rgba(23,63,54,.05); }
.pe-hero-note { margin: 18px 0 0; color: rgba(247, 243, 233, .78); font-size: 14px; }

.pe-cycle { box-sizing: border-box; padding: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 26px; background: rgba(7, 30, 25, .48); box-shadow: 0 32px 80px rgba(0,0,0,.20); backdrop-filter: blur(12px); }
.pe-cycle-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pe-cycle-kicker { color: var(--pe-mint); }
.pe-cycle-status { color: rgba(247,243,233,.68); }
.pe-cycle-core { margin-bottom: 18px; padding: 20px; border-radius: 16px; background: var(--pe-mint); color: var(--pe-forest); }
html[data-theme="dark"] body.pe-page main .pe-cycle-core span,
html[data-theme="dark"] body.pe-page main .pe-cycle-core strong { color: var(--pe-forest) !important; }
.pe-cycle-core span { display: block; margin-bottom: 4px; font-size: 13px; }
.pe-cycle-core strong { font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 500; }
.pe-cycle-steps { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pe-cycle-steps li { display: flex; gap: 14px; align-items: center; padding: 11px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.pe-cycle-steps li > span { color: var(--pe-mint); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.pe-cycle-steps b { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 600; }
.pe-cycle-steps small { display: block; color: rgba(247,243,233,.82); font-size: 12px; line-height: 1.4; }

.pe-principles { padding: 96px 0; }
.pe-card-grid { display: grid; gap: 20px; }
.pe-card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pe-card { position: relative; min-height: 250px; padding: 30px; border: 1px solid var(--pe-line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px rgba(23,63,54,.04); }
.pe-card-num { display: inline-flex; margin-bottom: 38px; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.pe-card h3 { margin-bottom: 14px; font-family: 'Lora', Georgia, serif; font-size: 25px; font-weight: 500; line-height: 1.25; }
.pe-card p { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.pe-path { padding: 96px 0; background: rgba(23,63,54,.045); }
.pe-path-list { margin: 0; padding: 0; border-top: 1px solid var(--pe-line); list-style: none; }
.pe-path-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--pe-line); }
.pe-path-num { color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.pe-path-list h3 { margin-bottom: 8px; font-family: 'Lora', Georgia, serif; font-size: 26px; font-weight: 500; }
.pe-path-list p { max-width: 760px; margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.pe-path-tag { padding: 7px 12px; border: 1px solid var(--pe-line); border-radius: 999px; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; white-space: nowrap; }

.pe-method { padding: 96px 0; }
.pe-method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 80px; align-items: center; }
.pe-method-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pe-method-pair article { min-height: 230px; padding: 28px; border: 1px solid var(--pe-line); border-radius: 20px; background: var(--surface); }
.pe-method-pair article:last-child { color: #f7f3e9; background: var(--pe-forest); border-color: var(--pe-forest); transform: translateY(24px); }
body.pe-page main .pe-method-pair article:last-child h3 { color: #f7f3e9 !important; }
.pe-method-pair article:last-child p { color: rgba(247,243,233,.8); }
.pe-method-label { display: block; margin-bottom: 36px; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; text-transform: uppercase; }
.pe-method-pair article:last-child .pe-method-label { color: var(--pe-mint); }
.pe-method-pair h3 { margin-bottom: 12px; font-family: 'Lora', Georgia, serif; font-size: 28px; font-weight: 500; }
.pe-method-pair p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.pe-text-link { display: inline-flex; align-items: center; min-height: 24px; color: var(--accent); font-weight: 600; text-decoration: none; }
.pe-text-link:hover { text-decoration: underline; }

.pe-proof { padding: 96px 0; background: var(--surface); }
.pe-proof-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.pe-proof-card { min-width: 0; padding: 30px; border: 1px solid var(--pe-line); border-radius: 20px; background: var(--bg); }
.pe-proof-card h3 { margin-bottom: 14px; font-family: 'Lora', Georgia, serif; font-size: 27px; font-weight: 500; line-height: 1.25; }
.pe-proof-label { display: block; margin-bottom: 18px; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.pe-proof-question { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--pe-line); }
.pe-proof-question p { margin-bottom: 16px; font-size: 16px; line-height: 1.5; }
.pe-proof-question ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pe-proof-question li { padding: 10px 12px; border: 1px solid var(--pe-line); border-radius: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.pe-proof-question li.is-answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent); border-color: var(--accent); background: rgba(47,91,79,.07); font-weight: 600; }
.pe-proof-question li.is-answer span { flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; }
.pe-proof-code { display: flex; flex-direction: column; }
.pe-proof-code pre { margin: 0 0 18px; padding: 22px; overflow-x: auto; border-radius: 14px; color: #d7e2dc; background: #1d2925; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.65; }
.pe-proof-run { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--pe-line); border-radius: 10px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
.pe-proof-run b { color: #2e8b57; font-size: 14px; }
.pe-proof-code p { margin: auto 0 0; color: var(--muted); line-height: 1.65; }
.pe-case { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: 20px; padding: 24px 28px; border: 1px solid var(--pe-line); border-radius: 18px; color: var(--ink); background: rgba(23,63,54,.045); text-decoration: none; }
.pe-case .pe-proof-label { margin: 0; }
.pe-case strong { font-family: 'Lora', Georgia, serif; font-size: 22px; font-weight: 500; }
.pe-case-link { color: var(--accent); font-size: 14px; font-weight: 600; }
.pe-case:hover { border-color: var(--accent); }

.pe-programs { padding: 96px 0; background: rgba(23,63,54,.045); }
.pe-program-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pe-program { display: flex; min-height: 300px; box-sizing: border-box; flex-direction: column; padding: 26px; border: 1px solid var(--pe-line); border-radius: 20px; color: var(--ink); background: var(--surface); text-decoration: none; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.pe-program:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 42px rgba(23,63,54,.09); }
.pe-program-lang { display: inline-flex; align-self: flex-start; margin-bottom: 34px; padding: 5px 10px; border-radius: 999px; color: var(--accent); background: rgba(23,63,54,.07); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; }
.pe-program h3 { margin-bottom: 14px; font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.25; }
.pe-program p { margin-bottom: 26px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.pe-program-link { margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 600; }

.pe-final { padding: 100px 0; text-align: center; }
.pe-final .pe-container { max-width: 850px; }
.pe-final p:not(.pe-eyebrow) { max-width: 650px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.pe-final .pe-actions { justify-content: center; }
.pe-final .pe-btn-primary { color: #f7f3e9; background: var(--pe-forest); }
.pe-final .pe-btn-primary:hover { background: var(--pe-forest-2); }
.pe-final .pe-final-team { margin-top: 28px; font-size: 14px; }
.pe-final-team a { color: var(--accent); text-decoration: none; }
.pe-final-team a:hover { text-decoration: underline; }

.pe-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(247,243,233,.18); }
.pe-facts div { display: flex; flex-direction: column; gap: 4px; }
.pe-facts strong { color: #f7f3e9; font-family: 'Lora', Georgia, serif; font-size: 32px; font-weight: 500; }
.pe-facts span { color: rgba(247,243,233,.76); font-size: 13px; line-height: 1.45; }
.pe-card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pe-screenshot { margin: 0 0 24px; overflow: hidden; border: 1px solid var(--pe-line); border-radius: 20px; background: var(--bg); }
.pe-screenshot img { display: block; width: 100%; height: auto; }
.pe-screenshot figcaption { padding: 14px 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pe-author, .pe-conditions, .pe-faq { padding: 96px 0; }
.pe-author { background: var(--surface); }
.pe-author-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 72px; align-items: center; }
.pe-author-facts { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 20px; }
.pe-author-facts div { display: flex; min-height: 140px; box-sizing: border-box; flex-direction: column; justify-content: center; padding: 22px; border: 1px solid var(--pe-line); border-radius: 16px; }
.pe-author-facts strong { margin-bottom: 8px; color: var(--accent); font-family: 'Lora', Georgia, serif; font-size: 36px; font-weight: 500; }
.pe-author-facts span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.pe-conditions { background: rgba(23,63,54,.045); }
.pe-condition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pe-condition-card { display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border: 1px solid var(--pe-line); border-radius: 20px; background: var(--surface); }
.pe-condition-card h3 { margin-bottom: 22px; font-family: 'Lora', Georgia, serif; font-size: 28px; font-weight: 500; }
.pe-condition-card ul { display: grid; gap: 12px; margin: 0 0 28px; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.pe-condition-card .pe-btn, .pe-condition-card .pe-text-link { margin-top: auto; }
.pe-condition-card .pe-btn-primary { color: #f7f3e9; background: var(--pe-forest); }
.pe-price { color: var(--accent); font-size: 38px; }
.pe-refund { max-width: 900px; margin: 26px auto 0; color: var(--muted); font-size: 14px; line-height: 1.65; text-align: center; }
.pe-refund a, .pe-faq-list a { color: var(--accent); }
.pe-faq-list { max-width: 960px; margin: 0 auto; border-top: 1px solid var(--pe-line); }
.pe-faq-list details { border-bottom: 1px solid var(--pe-line); }
.pe-faq-list summary { padding: 22px 0; font-family: 'Lora', Georgia, serif; font-size: 24px; font-weight: 500; cursor: pointer; }
.pe-faq-list details p { max-width: 800px; margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 1.7; }

html[data-theme="dark"] .pe-page {
  --pe-forest: #171b1a;
  --pe-forest-2: #29312e;
  --pe-mint: #a9cbb7;
  --pe-line: rgba(255, 255, 255, .12);
}
html[data-theme="dark"] .pe-hero {
  background: radial-gradient(circle at 88% 16%, rgba(135, 166, 149, .08), transparent 32%), #151817;
}
html[data-theme="dark"] .pe-cycle { background: rgba(0, 0, 0, .28); }
html[data-theme="dark"] .pe-path,
html[data-theme="dark"] .pe-programs { background: rgba(255, 255, 255, .025); }
html[data-theme="dark"] .pe-method-pair article:last-child { background: #222725; border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .pe-final .pe-btn-primary { background: #29312e; }
html[data-theme="dark"] body.pe-page main .pe-btn-secondary { color: #f7f3e9 !important; border-color: rgba(247,243,233,.28); }
html[data-theme="dark"] body.pe-page main .pe-btn-secondary:hover { background: rgba(255,255,255,.06); }
html.theme-sunset .pe-hero {
  background: radial-gradient(circle at 88% 16%, rgba(201, 219, 207, .08), transparent 34%), #26201a;
}
html.theme-sunset .pe-page header.container::before {
  background: rgba(38, 32, 26, .92);
  border-bottom-color: rgba(255, 228, 200, .06);
}

@media (max-width: 1050px) {
  .pe-hero-grid, .pe-method-grid, .pe-proof-grid { grid-template-columns: 1fr; gap: 48px; }
  .pe-cycle { max-width: 680px; }
  .pe-program-grid, .pe-card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-program { min-height: 260px; }
  .pe-case { grid-template-columns: 1fr; gap: 12px; }
  .pe-author-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .pe-page .pe-container { width: min(100% - 32px, 1280px); }
  .pe-hero, .pe-principles, .pe-path, .pe-method, .pe-proof, .pe-programs, .pe-author, .pe-conditions, .pe-faq, .pe-final { padding: 64px 0; }
  .pe-hero-grid { gap: 40px; }
  .pe-hero h1 { font-size: clamp(40px, 12vw, 58px); }
  .pe-hero-lead, .pe-page .pe-section-lead { font-size: 17px; }
  .pe-card-grid-three, .pe-card-grid-four, .pe-program-grid, .pe-condition-grid { grid-template-columns: 1fr; }
  .pe-card { min-height: 0; }
  .pe-card-num { margin-bottom: 24px; }
  .pe-path-list li { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }
  .pe-path-tag { display: none; }
  .pe-method-grid { gap: 36px; }
  .pe-method-pair article { min-height: 0; }
  .pe-method-pair article:last-child { transform: none; }
  .pe-program { min-height: 0; }
  .pe-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .pe-author-facts { grid-template-columns: 1fr; }
  .pe-author-facts div { min-height: 0; }
}

@media (max-width: 520px) {
  .pe-actions { align-items: stretch; flex-direction: column; }
  .pe-btn { width: 100%; }
  .pe-cycle { padding: 18px; border-radius: 20px; }
  .pe-cycle-status { display: none; }
  .pe-cycle-core strong { font-size: 21px; }
  .pe-method-pair { grid-template-columns: 1fr; }
  .pe-card, .pe-program { padding: 24px; }
}

@keyframes peHeroEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes peCycleStep {
  0%, 14%, 100% { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.035); transform: translateX(0); }
  4%, 10% { border-color: rgba(201,219,207,.58); background: rgba(201,219,207,.10); transform: translateX(4px); }
}
.pe-hero-copy { animation: peHeroEnter .65s ease-out both; }
.pe-cycle { animation: peHeroEnter .75s .12s ease-out both; }
.pe-cycle-step { animation: peCycleStep 12s ease-in-out infinite; }
.pe-cycle-step:nth-child(2) { animation-delay: 1.5s; }
.pe-cycle-step:nth-child(3) { animation-delay: 3s; }
.pe-cycle-step:nth-child(4) { animation-delay: 4.5s; }
.pe-cycle-step:nth-child(5) { animation-delay: 6s; }
.pe-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.pe-reveal.pe-inview { opacity: 1; transform: translateY(0); }
.pe-card:nth-child(2), .pe-program:nth-child(2), .pe-path-list li:nth-child(2) { transition-delay: .07s; }
.pe-card:nth-child(3), .pe-program:nth-child(3), .pe-path-list li:nth-child(3) { transition-delay: .14s; }
.pe-program:nth-child(4), .pe-path-list li:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .pe-btn, .pe-program { transition: none; }
  .pe-btn:hover, .pe-program:hover { transform: none; }
  .pe-hero-copy, .pe-cycle, .pe-cycle-step { animation: none; }
  .pe-reveal { opacity: 1; transform: none; transition: none; }
}
