/* =========================================================
   Essay Humanizer — ported verbatim from the reference HTML.
   Scoped under .peh-page to avoid site CSS conflicts.
   ========================================================= */

/* =========================================================
   TOKENS — local to .peh-page and the overlays, since
   modals render outside .peh-page on the body.
   ========================================================= */
/* Palette mirrors the paraphrasing tool exactly so the humanizer sits
   alongside it visually: magenta-purple primary (#D306F4 → #5700E6)
   with the slate-grey text scale. */
.peh-page,
.peh-page .overlay {
  --bg:            #0A0A0F;
  --bg-soft:       #13131C;
  --bg-card:       #1A1A26;
  --bg-input:      #0F0F18;
  --bg-elevated:   #23233A;
  --purple:        #D306F4;
  --purple-dark:   #5700E6;
  --purple-soft:   rgba(168, 85, 247, 0.08);
  --purple-glow:   rgba(211, 6, 244, 0.22);
  --purple-border: rgba(168, 85, 247, 0.30);
  --purple-light:  #C77DFF;
  --yellow:        #FACC15;
  --yellow-dark:   #EAB308;
  --yellow-text:   #1A1A26;
  --yellow-glow:   rgba(250, 204, 21, 0.20);
  --yellow-border: rgba(250, 204, 21, 0.35);
  --green:         #4ADE80;
  --green-soft:    rgba(74, 222, 128, 0.10);
  --red:           #F87171;
  --text:          #FFFFFF;
  --text-muted:    #E2E2EE;
  --text-faint:    #9898A8;
  --text-dim:      #707082;
  --text-extra-faint: #707082;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius:        12px;
  --radius-lg:     18px;
}

/* =========================================================
   PAGE WRAPPER — full-bleed dark background, resets that
   would normally live on body. Bumped specificity with
   the .peh-page selector so legacy site CSS doesn't win.
   ========================================================= */
.peh-page,
.peh-page *,
.peh-page *::before,
.peh-page *::after { box-sizing: border-box; margin: 0; padding: 0; }

.peh-page {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background-image:
    radial-gradient(ellipse 80% 50% at -10% -5%, rgba(211, 6, 244, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 110% 100%, rgba(250, 204, 21, 0.05) 0%, transparent 55%);
  min-height: 100vh;
  display: block;
  padding-top: 30px;
}
.peh-page a { color: inherit; text-decoration: none; }
.peh-page button { cursor: pointer; font-family: inherit; }
.peh-page h1, .peh-page h2, .peh-page h3, .peh-page h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
}

/* =========================================================
   HERO (exact reference)
   ========================================================= */
.peh-page .hero {
  padding: 60px 20px 0;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}
.peh-page .h1-eyebrow {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: peh-eyebrow-slide 0.5s cubic-bezier(0.22,1,0.36,1) both;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  border-radius: 100px;
}
.peh-page .hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  animation: peh-livePulse 2s ease-in-out infinite, peh-glow-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes peh-glow-pulse {
  0%,100% { box-shadow: 0 0 6px var(--purple-light); }
  50%     { box-shadow: 0 0 14px var(--purple-light); opacity: .55; }
}
@keyframes peh-livePulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}
.peh-page .hero-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  animation: peh-heroFadeIn .7s cubic-bezier(.22,1,.36,1) .1s both;
  color: var(--text);
}
.peh-page .hero-h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #FFFFFF 0%, #C77DFF 40%, #FACC15 60%, #FFFFFF 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: peh-shimmer 5s linear infinite;
}
@keyframes peh-heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes peh-shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 250% center; }
}
.peh-page .hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 24px;
  animation: peh-heroFadeIn .7s cubic-bezier(.22,1,.36,1) .25s both;
}
.peh-page .hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
  animation: peh-heroFadeIn .6s cubic-bezier(.22,1,.36,1) .4s both;
}
.peh-page .hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-faint);
}
.peh-page .hero-trust-stars { color: var(--yellow); font-size: 13px; letter-spacing: -1px; }
.peh-page .hero-trust strong { color: var(--text-muted); font-weight: 700; }
.peh-page .hero-trust-sep {
  width: 3px;
  height: 3px;
  background: var(--text-extra-faint);
  border-radius: 50%;
}
.peh-page .hero-updated { font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }

/* Floating orbs */
.peh-page .hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.peh-page .hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(211, 6, 244, 0.07);
  top: -100px; left: -80px;
  animation: peh-drift 18s linear infinite;
}
.peh-page .hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(250,204,21,0.04);
  top: 50px; right: -60px;
  animation: peh-drift 24s linear infinite reverse;
}
@keyframes peh-drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(24px,18px) scale(1.05); }
  66%  { transform: translate(-16px,28px) scale(0.97); }
  100% { transform: translate(0,0) scale(1); }
}
.peh-page .hero > *:not(.hero-orb) { position: relative; z-index: 1; }

/* =========================================================
   TOOL CARD
   ========================================================= */
.peh-page .tool-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.peh-page .tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: 0 24px 72px rgba(0,0,0,.6), 0 0 0 1px rgba(211, 6, 244, 0.06);
  animation: peh-heroFadeIn .7s cubic-bezier(.22,1,.36,1) .35s both;
}
.peh-page .tool-card::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--yellow), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.peh-page .tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(211, 6, 244, 0.10), rgba(211, 6, 244, 0.03));
  flex-wrap: wrap;
  gap: 8px;
}
.peh-page .tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: var(--purple-soft);
  border: 1px solid var(--purple-border);
  padding: 5px 10px;
  border-radius: 6px;
}
.peh-page .tool-free-label { font-size: 12.5px; color: var(--text-faint); }
.peh-page .tool-free-label strong { color: var(--green); font-weight: 700; }
.peh-page .usage-meter { display: none; align-items: center; gap: 8px; }
.peh-page .usage-meter.show { display: flex; }
.peh-page .usage-label { font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.peh-page .usage-track { width: 100px; height: 4px; background: rgba(255,255,255,.08); border-radius: 4px; overflow: hidden; }
.peh-page .usage-fill { height: 100%; background: var(--purple); border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1), background .3s; }
.peh-page .usage-fill.warn { background: var(--yellow); }
.peh-page .usage-fill.danger { background: var(--red); }
.peh-page .usage-nums { font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text-faint); }
.peh-page .usage-nums em { font-style: normal; color: var(--text-muted); }

.peh-page .mode-bar { padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--bg-soft); position: relative; overflow: visible; }
.peh-page .mode-bar-inner { display: flex; align-items: center; gap: 6px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.peh-page .mode-bar-inner::-webkit-scrollbar { display: none; }
.peh-page .mode-pill { font-size: 12.5px; font-weight: 600; color: var(--text-faint); background: none; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; white-space: nowrap; font-family: 'Inter', sans-serif; transition: all .15s; flex-shrink: 0; }
.peh-page .mode-pill:hover { color: var(--text-muted); border-color: var(--border-strong); }
.peh-page .mode-pill.active { color: #fff; background: var(--purple); border-color: var(--purple); box-shadow: 0 0 14px var(--purple-glow); }
.peh-page .mode-sep { width: 1px; height: 18px; background: var(--border-strong); flex-shrink: 0; margin: 0 4px; }
.peh-page .more-wrap { position: relative; flex-shrink: 0; }
/* .more-panel is moved to <body> at open time so position:fixed
   resolves to the viewport (ancestors carry transforms that would
   otherwise create a containing block and break fixed positioning).
   Selector covers both initial location (inside .peh-page) and
   the moved location (direct child of body). */
.more-panel,
.peh-page .more-panel {
  display: none;
  position: fixed; top: 0; left: 0;
  background: #1A1A26;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 6px;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  min-width: 155px;
  flex-direction: column;
  gap: 3px;
  font-family: 'Inter', system-ui, sans-serif;
}
.more-panel.open,
.peh-page .more-panel.open { display: flex; }
.more-panel .mode-pill,
.peh-page .more-panel .mode-pill {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  text-align: left;
  padding: 7px 12px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.more-panel .mode-pill:hover,
.peh-page .more-panel .mode-pill:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.16);
}
.more-panel .mode-pill.active,
.peh-page .more-panel .mode-pill.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 14px var(--purple-glow);
}
/* ===== Custom intensity dropdown — mirrors the More dropdown =====
   The trigger button matches .mode-pill exactly; the panel matches
   .more-panel exactly. */
.peh-page .intensity-wrap { position: relative; flex-shrink: 0; }
.peh-page .intensity-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-faint);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  transition: all .15s;
  cursor: pointer;
}
.peh-page .intensity-btn:hover {
  color: var(--text-muted);
  border-color: var(--border-strong);
}

/* Same dropdown panel + items as .more-panel.
   Selector covers both the in-page location and the moved-to-body
   location, since JS reparents the panel on first open. */
.intensity-panel,
.peh-page .intensity-panel {
  display: none;
  position: fixed; top: 0; left: 0;
  background: #1A1A26;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 6px;
  z-index: 1000;
  box-shadow: 0 8px 28px rgba(0,0,0,.5);
  min-width: 155px;
  flex-direction: column;
  gap: 3px;
  font-family: 'Inter', system-ui, sans-serif;
}
.intensity-panel.open,
.peh-page .intensity-panel.open { display: flex; }

.intensity-panel .intensity-opt,
.peh-page .intensity-panel .intensity-opt {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  text-align: left;
  padding: 7px 12px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .15s;
}
.intensity-panel .intensity-opt:hover,
.peh-page .intensity-panel .intensity-opt:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.16);
}
.intensity-panel .intensity-opt.active,
.peh-page .intensity-panel .intensity-opt.active {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 0 14px var(--purple-glow);
}

.peh-page .panels { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
@media (max-width: 720px) { .peh-page .panels { grid-template-columns: 1fr; } }
.peh-page .panel { display: flex; flex-direction: column; }
.peh-page .panel-left { border-right: 1px solid var(--border); }
@media (max-width: 720px) {
  .peh-page .panel-left { border-right: none; border-bottom: 1px solid var(--border); }
}
.peh-page .panel-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 6px; }
.peh-page .panel-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.peh-page .panel-head-r { display: flex; align-items: center; gap: 8px; }
.peh-page .wc-display { font-size: 12px; color: var(--text-faint); }
.peh-page .wc-display .wc { font-weight: 700; color: var(--text-muted); transition: color .2s; }
.peh-page .wc-display.near .wc { color: var(--yellow); }
.peh-page .wc-display.over .wc { color: var(--red); }
.peh-page .sample-btn { font-size: 11px; font-weight: 600; color: var(--purple-light); background: var(--purple-soft); border: 1px solid var(--purple-border); border-radius: 5px; padding: 3px 8px; font-family: 'Inter', sans-serif; transition: all .15s; }
.peh-page .sample-btn:hover { background: rgba(211, 6, 244, 0.14); }

.peh-page .tool-textarea {
  flex: 1; width: 100%; min-height: 320px;
  background: transparent; border: none; outline: none; resize: none;
  color: var(--text); font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.8; padding: 16px;
  caret-color: var(--purple-light);
}
.peh-page .tool-textarea::placeholder { color: var(--text-dim); }

.peh-page .out-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 6px; }
.peh-page .out-actions { display: flex; align-items: center; gap: 6px; }
.peh-page .out-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-faint); background: none; border: 1px solid var(--border); border-radius: 7px; padding: 5px 10px; font-family: 'Inter', sans-serif; transition: all .15s; }
.peh-page .out-btn:hover { color: var(--text-muted); border-color: var(--border-strong); }
.peh-page .out-btn.copied { color: var(--green); border-color: rgba(74,222,128,.3); }
.peh-page .chg-badge { font-size: 11.5px; font-weight: 600; color: var(--purple-light); background: var(--purple-soft); border: 1px solid var(--purple-border); padding: 3px 9px; border-radius: 5px; display: none; }
.peh-page .chg-badge.show { display: inline-block; }
.peh-page .dl-wrap { position: relative; }
.peh-page .dl-panel { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px; min-width: 210px; z-index: 60; box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.peh-page .dl-panel.open { display: block; }
.peh-page .dl-opt { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 9px 10px; font-size: 13px; color: var(--text-muted); border-radius: 7px; font-family: 'Inter', sans-serif; transition: all .15s; text-align: left; }
.peh-page .dl-opt:hover { background: rgba(255,255,255,.06); color: var(--text); }
.peh-page .dl-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.peh-page .dl-icon.drive { background: rgba(26,115,232,.15); border: 1px solid rgba(26,115,232,.3); }
.peh-page .dl-icon.pdf { background: rgba(229,62,62,.12); border: 1px solid rgba(229,62,62,.25); }
.peh-page .dl-icon.docx { background: rgba(25,103,210,.12); border: 1px solid rgba(25,103,210,.25); }
.peh-page .dl-disc { font-size: 10.5px; color: var(--text-dim); padding: 7px 10px 4px; border-top: 1px solid var(--border); margin-top: 4px; line-height: 1.5; }

.peh-page .out-content { flex: 1; position: relative; min-height: 320px; }
.peh-page .out-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-dim); padding: 24px; text-align: center; }
.peh-page .out-ph svg { opacity: .12; }
.peh-page .out-ph p { font-size: 13px; line-height: 1.6; }
.peh-page .out-ph .ph-detail { font-size: 12px; opacity: .6; }
.peh-page .out-load { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px; }
.peh-page .out-load.show { display: flex; }
.peh-page .orb { position: relative; width: 52px; height: 52px; }
.peh-page .orb-ring { position: absolute; inset: 0; border: 2.5px solid transparent; border-top-color: var(--purple); border-right-color: var(--purple-light); border-radius: 50%; animation: peh-spin 1.4s linear infinite; }
.peh-page .orb-ring.inner { inset: 12px; border-top-color: var(--yellow); border-right-color: transparent; animation-duration: .9s; animation-direction: reverse; }
.peh-page .orb-core { position: absolute; inset: 20px; background: linear-gradient(135deg, var(--purple), var(--purple-light)); border-radius: 50%; box-shadow: 0 0 20px var(--purple-glow); animation: peh-pulse 1.5s ease-in-out infinite; }
@keyframes peh-spin { to { transform: rotate(360deg); } }
@keyframes peh-pulse {
  0%,100% { transform: scale(.9); opacity: .7; }
  50%     { transform: scale(1.1); opacity: 1; }
}
.peh-page .load-steps { display: flex; flex-direction: column; gap: 8px; }
.peh-page .load-step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); transition: color .3s; }
.peh-page .load-step.active { color: var(--text-muted); }
.peh-page .load-step.done { color: var(--green); opacity: .7; }
.peh-page .step-dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 9px; }
.peh-page .load-step.active .step-dot { border-color: var(--purple-light); animation: peh-stepglow 1s infinite; }
@keyframes peh-stepglow {
  0%,100% { box-shadow: 0 0 0 0 var(--purple-glow); }
  50%     { box-shadow: 0 0 0 4px var(--purple-glow); }
}
.peh-page .out-result { display: none; padding: 16px; font-size: 14px; line-height: 1.8; color: var(--text-muted); overflow-y: auto; max-height: 380px; user-select: none; }
.peh-page .out-result.show { display: block; }
.peh-page .diff-w { background: rgba(211, 6, 244, 0.15); color: var(--purple-light); border-radius: 3px; padding: 0 2px; }
.peh-page .score-strip { display: none; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--bg-soft); flex-wrap: wrap; }
.peh-page .score-strip.show { display: flex; }
.peh-page .score-label { font-size: 12px; color: var(--text-faint); }
.peh-page .score-val { font-size: 13px; font-weight: 700; color: var(--purple-light); background: var(--purple-soft); border: 1px solid var(--purple-border); padding: 3px 10px; border-radius: 6px; }
.peh-page .score-pass { font-size: 11.5px; font-weight: 600; color: var(--green); background: var(--green-soft); border: 1px solid rgba(74,222,128,.2); padding: 3px 9px; border-radius: 5px; }

/* Gates */
.peh-page .gate-bar { display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; flex-wrap: wrap; }
.peh-page .gate-bar.show { display: flex; }
.peh-page .gate-anon { background: rgba(211, 6, 244, 0.07); border-top: 1px solid var(--purple-border); }
.peh-page .gate-free,
.peh-page .gate-paid { background: rgba(250,204,21,.04); border-top: 1px solid rgba(250,204,21,.2); }
.peh-page .gate-txt { font-size: 13px; color: var(--text-muted); }
.peh-page .gate-acts { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.peh-page .gbtn-pu { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #fff; background: var(--purple); border: none; border-radius: 8px; padding: 8px 16px; font-family: 'Inter', sans-serif; transition: all .15s; }
.peh-page .gbtn-pu:hover { background: var(--purple-dark); box-shadow: 0 4px 16px var(--purple-glow); }
.peh-page .gbtn-ye { font-size: 13px; font-weight: 700; color: var(--yellow-text); background: var(--yellow); border: none; border-radius: 8px; padding: 8px 16px; font-family: 'Inter', sans-serif; transition: all .15s; }
.peh-page .gbtn-ye:hover { background: var(--yellow-dark); box-shadow: 0 0 20px var(--yellow-glow); }
.peh-page .gate-link { font-size: 12.5px; color: var(--text-faint); text-decoration: underline; text-underline-offset: 2px; }
.peh-page .gate-link:hover { color: var(--text-muted); }

/* Tool footer */
.peh-page .tool-footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.peh-page .footer-left { display: flex; flex-direction: column; gap: 7px; padding: 13px 20px; border-right: 1px solid var(--border); background: var(--bg-soft); }
.peh-page .footer-btn-row { display: flex; align-items: center; gap: 8px; }
.peh-page .clear-btn { font-size: 12.5px; font-weight: 600; color: var(--text-faint); background: none; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: 'Inter', sans-serif; transition: all .15s; flex-shrink: 0; }
.peh-page .clear-btn:hover { color: var(--text-muted); border-color: var(--border-strong); }
@keyframes peh-btn-breathe {
  0%,100% { box-shadow: none; }
  50%     { box-shadow: 0 0 28px 4px rgba(211, 6, 244, 0.35); }
}
.peh-page .hum-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); border: none; border-radius: 9px; padding: 10px 20px; font-family: 'Inter', sans-serif; transition: all .2s; box-shadow: 0 4px 20px var(--purple-glow); animation: peh-btn-breathe 3s ease-in-out infinite; }
.peh-page .hum-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px var(--purple-glow); animation: none; }
.peh-page .hum-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; animation: none; }
.peh-page .limit-note { font-size: 11px; color: var(--text-dim); line-height: 1.5; }
.peh-page .limit-note a { color: var(--purple-light); font-weight: 600; }
.peh-page .limit-note a:hover { color: var(--text-muted); }
.peh-page .footer-right { display: flex; align-items: stretch; background: var(--bg-soft); }
.peh-page .hire-footer {
  display: none; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 20px; width: 100%;
  border-left: 1px solid rgba(250,204,21,.15);
  background: linear-gradient(135deg, rgba(250,204,21,.04), rgba(211, 6, 244, 0.04));
}
.peh-page .hire-footer.show { display: flex; }
.peh-page .hire-footer-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.peh-page .hire-footer-headline { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peh-page .hire-footer-sub { font-size: 11px; color: var(--text-faint); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peh-page .hire-footer-action { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.peh-page .hire-footer-cta {
  position: relative;
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 800; color: var(--yellow-text);
  background: var(--yellow); padding: 7px 14px; border-radius: 7px;
  white-space: nowrap; transition: all .15s;
  box-shadow: 0 2px 8px rgba(250,204,21,.2);
  overflow: hidden; isolation: isolate;
}
.peh-page .hire-footer-cta:hover { background: var(--yellow-dark); box-shadow: 0 0 20px var(--yellow-glow); transform: translateY(-1px); }
/* Diagonal shine sweep — mirrors the paraphrasing-tool hire CTA */
.peh-page .hire-footer-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 35%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: peh-hire-shine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.peh-page .hire-footer-cta > * { position: relative; z-index: 1; }
@keyframes peh-hire-shine {
  0%   { left: -40%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .peh-page .hire-footer-cta::before { animation: none; }
}
.peh-page .hire-footer-note { font-size: 10px; color: var(--text-dim); white-space: nowrap; }
@media (max-width: 720px) {
  .peh-page .tool-footer { grid-template-columns: 1fr; }
  .peh-page .footer-left { border-right: none; border-bottom: 1px solid var(--border); }
}

/* =========================================================
   PROOF STRIP
   ========================================================= */
.peh-page .proof-wrap { max-width: 1160px; margin: 28px auto 0; padding: 0 20px; }
.peh-page .proof-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 28px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 0; }
.peh-page .proof-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-right: 20px; white-space: nowrap; }
.peh-page .proof-dets { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.peh-page .proof-item { display: flex; align-items: center; gap: 7px; padding: 0 18px; font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.peh-page .proof-item:not(:last-child) { border-right: 1px solid var(--border); }
.peh-page .proof-chk { width: 18px; height: 18px; background: var(--green-soft); border: 1px solid rgba(74,222,128,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.peh-page .proof-claim { font-size: 12px; color: var(--text-dim); text-align: center; padding-top: 12px; border-top: 1px solid var(--border); width: 100%; line-height: 1.6; }
.peh-page .proof-chk.spinning { background: transparent; border: none; }
.peh-page .proof-chk.spinning svg { display: none; }
.peh-page .proof-chk.spinning::after {
  content: '';
  display: block; width: 14px; height: 14px;
  border: 2px solid rgba(211, 6, 244, 0.30);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: peh-detectorSpin 0.7s linear infinite;
}
@keyframes peh-detectorSpin { to { transform: rotate(360deg); } }
.peh-page .proof-item.scanning { color: var(--text-faint); }
.peh-page .proof-item.scanning .proof-chk { background: transparent; border: none; width: 18px; height: 18px; }

/* =========================================================
   SECTION BASE
   ========================================================= */
.peh-page .sec { max-width: 1160px; margin: 0 auto; padding: 76px 20px; }
.peh-page .sec-eyebrow { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 12px; text-align: center; }
.peh-page .sec-h2 { font-size: clamp(25px, 4vw, 38px); font-weight: 800; text-align: center; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 14px; color: var(--text); }
.peh-page .sec-sub { font-size: 16px; color: var(--text-muted); text-align: center; max-width: 580px; margin: 0 auto 52px; line-height: 1.65; }
.peh-page .sec-divider { border: none; border-top: 1px solid var(--border); max-width: 1160px; margin: 0 auto; }

/* HOW IT WORKS */
.peh-page .hiw-grid { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.peh-page .hiw-step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.peh-page .hiw-step:last-child { border-bottom: none; }
.peh-page .hiw-num { width: 42px; height: 42px; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 4px 16px var(--purple-glow); }
.peh-page .hiw-title { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.peh-page .hiw-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.peh-page .hiw-desc a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }

/* STATS STRIP */
.peh-page .stats-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.peh-page .stats-inner { max-width: 1160px; margin: 0 auto; padding: 30px 20px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.peh-page .stat-item { text-align: center; padding: 0 48px; }
.peh-page .stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 5px; background: linear-gradient(135deg, var(--purple-light), var(--yellow)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.peh-page .stat-lbl { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.peh-page .stat-sep { width: 1px; height: 36px; background: var(--border-strong); }
@media (max-width: 560px) {
  .peh-page .stat-item { padding: 0 18px; }
  .peh-page .stat-sep { display: none; }
  .peh-page .stats-inner { gap: 24px; }
}

/* JONAS */
.peh-page .jonas-center { text-align: center; margin-bottom: 36px; }
.peh-page .jonas-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--purple-light); background: var(--purple-soft); border: 1px solid var(--purple-border); padding: 7px 14px; border-radius: 8px; }
.peh-page .jonas-intro { max-width: 820px; margin: 0 auto 48px; }
.peh-page .jonas-intro p { font-size: 15px; color: var(--text-muted); line-height: 1.8; text-align: center; }
.peh-page .jonas-intro p + p { margin-top: 16px; }
.peh-page .jonas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .peh-page .jonas-grid { grid-template-columns: 1fr; } }
.peh-page .jcard { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all .22s; }
.peh-page .jcard:hover { border-color: var(--purple-border); transform: translateY(-3px); box-shadow: 0 10px 28px var(--purple-glow); }
.peh-page .jcard-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.peh-page .jcard-icon.p { background: var(--purple-soft); border: 1px solid var(--purple-border); }
.peh-page .jcard-icon.y { background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.25); }
.peh-page .jcard-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; color: var(--text); }
.peh-page .jcard-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; }

/* ESSAY TYPES */
.peh-page .types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 800px) { .peh-page .types-grid { grid-template-columns: repeat(2, 1fr); } }
.peh-page .type-chip { display: flex; align-items: center; gap: 9px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; transition: all .18s; }
.peh-page .type-chip:hover { border-color: var(--purple-border); background: var(--bg-elevated); transform: translateY(-1px); }
.peh-page .type-ico { font-size: 18px; flex-shrink: 0; }
.peh-page .type-name { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.peh-page .types-note { font-size: 13.5px; color: var(--text-faint); text-align: center; margin-top: 26px; line-height: 1.65; }
.peh-page .types-note a { color: var(--purple-light); font-weight: 600; }

/* FAQ */
.peh-page .faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.peh-page .faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.peh-page .faq-item.open { border-color: var(--purple-border); }
.peh-page .faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 20px; font-size: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: 'Inter', sans-serif; transition: background .15s, transform .15s ease; }
.peh-page .faq-q:hover { background: rgba(255,255,255,.03); transform: translateX(3px); }
.peh-page .faq-icon { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: flex; justify-content: center; flex-shrink: 0; font-size: 14px; color: var(--text-faint); transition: all .22s; font-weight: 300; line-height: 130%; }
.peh-page .faq-item.open .faq-icon { border-color: var(--purple-border); color: var(--purple-light); background: var(--purple-soft); transform: rotate(45deg); }
.peh-page .faq-a { display: none; padding: 0 20px 18px; }
.peh-page .faq-a.open { display: block; }
.peh-page .faq-a p { font-size: 13.5px; color: var(--text-muted); line-height: 1.8; }
.peh-page .faq-a a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }

/* RELATED */
.peh-page .rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 700px; margin: 0 auto; }
@media (max-width: 520px) { .peh-page .rel-grid { grid-template-columns: 1fr; } }
.peh-page .rel-card { display: flex; gap: 13px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: all .2s; }
.peh-page .rel-card:hover { border-color: var(--purple-border); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.peh-page .rel-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.peh-page .rel-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.peh-page .rel-desc { font-size: 12px; color: var(--text-faint); }
.peh-page .rel-arrow { font-size: 16px; color: var(--text-dim); margin-left: auto; transition: all .15s; display: flex; align-items: center; }
.peh-page .rel-card:hover .rel-arrow { transform: translateX(3px); color: var(--purple-light); }

/* FINAL CTA */
.peh-page .final-cta { background: linear-gradient(135deg, rgba(211, 6, 244, 0.10), rgba(211, 6, 244, 0.03)); border-top: 1px solid var(--purple-border); padding: 88px 20px; text-align: center; }
.peh-page .cta-inner { max-width: 560px; margin: 0 auto; }
.peh-page .cta-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 14px; display: block; }
.peh-page .cta-h2 { font-size: clamp(26px, 4.5vw, 42px); font-weight: 900; letter-spacing: -.03em; line-height: 1.08; margin-bottom: 14px; color: var(--text); }
.peh-page .cta-h2 em { font-style: normal; background: linear-gradient(120deg, #FFFFFF 0%, #C77DFF 40%, #FACC15 60%, #FFFFFF 100%); background-size: 250% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: peh-shimmer 5s linear infinite; }
.peh-page .cta-sub { font-size: 16px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.65; }
.peh-page .cta-acts { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.peh-page .cta-pri { font-size: 15px; font-weight: 800; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: #fff; padding: 15px 32px; border-radius: 10px; border: none; font-family: 'Inter', sans-serif; transition: all .18s; box-shadow: 0 4px 22px var(--purple-glow); }
.peh-page .cta-pri:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--purple-glow); background-size: 200% auto; }
.peh-page .cta-sec { font-size: 14px; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border-strong); padding: 14px 24px; border-radius: 10px; transition: all .18s; display: inline-block; }
.peh-page .cta-sec:hover { color: var(--text); border-color: var(--purple-border); background: var(--purple-soft); }
.peh-page .cta-note { font-size: 12px; color: var(--text-dim); }

/* =========================================================
   ANIMATIONS
   ========================================================= */
.peh-page .anim-fade-up { opacity: 0; transform: translateY(28px); transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.peh-page .anim-fade-up.in-view { opacity: 1; transform: translateY(0); }
.peh-page .anim-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1); }
.peh-page .anim-stagger.in-view > *:nth-child(1)   { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.peh-page .anim-stagger.in-view > *:nth-child(2)   { opacity: 1; transform: translateY(0); transition-delay: .12s; }
.peh-page .anim-stagger.in-view > *:nth-child(3)   { opacity: 1; transform: translateY(0); transition-delay: .19s; }
.peh-page .anim-stagger.in-view > *:nth-child(4)   { opacity: 1; transform: translateY(0); transition-delay: .26s; }
.peh-page .anim-stagger.in-view > *:nth-child(5)   { opacity: 1; transform: translateY(0); transition-delay: .33s; }
.peh-page .anim-stagger.in-view > *:nth-child(6)   { opacity: 1; transform: translateY(0); transition-delay: .40s; }
.peh-page .anim-stagger.in-view > *:nth-child(7)   { opacity: 1; transform: translateY(0); transition-delay: .47s; }
.peh-page .anim-stagger.in-view > *:nth-child(8)   { opacity: 1; transform: translateY(0); transition-delay: .54s; }
.peh-page .anim-stagger.in-view > *:nth-child(n+9) { opacity: 1; transform: translateY(0); transition-delay: .60s; }
.peh-page .anim-eyebrow { opacity: 0; transform: translateX(-12px); transition: opacity .4s ease, transform .4s ease; }
.peh-page .anim-eyebrow.in-view { opacity: 1; transform: translateX(0); }

@media (max-width: 480px) {
  .peh-page .sec { padding: 56px 16px; }
  .peh-page .proof-item { padding: 0 10px; font-size: 12px; }
  .peh-page .proof-label { display: none; }
  .peh-page .stat-item { padding: 0 12px; }
}
@media (max-width: 400px) {
  .peh-page .tool-head { padding: 10px 12px; gap: 6px; }
  .peh-page .tool-free-label { font-size: 11px; }
  .peh-page .mode-bar { padding: 0 12px; }
  .peh-page .panel-head { padding: 8px 12px; }
  .peh-page .tool-textarea { padding: 12px; }
  .peh-page .footer-left { padding: 10px 12px; }
  .peh-page .sec { padding: 48px 16px; }
  .peh-page .hero { padding: 40px 16px 0; }
  .peh-page .proof-card { padding: 14px 16px; }
  .peh-page .proof-item { padding: 0 10px; font-size: 11.5px; }
  .peh-page .stat-item { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .peh-page *, .peh-page *::before, .peh-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .peh-page .hero-h1 em,
  .peh-page .cta-h2 em {
    animation: none;
    -webkit-text-fill-color: var(--text);
    background: none;
  }
  .peh-page .hero-orb { animation: none; }
}

/* =========================================================
   MODALS — render outside .peh-page, so use bare class
   selectors. Tokens inherited via :root mirror at top.
   ========================================================= */
.peh-page .overlay,
.peh-modal-root .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: peh-overlayFade .25s ease;
}
.peh-page .overlay.open,
.peh-modal-root .overlay.open { display: flex; }
@keyframes peh-overlayFade { from { opacity: 0; } to { opacity: 1; } }

.peh-modal-root,
.peh-modal-root * { box-sizing: border-box; }
.peh-modal-root .modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  animation: peh-modalRise .3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 24px 72px rgba(0,0,0,.7);
  position: relative;
  overflow: hidden;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.peh-modal-root .modal-box::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--yellow), transparent);
}
.peh-modal-root .up-box { max-width: 740px; max-height: 90vh; overflow-y: auto; }
@keyframes peh-modalRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.peh-modal-root .modal-close { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; background: none; border: none; color: var(--text-faint); display: flex; align-items: center; justify-content: center; border-radius: 7px; transition: all .15s; z-index: 1; cursor: pointer; }
.peh-modal-root .modal-close:hover { background: rgba(255,255,255,.07); color: var(--text); }
.peh-modal-root .modal-head { padding: 28px 28px 0; text-align: center; }
.peh-modal-root .modal-icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--purple-glow); border: 1px solid var(--purple-border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.peh-modal-root .modal-title { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 7px; color: var(--text); }
.peh-modal-root .modal-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 0 0 22px; }
.peh-modal-root .modal-body { padding: 0 28px 28px; }
.peh-modal-root .modal-bens { background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.peh-modal-root .modal-ben { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-muted); }
.peh-modal-root .ben-chk { width: 18px; height: 18px; background: var(--purple-glow); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.peh-modal-root .modal-email { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: 9px; padding: 13px 14px; color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; outline: none; transition: all .15s; margin-bottom: 10px; }
.peh-modal-root .modal-email:focus { border-color: var(--purple-border); box-shadow: 0 0 0 3px rgba(211, 6, 244, 0.12); }
.peh-modal-root .modal-cta-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--purple), var(--purple-dark)); color: #fff; border: none; border-radius: 10px; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 6px 20px var(--purple-glow); margin-bottom: 10px; }
.peh-modal-root .modal-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px var(--purple-glow); }
.peh-modal-root .modal-dismiss { font-size: 12px; color: var(--text-dim); text-align: center; cursor: pointer; transition: color .15s; margin: 0; }
.peh-modal-root .modal-dismiss:hover { color: var(--text-faint); }
.peh-modal-root .up-head { padding: 28px 28px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.peh-modal-root .up-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 20px 20px 0; }
@media (max-width: 500px) { .peh-modal-root .up-plans { grid-template-columns: 1fr; } .peh-page .hero-orb-2{ display: none; } .peh-page .tool-badge{ display: none; } .peh-page .hire-footer{ padding: 10px 20px; } .peh-page .hire-footer-action{ align-items: center; } .peh-page .proof-dets{ gap: 20px 0; } }
.peh-modal-root .up-plan { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.peh-modal-root .up-plan.feat { border-color: var(--purple-border); background: linear-gradient(135deg, rgba(211, 6, 244, 0.09), rgba(211, 6, 244, 0.03)); }
.peh-modal-root .up-name { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.peh-modal-root .up-plan.feat .up-name { color: var(--purple-light); }
.peh-modal-root .up-price { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.peh-modal-root .up-price span { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.peh-modal-root .up-words { font-size: 11.5px; font-weight: 700; color: var(--purple-light); background: var(--purple-soft); border: 1px solid var(--purple-border); padding: 3px 9px; border-radius: 5px; margin: 8px 0 14px; display: inline-block; }
.peh-modal-root .up-btn { width: 100%; padding: 10px; font-size: 13px; font-weight: 700; border-radius: 8px; border: none; cursor: pointer; font-family: 'Inter', sans-serif; transition: all .15s; }
.peh-modal-root .up-btn.def { background: rgba(255,255,255,.07); color: var(--text-muted); }
.peh-modal-root .up-btn.def:hover { background: rgba(255,255,255,.11); color: var(--text); }
.peh-modal-root .up-btn.feat { background: var(--purple); color: #fff; box-shadow: 0 4px 16px var(--purple-glow); }
.peh-modal-root .up-btn.feat:hover { background: var(--purple-dark); }
.peh-modal-root .up-hire { padding: 16px 20px 20px; text-align: center; font-size: 13px; color: var(--text-faint); }
.peh-modal-root .up-hire a { color: var(--yellow); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Tokens for the modal root that lives outside .peh-page —
   mirrors the paraphrasing palette so modals match the page. */
.peh-modal-root {
  --bg:            #0A0A0F;
  --bg-soft:       #13131C;
  --bg-card:       #1A1A26;
  --bg-input:      #0F0F18;
  --bg-elevated:   #23233A;
  --purple:        #D306F4;
  --purple-dark:   #5700E6;
  --purple-soft:   rgba(168, 85, 247, 0.08);
  --purple-glow:   rgba(211, 6, 244, 0.22);
  --purple-border: rgba(168, 85, 247, 0.30);
  --purple-light:  #C77DFF;
  --yellow:        #FACC15;
  --yellow-dark:   #EAB308;
  --yellow-text:   #1A1A26;
  --yellow-glow:   rgba(250, 204, 21, 0.20);
  --yellow-border: rgba(250, 204, 21, 0.35);
  --green:         #4ADE80;
  --green-soft:    rgba(74, 222, 128, 0.10);
  --red:           #F87171;
  --text:          #FFFFFF;
  --text-muted:    #E2E2EE;
  --text-faint:    #9898A8;
  --text-dim:      #707082;
  --text-extra-faint: #707082;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --radius:        12px;
  --radius-lg:     18px;
}

/* =========================================================
   H1 — high-specificity overrides so legacy site CSS can't
   shrink the heading or recolour it. Mirrors the reference
   styles exactly, with extra selector weight so any single-
   class legacy rule loses.
   ========================================================= */
.peh-page h1.hero-h1,
.peh-page .hero h1.hero-h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 6vw, 32px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.03em !important;
  margin: 0;
  padding: 0 !important;
  color: #FFFFFF;
  text-align: center;
  text-transform: none;
}

.peh-page h1.hero-h1 .h1-eyebrow {
  display: block;
  width: fit-content;
  margin: 0 auto 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #C77DFF;
  padding: 6px 14px;
  background: rgba(168, 85, 247, .08);
  border: 1px solid rgba(168, 85, 247, .28);
  border-radius: 100px;
  line-height: 1.4;
}

.peh-page h1.hero-h1 .h1-promise {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 800;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: #FFFFFF;
  max-width: 630px;
  display: block;
  margin: 0 auto;
  line-height: 1.5;
}

.peh-page h1.hero-h1 .h1-promise em,
.peh-page h1.hero-h1 em {
  font-style: normal;
  font-weight: 800;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: linear-gradient(120deg, #FFFFFF 0%, #C77DFF 40%, #FACC15 60%, #FFFFFF 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: peh-shimmer 5s linear infinite;
}

.peh-page h1.hero-h1 .hero-eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ADE80;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: peh-livePulse 2s ease-in-out infinite, peh-glow-pulse 2.2s ease-in-out infinite;
}

/* =========================================================
   TYPOGRAPHY — Inter everywhere, Space Grotesk on headings.
   High-specificity rules so the legacy site's *, body{font-family:Inter}
   can't bleed through and override the Space Grotesk headings.
   ========================================================= */
.peh-page,
.peh-page *,
.peh-page button,
.peh-page input,
.peh-page select,
.peh-page textarea {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.peh-page h1,
.peh-page h2,
.peh-page h3,
.peh-page h4,
.peh-page h5,
.peh-page h6,
.peh-page .hero-h1,
.peh-page .h1-promise,
.peh-page .h1-promise em,
.peh-page .hero-h1 em,
.peh-page .sec-h2,
.peh-page .cta-h2,
.peh-page .cta-h2 em,
.peh-page .stat-num,
.peh-page .up-price,
.peh-page .hire-title {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}

/* Modals (live outside .peh-page) — apply same rules to the modal root */
.peh-modal-root,
.peh-modal-root *,
.peh-modal-root button,
.peh-modal-root input {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.peh-modal-root .modal-title,
.peh-modal-root .up-price,
.peh-modal-root h1,
.peh-modal-root h2,
.peh-modal-root h3,
.peh-modal-root h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}
