/* ================================================================
 * AI Essay Checker (AI Detector) — scoped under .ped-tool so it
 * never collides with site nav/footer/modal styles. Palette favors
 * red/orange for risk + a touch of yellow for the hire-writer CTA.
 * ================================================================ */
 *, body {
    font-weight: 400;
    font-family: 'Inter', system-ui, sans-serif;
}
h1, h2, h3 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-weight: 700!important;
    letter-spacing: -0.02em;
}
.ped-tool {
  --ped-bg: #0A0A0F;
  --ped-bg-soft: #13131C;
  --ped-bg-card: #1A1A26;
  --ped-bg-input: #0F0F18;
  --ped-bg-elevated: #23233A;

  /* Site-wide brand purple, matches the paraphrasing/grader tools and
     the pricing gradient (#D306F4 → #5700E6). */
  --ped-purple: #D306F4;
  --ped-purple-light: #c77dff;
  --ped-purple-dark: #5700E6;
  --ped-purple-soft: rgba(168, 85, 247, 0.08);
  --ped-purple-glow: rgba(211, 6, 244, 0.22);
  --ped-purple-border: rgba(168, 85, 247, 0.3);

  --ped-yellow: #FACC15;
  --ped-yellow-dark: #EAB308;
  --ped-yellow-text: #1A1A26;
  --ped-yellow-soft: rgba(250, 204, 21, 0.08);
  --ped-yellow-border: rgba(250, 204, 21, 0.35);

  --ped-text: #FFFFFF;
  --ped-text-muted: #e2e2ee;
  --ped-text-faint: #9898a8;
  --ped-text-xfaint: #707082;

  --ped-border: rgba(255, 255, 255, 0.08);
  --ped-border-strong: rgba(255, 255, 255, 0.14);

  --ped-green: #4ADE80;
  --ped-green-soft: rgba(74, 222, 128, 0.12);
  --ped-green-border: rgba(74, 222, 128, 0.3);
  --ped-red: #F87171;
  --ped-red-soft: rgba(248, 113, 113, 0.12);
  --ped-red-border: rgba(248, 113, 113, 0.3);
  --ped-orange: #FB923C;
  --ped-orange-soft: rgba(251, 146, 60, 0.12);
  --ped-orange-border: rgba(251, 146, 60, 0.3);

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ped-bg);
  color: var(--ped-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  display: block;
  background-image:
    radial-gradient(ellipse at top left, rgba(211, 6, 244, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(87, 0, 230, 0.05) 0%, transparent 50%);
  padding-top: 120px;
  padding-bottom: 60px;
}

.ped-tool *,
.ped-tool *::before,
.ped-tool *::after { box-sizing: border-box; }

.ped-tool h1,
.ped-tool h2,
.ped-tool h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ped-text);
}
.ped-tool button { font-family: inherit; }
.ped-tool a { color: inherit; text-decoration: none; }

/* ============ HERO ============ */
.ped-tool .ped-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 12px;
  text-align: center;
}
.ped-tool .ped-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ped-purple-light);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: var(--ped-purple-soft);
  border: 1px solid var(--ped-purple-border);
  border-radius: 100px;
}
.ped-tool .ped-live-dot {
  width: 6px; height: 6px;
  background: var(--ped-green); border-radius: 50%;
  box-shadow: 0 0 8px var(--ped-green);
  animation: pedLivePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pedLivePulse { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 250% center; }
}
.ped-tool .ped-hero-h1 {
  font-size: 46px; font-weight: 700; line-height: 1.05;
  margin-bottom: 16px;
}
.ped-tool .ped-hero-h1 em {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
  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: shimmer 5s linear infinite;
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ped-tool .ped-hero-sub {
  font-size: 16px; color: var(--ped-text-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

/* ============ TOOL CARD ============ */
.ped-tool .ped-tool-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 40px 8px;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ped-tool .ped-tool-wrap.ped-expanded { max-width: 1140px; }
.ped-tool .ped-tool-card {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.ped-tool .ped-tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 85, 247, 0.6) 40%, rgba(250, 204, 21, 0.35) 70%, transparent 100%);
  z-index: 1;
}

/* ============ INPUT STATE ============ */
.ped-tool .ped-input-state {
  padding: 26px 28px 22px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.ped-tool .ped-input-state.ped-gone { display: none; }

.ped-tool .ped-essay-bar {
  display: flex; align-items: center; justify-content: space-between;
}
.ped-tool .ped-essay-lbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ped-text-faint);
}
.ped-tool .ped-word-ct {
  font-size: 11px; color: var(--ped-text-faint);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
}
.ped-tool .ped-word-ct.ped-live { color: var(--ped-text-muted); }
.ped-tool .ped-word-ct.ped-warn { color: var(--ped-orange); }
.ped-tool .ped-word-ct.ped-over { color: var(--ped-red); font-weight: 700; }

.ped-tool .ped-textarea-wrap {
  display: flex; flex-direction: column;
  background: var(--ped-bg-input);
  border: 1px solid var(--ped-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ped-tool .ped-textarea-wrap:focus-within {
  border-color: var(--ped-purple-border);
  box-shadow: 0 0 0 3px var(--ped-purple-soft);
}
.ped-tool .ped-main-ta {
  width: 100%;
  background: transparent; border: none; outline: none;
  color: var(--ped-text);
  font-family: inherit; font-size: 14px; line-height: 1.7;
  padding: 16px 18px 14px;
  resize: none;
  min-height: 220px; max-height: 360px;
  overflow-y: auto; flex-shrink: 0;
}
.ped-tool .ped-main-ta::placeholder { color: var(--ped-text-xfaint); }
.ped-tool .ped-ta-actions {
  display: flex; align-items: center;
  gap: 2px;
  padding: 7px 10px;
  background: var(--ped-bg-input);
  border-top: 1px solid var(--ped-border);
  flex-shrink: 0;
}
.ped-tool .ped-ta-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none;
  color: var(--ped-text-faint);
  font-family: inherit; font-size: 12px; font-weight: 500;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.ped-tool .ped-ta-btn:hover {
  color: var(--ped-text);
  background: var(--ped-bg-elevated);
}
.ped-tool .ped-ta-btn svg { width: 12px; height: 12px; }
.ped-tool .ped-ta-hint { font-size: 10px; color: var(--ped-text-xfaint); }

.ped-tool .ped-limit-banner {
  display: none; align-items: center; gap: 8px;
  padding: 9px 14px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--ped-red-border);
  border-radius: 10px;
  font-size: 12.5px; color: var(--ped-red); font-weight: 500;
}
.ped-tool .ped-limit-banner.ped-show { display: flex; }
.ped-tool .ped-limit-banner svg { width: 14px; height: 14px; flex-shrink: 0; }
.ped-tool .ped-limit-banner a {
  color: var(--ped-yellow); font-weight: 700;
}

.ped-tool .ped-btn-scan {
  width: 100%;
  background: linear-gradient(246.87deg, var(--ped-purple) -2.66%, var(--ped-purple-dark) 98.71%);
  color: #fff; border: none;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(211, 6, 244, 0.35);
  position: relative; overflow: hidden;
  margin-top: 4px;
}
.ped-tool .ped-btn-scan::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.ped-tool .ped-btn-scan:hover::before { transform: translateX(100%); }
.ped-tool .ped-btn-scan:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(211, 6, 244, 0.45);
}
.ped-tool .ped-btn-scan:disabled {
  opacity: 0.4; cursor: not-allowed;
  transform: none; box-shadow: none;
}
.ped-tool .ped-btn-scan svg { width: 15px; height: 15px; }

/* Usage meter (input view) */
.ped-tool .ped-usage-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: var(--ped-bg-input);
  border: 1px solid var(--ped-border);
  border-radius: 10px;
}
.ped-tool .ped-usage-col {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.ped-tool .ped-usage-label {
  font-size: 12px; font-weight: 600; color: var(--ped-text-faint);
}
.ped-tool .ped-usage-track {
  height: 3px;
  background: var(--ped-bg-elevated);
  border-radius: 100px; overflow: hidden;
}
.ped-tool .ped-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ped-purple), var(--ped-purple-light));
  border-radius: 100px;
  width: 0%;
  transition: width 0.5s;
}
.ped-tool .ped-usage-nums {
  font-size: 11px; color: var(--ped-text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ped-tool .ped-usage-up {
  font-size: 12px; font-weight: 700;
  color: var(--ped-yellow);
  cursor: pointer; background: none; border: none;
  font-family: inherit;
  transition: color 0.15s;
  white-space: nowrap;
}
.ped-tool .ped-usage-up:hover { color: var(--ped-yellow-dark); }

/* ============ SCAN STATE ============ */
.ped-tool .ped-scan-state {
  display: none; flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  gap: 26px;
  text-align: center;
}
.ped-tool .ped-scan-state.ped-on { display: flex; }
.ped-tool .ped-scan-orb { width: 76px; height: 76px; position: relative; }
.ped-tool .ped-orb-ring {
  position: absolute; inset: 0;
  border: 2.5px solid transparent;
  border-top-color: var(--ped-purple);
  border-right-color: var(--ped-purple-light);
  border-radius: 50%;
  animation: pedSpin 1.4s linear infinite;
}
.ped-tool .ped-orb-ring.ped-inner {
  inset: 15px;
  border-top-color: var(--ped-yellow);
  border-right-color: transparent;
  animation-duration: 0.9s;
  animation-direction: reverse;
}
.ped-tool .ped-orb-core {
  position: absolute; inset: 26px;
  background: linear-gradient(135deg, var(--ped-purple), var(--ped-purple-dark));
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(211, 6, 244, 0.45);
  animation: pedPulse 1.5s ease-in-out infinite;
}
@keyframes pedSpin { to { transform: rotate(360deg); } }
@keyframes pedPulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(0.85); }
}
.ped-tool .ped-scan-lbl {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--ped-text);
  min-height: 22px;
  transition: opacity 0.25s;
}
.ped-tool .ped-scan-lbl.ped-fade { opacity: 0; }
.ped-tool .ped-scan-track {
  width: 260px; height: 3px;
  background: var(--ped-bg-elevated);
  border-radius: 100px; overflow: hidden;
}
.ped-tool .ped-scan-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ped-purple-dark), var(--ped-purple), var(--ped-purple-light));
  border-radius: 100px;
  width: 0%;
  transition: width 0.4s ease;
}
.ped-tool .ped-scan-feed {
  width: 100%; max-width: 540px;
  background: var(--ped-bg-input);
  border: 1px solid var(--ped-border);
  border-radius: 14px;
  padding: 14px 18px;
  height: 76px; overflow: hidden;
  position: relative;
}
.ped-tool .ped-scan-feed::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 36px;
  background: linear-gradient(transparent, var(--ped-bg-input));
  pointer-events: none;
}
.ped-tool .ped-feed-line {
  font-size: 12.5px; color: var(--ped-text-faint);
  line-height: 1.6;
  opacity: 0; transform: translateY(8px);
  transition: all 0.3s;
}
.ped-tool .ped-feed-line.ped-show {
  opacity: 1; transform: translateY(0);
}
.ped-tool .ped-feed-hl {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.ped-tool .ped-feed-hl.ped-ai { background: var(--ped-red-soft); color: var(--ped-red); }
.ped-tool .ped-feed-hl.ped-ok { background: var(--ped-green-soft); color: var(--ped-green); }
.ped-tool .ped-feed-hl.ped-unk { background: var(--ped-orange-soft); color: var(--ped-orange); }

/* ============ RESULTS STATE ============ */
.ped-tool .ped-results-state {
  display: none; flex-direction: column;
}
.ped-tool .ped-results-state.ped-on { display: flex; }

.ped-tool .ped-score-hdr {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--ped-border);
  display: flex; align-items: flex-start;
  gap: 22px;
  transition: background 0.4s;
}
.ped-tool .ped-score-hdr.ped-risk-high   { background: linear-gradient(135deg, rgba(248,113,113,0.07) 0%, transparent 55%); }
.ped-tool .ped-score-hdr.ped-risk-medium { background: linear-gradient(135deg, rgba(251,146,60,0.07) 0%, transparent 55%); }
.ped-tool .ped-score-hdr.ped-risk-low    { background: linear-gradient(135deg, rgba(74,222,128,0.06) 0%, transparent 55%); }

.ped-tool .ped-gauge-block {
  flex-shrink: 0;
  position: relative;
  width: 180px; height: 180px;
}
.ped-tool .ped-gauge-block.ped-glow-high   { filter: drop-shadow(0 0 18px rgba(248, 113, 113, 0.45)); }
.ped-tool .ped-gauge-block.ped-glow-medium { filter: drop-shadow(0 0 18px rgba(251, 146, 60, 0.45)); }
.ped-tool .ped-gauge-block.ped-glow-low    { filter: drop-shadow(0 0 18px rgba(74, 222, 128, 0.4)); }
.ped-tool .ped-g-svg {
  width: 180px; height: 180px;
  transform: rotate(-90deg);
}
.ped-tool .ped-g-bg {
  fill: none;
  stroke: var(--ped-bg-elevated);
  stroke-width: 10;
}
.ped-tool .ped-g-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 465;
  stroke-dashoffset: 465;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s;
}
.ped-tool .ped-gauge-center {
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: var(--ped-bg-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ped-tool .ped-gauge-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px; font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
  letter-spacing: -0.03em;
}
.ped-tool .ped-gauge-cap {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ped-text-faint);
}

.ped-tool .ped-score-right {
  flex: 1;
  display: flex; flex-direction: column;
  gap: 12px;
  padding-top: 2px;
  min-width: 0;
}
.ped-tool .ped-risk-pill-wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ped-tool .ped-risk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
}
.ped-tool .ped-risk-pill.ped-high { background: var(--ped-red-soft); border: 1px solid var(--ped-red-border); color: var(--ped-red); }
.ped-tool .ped-risk-pill.ped-medium { background: var(--ped-orange-soft); border: 1px solid var(--ped-orange-border); color: var(--ped-orange); }
.ped-tool .ped-risk-pill.ped-low { background: var(--ped-green-soft); border: 1px solid var(--ped-green-border); color: var(--ped-green); }
.ped-tool .ped-risk-pip {
  width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.ped-tool .ped-risk-pill.ped-high .ped-risk-pip {
  background: var(--ped-red);
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
  animation: pedLivePulse 1.4s ease-in-out infinite;
}
.ped-tool .ped-risk-pill.ped-medium .ped-risk-pip { background: var(--ped-orange); }
.ped-tool .ped-risk-pill.ped-low .ped-risk-pip { background: var(--ped-green); }

.ped-tool .ped-score-verdict {
  font-size: 14px; color: var(--ped-text-muted);
  line-height: 1.55;
  max-width: 480px;
}
.ped-tool .ped-score-verdict strong { color: var(--ped-text); }

.ped-tool .ped-score-stats-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ped-tool .ped-sstat {
  display: flex; flex-direction: column;
  gap: 3px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ped-bg-elevated);
  border: 1px solid var(--ped-border);
}
.ped-tool .ped-sstat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--ped-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ped-tool .ped-sstat-l {
  font-size: 10px; color: var(--ped-text-faint);
  font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.ped-tool .ped-sstat-n.ped-c-red { color: var(--ped-red); }
.ped-tool .ped-sstat-n.ped-c-green { color: var(--ped-green); }
.ped-tool .ped-sstat.ped-flagged-card {
  background: var(--ped-red-soft);
  border-color: var(--ped-red-border);
}
.ped-tool .ped-sstat.ped-clean-card {
  background: var(--ped-green-soft);
  border-color: var(--ped-green-border);
}

.ped-tool .ped-btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--ped-border-strong);
  border-radius: 100px;
  color: var(--ped-text-muted);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  margin-left: auto;
  align-self: flex-start;
}
.ped-tool .ped-btn-new:hover {
  color: var(--ped-text);
  background: var(--ped-bg-elevated);
}
.ped-tool .ped-btn-new svg { width: 13px; height: 13px; }

/* Results tabs */
.ped-tool .ped-r-tabs {
  display: flex; align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--ped-border);
  background: var(--ped-bg-soft);
  gap: 2px;
}
.ped-tool .ped-r-tab {
  padding: 13px 14px 11px;
  background: transparent;
  color: var(--ped-text-faint);
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  margin-bottom: -1px;
}
.ped-tool .ped-r-tab:hover { color: var(--ped-text-muted); }
.ped-tool .ped-r-tab.ped-on {
  color: var(--ped-purple-light);
  border-bottom-color: var(--ped-purple);
}
.ped-tool .ped-tab-pane { display: none; }
.ped-tool .ped-tab-pane.ped-on { display: block; }

/* Essay tab */
.ped-tool .ped-essay-layout {
  display: grid;
  grid-template-columns: 1fr 288px;
}
.ped-tool .ped-essay-col {
  padding: 22px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 540px;
  border-right: 1px solid var(--ped-border);
}
.ped-tool .ped-legend-bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 9px 13px;
  background: var(--ped-bg-input);
  border: 1px solid var(--ped-border);
  border-radius: 10px;
}
.ped-tool .ped-leg-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ped-text-xfaint);
}
.ped-tool .ped-leg-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  color: var(--ped-text-muted);
}
.ped-tool .ped-leg-chip {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.ped-tool .ped-leg-chip.ped-ai  { background: rgba(248, 113, 113, 0.45); border: 1px solid var(--ped-red-border); }
.ped-tool .ped-leg-chip.ped-unk { background: rgba(251, 146, 60, 0.35);  border: 1px solid var(--ped-orange-border); }
.ped-tool .ped-leg-chip.ped-hum { background: rgba(74, 222, 128, 0.25);  border: 1px solid var(--ped-green-border); }
.ped-tool .ped-leg-hint {
  font-size: 11px; color: var(--ped-text-xfaint);
  margin-left: auto;
}

.ped-tool .ped-essay-body {
  font-size: 14px; line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}
.ped-tool .ped-essay-body p { margin: 0 0 1.2em; }
.ped-tool .ped-essay-body p:last-child { margin-bottom: 0; }
.ped-tool .ped-s {
  position: relative;
  border-radius: 3px;
  padding: 1px 0;
  transition: opacity 0.4s, background 0.15s;
  cursor: default;
  opacity: 0;
}
.ped-tool .ped-s.ped-revealed { opacity: 1; }
.ped-tool .ped-s.ped-ai {
  background: rgba(248, 113, 113, 0.16);
  border-bottom: 1.5px solid rgba(248, 113, 113, 0.5);
  color: var(--ped-text);
}
.ped-tool .ped-s.ped-unk {
  background: rgba(251, 146, 60, 0.13);
  border-bottom: 1.5px solid rgba(251, 146, 60, 0.4);
  color: var(--ped-text);
}
.ped-tool .ped-s.ped-hum { color: rgba(255, 255, 255, 0.85); }
/* NOTE: do NOT use `filter` here — applying any non-`none` filter on
   `.ped-s` creates a containing block for fixed-positioned descendants,
   which would re-anchor the tooltip to the sentence and break its
   viewport-relative positioning. Use brighter background tints instead. */
.ped-tool .ped-s.ped-ai:hover  { background: rgba(248, 113, 113, 0.28); }
.ped-tool .ped-s.ped-unk:hover { background: rgba(251, 146, 60, 0.24); }
.ped-tool .ped-s-badge {
  display: none;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 3px;
}
.ped-tool .ped-s.ped-ai .ped-s-badge  { display: inline; background: var(--ped-red-soft); color: var(--ped-red); }
.ped-tool .ped-s.ped-unk .ped-s-badge { display: inline; background: var(--ped-orange-soft); color: var(--ped-orange); }

/* Tooltip uses position:fixed so it escapes the essay column's
   overflow:hidden clipping. JS positions it relative to the hovered
   sentence at show time. pointer-events:auto so the cursor can move
   onto the tooltip itself (e.g. to click the "Hire a writer" CTA)
   without it disappearing. */
/* Tip lives on <body> — no .ped-tool ancestor — so selectors are unscoped */
.ped-s-tip {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  background: #0E0E18;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 12px 14px;
  width: 230px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
  pointer-events: auto;
  white-space: normal;
}
.ped-s-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 20px;
  border: 6px solid transparent;
  border-top-color: #0E0E18;
}
.ped-s-tip.ped-tip-right::after { left: auto; right: 20px; }
.ped-s-tip.ped-tip-below::after {
  top: auto; bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #0E0E18;
}
.ped-s-tip .ped-s-tip-type {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 5px;
}
.ped-s-tip.ped-tip-ai  .ped-s-tip-type { color: #F87171; }
.ped-s-tip.ped-tip-unk .ped-s-tip-type { color: #FB923C; }
.ped-s-tip.ped-tip-hum .ped-s-tip-type { color: #4ADE80; }
.ped-s-tip .ped-s-tip-body {
  font-size: 12px; color: #e2e2ee;
  line-height: 1.5; margin-bottom: 8px;
}
.ped-s-tip .ped-s-tip-cta {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700;
  color: #FACC15;
}
.ped-s-tip .ped-s-tip-cta svg { width: 11px; height: 11px; }
.ped-s-tip.ped-show { display: block; }

/* Sidebar */
.ped-tool .ped-sidebar {
  padding: 18px;
  overflow-y: auto;
  max-height: 540px;
  display: flex; flex-direction: column;
  gap: 14px;
  background: var(--ped-bg-soft);
}
.ped-tool .ped-sb-title {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ped-text-xfaint);
  margin-bottom: 8px;
}
.ped-tool .ped-model-list {
  display: flex; flex-direction: column;
  gap: 8px;
}
.ped-tool .ped-model-row {
  display: flex; flex-direction: column;
  gap: 4px;
}
.ped-tool .ped-model-top {
  display: flex; align-items: center; justify-content: space-between;
}
.ped-tool .ped-model-name {
  font-size: 12.5px; font-weight: 600;
  color: var(--ped-text-muted);
}
.ped-tool .ped-model-pct {
  font-size: 12px; font-weight: 700;
  color: var(--ped-text);
  font-variant-numeric: tabular-nums;
}
.ped-tool .ped-model-bar {
  height: 4px;
  background: var(--ped-bg-elevated);
  border-radius: 100px; overflow: hidden;
}
.ped-tool .ped-m-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ped-tool .ped-m-fill.ped-gpt { background: linear-gradient(90deg, #10B981, #34D399); }
.ped-tool .ped-m-fill.ped-gem { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.ped-tool .ped-m-fill.ped-cla { background: linear-gradient(90deg, #F59E0B, #FCD34D); }

.ped-tool .ped-findings {
  display: flex; flex-direction: column;
  gap: 6px;
}
.ped-tool .ped-finding {
  display: flex; align-items: flex-start;
  gap: 8px;
  font-size: 12px; color: var(--ped-text-muted);
  line-height: 1.45;
}
.ped-tool .ped-find-ico {
  width: 14px; height: 14px;
  flex-shrink: 0; margin-top: 1px;
}
.ped-tool .ped-find-ico.ped-bad  { color: var(--ped-red); }
.ped-tool .ped-find-ico.ped-warn { color: var(--ped-orange); }
.ped-tool .ped-find-ico.ped-ok   { color: var(--ped-green); }

/* Hire block */
.ped-tool .ped-hire-block {
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.07), rgba(250, 204, 21, 0.02));
  border: 1px solid var(--ped-yellow-border);
  border-radius: 14px;
  padding: 15px;
  display: flex; flex-direction: column;
  gap: 11px;
}
.ped-tool .ped-hire-icon-row {
  display: flex; align-items: flex-start; gap: 10px;
}
.ped-tool .ped-hire-icon {
  width: 34px; height: 34px;
  background: var(--ped-yellow);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ped-tool .ped-hire-icon svg {
  width: 17px; height: 17px;
  color: var(--ped-yellow-text);
}
.ped-tool .ped-hire-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 700;
  color: var(--ped-text);
  line-height: 1.3;
  margin-bottom: 3px;
}
.ped-tool .ped-hire-sub {
  font-size: 11.5px; color: var(--ped-text-muted);
  line-height: 1.45;
}
.ped-tool .ped-av-row {
  display: flex; align-items: center; gap: 9px;
}
.ped-tool .ped-av-stack { display: flex; }
.ped-tool .ped-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--ped-bg-card);
  margin-right: -7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}
.ped-tool .ped-av:nth-child(1) { background: linear-gradient(135deg, #6366F1, #818CF8); color: #fff; }
.ped-tool .ped-av:nth-child(2) { background: linear-gradient(135deg, #10B981, #34D399); color: #fff; }
.ped-tool .ped-av:nth-child(3) { background: linear-gradient(135deg, #F59E0B, #FCD34D); color: #1A1A26; }
.ped-tool .ped-av-lbl {
  font-size: 11.5px; font-weight: 600;
  color: var(--ped-text-muted);
  margin-left: 4px;
}
.ped-tool .ped-av-lbl span { color: var(--ped-green); }
.ped-tool .ped-hire-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 7px 0;
  border-top: 1px solid rgba(250, 204, 21, 0.15);
  border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}
.ped-tool .ped-hire-meta-item {
  font-size: 11.5px; font-weight: 600;
  color: var(--ped-text-muted);
  display: flex; align-items: center; gap: 3px;
}
.ped-tool .ped-hire-meta-item svg {
  width: 11px; height: 11px;
  color: var(--ped-yellow);
}
.ped-tool .ped-btn-hire {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  background: var(--ped-yellow);
  color: var(--ped-yellow-text);
  border: none;
  padding: 11px 16px;
  border-radius: 100px;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.22);
}
.ped-tool .ped-btn-hire:hover {
  background: var(--ped-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.45);
}
.ped-tool .ped-btn-hire svg { width: 13px; height: 13px; position: relative; z-index: 1; }
/* Keep the label text above the shine sweep */
.ped-tool .ped-btn-hire > * { position: relative; z-index: 1; }
/* Diagonal shine sweep on a repeating cycle */
.ped-tool .ped-btn-hire::before {
  content: '';
  position: absolute;
  top: 0; left: -40%;
  width: 35%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: ped-hire-shine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes ped-hire-shine {
  0%   { left: -40%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .ped-tool .ped-btn-hire::before { animation: none; display: none; }
}
.ped-tool .ped-hire-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap;
}
.ped-tool .ped-t-item {
  font-size: 10.5px; 
  color: var(--ped-text-faint);
  display: flex; align-items: center; gap: 3px;
  font-weight: 500;
}
.ped-tool .ped-t-item svg {
  width: 10px; height: 10px;
  color: var(--ped-green);
}

/* Paragraph analysis tab */
.ped-tool .ped-para-wrap {
  padding: 22px 26px;
  overflow-y: auto;
  max-height: 540px;
}
.ped-tool .ped-para-grid {
  display: flex; flex-direction: column;
  gap: 10px;
}
.ped-tool .ped-para-card {
  background: var(--ped-bg-input);
  border: 1px solid var(--ped-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.ped-tool .ped-para-card.ped-flagged { border-color: var(--ped-red-border); }
.ped-tool .ped-para-bar { height: 4px; }
.ped-tool .ped-para-inner {
  padding: 16px 18px;
  display: flex; align-items: center;
  gap: 18px;
}
.ped-tool .ped-para-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--ped-text-faint);
  flex-shrink: 0;
  background: var(--ped-bg-elevated);
  border: 1px solid var(--ped-border);
  border-radius: 8px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.ped-tool .ped-para-card.ped-flagged .ped-para-num {
  background: var(--ped-red-soft);
  border-color: var(--ped-red-border);
  color: var(--ped-red);
}
.ped-tool .ped-para-info {
  flex: 1; min-width: 0;
}
.ped-tool .ped-para-excerpt {
  font-size: 13px;
  color: var(--ped-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 8px;
  font-style: italic;
}
.ped-tool .ped-para-track {
  height: 6px;
  background: var(--ped-bg-elevated);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 5px;
}
.ped-tool .ped-para-track-fill {
  height: 100%;
  border-radius: 100px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ped-tool .ped-para-track-fill.ped-hi { background: linear-gradient(90deg, var(--ped-red), #F43F5E); }
.ped-tool .ped-para-track-fill.ped-lo { background: var(--ped-green); }
.ped-tool .ped-para-tag {
  font-size: 11.5px;
  color: var(--ped-text-xfaint);
  font-weight: 500;
}
.ped-tool .ped-para-right {
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
  min-width: 80px;
}
.ped-tool .ped-para-pct {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.ped-tool .ped-para-pct.ped-hi { color: var(--ped-red); }
.ped-tool .ped-para-pct.ped-lo { color: var(--ped-green); }
.ped-tool .ped-para-rpill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700;
}
.ped-tool .ped-para-rpill.ped-hi { background: var(--ped-red-soft); color: var(--ped-red); }
.ped-tool .ped-para-rpill.ped-lo { background: var(--ped-green-soft); color: var(--ped-green); }

.ped-tool .ped-para-insight {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--ped-bg-soft);
  border: 1px solid var(--ped-border);
  border-left: 3px solid var(--ped-purple-border);
  border-radius: 0 12px 12px 0;
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.65;
}
.ped-tool .ped-para-insight strong { color: var(--ped-text); }
.ped-tool .ped-c-hi { color: var(--ped-red); font-weight: 600; }
.ped-tool .ped-c-lo { color: var(--ped-green); font-weight: 600; }

/* Action strip */
.ped-tool .ped-action-strip {
  padding: 13px 22px;
  border-top: 1px solid var(--ped-border);
  background: linear-gradient(180deg, var(--ped-bg-card), var(--ped-bg-soft));
  display: flex; align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ped-tool .ped-act-left {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
}
.ped-tool .ped-act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px;
  border-radius: 100px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--ped-border-strong);
  background: transparent;
  color: var(--ped-text-muted);
}
.ped-tool .ped-act-btn:hover {
  color: var(--ped-text);
  background: var(--ped-bg-elevated);
}
.ped-tool .ped-act-btn svg { width: 13px; height: 13px; }
.ped-tool .ped-act-hire {
  background: var(--ped-yellow);
  color: var(--ped-yellow-text);
  border: none;
  padding: 10px 18px;
  border-radius: 100px;
  font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.22);
}
.ped-tool .ped-act-hire:hover {
  background: var(--ped-yellow-dark);
  transform: translateY(-1px);
}
.ped-tool .ped-act-hire svg { width: 13px; height: 13px; }

.ped-tool .ped-act-usage {
  display: flex; align-items: center; gap: 10px;
  padding: 0 4px;
}
.ped-tool .ped-act-usage-inner {
  display: flex; flex-direction: column;
  gap: 3px;
}
.ped-tool .ped-act-usage-row {
  display: flex; align-items: center; gap: 7px;
}
.ped-tool .ped-act-usage-text {
  font-size: 11.5px; color: var(--ped-text-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ped-tool .ped-act-usage-track {
  width: 80px; height: 3px;
  background: var(--ped-bg-elevated);
  border-radius: 100px; overflow: hidden;
}
.ped-tool .ped-act-usage-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--ped-purple), var(--ped-purple-light));
  transition: width 0.5s;
}
.ped-tool .ped-act-usage-fill.ped-warn { background: linear-gradient(90deg, var(--ped-orange), #FCD34D); }
.ped-tool .ped-act-usage-fill.ped-full { background: var(--ped-red); }
.ped-tool .ped-act-usage-upgrade {
  font-size: 11px; font-weight: 700;
  color: var(--ped-yellow);
  cursor: pointer; background: none; border: none;
  font-family: inherit;
  padding: 0;
  white-space: nowrap;
}
.ped-tool .ped-act-usage-unlimited {
  font-size: 12px; font-weight: 600;
  color: var(--ped-green);
  display: flex; align-items: center; gap: 4px;
}
.ped-tool .ped-act-usage-unlimited svg { width: 12px; height: 12px; }

/* Toast */
.ped-tool .ped-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ped-bg-elevated);
  border: 1px solid var(--ped-border-strong);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 13px; font-weight: 600;
  color: var(--ped-text);
  opacity: 0;
  transition: all 0.25s;
  z-index: 700;
  white-space: nowrap;
  pointer-events: none;
}
.ped-tool .ped-toast.ped-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .ped-tool .ped-hero,
  .ped-tool .ped-tool-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ped-tool .ped-hero-h1 { font-size: 36px; }
  .ped-tool .ped-essay-layout { grid-template-columns: 1fr; }
  .ped-tool .ped-sidebar {
    max-height: none;
    border-right: none;
    border-top: 1px solid var(--ped-border);
  }
}

@media (max-width: 720px) {
  .ped-tool { padding-top: 80px; padding-bottom: 40px; }
  .ped-tool .ped-hero-h1 { font-size: 28px; line-height: 1.1; }
  .ped-tool .ped-hero-sub { font-size: 14px; }
  .ped-tool .ped-input-state { padding: 20px 18px 18px; }
  .ped-tool .ped-score-hdr {
    padding: 18px 18px 16px;
    flex-wrap: wrap;
    gap: 14px;
  }
  .ped-tool .ped-gauge-block,
  .ped-tool .ped-g-svg { width: 140px; height: 140px; }
  .ped-tool .ped-g-bg,
  .ped-tool .ped-g-fill { stroke-width: 8; }
  .ped-tool .ped-gauge-num { font-size: 32px; }
  .ped-tool .ped-btn-new {
    margin-left: 0;
    order: -1;
    align-self: flex-end;
  }
  .ped-tool .ped-essay-col,
  .ped-tool .ped-para-wrap,
  .ped-tool .ped-sidebar { max-height: none; }
  .ped-tool .ped-essay-col,
  .ped-tool .ped-para-wrap { padding: 18px; }
  .ped-tool .ped-action-strip {
    padding: 12px 14px;
    gap: 8px;
  }
  .ped-tool .ped-act-usage { display: none; }

  /* Toolbar: wrap buttons to fit small screens */
  .ped-tool .ped-ta-actions { flex-wrap: wrap; gap: 4px 2px; }

  /* Usage row: stack vertically on mobile */
  .ped-tool .ped-usage-row { flex-wrap: wrap; gap: 8px; }
  .ped-tool .ped-usage-col { flex: 1 1 100%; }
  .ped-tool .ped-usage-label { white-space: normal; }
  .ped-tool .ped-usage-nums { white-space: normal; }
  .ped-tool .ped-usage-up { align-self: flex-start; }

  /* Pin the tooltip to the viewport on mobile so it never gets clipped. */
  .ped-s-tip {
    position: fixed !important;
    top: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: none !important;
  }
  .ped-s-tip::after { display: none !important; }
}

/* ============ UNIVERSITIES (marquee — mirrors AI Essay Writer) ============ */
.ped-tool .ped-universities {
  max-width: 1100px;
  margin: 28px auto 0;
  padding: 0 40px;
  text-align: center;
}
.ped-tool .ped-universities-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ped-text-faint);
  margin-bottom: 14px;
}
.ped-tool .ped-uni-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.ped-tool .ped-uni-marquee-track {
  display: flex;
  width: max-content;
  animation: pedUniScroll 90s linear infinite;
}
.ped-tool .ped-uni-marquee-track:hover { animation-play-state: paused; }
@keyframes pedUniScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ped-tool .ped-uni-set {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.ped-tool .ped-uni-name {
  font-size: 13px; font-weight: 600;
  color: var(--ped-text-faint);
  white-space: nowrap;
  padding: 0 28px;
  letter-spacing: 0.01em;
  position: relative;
  transition: color 0.2s ease;
}
.ped-tool .ped-uni-name::after {
  content: '·';
  position: absolute; right: -2px;
  color: var(--ped-text-xfaint);
  font-size: 16px;
}
.ped-tool .ped-uni-name:hover { color: var(--ped-text-muted); }
@media (prefers-reduced-motion: reduce) {
  .ped-tool .ped-uni-marquee-track { animation: none; }
}

/* ============ TRUST BAR (stats strip below the marquee) ============ */
.ped-tool .ped-trust-bar {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 40px 0;
  display: flex; align-items: center;
  gap: 22px; flex-wrap: wrap;
  justify-content: center;
}
.ped-tool .ped-t-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
}
.ped-tool .ped-t-stat-n {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  color: var(--ped-text);
}
.ped-tool .ped-t-stat-l {
  font-size: 11px; color: var(--ped-text-faint);
  font-weight: 500;
}
.ped-tool .ped-t-div {
  width: 1px; height: 32px;
  background: var(--ped-border);
}
.ped-tool .ped-t-unis {
  display: flex; flex-direction: column;
  gap: 5px; flex: 1;
}
.ped-tool .ped-t-unis-lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ped-text-xfaint);
}
.ped-tool .ped-t-unis-list {
  display: flex; gap: 7px; flex-wrap: wrap;
}
.ped-tool .ped-t-unis-list span {
  font-size: 11.5px;
  color: var(--ped-text-xfaint);
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

/* ============ CONTENT SECTIONS ============ */
.ped-tool .ped-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}
.ped-tool .ped-section {
  padding: 64px 0 0;
}
.ped-tool .ped-section-last {
  padding-bottom: 80px;
}
.ped-tool .ped-s-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ped-purple-light);
  margin-bottom: 13px;
  padding: 4px 12px;
  background: var(--ped-purple-soft);
  border: 1px solid var(--ped-purple-border);
  border-radius: 100px;
}
.ped-tool .ped-section h2 {
  font-size: 30px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ped-text);
  margin-bottom: 10px;
  line-height: 1.15;
}
.ped-tool .ped-section-sub {
  font-size: 15px; color: var(--ped-text-muted);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 30px;
}

/* ============ STEPS GRID ============ */
.ped-tool .ped-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.ped-tool .ped-step-card {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  padding: 24px 22px;
  position: relative;
  transition: border-color 0.15s;
}
.ped-tool .ped-step-card:first-child { border-radius: 16px 0 0 16px; z-index: 2; }
.ped-tool .ped-step-card:last-child  { border-radius: 0 16px 16px 0; border-left: none; z-index: 0; }
.ped-tool .ped-step-card:nth-child(2) { border-left: none; z-index: 1; }
.ped-tool .ped-step-card:hover { border-color: var(--ped-border-strong); }
.ped-tool .ped-step-num-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ped-bg-elevated);
  border: 1px solid var(--ped-border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--ped-text-faint);
  margin-bottom: 16px;
}
.ped-tool .ped-step-card.ped-s-red    .ped-step-num-circle { background: var(--ped-red-soft);    border-color: var(--ped-red-border);    color: var(--ped-red); }
.ped-tool .ped-step-card.ped-s-orange .ped-step-num-circle { background: var(--ped-orange-soft); border-color: var(--ped-orange-border); color: var(--ped-orange); }
.ped-tool .ped-step-card.ped-s-green  .ped-step-num-circle { background: var(--ped-green-soft);  border-color: var(--ped-green-border);  color: var(--ped-green); }
.ped-tool .ped-step-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--ped-text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ped-tool .ped-step-card p {
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.65;
}
.ped-tool .ped-step-connector {
  position: absolute;
  top: 38px; right: -13px;
  width: 26px; height: 26px;
  background: var(--ped-bg-soft);
  border: 1px solid var(--ped-border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ped-tool .ped-step-connector svg { width: 10px; height: 10px; color: var(--ped-text-faint); }
.ped-tool .ped-step-card:last-child .ped-step-connector { display: none; }

/* ============ DETECTION SIGNALS ============ */
.ped-tool .ped-signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ped-tool .ped-signal-card {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 16px;
  padding: 22px;
  transition: border-color 0.15s;
  border-left-width: 3px;
}
.ped-tool .ped-signal-card:hover { border-color: var(--ped-border-strong); }
.ped-tool .ped-signal-card.ped-red    { border-left-color: var(--ped-red); }
.ped-tool .ped-signal-card.ped-orange { border-left-color: var(--ped-orange); }
.ped-tool .ped-signal-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px;
  margin-bottom: 11px;
}
.ped-tool .ped-signal-tag.ped-red    { background: var(--ped-red-soft);    color: var(--ped-red); }
.ped-tool .ped-signal-tag.ped-orange { background: var(--ped-orange-soft); color: var(--ped-orange); }
.ped-tool .ped-signal-tag svg { width: 10px; height: 10px; }
.ped-tool .ped-signal-card h3 {
  font-size: 14px; font-weight: 700;
  color: var(--ped-text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.ped-tool .ped-signal-card p {
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.65;
}
.ped-tool .ped-signal-example {
  margin-top: 11px;
  padding: 10px 12px;
  background: var(--ped-bg-input);
  border-left: 2px solid var(--ped-red-border);
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: var(--ped-text-faint);
  font-style: italic;
  line-height: 1.55;
}
.ped-tool .ped-signal-example.ped-orange-ex {
  border-left-color: var(--ped-orange-border);
}

/* ============ COMPARISON TABLE ============ */
.ped-tool .ped-compare-wrap {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 16px;
  overflow: hidden;
}
.ped-tool .ped-compare-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ped-tool .ped-compare-note {
  font-size: 11px;
  color: var(--ped-text-xfaint);
  padding: 8px 18px 12px;
  border-top: 1px solid var(--ped-border);
}
.ped-tool .ped-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ped-tool .ped-compare-table th {
  padding: 13px 18px;
  text-align: left;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ped-text-faint);
  border-bottom: 1px solid var(--ped-border);
  background: var(--ped-bg-soft);
}
.ped-tool .ped-compare-table th.ped-hl {
  color: var(--ped-text);
  background: var(--ped-purple-soft);
}
.ped-tool .ped-compare-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--ped-border);
  color: var(--ped-text-muted);
  vertical-align: middle;
}
.ped-tool .ped-compare-table td.ped-hl {
  background: rgba(211, 6, 244, 0.03);
}
.ped-tool .ped-compare-table tr:last-child td { border-bottom: none; }
.ped-tool .ped-compare-table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.ped-tool .ped-compare-table tr:hover td.ped-hl { background: rgba(211, 6, 244, 0.06); }
.ped-tool .ped-c-yes     { color: var(--ped-green);   font-weight: 700; }
.ped-tool .ped-c-no      { color: var(--ped-text-xfaint); }
.ped-tool .ped-c-partial { color: var(--ped-orange);  font-weight: 600; }
.ped-tool .ped-c-bold    { font-weight: 600; color: var(--ped-text); }

/* ============ WHEN FLAGGED LAYOUT ============ */
.ped-tool .ped-flagged-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
}
.ped-tool .ped-option-cards {
  display: flex; flex-direction: column;
  gap: 14px;
}
.ped-tool .ped-option-card {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 16px;
  padding: 20px 22px;
}
.ped-tool .ped-option-n {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ped-text-xfaint);
  margin-bottom: 8px;
}
.ped-tool .ped-option-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--ped-text);
  margin-bottom: 8px;
}
.ped-tool .ped-option-card p {
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.65;
}
.ped-tool .ped-option-card p + p { margin-top: 8px; }
.ped-tool .ped-option-tips {
  margin-top: 12px;
  display: flex; flex-direction: column;
  gap: 6px;
}
/* Arrow + text laid out as a hanging indent rather than a flex row so any
   inline links/<em>/<strong> inside the tip wrap naturally with the surrounding
   words instead of breaking onto their own lines. */
.ped-tool .ped-option-tip {
  position: relative;
  padding-left: 20px;
  font-size: 12.5px;
  color: var(--ped-text-muted);
  line-height: 1.45;
}
.ped-tool .ped-option-tip::before {
  content: '\2192';
  color: var(--ped-purple-light);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}
.ped-tool .ped-option-card a {
  color: var(--ped-purple-light);
  font-weight: 600;
  text-decoration: underline;
}
.ped-tool .ped-option-card a:hover { text-decoration: none; }

.ped-tool .ped-hire-conv {
  background: linear-gradient(160deg, rgba(250, 204, 21, 0.08), rgba(250, 204, 21, 0.02));
  border: 1px solid var(--ped-yellow-border);
  border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column;
  gap: 13px;
  position: sticky;
  top: 80px;
}
.ped-tool .ped-hc-eyebrow {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ped-yellow);
}
.ped-tool .ped-hc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--ped-text);
  line-height: 1.25;
}
.ped-tool .ped-hc-sub {
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.55;
}
.ped-tool .ped-hc-pts {
  display: flex; flex-direction: column;
  gap: 7px;
}
.ped-tool .ped-hc-pt {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--ped-text-muted);
  line-height: 1.4;
}
.ped-tool .ped-hc-pt svg {
  width: 14px; height: 14px;
  color: var(--ped-green);
  flex-shrink: 0; margin-top: 1px;
}
.ped-tool .ped-hc-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 8px 0;
  border-top: 1px solid rgba(250, 204, 21, 0.15);
  border-bottom: 1px solid rgba(250, 204, 21, 0.15);
}
.ped-tool .ped-hc-meta-item {
  font-size: 12px; font-weight: 600;
  color: var(--ped-text-muted);
  display: flex; align-items: center; gap: 4px;
}
.ped-tool .ped-hc-meta-item svg {
  width: 11px; height: 11px;
  color: var(--ped-yellow);
}
.ped-tool .ped-btn-hc {
  width: 100%;
  background: var(--ped-yellow);
  color: var(--ped-yellow-text);
  border: none;
  padding: 12px 18px;
  border-radius: 100px;
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.22);
}
.ped-tool .ped-btn-hc:hover {
  background: var(--ped-yellow-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.32);
}
.ped-tool .ped-btn-hc svg { width: 14px; height: 14px; }
.ped-tool .ped-hc-trust {
  text-align: center;
  font-size: 11px;
  color: var(--ped-text-xfaint);
}

/* ============ FAQ ============ */
.ped-tool .ped-faq-list {
  display: flex; flex-direction: column;
  gap: 6px;
}
.ped-tool .ped-faq-item {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.ped-tool .ped-faq-item:hover { border-color: var(--ped-border-strong); }
.ped-tool .ped-faq-item.ped-open { border-color: var(--ped-purple-border); }
.ped-tool .ped-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
  background: var(--ped-bg-input);
  transition: background 0.15s;
}
.ped-tool .ped-faq-item.ped-open .ped-faq-q,
.ped-tool .ped-faq-q:hover { background: var(--ped-bg-elevated); }
.ped-tool .ped-faq-q-text {
  font-size: 14px; font-weight: 600;
  color: var(--ped-text);
  line-height: 1.4;
  padding-right: 16px;
}
.ped-tool .ped-faq-chevron {
  width: 18px; height: 18px;
  color: var(--ped-text-faint);
  transition: transform 0.22s;
  flex-shrink: 0;
}
.ped-tool .ped-faq-item.ped-open .ped-faq-chevron {
  transform: rotate(180deg);
  color: var(--ped-purple-light);
}
.ped-tool .ped-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.32s ease;
}
.ped-tool .ped-faq-item.ped-open .ped-faq-a { max-height: 800px; }
.ped-tool .ped-faq-a-inner {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ped-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--ped-border);
}
.ped-tool .ped-faq-a-inner strong { color: var(--ped-text); }
.ped-tool .ped-faq-a-inner a {
  color: var(--ped-purple-light);
  font-weight: 600;
  text-decoration: underline;
}
.ped-tool .ped-faq-a-inner a:hover { text-decoration: none; }

/* ============ RELATED TOOLS ============ */
.ped-tool .ped-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.ped-tool .ped-tlc {
  background: var(--ped-bg-card);
  border: 1px solid var(--ped-border);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex; flex-direction: column;
  gap: 9px;
  transition: all 0.15s;
  cursor: pointer;
}
.ped-tool .ped-tlc:hover {
  border-color: var(--ped-border-strong);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.ped-tool .ped-tlc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ped-tool .ped-tlc-icon.ped-tlc-purple { background: var(--ped-purple-soft); border: 1px solid var(--ped-purple-border); }
.ped-tool .ped-tlc-icon.ped-tlc-purple svg { color: var(--ped-purple-light); }
.ped-tool .ped-tlc-icon.ped-tlc-green  { background: var(--ped-green-soft);  border: 1px solid var(--ped-green-border); }
.ped-tool .ped-tlc-icon.ped-tlc-green  svg { color: var(--ped-green); }
.ped-tool .ped-tlc-icon.ped-tlc-red    { background: var(--ped-red-soft);    border: 1px solid var(--ped-red-border); }
.ped-tool .ped-tlc-icon.ped-tlc-red    svg { color: var(--ped-red); }
.ped-tool .ped-tlc-icon.ped-tlc-orange { background: var(--ped-orange-soft); border: 1px solid var(--ped-orange-border); }
.ped-tool .ped-tlc-icon.ped-tlc-orange svg { color: var(--ped-orange); }
.ped-tool .ped-tlc-icon svg { width: 17px; height: 17px; }
.ped-tool .ped-tlc-name {
  font-size: 13px; font-weight: 700;
  color: var(--ped-text);
}
.ped-tool .ped-tlc-desc {
  font-size: 12px; color: var(--ped-text-muted);
  line-height: 1.5;
}
.ped-tool .ped-tlc-lnk {
  font-size: 11.5px; font-weight: 700;
  color: var(--ped-purple-light);
  display: flex; align-items: center; gap: 3px;
  margin-top: auto;
}
.ped-tool .ped-tlc-lnk svg { width: 10px; height: 10px; }

/* ============ STICKY HIRE CTA ============ */
.ped-tool .ped-sticky-hire {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 150;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ped-tool .ped-sticky-hire.ped-show {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.ped-tool .ped-sticky-hire a {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ped-yellow);
  color: var(--ped-yellow-text);
  padding: 12px 20px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(250, 204, 21, 0.35);
  transition: all 0.15s;
}
.ped-tool .ped-sticky-hire a:hover {
  background: var(--ped-yellow-dark);
  box-shadow: 0 8px 28px rgba(250, 204, 21, 0.45);
  transform: translateY(-1px);
}
.ped-tool .ped-sticky-hire a svg { width: 15px; height: 15px; }

/* ============ RESPONSIVE FOR NEW SECTIONS ============ */
@media (max-width: 1100px) {
  .ped-tool .ped-content-wrap,
  .ped-tool .ped-trust-bar,
  .ped-tool .ped-universities {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ped-tool .ped-flagged-layout { grid-template-columns: 1fr; }
  .ped-tool .ped-tools-grid { grid-template-columns: 1fr 1fr; }
  .ped-tool .ped-hire-conv { position: static; }
}

@media (max-width: 800px) {
  .ped-tool .ped-steps-grid { grid-template-columns: 1fr; }
  .ped-tool .ped-step-card:first-child { border-radius: 16px 16px 0 0; }
  .ped-tool .ped-step-card:last-child  {
    border-radius: 0 0 16px 16px;
    border-left: 1px solid var(--ped-border);
    border-top: none;
  }
  .ped-tool .ped-step-card:nth-child(2) {
    border-left: 1px solid var(--ped-border);
    border-top: none;
  }
  .ped-tool .ped-step-connector { display: none !important; }
  .ped-tool .ped-signals-grid { grid-template-columns: 1fr; }
  .ped-tool .ped-sticky-hire { bottom: 16px; right: 16px; }
}

@media (max-width: 720px) {
  .ped-tool .ped-section { padding-top: 48px; }
  .ped-tool .ped-section h2 { font-size: 24px; }
  .ped-tool .ped-section-sub { font-size: 14px; margin-bottom: 22px; }
  .ped-tool .ped-trust-bar {
    justify-content: center;
    text-align: center;
    gap: 16px;
  }
  .ped-tool .ped-t-div { width: 1px; min-width: 1px; max-width: 1px; height: 32px; flex-shrink: 0; align-self: center; }
  .ped-tool .ped-trust-bar > div:nth-child(6) { display: none; }
  .ped-tool .ped-t-unis { flex-basis: 100%; align-items: center; text-align: center; }
  .ped-tool .ped-t-unis-list { justify-content: center; }
}

@media (max-width: 560px) {
  .ped-tool .ped-tools-grid { grid-template-columns: 1fr; }
  .ped-tool .ped-sticky-hire a {
    font-size: 13px;
    padding: 10px 16px;
  }
  .ped-tool .ped-toast{
    white-space: normal;
    word-break: break-word;
    text-align: center;
        width: 90%;
  }
  .ped-tool .ped-limit-banner{
        align-items: flex-start;
  }
  .ped-tool .ped-limit-banner svg{
        margin-top: 3px;
  }
}

/* ── Hero entrance animations ── */
@keyframes pedHeroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.ped-tool .ped-eyebrow  { animation: pedHeroFadeIn 0.6s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.ped-tool .ped-hero-h1  { animation: pedHeroFadeIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.ped-tool .ped-hero-sub { animation: pedHeroFadeIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.30s both; }
.ped-tool .ped-tool-card{ animation: pedHeroFadeIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.42s both; }

/* ── Scroll animations ── */
.ped-tool .ped-fade-up {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.ped-tool .ped-fade-up.ped-in-view { opacity: 1; transform: translateY(0); }
.ped-tool .ped-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.ped-tool .ped-stagger.ped-in-view > *:nth-child(1)  { opacity:1; transform:translateY(0); transition-delay:0.05s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(2)  { opacity:1; transform:translateY(0); transition-delay:0.12s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(3)  { opacity:1; transform:translateY(0); transition-delay:0.19s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(4)  { opacity:1; transform:translateY(0); transition-delay:0.26s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(5)  { opacity:1; transform:translateY(0); transition-delay:0.33s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(6)  { opacity:1; transform:translateY(0); transition-delay:0.40s }
.ped-tool .ped-stagger.ped-in-view > *:nth-child(n+7){ opacity:1; transform:translateY(0); transition-delay:0.47s }

@media (prefers-reduced-motion: reduce) {
  .ped-tool *,
  .ped-tool *::before,
  .ped-tool *::after {
    animation: none !important;
    transition: none !important;
  }
  .ped-tool .ped-fade-up,
  .ped-tool .ped-stagger > * { opacity: 1 !important; transform: none !important; }
}
