/* ==========================================================================
   Whautomate Tools - Global Styles
   Aligned with whautomate.com brand
   ========================================================================== */

:root {
  --primary: #5F4DEE;
  --primary-dark: #4A3BD4;
  --primary-light: #B08AFD;
  --navy: #02006D;
  --cta-start: #ff416c;
  --cta-end: #ff4b2b;
  --green: #25d367;
  --text: #333;
  --text-muted: #69727d;
  --bg: #f8f9fc;
  --white: #fff;
  --card-shadow: 0 2px 12px rgba(95, 77, 238, 0.08);
  --card-hover-shadow: 0 8px 30px rgba(95, 77, 238, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 12px 28px;
  transition: all .3s ease;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 20px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(95, 77, 238, .4);
  transform: translateY(-1px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: var(--white);
}

.btn-cta:hover {
  box-shadow: 0 4px 16px rgba(255, 65, 108, .4);
  transform: translateY(-1px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: #f0edff;
  color: var(--primary-dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text);
  font-weight: 500;
}

.logo:hover {
  color: var(--text);
  opacity: .9;
}

.logo-img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav>a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.main-nav>a:hover {
  color: var(--primary);
}

.nav-auth {
  display: flex;
  gap: 10px;
  margin-left: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 32px;
  opacity: .88;
}

.hero .btn {
  margin: 0 8px;
}

/* ---------- Search Bar ---------- */
.tools-search {
  padding: 40px 0 0;
}

.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid #e5e5e5;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: 16px;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(95, 77, 238, .1);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ---------- Category Sections ---------- */
.tools-section {
  padding: 60px 0 0;
}

.tools-section:last-of-type {
  padding-bottom: 80px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title .icon {
  color: var(--primary);
  margin-right: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ---------- Tool Cards ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.tool-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-4px);
  border-color: rgba(95, 77, 238, .2);
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(95, 77, 238, .1), rgba(176, 138, 253, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: var(--primary);
}

.tool-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.tool-card p {
  font-size: 15px;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.55;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-card .badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(95, 77, 238, .08);
  color: var(--primary);
}

.tool-card .badge.auth {
  background: rgba(255, 65, 108, .08);
  color: var(--cta-start);
}

.tool-card .card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-card .card-link:hover {
  gap: 10px;
}

/* ---------- Auth Pages ---------- */
.auth-page {
  min-height: calc(100vh - 72px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  border: 1px solid #eee;
}

.auth-card h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  transition: border-color .2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-card .alt-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-card .alt-link a {
  font-weight: 600;
}

.auth-error {
  display: none;
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Tool Pages ---------- */
.tool-page {
  padding: 48px 0 80px;
}

.tool-page-header {
  margin-bottom: 40px;
}

.tool-page-header .breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tool-page-header .breadcrumb a {
  color: var(--primary);
}

.tool-page-header h1 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tool-page-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.tool-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
  padding: 40px;
  min-height: 400px;
}

.tool-container h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

/* ---------- Promo Sidebar ---------- */
.promo-sidebar {
  position: sticky;
  top: 96px;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  border: 1px solid #eee;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: promoSlideIn .6s ease-out;
}

@keyframes promoSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer sweep */
.promo-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(95, 77, 238, .06), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* Logo */
.promo-logo {
  height: 28px;
  width: auto;
  margin: 0 auto 16px;
}

/* Badge */
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.promo-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
  animation: promoPulse 1.5s ease-in-out infinite;
}

@keyframes promoPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.7);
  }
}

/* Discount display */
.promo-discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2px;
}

.promo-discount-value {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.promo-percent {
  font-size: 32px;
}

.promo-discount-label {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.promo-duration {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.promo-divider {
  width: 40px;
  height: 3px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 2px;
}

.promo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.3;
}

.promo-perks {
  list-style: none;
  text-align: left;
  margin-bottom: 20px;
}

.promo-perks li {
  font-size: 13px;
  color: var(--text);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-perks i {
  color: var(--green);
  font-size: 12px;
  flex-shrink: 0;
}

.promo-cta {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  animation: promoGlow 2s ease-in-out infinite;
}

.promo-cta:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--navy));
  color: var(--white);
}

@keyframes promoGlow {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(95, 77, 238, .2);
  }

  50% {
    box-shadow: 0 4px 20px rgba(95, 77, 238, .45);
  }
}

.promo-fine {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Auth gate overlay */
.auth-gate {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.auth-gate.active {
  display: flex;
}

.auth-gate h2 {
  margin-bottom: 12px;
}

.auth-gate p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 400px;
}

/* ---------- Tool Page CTA ---------- */
.tool-cta {
  padding: 60px 0;
}

.tool-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: var(--white);
  text-align: center;
}

.tool-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.tool-cta-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.tool-cta-card>.tool-cta-content>p {
  font-size: 17px;
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.tool-cta-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-bottom: 32px;
  font-size: 15px;
}

.tool-cta-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
}

.tool-cta-features i {
  color: var(--green);
  font-size: 16px;
}

.tool-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-cta-actions .btn-outline {
  border-color: rgba(255, 255, 255, .4);
  color: var(--white);
}

.tool-cta-actions .btn-outline:hover {
  background: rgba(255, 255, 255, .15);
  border-color: var(--white);
}

.tool-cta-note {
  margin-top: 16px;
  font-size: 13px;
  opacity: .6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  opacity: .7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
  transition: all .2s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-links h4 {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  margin-bottom: 10px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  opacity: .6;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--white);
}

/* ---------- SEO Content Sections ---------- */
.seo-section {
  padding: 60px 0;
}

.seo-section:nth-child(even) {
  background: var(--white);
}

.seo-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.seo-section .section-lead {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.seo-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
  transition: box-shadow .3s, transform .3s;
}

.seo-feature-card:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(-2px);
}

.seo-feature-card .seo-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(95, 77, 238, .1), rgba(176, 138, 253, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
  color: var(--primary);
}

.seo-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.seo-feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Industries grid */
.seo-industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.seo-industry {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid #eee;
  transition: border-color .3s, box-shadow .3s;
}

.seo-industry:hover {
  border-color: rgba(95, 77, 238, .3);
  box-shadow: var(--card-shadow);
}

.seo-industry i {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.seo-industry h3 {
  font-size: 15px;
  font-weight: 600;
}

/* Channels strip */
.seo-channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.seo-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid #eee;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--card-shadow);
}

.seo-channel i {
  font-size: 20px;
  color: var(--primary);
}

.seo-channel i.fa-whatsapp { color: #25d367; }
.seo-channel i.fa-instagram { color: #E1306C; }
.seo-channel i.fa-facebook-messenger { color: #006AFF; }
.seo-channel i.fa-telegram { color: #0088cc; }

/* Stats bar */
.seo-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  padding: 48px 0;
  text-align: center;
}

.seo-stat h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.seo-stat p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQ Accordion */
.seo-faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #eee;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .2s;
}

.faq-question:hover {
  background: var(--bg);
}

.faq-question i {
  font-size: 14px;
  color: var(--primary);
  transition: transform .3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Tool page SEO content below tool */
.tool-seo-content {
  padding: 60px 0 0;
}

.tool-seo-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tool-seo-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 32px;
}

.tool-seo-content p,
.tool-seo-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.tool-seo-content ul,
.tool-seo-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.tool-seo-content li {
  margin-bottom: 6px;
}

.seo-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 24px 0 32px;
}

.seo-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #eee;
  text-align: center;
}

.seo-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
  font-size: 16px;
}

.seo-step h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.seo-step p {
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .seo-section h2 {
    font-size: 24px;
  }
  .seo-features-grid {
    grid-template-columns: 1fr;
  }
  .seo-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seo-stats {
    gap: 24px;
  }
  .seo-stat h3 {
    font-size: 28px;
  }
  .seo-steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- PSEO Pages ---------- */
.pseo-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 48px 0 56px;
}

.pseo-hero .breadcrumb {
  font-size: 14px;
  opacity: .7;
  margin-bottom: 16px;
}

.pseo-hero .breadcrumb a {
  color: rgba(255, 255, 255, .8);
}

.pseo-hero .breadcrumb a:hover {
  color: var(--white);
}

.pseo-hero .breadcrumb span {
  margin: 0 6px;
  opacity: .5;
}

.pseo-hero h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
}

.pseo-hero-sub {
  font-size: 18px;
  max-width: 680px;
  opacity: .88;
  line-height: 1.6;
  margin-bottom: 28px;
}

.pseo-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pseo-content {
  min-width: 0;
}

.pseo-section-block {
  margin-bottom: 48px;
}

.pseo-section-block h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.pseo-section-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Pain points grid */
.pseo-pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.pseo-pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
}

.pseo-pain-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 65, 108, .1), rgba(255, 75, 43, .12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--cta-start);
}

.pseo-pain-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pseo-pain-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Feature list */
.pseo-feature-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.pseo-feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
  transition: box-shadow .3s;
}

.pseo-feature-item:hover {
  box-shadow: var(--card-hover-shadow);
}

.pseo-feature-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(95, 77, 238, .1), rgba(176, 138, 253, .15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
}

.pseo-feature-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pseo-feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Benefits grid */
.pseo-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.pseo-benefit-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: var(--card-shadow);
}

.pseo-benefit-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.pseo-benefit-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Related pages */
.pseo-related {
  padding: 60px 0;
  background: var(--bg);
}

.pseo-related h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

/* Sticky industry nav */
.industry-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  padding: 10px 0;
}

.industry-sticky-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.industry-sticky-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.industry-sticky-pills::-webkit-scrollbar {
  display: none;
}

.industry-pill {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e5e5;
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
}

.industry-pill:hover,
.industry-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.industry-sticky-search {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  background: #f9f9f9;
  transition: border-color .2s;
}

.industry-sticky-search:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.industry-sticky-search i {
  color: #aaa;
  font-size: 13px;
}

.industry-sticky-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  width: 140px;
  color: var(--text);
}

@media (max-width: 768px) {
  .industry-sticky-row {
    flex-direction: column;
    gap: 8px;
  }
  .industry-sticky-search {
    width: 100%;
  }
  .industry-sticky-search input {
    width: 100%;
  }
}

/* Category pills */
.pseo-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e5e5;
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Video section */
.pseo-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.pseo-video-featured {
  grid-column: 1 / -1;
  width: 100%;
}

.pseo-video-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow .3s;
  width: 100%;
}

.pseo-video-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.pseo-video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
}

.pseo-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pseo-yt-link { display: block; cursor: pointer; text-decoration: none; }
.pseo-yt-link img { position: absolute; top: 50%; left: 50%; width: 100%; transform: translate(-50%,-50%); object-fit: cover; }
.pseo-yt-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1; opacity: .85; transition: opacity .2s; }
.pseo-yt-link:hover .pseo-yt-play { opacity: 1; }

.pseo-video-title {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 !important;
  text-align: center;
}

/* Shorts grid */
.pseo-shorts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.pseo-shorts-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: box-shadow .3s;
  width: 100%;
  max-width: 280px;
}

.pseo-shorts-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.pseo-shorts-wrap {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 vertical */
  height: 0;
  overflow: hidden;
  background: #000;
}

.pseo-shorts-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PSEO card (no icon) */
.pseo-card .tool-card-icon {
  display: none;
}

@media (max-width: 768px) {
  .pseo-hero h1 {
    font-size: 26px;
  }
  .pseo-pain-grid {
    grid-template-columns: 1fr;
  }
  .pseo-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pseo-hero-actions {
    flex-direction: column;
  }
  .pseo-hero-actions .btn {
    width: 100%;
  }
  .pseo-video-grid {
    grid-template-columns: 1fr;
  }
  .pseo-shorts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pseo-shorts-card {
    max-width: 100%;
  }
}

/* ---------- 404 ---------- */
.page-404 {
  min-height: calc(100vh - 72px - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
}

.page-404 h1 {
  font-size: 80px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-404 p {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mb-2 {
  margin-bottom: 16px;
}

/* Copied toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: all .3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .promo-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-auth {
    flex-direction: column;
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .auth-card {
    padding: 32px 24px;
    margin: 0 16px;
  }

  .tool-container {
    padding: 24px;
  }

  .tool-page-header h1 {
    font-size: 26px;
  }
}