/* Promobuddy Free Tools — shared styles */
:root {
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-900: #4c1d95;
  --blue-soft: #e0f2fe;
  --blue-500: #38bdf8;
  --blue-700: #0284c7;
  --mint-soft: #d1fae5;
  --mint-500: #10b981;
  --mint-700: #047857;
  --amber-soft: #fef3c7;
  --amber-500: #f59e0b;
  --amber-700: #92400e;
  --rose-soft: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-700: #be123c;
  --ink: #1e1b4b;
  --ink-soft: #4c1d95;
  --grey: #6b7280;
  --grey-light: #9ca3af;
  --grey-bg: #f9fafb;
  --bg: #fafaff;
  --card: #ffffff;
  --border: #e5e7eb;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Old top nav — HIDDEN now that we use pb-header */
nav.top { display: none !important; }

.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--purple-700);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-500), var(--blue-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

/* Typography */
h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 16px;
}
h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: 32px 0 16px 0;
}
h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 20px 0 10px 0;
}
p { margin-bottom: 14px; }
a { color: var(--purple-700); }

/* Hero block for tool pages */
.tool-hero {
  padding: 48px 0 24px 0;
  text-align: center;
}
.tool-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-100);
  color: var(--purple-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 18px;
}
.tool-hero .mascot {
  display: block;
  margin: 0 auto 12px auto;
  width: 120px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(124, 58, 237, 0.18));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.tool-hero p.lead {
  font-size: 17px;
  color: var(--grey);
  max-width: 580px;
  margin: 0 auto 12px auto;
  line-height: 1.6;
}

/* Card */
.card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(76, 29, 149, 0.06), 0 4px 12px rgba(76, 29, 149, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.card-flat {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

/* Forms */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 8px;
}
input[type="text"], input[type="url"], input[type="number"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px var(--purple-100);
}
textarea { resize: vertical; min-height: 100px; font-family: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-primary {
  background: var(--purple-700);
  color: white;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35); }
.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--purple-700); color: var(--purple-700); }
.btn-ghost {
  background: transparent;
  color: var(--purple-700);
  padding: 8px 14px;
}
.btn-ghost:hover { background: var(--purple-50); }

/* Result blocks */
.result-block {
  background: linear-gradient(135deg, var(--purple-50), var(--blue-soft));
  border-radius: 16px;
  padding: 24px;
  margin-top: 18px;
}
.result-block h3 { margin-top: 0; }
.result-output {
  background: white;
  border-radius: 10px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 13px;
  word-break: break-all;
  border: 1px solid var(--border);
}

/* Old promobuddy-cta — HIDDEN, replaced by pb-cta-section */
.promobuddy-cta { display: none !important; }

/* Old footer — HIDDEN, replaced by pb-footer */
footer:not(.pb-footer) { display: none !important; }

/* Tool grid (for hub) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tools-grid { grid-template-columns: 1fr; } }
.tool-card {
  background: white;
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
  display: block;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(76, 29, 149, 0.1);
  border-color: var(--purple-200);
}
.tool-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.tool-card h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 6px 0;
}
.tool-card p {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
  line-height: 1.5;
}
.tool-card .tag {
  display: inline-block;
  font-size: 10px;
  background: var(--mint-soft);
  color: var(--mint-700);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 10px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
th {
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--purple-50);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
tbody tr:hover { background: var(--purple-50); }

/* Pills/Tags */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-purple { background: var(--purple-100); color: var(--purple-700); }
.pill-mint { background: var(--mint-soft); color: var(--mint-700); }
.pill-amber { background: var(--amber-soft); color: var(--amber-700); }
.pill-blue { background: var(--blue-soft); color: var(--blue-700); }
.pill-rose { background: var(--rose-soft); color: var(--rose-700); }

/* Two-column */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* FAQ */
.faq details {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.faq summary {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--purple-700);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 12px;
  color: var(--grey);
  font-size: 14px;
  line-height: 1.6;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: white;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s;
  z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ======================================================
   SHARED HEADER + FOOTER (replicates apps/web/app/(marketing))
   added 2026-06-27
   ====================================================== */

.pb-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 12px 0;
}
@media (min-width: 640px) { .pb-header { padding: 16px 16px 0; } }
.pb-header-inner { max-width: 1152px; margin: 0 auto; }
.pb-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #eef0f5;
  border-radius: 16px;
  display: flex; flex-wrap: nowrap;
  align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
}
@media (min-width: 640px) { .pb-nav { padding: 8px 16px; gap: 12px; } }
.pb-logo {
  display: flex; align-items: center; gap: 6px;
  min-width: 0; flex-shrink: 1;
  text-decoration: none; color: var(--ink);
}
@media (min-width: 640px) { .pb-logo { gap: 8px; } }
.pb-logo img { height: 28px; width: 28px; flex-shrink: 0; }
@media (min-width: 640px) { .pb-logo img { height: 36px; width: 36px; } }
.pb-logo-text {
  font-family: 'Sora', sans-serif; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); font-size: 20px; line-height: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (min-width: 640px) { .pb-logo-text { font-size: 28px; } }
.pb-logo-text em { font-style: normal; color: var(--purple-600); }
.pb-nav-links {
  display: none; align-items: center; gap: 28px;
  font-size: 14px; color: var(--grey);
}
@media (min-width: 900px) { .pb-nav-links { display: flex; } }
.pb-nav-links a { color: var(--grey); text-decoration: none; transition: color 0.15s; }
.pb-nav-links a:hover, .pb-nav-links a.pb-nav-current { color: var(--ink); }
.pb-nav-badge {
  display: inline-block; margin-left: 4px;
  padding: 2px 6px; font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; border-radius: 4px;
  background: rgba(16, 185, 129, 0.15); color: var(--mint-500);
  text-transform: uppercase; vertical-align: middle;
}
.pb-nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pb-login {
  display: none; font-size: 14px; color: var(--grey);
  text-decoration: none; padding: 6px 12px; transition: color 0.15s;
}
@media (min-width: 640px) { .pb-login { display: inline-flex; } }
.pb-login:hover { color: var(--ink); }
.pb-cta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
  color: white; font-weight: 600;
  font-size: 13px; text-decoration: none; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
@media (min-width: 640px) { .pb-cta-pill { font-size: 14px; padding: 9px 18px; } }
.pb-cta-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4); }
.pb-header-spacer { height: 72px; }
@media (min-width: 640px) { .pb-header-spacer { height: 84px; } }

/* pb-cta-section (vervangt promobuddy-cta) */
.pb-cta-section { padding: 56px 16px 72px; }
.pb-cta-inner {
  max-width: 1152px; margin: 0 auto;
  background: linear-gradient(135deg, #ede9fe 0%, #e0f2fe 100%);
  border: 1px solid #eef0f5; border-radius: 24px;
  padding: 36px 28px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}
@media (min-width: 720px) {
  .pb-cta-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; gap: 32px; }
}
.pb-cta-text { flex: 1; min-width: 0; }
.pb-cta-text h2 {
  font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800;
  color: var(--ink); line-height: 1.15; margin: 0 0 8px;
}
@media (min-width: 720px) { .pb-cta-text h2 { font-size: 30px; } }
.pb-cta-text p { color: var(--grey); margin: 0; font-size: 15px; line-height: 1.55; }
.pb-cta-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
  color: white; font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  transition: transform 0.15s, box-shadow 0.15s; flex-shrink: 0;
}
.pb-cta-button:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45); }

/* pb-footer */
.pb-footer { margin-top: 32px; border-top: 1px solid #eef0f5; background: var(--bg); color: var(--ink); }
.pb-marquee {
  overflow: hidden;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
  color: white; padding: 14px 0;
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
  white-space: nowrap;
}
.pb-marquee-track {
  display: inline-flex; align-items: center; white-space: nowrap;
  animation: pb-marquee-scroll 28s linear infinite;
}
.pb-marquee-track > span { display: inline-block; padding: 0 8px; }
.pb-marquee-track em {
  font-style: normal;
  background: linear-gradient(135deg, #c4b5fd 0%, #93c5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pb-marquee-dot { color: rgba(255, 255, 255, 0.5); }
@keyframes pb-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pb-footer-inner { max-width: 1152px; margin: 0 auto; padding: 48px 24px 24px; }
.pb-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 32px; font-size: 14px;
}
@media (min-width: 720px) { .pb-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pb-footer-brand .pb-footer-logo { display: inline-flex; align-items: center; text-decoration: none; }
.pb-footer-brand .pb-footer-logo img { height: 32px; width: auto; }
.pb-footer-brand p { margin: 12px 0 0; color: var(--ink-soft); font-size: 12px; }
.pb-footer-heading {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin-bottom: 12px;
}
.pb-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pb-footer-list a { color: var(--grey); text-decoration: none; transition: color 0.15s; }
.pb-footer-list a:hover { color: var(--ink); }
.pb-footer-bottom {
  max-width: 1152px; margin: 40px auto 0;
  padding: 24px 24px 0; border-top: 1px solid #eef0f5;
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px; font-size: 12px; color: var(--ink-soft);
}
.pb-footer-status { display: inline-flex; align-items: center; gap: 6px; }
.pb-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
