/* ── Essay Outline Generator Module ─────────────────────────────────────── */
/* Namespace: .eov3 — all rules scoped here to avoid collisions              */

*, body {
  font-weight: 400;
  font-family: 'Inter', system-ui, sans-serif;
}

.eov3 {
  --bg: #0A0A0F;
  --bg-soft: #13131C;
  --bg-card: #1A1A26;
  --bg-elevated: #23233A;
  --bg-input: #0F0F18;

  --purple: #D306F4;
  --purple-mid: #9333ea;
  --purple-dark: #5700E6;
  --purple-light: #c77dff;
  --purple-soft: rgba(168, 85, 247, 0.08);
  --purple-glow: rgba(211, 6, 244, 0.25);
  --purple-border: rgba(168, 85, 247, 0.28);

  --yellow: #FACC15;
  --yellow-dark: #EAB308;
  --yellow-text: #1A1A26;

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

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

  --green: #4ADE80;
  --teal: #2DD4BF;
  --red: #ef4444;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(211, 6, 244, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(87, 0, 230, 0.06) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.5;
  width: 100%;
  display: block;
  overflow-x: hidden;
  padding-top: 60px;
}

.eov3 *, .eov3 *::before, .eov3 *::after { box-sizing: border-box; }
.eov3 h1, .eov3 h2, .eov3 h3 { margin: 0; padding: 0; font-family: 'Space Grotesk', system-ui, sans-serif; }
.eov3 button { font-family: inherit; cursor: pointer; }
.eov3 a { text-decoration: none; color: inherit; }
 

/* ── HERO ────────────────────────────────────────────────────────────────── */
.eov3-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px 52px;
  text-align: center;
  position: relative;
}
.eov3-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(211,6,244,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.eov3-h1 {
  font-family: 'Space Grotesk', sans-serif;

  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text);
}
.eov3-h1 em {
    font-size: 46px;
  font-weight: 700;
  font-style: normal;
  font-family: 'Space Grotesk', 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;
  animation: eov3Shimmer 5s linear infinite;
  display: block;
  padding-bottom: 20px;
}
@keyframes eov3Shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 250% center; }
}
.eov3-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 36px;
}

/* Eyebrow label */
.eov3-eyebrow-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 24px; padding: 6px 14px;
  background: var(--purple-soft);
  border: 1px solid var(--purple-border); border-radius: 100px;
}
.eov3-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: eov3LivePulse 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes eov3LivePulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }

/* Stats strip */
.eov3-stats-strip {
  display: inline-flex; align-items: stretch; gap: 0;
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.eov3-stats-strip::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.6) 35%, rgba(250,204,21,0.35) 65%, transparent);
  pointer-events: none; z-index: 1;
}
.eov3-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 36px;
  position: relative;
  transition: background 0.2s;
}
.eov3-stat:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border-strong);
}
.eov3-stat:hover { background: rgba(168,85,247,0.05); }
.eov3-stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}
.eov3-stat-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-faint); white-space: nowrap;
  letter-spacing: 0.01em;
  margin-top: 6px;
}

/* ── TOOL CARD ───────────────────────────────────────────────────────────── */
.eov3-tool-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.eov3-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(168,85,247,0.08), 0 24px 60px rgba(0,0,0,0.5);
}
/* Lift the clip while a select dropdown is open so it isn't cut off. Toggled
   from JS (eov3SyncCardOverflow) only on the input screen. */
.eov3-tool-card.eov3-dd-open { overflow: visible; }
.eov3-tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,0.7) 35%, rgba(250,204,21,0.4) 65%, transparent);
  pointer-events: none; z-index: 1;
}

/* Input screen / output screen transitions */
#eov3InputScreen, #eov3OutputScreen {
  transition: opacity 0.22s ease;
}

/* Topic textarea */
.eov3-topic-wrap { padding: 28px 28px 0; }
.eov3-topic-area {
  width: 100%;
  background: transparent;
  border: none; outline: none; resize: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.75;
  color: var(--text);
  min-height: 80px;
}
.eov3-topic-area::placeholder { color: var(--text-extra-faint); }
#eov3InstructionsText::placeholder { color: var(--text-extra-faint); }
#eov3Position::placeholder { color: var(--text-extra-faint); }

/* Topic footer chips */
.eov3-topic-footer {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 28px 18px;
  flex-wrap: wrap;
}
.eov3-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-faint);
  font-size: 12px; font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.eov3-chip:hover { border-color: var(--purple-border); color: var(--text-muted); }
.eov3-chip svg { width: 12px; height: 12px; flex-shrink: 0; }
.eov3-chip svg { transition: transform 0.15s; }

/* Divider */
.eov3-divider { height: 1px; background: var(--border); margin: 0 28px; }

/* Settings row */
.eov3-settings {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 28px;
  flex-wrap: wrap;
}
.eov3-select {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 14px;
  height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  white-space: nowrap;
  user-select: none;
}
.eov3-select:hover { border-color: var(--purple-border); color: var(--text); }
.eov3-select svg { width: 13px; height: 13px; color: var(--text-faint); flex-shrink: 0; }
.eov3-select-active {
  border-color: var(--purple-border);
  background: var(--purple-soft);
  color: var(--purple-light);
}
.eov3-select-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  min-width: 160px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
}
.eov3-select-dropdown.open { display: block; }
.eov3-select-opt {
  padding: 9px 14px;
  font-size: 13px; color: var(--text-muted);
  cursor: pointer; transition: background 0.1s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.eov3-select-opt:hover { background: rgba(168,85,247,0.1); color: var(--text); }
.eov3-select-opt.selected { color: var(--purple-light); font-weight: 600; }

/* CTA row */
.eov3-cta-row {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 28px 28px;
  flex-wrap: wrap;
}
.eov3-generate-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(246.87deg, var(--purple) -2.66%, var(--purple-dark) 98.71%);
  color: #fff; border: none; border-radius: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 20px var(--purple-glow);
  white-space: nowrap;
}
.eov3-generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(211,6,244,0.45);
}
.eov3-generate-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.eov3-generate-btn svg { width: 15px; height: 15px; }
/* CTA generation counter — dot + "X of N free outlines …", mirroring the
   ai-essaywriter .pew-gen-counter (faint text, white numbers, tier-colored
   dot). */
.eov3-free-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-faint); font-weight: 500;
}
.eov3-free-note strong { color: var(--text); font-weight: 700; }
.eov3-gen-counter-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple-light); flex-shrink: 0;
}

/* Tiered usage colors — mirrors the ai-essaywriter generation counter:
   default → purple, 1 left → yellow (warning), 0 left → red (depleted).
   Applied to the CTA note (.eov3-free-note) and the output usage bar
   (.eov3-usage); the "Sign up free" link and dot inherit the tier color. */
/* Selectors carry an extra .eov3/a qualifier so they out-specify the generic
   `.eov3 a { text-decoration:none; color:inherit }` reset (0,1,1). */
.eov3 a.eov3-signup-link { color: var(--purple-light); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.eov3 a.eov3-signup-link:hover { color: var(--text); }

/* Upgrade-plan link shown to logged-in users whose plan limit is exceeded. */
.eov3 a.eov3-upgrade-link { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.eov3 a.eov3-upgrade-link:hover { color: var(--text); }

.eov3-free-note.eov3-warning,
.eov3-usage.eov3-warning,
.eov3-usage.eov3-warning span,
.eov3-usage.eov3-warning strong { color: var(--yellow); }
.eov3 .eov3-warning a.eov3-signup-link { color: var(--yellow); }
.eov3-free-note.eov3-warning .eov3-gen-counter-dot { background: var(--yellow); }
.eov3-usage.eov3-warning .eov3-usage-dot { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }

.eov3-free-note.eov3-depleted,
.eov3-free-note.eov3-depleted strong,
.eov3-usage.eov3-depleted,
.eov3-usage.eov3-depleted span,
.eov3-usage.eov3-depleted strong { color: var(--red); }
.eov3 .eov3-depleted a.eov3-signup-link { color: var(--red); }
.eov3-free-note.eov3-depleted .eov3-gen-counter-dot { background: var(--red); }
.eov3-usage.eov3-depleted .eov3-usage-dot { background: var(--red); box-shadow: 0 0 6px var(--red); }

/* ── OUTPUT AREA ─────────────────────────────────────────────────────────── */
.eov3-output-wrap { border-top: 1px solid var(--border); min-height: 220px; position: relative; }
.eov3-output-toolbar {
  display: flex;
  align-items: center; justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  gap: 10px; flex-wrap: wrap;
}
.eov3-output-left { display: flex; align-items: center; gap: 10px; }
.eov3-output-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.eov3-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text-muted);
  font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.eov3-back-btn:hover { border-color: var(--purple-border); color: var(--text); }
.eov3-back-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.eov3-output-meta { font-size: 12px; color: var(--text-faint); font-weight: 500; }
.eov3-out-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong);
  border-radius: 8px; color: var(--text-muted);
  font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.eov3-out-btn:hover { color: var(--text); border-color: var(--purple-border); }
.eov3-out-btn svg { width: 12px; height: 12px; }
.eov3-write-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 15px;
  background: var(--purple-soft); border: 1px solid var(--purple-border);
  border-radius: 8px; color: var(--purple-light);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.eov3-write-btn:hover { background: rgba(211,6,244,0.15); }
.eov3-hire-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--yellow); color: var(--yellow-text);
  border: none; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(250,204,21,0.22);
  transition: background 0.15s, transform 0.15s;
}
.eov3-hire-btn:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.eov3-hire-btn::before {
  content: '';
  position: absolute; top: 0; left: -40%; width: 35%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  animation: eov3Shine 3s ease-in-out infinite;
}
@keyframes eov3Shine { 0% { left: -40%; } 60% { left: 120%; } 100% { left: 120%; } }

.eov3-output-body { padding: 28px 24px; }

/* Loading */
.eov3-loading {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 50px 20px; gap: 16px;
}
.eov3-loading.active { display: flex; }
.eov3-spinner {
  width: 44px; height: 44px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.eov3-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--purple);
  animation: eov3Spin 1s linear infinite;
}
.eov3-ring-inner {
  inset: 9px; border-top-color: var(--yellow);
  animation-direction: reverse; animation-duration: 0.7s;
}
@keyframes eov3Spin { to { transform: rotate(360deg); } }
.eov3-spinner-core {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--purple); box-shadow: 0 0 10px var(--purple);
}
.eov3-load-text { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.eov3-load-bar { width: 160px; height: 3px; background: var(--bg-elevated); border-radius: 100px; overflow: hidden; }
.eov3-load-fill { height: 100%; background: linear-gradient(90deg, var(--purple), var(--yellow)); border-radius: 100px; width: 0%; transition: width 0.6s ease; }

/* Result */
.eov3-result { display: none; }
.eov3-result.visible { display: block; }

/* Thesis block */
.eov3-thesis {
  background: linear-gradient(135deg, rgba(211,6,244,0.07), rgba(87,0,230,0.04));
  border: 1px solid var(--purple-border); border-radius: 14px;
  padding: 18px 20px; margin-bottom: 18px;
}
.eov3-thesis-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-light);
  display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
}
.eov3-thesis-text { font-size: 14px; line-height: 1.72; color: var(--text-muted); font-style: italic; }

/* Sections */
.eov3-sections { display: flex; flex-direction: column; gap: 8px; }
.eov3-section {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.eov3-outline-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; cursor: pointer; user-select: none;
  transition: background 0.12s;
}
.eov3-outline-head:hover { background: rgba(255,255,255,0.03); }
.eov3-section-num {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
  background: var(--purple-soft); border: 1px solid var(--purple-border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 800; color: var(--purple-light);
}
.eov3-section-title { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.eov3-chevron { width: 14px; height: 14px; color: var(--text-extra-faint); transition: transform 0.2s; flex-shrink: 0; }
.eov3-section.open .eov3-chevron { transform: rotate(180deg); }
.eov3-section-body { display: none; padding: 0 16px 12px 50px; }
.eov3-section.open .eov3-section-body { display: block; }
.eov3-point {
  font-size: 13px; color: var(--text-faint); line-height: 1.6;
  padding: 3px 0 3px 10px; border-left: 2px solid var(--border-strong);
  margin-bottom: 4px;
}

/* Usage bar */
.eov3-usage {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  font-size: 12px; color: var(--text-faint);
}
.eov3-usage-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 6px var(--purple); flex-shrink: 0; }
.eov3-usage strong { color: var(--purple-light); }

/* ── TRUST STRIP ─────────────────────────────────────────────────────────── */
.eov3-trust-wrap { max-width: 100%; width: 100%; padding: 0; margin-top: 32px; }
.eov3-trust-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong) 20%, var(--border-strong) 80%, transparent);
}
.eov3-trust-inner {
  padding: 32px 24px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: 980px; margin: 0 auto;
}
.eov3-trust-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint); white-space: nowrap;
}
.eov3-trust-scroll {
  width: 100%; overflow: hidden; position: relative;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.eov3-uni-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: eov3Scroll 30s linear infinite;
}
.eov3-uni-track:hover { animation-play-state: paused; }
@keyframes eov3Scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.eov3-uni {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; color: var(--text-faint);
  white-space: nowrap; padding: 0 20px; position: relative;
  transition: color 0.2s; cursor: default;
}
.eov3-uni:hover { color: var(--text-muted); }
.eov3-uni::after {
  content: '·'; position: absolute; right: -2px;
  color: rgba(255,255,255,0.15); font-size: 18px;
}

/* ── SEO SECTIONS ────────────────────────────────────────────────────────── */
.eov3-seo { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.eov3-section-block { padding-bottom: 80px; }
.eov3-section-block:first-child { border-top: none; }

.eov3-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--purple-light); margin-bottom: 16px;
  padding: 5px 13px; background: var(--purple-soft);
  border: 1px solid var(--purple-border); border-radius: 100px;
}
.eov3-section-head {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; margin-bottom: 48px;
}
.eov3-section-head .eov3-eyebrow { display: inline-flex; margin-left: auto; margin-right: auto; margin-bottom: 18px; }
.eov3-section-head h2 { text-align: center; max-width: 680px; margin: 0 auto 16px; }
.eov3-section-head .eov3-section-sub, .eov3-section-head p { text-align: center; max-width: 560px; margin: 0 auto 12px; }

.eov3-seo h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.12;
  color: var(--text); margin-bottom: 14px;
}
.eov3-section-sub {
  font-size: 16px; color: var(--text-muted); line-height: 1.7;
  max-width: 540px; margin-bottom: 44px;
}
.eov3-seo p {
  font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px;
}
.eov3-seo p:last-child { margin-bottom: 0; }
.eov3-seo h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 5px; letter-spacing: -0.01em;
}

/* Anchor colors within SEO content */
.eov3-seo a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }
.eov3-seo a:hover { text-decoration: none; }
.eov3-faq-a a { color: var(--purple-light); text-decoration: underline; text-underline-offset: 2px; }
.eov3-faq-a a:hover { color: var(--purple-light); text-decoration: none; }
.eov3-related-link { text-decoration: none !important; color: var(--text-muted) !important; }

/* Steps */
.eov3-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.eov3-step {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-bottom: none;
  background: var(--bg-card); transition: background 0.15s;
}
.eov3-step:first-child { border-radius: 14px 14px 0 0; }
.eov3-step:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.eov3-step:hover { background: var(--bg-elevated); }
.eov3-step-num {
  flex-shrink: 0; width: 58px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 22px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 800; color: var(--purple-light);
  letter-spacing: 0.08em;
  border-right: 1px solid var(--border);
}
.eov3-step-body { flex: 1; padding: 20px 24px; }
.eov3-step-body h3 { font-size: 14px; margin-bottom: 6px; }
.eov3-step-body p { font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.65; }
.eov3-step-body p + p { margin-top: 8px; }

/* Types grid */
.eov3-types-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.eov3-type-card {
  padding: 22px; background: var(--bg-card);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.15s; position: relative;
}
.eov3-type-card:nth-child(even) { border-right: none; }
.eov3-type-card:nth-last-child(1), .eov3-type-card:nth-last-child(2) { border-bottom: none; }
.eov3-type-card:hover { background: var(--bg-elevated); }
.eov3-type-card-empty { background: var(--bg-card) !important; cursor: default; }
.eov3-type-card-empty:hover { background: var(--bg-card) !important; }
.eov3-type-icon { font-size: 20px; margin-bottom: 10px; display: block; }
.eov3-type-card h3 { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.eov3-type-card p { font-size: 12px; color: var(--text-faint); line-height: 1.6; margin: 0; }
.eov3-type-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 4px;
}
.eov3-badge-popular { background: rgba(250,204,21,0.12); color: var(--yellow); border: 1px solid rgba(250,204,21,0.2); }
.eov3-badge-unique  { background: rgba(45,212,191,0.1); color: var(--teal); border: 1px solid rgba(45,212,191,0.25); }

/* Pricing table */
.eov3-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.eov3-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eov3-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.eov3-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.12s; }
.eov3-table tbody tr:last-child { border-bottom: none; }
.eov3-table tbody tr:hover { background: var(--bg-elevated); }
.eov3-table td { padding: 14px 16px; color: var(--text-muted); vertical-align: middle; }
.eov3-table td:first-child { font-weight: 700; color: var(--text); }
.eov3-price { color: var(--yellow); font-weight: 700; }

/* Who grid */
.eov3-who-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.eov3-who-card {
  padding: 22px; background: var(--bg-card);
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.eov3-who-card:nth-child(even) { border-right: none; }
.eov3-who-card:nth-last-child(1), .eov3-who-card:nth-last-child(2) { border-bottom: none; }
.eov3-who-card:hover { background: var(--bg-elevated); }
.eov3-who-card h3 { font-size: 13px; margin-bottom: 6px; color: var(--text); }
.eov3-who-card p { font-size: 12px; color: var(--text-faint); line-height: 1.6; margin: 0; }

/* FAQ */
.eov3-faq-item { padding: 24px 0; border-top: 1px solid var(--border); }
.eov3-faq-item:last-child { border-bottom: 1px solid var(--border); }
.eov3-faq-q {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; letter-spacing: -0.015em; line-height: 1.3;
}
.eov3-faq-a { font-size: 14px; color: var(--text-muted); line-height: 1.78; margin: 0; }
.eov3-faq-a + .eov3-faq-a { margin-top: 10px; }

/* Related tools */
.eov3-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eov3-related-link {
  display: flex; gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; color: var(--text-muted);
  transition: all 0.15s;
}
.eov3-related-link:hover { border-color: var(--purple-border); background: var(--bg-elevated); transform: translateY(-2px); }
.eov3-related-icon { font-size: 20px; flex-shrink: 0; }
.eov3-related-title { font-weight: 600; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.eov3-related-sub { font-size: 11px; color: var(--text-faint); }
.eov3-related-arrow { margin-left: auto; color: var(--text-faint); font-size: 16px; transition: transform 0.15s, color 0.15s; }
.eov3-related-link:hover .eov3-related-arrow { transform: translateX(3px); color: var(--purple-light); }

/* Final CTA */
.eov3-final-cta {
  position: relative; overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, rgba(211,6,244,0.08) 0%, transparent 60%);
  border-top: 1px solid var(--purple-border);
  border-bottom: 1px solid var(--border);
  padding: 110px 24px; text-align: center;
  box-sizing: border-box;
}
.eov3-final-cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(211,6,244,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.eov3-final-cta-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.eov3-final-cta-eye {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-light); margin-bottom: 20px; display: block;
}
.eov3-final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5.5vw, 58px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 20px; color: #fff;
}
.eov3-final-cta-sub { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; }
.eov3-final-cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.eov3-cta-primary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff; padding: 15px 36px; border-radius: 12px;
  transition: all 0.18s; box-shadow: 0 4px 24px var(--purple-glow);
  display: inline-block; text-decoration: none;
}
.eov3-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(211,6,244,0.5); color: #fff; text-decoration: none; }
.eov3-cta-secondary {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 15px 28px; border-radius: 12px; transition: all 0.18s;
  display: inline-block; text-decoration: none;
}
.eov3-cta-secondary:hover { color: var(--text); border-color: var(--purple-border); background: var(--purple-soft); text-decoration: none; }
.eov3-final-note { font-size: 13px; color: var(--text-faint); letter-spacing: 0.01em; }

/* Instructions panel */
#eov3InstructionsPanel textarea {
  width: 100%; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 14px; font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--text-muted); outline: none; resize: none;
  min-height: 70px; transition: border-color 0.15s; box-sizing: border-box;
}
#eov3InstructionsPanel textarea:focus { border-color: var(--purple-border); }

/* Position input */
#eov3Position {
  flex: 1; min-width: 160px; background: var(--bg-elevated);
  border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0 14px; height: 38px; line-height: 38px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-muted); outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
#eov3Position:focus { border-color: var(--purple-border); color: var(--text); }

/* Scroll animations */
.eov3-fade { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.eov3-fade.in { opacity: 1; transform: none; }
.eov3-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1), transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.eov3-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.eov3-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.11s; }
.eov3-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.17s; }
.eov3-stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.23s; }
.eov3-stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.29s; }
.eov3-stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.35s; }
.eov3-stagger.in > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 0.41s; }

/* Responsive */
@media (max-width: 920px) {
  .eov3-h1 { font-size: 34px; }
}
@media (max-width: 700px) {
  .eov3-types-grid, .eov3-who-grid, .eov3-related-grid { grid-template-columns: 1fr; }
  .eov3-type-card, .eov3-who-card { border-right: none !important; }
  .eov3-seo h2 { font-size: 26px; }
  .eov3-settings { gap: 6px; }
  .eov3-table-wrap { overflow-x: auto; }
  .eov3-table { min-width: 460px; }
  .eov3-final-cta { padding: 72px 24px; }
  .eov3-cta-primary, .eov3-cta-secondary { width: 100%; text-align: center; }
  .eov3-stat { padding: 16px 20px; }
  .eov3-output-toolbar { flex-direction: column; align-items: flex-start; }
  .eov3-output-right { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .eov3-h1 { font-size: 26px; }
  .eov3-sub { font-size: 14px; }
  /* Stats strip: stop the inline-flex row from overflowing the viewport.
     Make it full width with three equal, shrinkable columns and wrapping
     labels so the third stat isn't clipped. */
  .eov3-stats-strip { display: flex; width: 100%; }
  .eov3-stat { flex: 1 1 0; min-width: 0; padding: 14px 8px; gap: 4px; }
  .eov3-stat-num { font-size: 18px; }
  .eov3-stat-label { font-size: 10px; white-space: normal; margin-top: 4px; }
  .eov3-hide-mobile { display: none; }
}

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