/*
 * EcomSpy — Shared Design System
 * All tool pages link to this file.
 * Tool-specific component CSS lives in each template's own <style> block.
 */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  /* Accent — EcomSpy brand green */
  --accent:        #00FF88;
  --accent-dark:   #00CC6E;
  --accent-soft:   rgba(0,255,136,.1);
  --accent-border: rgba(0,255,136,.25);
  --accent-glow:   rgba(0,255,136,.22);

  /* Surface — Dark mode */
  --bg:          #0A0F1C;
  --surface:     #121826;
  --surface-2:   #161F30;
  --surface-3:   #1A2236;
  --border:      #1E293B;
  --border-soft: #1E293B;

  /* Text */
  --text-dark:  #F1F5F9;
  --text-mid:   #CBD5E1;
  --text-body:  #94A3B8;
  --text-muted: #64748B;
  --text-faint: #475569;

  /* Semantic */
  --green:       #00CC6E;
  --green-bg:    rgba(0,255,136,.1);
  --green-border:rgba(0,255,136,.25);
  --amber:       #FBBF24;
  --amber-bg:    rgba(251,191,36,.1);
  --amber-border:rgba(251,191,36,.25);
  --red:         #F87171;
  --red-bg:      rgba(248,113,113,.1);
  --red-border:  rgba(248,113,113,.25);
  --blue:        #60A5FA;
  --blue-bg:     rgba(96,165,250,.1);
  --blue-border: rgba(96,165,250,.25);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Shadow */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.4);
  --shadow-sm:   0 1px 4px rgba(0,0,0,.5);
  --shadow-md:   0 2px 8px rgba(0,0,0,.6);
  --shadow-card: 0 1px 4px rgba(0,0,0,.5);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html { overflow-x: hidden; }
body {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 36px; height: 62px;
  background: rgba(6,12,16,.97);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}
.nav-left { display: flex; align-items: center; gap: 16px; }

/* Logo */
.nav-logo, .nav-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-icon, .nav-brand-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  flex-shrink: 0; overflow: hidden;
  object-fit: contain; display: block;
}
.nav-logo-icon svg, .nav-brand-icon svg { display: none; }
.nav-logo-text, .nav-brand-name {
  font-size: 15px; font-weight: 700; color: var(--text-dark); letter-spacing: -.2px;
}
.logo-ecom { font-weight: 400; color: #CBD5E1; }
.logo-spy  { font-weight: 700; color: #00FF88; }

/* Separator */
.nav-sep, .nav-divider {
  width: 1px; height: 18px; background: var(--border); flex-shrink: 0;
}

/* Tool label */
.nav-tool, .nav-tool-name, .nav-page-label {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}

/* Back button — all variants */
.nav-back, .nav-home-btn, .nav-back-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--text-body);
  text-decoration: none; padding: 7px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  transition: all .15s;
}
.nav-back:hover, .nav-home-btn:hover, .nav-back-btn:hover {
  background: var(--surface-3); color: var(--text-dark); border-color: #334155;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #060C10 0%, #0A1F18 40%, #050A14 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 36px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,255,136,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-chip, .hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,255,136,.1); border: 1px solid rgba(0,255,136,.25);
  color: rgba(0,255,136,.9); font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(24px, 3.5vw, 38px); font-weight: 900;
  color: #fff; letter-spacing: -.03em;
  margin-bottom: 12px; line-height: 1.1;
}
.hero-sub, .hero > p {
  font-size: 15px; color: rgba(255,255,255,.62);
  max-width: 540px; margin: 0 auto 32px; line-height: 1.65;
}

/* ── Platform feature chips ── */
.platform-chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.platform-chip { display: flex; align-items: center; gap: 7px; background: rgba(0,255,136,.08); border: 1px solid rgba(0,255,136,.2); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: rgba(0,255,136,.9); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Input inside hero ── */
.input-wrap { max-width: 620px; margin: 0 auto; }

.input-card, .input-box, .input-row {
  display: flex; gap: 8px; align-items: center;
  background: rgba(18,24,38,.95); border: 2px solid var(--border);
  border-radius: 14px; padding: 6px 6px 6px 16px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.input-card:focus-within, .input-box:focus-within, .input-row:focus-within {
  border-color: rgba(0,255,136,.5);
  box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 0 3px rgba(0,255,136,.08);
  background: var(--surface);
}
.input-card input, .input-box input, .input-row input,
.url-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  color: var(--text-dark); padding: 8px 0; min-width: 0;
}
.input-card input::placeholder, .input-box input::placeholder,
.input-row input::placeholder, .url-input::placeholder { color: var(--text-faint); }

.url-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  color: var(--text-dark); padding: 8px 0;
}

.btn-go {
  padding: 10px 22px; border-radius: 10px; border: none; cursor: pointer;
  background: #00FF88;
  color: #000000; font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: opacity .15s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px var(--accent-glow);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-go:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 0 20px rgba(0,255,136,.4); }
.btn-go:active { transform: translateY(0); }
.btn-go:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

.input-hint {
  font-size: 12px; color: var(--text-faint); text-align: center; margin-top: 10px;
}

/* ── Error box (global default — templates may override) ── */
#error-msg, #error-box {
  display: none;
  max-width: 620px; margin: 12px auto 0; border-radius: 12px;
  padding: 12px 18px; font-size: 13px; font-weight: 600; text-align: center;
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.25); color: #F87171;
}

/* ════════════════════════════════════════════
   LOADER
════════════════════════════════════════════ */
#loader {
  display: none; text-align: center; padding: 72px 32px;
}
.spin-ring {
  width: 44px; height: 44px; margin: 0 auto 18px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%; animation: _spin .75s linear infinite;
}
@keyframes _spin { to { transform: rotate(360deg); } }
#loader p { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.loading-wrap { text-align: center; padding: 48px 32px; }
.loading-wrap p { color: var(--text-muted); font-size: 14px; font-weight: 500; }

/* ════════════════════════════════════════════
   ERROR
════════════════════════════════════════════ */
#error-msg, #error-box {
  display: none; max-width: 620px; margin: 24px auto 0;
  padding: 13px 18px; background: var(--red-bg);
  border: 1px solid var(--red-border); border-radius: 10px;
  color: var(--red); font-size: 13px; font-weight: 500; text-align: center;
}
@media (max-width: 640px) {
  #error-msg, #error-box { margin-left: 16px; margin-right: 16px; width: auto; }
}

/* ════════════════════════════════════════════
   RESULTS WRAPPER
════════════════════════════════════════════ */
#results {
  display: none; max-width: 1100px; margin: 0 auto; padding: 36px 28px 80px;
}

/* ════════════════════════════════════════════
   SECTION EYEBROW
════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-faint);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ════════════════════════════════════════════
   CARDS
════════════════════════════════════════════ */
.card, .panel, .side-card, .result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}
.card-head, .panel-head, .side-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
}
.card-body, .panel-body, .side-body { padding: 16px 18px; }
.card-foot, .panel-foot {
  padding: 12px 18px; border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.card-title, .panel-title, .side-title {
  font-size: 13px; font-weight: 700; color: var(--text-dark);
}
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Side icon */
.side-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ════════════════════════════════════════════
   TABS
════════════════════════════════════════════ */
.tab-bar, .fw-tab-bar, .email-tab-bar, .phase-tab-bar, .seq-tab-bar {
  display: flex; gap: 3px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 4px; margin-bottom: 16px;
}
.tab, .fw-tab, .email-tab, .phase-tab, .seq-tab, .filter-btn {
  flex: 1; min-width: 72px; padding: 8px 12px; border-radius: var(--r-sm);
  border: none; background: transparent; cursor: pointer;
  color: var(--text-muted); font-family: 'Space Grotesk', sans-serif;
  font-size: 12px; font-weight: 700; text-align: center;
  transition: all .15s; white-space: nowrap;
}
.tab:hover, .fw-tab:hover, .email-tab:hover,
.phase-tab:hover, .seq-tab:hover, .filter-btn:hover {
  background: var(--surface-3); color: var(--text-dark);
}
.tab.active, .fw-tab.active, .email-tab.active,
.phase-tab.active, .seq-tab.active, .filter-btn.active {
  background: var(--surface-3); color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.tab-panel, .fw-panel, .email-panel, .phase-panel, .seq-panel { display: none; }
.tab-panel.active, .fw-panel.active, .email-panel.active,
.phase-panel.active, .seq-panel.active { display: block; }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
/* Primary */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer;
  background: #00FF88;
  color: #000000; font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 700;
  transition: opacity .15s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 0 20px rgba(0,255,136,.4); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }

/* Copy */
.btn-copy, .btn-copy-email {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; cursor: pointer;
  background: var(--surface-3); border: 1.5px solid var(--border);
  color: var(--text-mid); font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 700; transition: all .15s;
}
.btn-copy:hover, .btn-copy-email:hover { background: var(--surface-2); border-color: #334155; }
.btn-copy.ok, .btn-copy.copied,
.btn-copy-email.ok { background: var(--green-bg); border-color: var(--green-border); color: var(--green); }

/* Ghost / plain */
.btn-copy-plain, .export-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-body); font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 600; transition: all .15s;
}
.btn-copy-plain:hover, .export-btn:hover {
  background: var(--surface-2); color: var(--text-dark); border-color: #334155;
}

/* Mini copy */
.mini-copy {
  padding: 3px 8px; border-radius: 5px; cursor: pointer;
  background: var(--surface-3); border: 1px solid var(--border);
  color: var(--text-muted); font-family: 'Space Grotesk', sans-serif;
  font-size: 10px; font-weight: 600; flex-shrink: 0; transition: all .12s;
}
.mini-copy:hover { background: var(--surface-2); color: var(--text-dark); }
.mini-copy.ok { background: var(--green-bg); color: var(--green); border-color: var(--green-border); }

/* Download */
.dl-btn {
  display: none; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1.5px solid var(--accent-border);
  color: var(--accent); font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; padding: 10px 20px;
  border-radius: 10px; cursor: pointer; transition: background .15s;
  margin-bottom: 28px;
}
.dl-btn.show { display: flex; }
.dl-btn:hover { background: rgba(0,255,136,.15); }

/* ════════════════════════════════════════════
   STATUS / SEMANTIC BADGES
════════════════════════════════════════════ */
.badge, .p-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; border: 1px solid;
}
.badge-green, .pass-badge { background: var(--green-bg); color: #4ADE80; border-color: var(--green-border); }
.badge-amber, .warn-badge { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.badge-red,   .fail-badge { background: var(--red-bg);   color: var(--red); border-color: var(--red-border); }
.badge-blue               { background: var(--blue-bg);  color: var(--blue); border-color: var(--blue-border); }
.badge-gray, .p-tag       { background: var(--surface-3); color: var(--text-body); border-color: var(--border); }

/* Status text */
.pass, .s-good, .col-found { color: #4ADE80 !important; }
.warn, .s-needs            { color: var(--amber) !important; }
.fail, .s-missing, .col-missing { color: var(--red) !important; }
.empty-state, .muted { color: var(--text-faint) !important; }

/* ════════════════════════════════════════════
   EMAIL CARDS (referral, launch, email-flows)
════════════════════════════════════════════ */
.email-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.email-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border-soft); background: var(--surface-2);
}
.email-subj-label, .email-subject-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-faint); margin-bottom: 4px;
}
.email-subj, .email-subject {
  font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 5px;
}
.email-prev, .email-preview { font-size: 12px; color: var(--text-muted); }
.email-body-wrap { padding: 20px; }
.email-body { font-size: 13px; color: var(--text-body); line-height: 1.8; white-space: pre-wrap; margin-bottom: 14px; }

/* ════════════════════════════════════════════
   COPY / RESULT TEXT AREA
════════════════════════════════════════════ */
.copy-area {
  padding: 20px 22px; font-size: 13.5px; color: var(--text-body);
  line-height: 1.85; white-space: pre-wrap;
  font-family: 'Space Grotesk', sans-serif; min-height: 200px;
}
.copy-area strong { color: var(--text-dark); font-weight: 700; }

/* ════════════════════════════════════════════
   GRID UTILITIES
════════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 14px; }
.main-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }

@media(max-width:960px) { .main-grid { grid-template-columns: 1fr; } }
@media(max-width:900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════
   COMMON RESULT COMPONENTS
════════════════════════════════════════════ */
/* Score hero */
.score-hero, .score-header {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}

/* Input card (in results sections) */
.input-card-title { font-size: 16px; font-weight: 800; color: var(--text-dark); }
.input-card-sub   { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Checklist items */
.cl-text { color: var(--text-body); }
.cl-item.done .cl-text { color: var(--text-faint); text-decoration: line-through; }

/* Headings in result cards */
h1, h2, h3, h4 { color: var(--text-dark); }
p { color: var(--text-body); }

/* ════════════════════════════════════════════
   RESPONSIVE HELPERS
════════════════════════════════════════════ */

/* Input icon baseline fix — applies globally */
.input-card > svg, .input-box > svg, .input-row > svg {
  flex-shrink: 0;
  align-self: center;
  color: var(--text-faint);
}

@media(max-width:600px) {
  nav { padding: 0 16px; }
  .hero { padding: 36px 16px 32px; }
  #results { padding: 24px 16px 60px; }
}

@media(max-width:480px) {
  .input-wrap { padding: 0 4px; }
  .input-box, .input-card, .input-row { padding: 6px 6px 6px 12px; gap: 6px; }
  .btn-go { padding: 10px 14px; font-size: 13px; }
}

@media(max-width:640px) {
  .input-box, .input-row {
    flex-wrap: wrap;
  }
  .input-box > svg, .input-row > svg {
    order: 1;
  }
  .input-box > input, .input-row > input,
  .input-box > .url-input, .input-row > .url-input {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
  }
  .input-box > button, .input-row > button {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

@media(max-width:480px) {
  nav {
    padding: 0 12px;
    height: 54px;
    gap: 8px;
  }
  .nav-left {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .nav-logo, .nav-brand {
    gap: 8px;
    min-width: 0;
    max-width: 60vw;
  }
  .nav-logo-icon, .nav-brand-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .nav-logo-text, .nav-brand-name {
    font-size: 12.5px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-tool, .nav-tool-name, .nav-page-label {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    max-width: 45vw;
  }
  .nav-back, .nav-home-btn, .nav-back-btn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-sep, .nav-divider {
    display: none;
  }
}

@media(max-width:390px) {
  nav { padding: 0 10px; }
  .nav-logo-text, .nav-brand-name {
    max-width: 72px;
    font-size: 11.5px;
  }
  .nav-tool, .nav-tool-name, .nav-page-label {
    font-size: 11px;
    max-width: 38vw;
  }
  .nav-count {
    padding: 3px 6px;
    font-size: 9px;
    gap: 3px;
  }
  .nav-profile-btn {
    padding: 1px;
  }
  .nav-profile-btn-inner {
    gap: 5px;
    padding: 1px 7px 1px 1px;
  }
  .nav-avatar {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .nav-profile-name {
    max-width: 54px;
    font-size: 11.5px;
  }

  /* Hero tightening */
  .hero { padding: 28px 14px 22px; }
  .hero h1 { font-size: 22px; }
  .hero-sub, .hero > p { font-size: 14px; margin-bottom: 20px; }
  .hero-chip, .hero-badge { font-size: 10.5px; padding: 4px 12px; margin-bottom: 14px; }

  /* Results container */
  #results { padding: 20px 12px 56px; }

  /* Card sizing — prevent overflow */
  .card, .panel, .result-card, .side-card, .section-card {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Card padding tightening */
  .card-body, .panel-body, .side-body { padding: 14px 14px; }
  .card-head, .panel-head, .side-head { padding: 12px 14px; }
  .card-foot, .panel-foot { padding: 10px 14px; }

  /* Tab tightening */
  .tab, .fw-tab, .email-tab, .phase-tab, .seq-tab, .filter-btn {
    min-width: 60px;
    font-size: 11px;
    padding: 7px 8px;
  }

  /* Input at 390px */
  .input-box, .input-card, .input-row { padding: 5px 5px 5px 12px; gap: 5px; }
  .input-box input, .input-card input, .input-row input { font-size: 13px; }
  .btn-go { padding: 9px 12px; font-size: 12.5px; }
}

/* ── Shared Tool Page Landing Sections ── */
.tp-container { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.tp-container-narrow { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.tp-section { padding: 64px 0; border-bottom: 1px solid #1E293B; }
.tp-section-title { font-size: 22px; font-weight: 800; color: #F1F5F9; margin-bottom: 8px; letter-spacing: -.01em; }

/* Related Tools — homepage card style */
.tp-related-section { background: #0A0F1C; }
.tp-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.tp-related-card {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #161F30 0%, #121826 100%);
  border: 1.5px solid #1E293B;
  border-top: 3px solid var(--rc, #22c55e);
  border-radius: 16px; padding: 20px 18px 16px;
  text-decoration: none; color: inherit;
  transition: all .2s; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.tp-related-card:hover { border-color: var(--rc, #22c55e); border-top-color: var(--rc, #22c55e); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); background: linear-gradient(160deg, #1A2438 0%, #141C2C 100%); }
.tp-rc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.tp-rc-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--rb, rgba(34,197,94,.08)); border: 1.5px solid var(--rbd, rgba(34,197,94,.2)); display: flex; align-items: center; justify-content: center; color: var(--rc, #22c55e); flex-shrink: 0; transition: transform .2s; }
.tp-related-card:hover .tp-rc-icon { transform: scale(1.1) rotate(-3deg); }
.tp-rc-badge { font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(34,197,94,.08); color: #4ADE80; border: 1px solid rgba(34,197,94,.2); }
.tp-rc-title { font-size: 15px; font-weight: 800; color: #F1F5F9 !important; margin-bottom: 8px; line-height: 1.3; letter-spacing: -.02em; }
.tp-rc-desc { font-size: 13px; color: #94A3B8 !important; line-height: 1.65; flex: 1; margin-bottom: 16px; }
.tp-rc-footer { display: flex; align-items: center; padding-top: 12px; border-top: 1px solid #1E293B; margin-top: auto; }
.tp-rc-action { font-size: 12.5px; font-weight: 700; color: var(--rc, #22c55e) !important; display: flex; align-items: center; gap: 5px; }
.tp-rc-action svg { transition: transform .15s; }
.tp-related-card:hover .tp-rc-action svg { transform: translateX(4px); }

/* Book a Call CTA */
.tp-bookcall-section { padding: 80px 24px; background: linear-gradient(135deg, rgba(124,58,237,0.07) 0%, rgba(59,130,246,0.07) 100%); border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B; text-align: center; }
.tp-bookcall-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #64748B; margin-bottom: 14px; }
.tp-bookcall-heading { font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: #F1F5F9; margin-bottom: 14px; letter-spacing: -.01em; }
.tp-bookcall-sub { font-size: 15px; color: #94A3B8; max-width: 520px; margin: 0 auto 28px; line-height: 1.65; }
.tp-bookcall-btn { display: inline-block; background: linear-gradient(135deg, #7c3aed, #3b82f6); color: #fff !important; font-size: 15px; font-weight: 700; padding: 14px 36px; border-radius: 12px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.tp-bookcall-btn:hover { color: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.35); opacity: 1; }

/* ── Tool Page Content Sections (shared) ── */
.tp-section-sub { font-size: 14px; color: #64748B; margin-bottom: 28px; }

/* Direct Answer */
/* ── Direct Answer / Featured Answer card ── */
.tp-da-section { background: #080D1A; padding: 56px 0; border-bottom: 1px solid #1E293B; }
.tp-da-card {
  background: linear-gradient(135deg, #0F1A2E 0%, #0A1220 100%);
  border: 1.5px solid #1E3A5F;
  border-left: 4px solid #00FF88;
  border-radius: 16px;
  padding: 32px 36px;
  position: relative;
  box-shadow: 0 4px 32px rgba(0,255,136,.06), 0 1px 8px rgba(0,0,0,.4);
}
.tp-da-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(ellipse at top left, rgba(0,255,136,.04) 0%, transparent 60%);
  pointer-events: none;
}
.tp-da-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: #00FF88;
  background: rgba(0,255,136,.08);
  border: 1px solid rgba(0,255,136,.2);
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.tp-da-q { font-size: 20px; font-weight: 800; color: #F1F5F9; line-height: 1.4; margin-bottom: 16px; }
.tp-da-rule { height: 1px; background: linear-gradient(90deg, rgba(0,255,136,.3), transparent); margin-bottom: 16px; }
.tp-da-a { font-size: 15px; color: #94A3B8; line-height: 1.8; margin: 0; }
@media (max-width: 640px) { .tp-da-card { padding: 24px 20px; } .tp-da-q { font-size: 17px; } }

/* How It Works */
.tp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.tp-step { display: flex; gap: 14px; align-items: flex-start; background: #121826; border: 1px solid #1E293B; border-radius: 14px; padding: 20px; }
.tp-step-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: rgba(0,255,136,.08); border: 1px solid rgba(0,255,136,.25); color: var(--accent, #00FF88); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tp-step-title { font-size: 14px; font-weight: 700; color: #F1F5F9; margin-bottom: 6px; }
.tp-step-desc { font-size: 13px; color: #64748B; line-height: 1.55; }

/* Sample Output */
.tp-sample-section { background: #0D1220; }
.tp-sample-card { background: #121826; border: 1px solid #1E293B; border-radius: 14px; overflow: hidden; margin-top: 28px; }
.tp-sample-header { display: flex; align-items: center; gap: 6px; padding: 12px 18px; background: #0D1220; border-bottom: 1px solid #1E293B; }
.tp-sample-dot { width: 10px; height: 10px; border-radius: 50%; background: #2D3748; }
.tp-sample-url { margin-left: 10px; font-size: 12px; color: #475569; font-weight: 500; }
.tp-sample-rows { padding: 8px 0; }
.tp-sample-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #1E293B; }
.tp-sample-row:last-child { border-bottom: none; }
.tp-sample-label { font-size: 13px; color: #94A3B8; font-weight: 500; }
.tp-sample-value { font-size: 13px; font-weight: 700; }
.tp-status-good { color: #4ADE80; }
.tp-status-warning { color: #FBBF24; }
.tp-status-danger { color: #F87171; }

/* What You Get */
.tp-wyg-section { background: #0A0F1C; }
.tp-wyg-list { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.tp-wyg-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #CBD5E1; line-height: 1.5; }
.tp-wyg-check { color: var(--accent, #00FF88); flex-shrink: 0; margin-top: 1px; }
.tp-wyg-cta { display: inline-block; margin-top: 28px; background: #00FF88; color: #0A0F1C !important; font-size: 14px; font-weight: 700; padding: 12px 28px; border-radius: 10px; text-decoration: none; transition: background .18s, transform .18s; }
.tp-wyg-cta:hover { background: #00e67a; color: #0A0F1C !important; transform: translateY(-2px); opacity: 1; }

/* FAQ Accordion */
.tp-faq-section { background: #0A0F1C; padding: 64px 0; border-bottom: 1px solid #1E293B; }
.tp-faq-section .tp-section-title { font-size: 28px; font-weight: 800; color: #F1F5F9; margin-bottom: 32px; letter-spacing: -.02em; }
.tp-faq-list { display: flex; flex-direction: column; gap: 12px; }
.tp-faq-item { background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.tp-faq-item:hover { border-color: #334155; }
.tp-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 700; color: #F1F5F9; font-family: inherit; text-align: left; transition: background .15s; line-height: 1.4; }
.tp-faq-q:hover { background: rgba(255,255,255,.02); }
.tp-faq-arrow { flex-shrink: 0; width: 20px; height: 20px; color: #64748b; transition: transform .25s ease; }
.tp-faq-a { padding: 0 24px 20px; font-size: 14px; color: #94A3B8; line-height: 1.75; }

/* Q Blocks */
.tp-qblocks-section { background: #0A0F1C; }
.tp-qblock { margin-bottom: 48px; }
.tp-qblock:last-child { margin-bottom: 0; }
.tp-qblock-h2 { font-size: 20px; font-weight: 800; color: #F1F5F9; margin-bottom: 14px; letter-spacing: -.01em; }
.tp-qblock-answer { font-size: 15px; color: #94A3B8; line-height: 1.8; }

/* CTA Section */
.tp-cta-section { padding: 80px 24px; background: linear-gradient(180deg, #0D1220 0%, #0A0F1C 100%); border-top: 1px solid #1E293B; }
.tp-cta-heading { font-size: 28px; font-weight: 900; color: #F1F5F9; margin-bottom: 10px; letter-spacing: -.01em; }
.tp-cta-sub { font-size: 14px; color: #64748B; margin-bottom: 28px; }
.tp-cta-btn { display: inline-block; background: #00FF88; color: #0A0F1C !important; font-size: 15px; font-weight: 700; padding: 14px 32px; border-radius: 12px; text-decoration: none; transition: background .18s, transform .18s; }
.tp-cta-btn:hover { background: #00e67a; color: #0A0F1C !important; transform: translateY(-2px); opacity: 1; }

/* ── Shared Footer (matches index.html footer exactly) ── */
footer { background: #030608; padding: 0; text-align: center; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), rgba(255,255,255,.5), rgba(255,255,255,.3), transparent); }
footer::after { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 700px; height: 350px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,255,136,.06) 0%, transparent 70%); pointer-events: none; }
.footer-inner { max-width: 960px; margin: 0 auto; padding: 72px 40px 0; position: relative; z-index: 1; }
.footer-logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; justify-content: center; margin-bottom: 20px; }
.footer-logo-icon { width: 48px; height: 48px; border-radius: 14px; object-fit: contain; display: block; flex-shrink: 0; box-shadow: none; }
.footer-logo-text { font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -.4px; }
.footer-logo-sub { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 500; margin-top: 2px; }
.footer-tagline { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.75; max-width: 500px; margin: 0 auto 32px; }
.footer-tagline strong { color: #00FF88; }
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: 999px; }
.footer-badge.blue  { background: rgba(255,255,255,.12); color: #e0e7ff; border: 1px solid rgba(255,255,255,.2); }
.footer-badge.amber { background: rgba(251,191,36,.12); color: #fde68a; border: 1px solid rgba(251,191,36,.25); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom-links { display: flex; align-items: center; gap: 24px; }
.footer-bottom-link { font-size: 12.5px; color: rgba(255,255,255,.25); text-decoration: none; font-weight: 500; transition: color .15s; }
.footer-bottom-link:hover { color: #00FF88; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,.25); font-weight: 500; }
.footer-copy a { color: #00FF88; text-decoration: none; transition: color .15s; }
.footer-copy a:hover { color: #00FF88; }
@media (max-width: 768px) { .footer-inner { padding: 48px 20px 0; } .footer-bottom { justify-content: center; text-align: center; } }
@media (max-width: 480px) { .footer-inner { padding: 32px 14px 0; } .footer-bottom-links { gap: 14px; flex-wrap: wrap; justify-content: center; } .footer-tagline { font-size: 12.5px; } .footer-badges { gap: 7px; justify-content: center; } }
