/* ==========================================================================
   SEORankBot - landing, login and public pages in the BRN agency brand
   (colours and font as in style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&display=swap');

/* BRN agency brand font (see style.css) */
@font-face {
  font-family: 'Bw Gradual';
  src: url('../assets/fonts/bw-gradual-regular.woff2') format('woff2');
  font-weight: 100 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bw Gradual';
  src: url('../assets/fonts/bw-gradual-medium.woff2') format('woff2');
  font-weight: 451 900;
  font-style: normal;
  font-display: swap;
}
/* JetBrains Mono (SIL OFL), served from here instead of Google Fonts. Variable font: one file covers 400–600. */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --serp-bg: #e6f3f3;
  --serp-bg-subtle: #f6fafa;
  --serp-card: #ffffff;
  --serp-text: #2e1b3a;
  --serp-text-muted: #6b5c78;
  --serp-border: #dce8e8;
  --serp-input-bg: #edf5f5;
  --serp-green: #e00200;
  --serp-green-hover: #d60200;
  --serp-green-dark: #b00200; /* text on light-red badges (5:1) */
  --serp-navy: #2e1b3a;
  --serp-slate: #524262;
  --serp-radius-sm: 6px;
  --serp-radius-md: 12px;
  --serp-radius-lg: 20px;
  --serp-radius-full: 9999px;
  --serp-shadow: 0 10px 25px -5px rgba(36, 15, 48, 0.08), 0 8px 10px -6px rgba(36, 15, 48, 0.04);
  --serp-shadow-lg: 0 20px 35px -8px rgba(36, 15, 48, 0.12), 0 10px 15px -5px rgba(36, 15, 48, 0.06);
}

[data-theme="dark"] {
  --serp-bg: #140a1b;
  --serp-green-dark: #fb7a62;
  --serp-bg-subtle: #240f30;
  --serp-card: #22122c;
  --serp-text: #f6fafa;
  --serp-text-muted: #9a8fa5;
  --serp-border: #2e1b3a;
  --serp-input-bg: #2e1b3a;
}

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

body {
  font-family: 'Bw Gradual', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--serp-bg);
  color: var(--serp-text);
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Wavy Curves */
.serp-wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1; /* behind the content: at 0 it covered the FAQ cards */
  opacity: 0.7;
}

/* ==========================================================================
   SERPROBOT Typography & Brand Logo
   ========================================================================== */
.brand-logo {
  font-size: 1.85rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #524262;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.02);
}

[data-theme="dark"] .brand-logo {
  color: #edf5f5;
}

/* ==========================================================================
   SERPROBOT Marketing Header & Navigation
   ========================================================================== */
.marketing-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--serp-border);
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .marketing-header {
  background: rgba(36, 15, 48, 0.95);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--serp-text-muted);
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--serp-text);
}

.nav-links a.active {
  color: var(--serp-green);
}

.btn-signup-pill {
  background: var(--serp-green);
  color: #ffffff !important;
  padding: 8px 24px;
  border-radius: var(--serp-radius-full);
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(251, 2, 0, 0.35);
  transition: all 0.2s ease !important;
}

.btn-signup-pill:hover {
  background: var(--serp-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 2, 0, 0.45);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--serp-text);
  cursor: pointer;
}

/* ==========================================================================
   LANDING PAGE: Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

/* BRN brandbook geometric shapes behind the hero (decorative) */
.brand-shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.brand-shapes .bs {
  position: absolute;
  display: block;
  animation: bs-float 9s ease-in-out infinite alternate;
}
.bs-circle   { width: 46px; top: 22px;  left: 46%;  }
.bs-square   { width: 34px; bottom: 34px; left: 8%; transform: rotate(12deg); animation-delay: -3s; }
.bs-triangle { width: 40px; top: 18%;  right: 2%;  transform: rotate(-14deg); animation-delay: -5s; }
.bs-corner   { width: 52px; bottom: 18px; right: 30%; animation-delay: -2s; }
.bs-half     { width: 56px; top: 8px;   left: 2%;  animation-delay: -6s; }
.bs-dash     { width: 54px; bottom: 46%; left: 50%; transform: rotate(-35deg); animation-delay: -4s; }
@keyframes bs-float {
  from { translate: 0 0; }
  to   { translate: 0 -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-shapes .bs { animation: none; }
}
@media (max-width: 900px) {
  .bs-dash, .bs-corner { display: none; }
  .bs-circle { left: auto; right: 6%; }
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--serp-text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--serp-text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero-solid {
  background: var(--serp-green);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: var(--serp-radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(251, 2, 0, 0.4);
  transition: all 0.2s ease;
  border: 2px solid var(--serp-green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-solid:hover {
  background: var(--serp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 2, 0, 0.5);
}

.btn-hero-outline {
  background: transparent;
  color: var(--serp-green);
  padding: 14px 32px;
  border-radius: var(--serp-radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid var(--serp-green);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-outline:hover {
  background: rgba(251, 2, 0, 0.1);
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(36, 15, 48, 0.08));
  animation: floatSubtle 6s ease-in-out infinite;
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   LANDING PAGE: 3 Feature Cards Grid
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.features-header {
  max-width: 800px;
  margin: 0 auto 60px;
}

.features-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--serp-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.features-header p {
  font-size: 1.05rem;
  color: var(--serp-text-muted);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--serp-card);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--serp-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--serp-shadow-lg);
}

.feature-illustration {
  width: 180px;
  height: 140px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--serp-text);
  margin-bottom: 14px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--serp-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   LANDING PAGE: Unlock the Tools Section
   ========================================================================== */
.tools-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.tools-visual {
  display: flex;
  justify-content: center;
}

.tools-visual svg {
  max-width: 320px;
  height: auto;
}

.tools-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--serp-text);
  margin-bottom: 24px;
  line-height: 1.25;
}

.tools-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.tools-checklist li {
  display: flex;
  text-align: left; /* the mobile section centres text; a wrapped item drifted from its bullet */
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--serp-text);
  font-weight: 500;
}

.tools-checklist li::before {
  content: "•";
  color: var(--serp-green);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

.tools-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--serp-green-dark); /* small red text on the mint background needs the darker red */
  text-decoration: underline;
  transition: opacity 0.15s ease;
}

.tools-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   LANDING PAGE: Testimonial & Social Proof Section
   ========================================================================== */
.social-proof-section {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.testimonial-box {
  background: var(--serp-card);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-lg);
  padding: 36px;
  box-shadow: var(--serp-shadow);
}

.star-rating {
  color: #e0b400;
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--serp-text);
  line-height: 1.6;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--serp-text-muted);
}

.social-proof-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--serp-text);
  margin-bottom: 16px;
  line-height: 1.25;
}

.social-proof-content p {
  font-size: 1rem;
  color: var(--serp-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.love-illustration {
  display: flex;
  justify-content: flex-start;
}

.love-illustration svg {
  max-width: 320px;
  height: auto;
}

/* ==========================================================================
   LANDING PAGE: CTA Bottom Banner
   ========================================================================== */
.cta-section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 50px 30px;
  text-align: center;
  background: var(--serp-card);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-lg);
  box-shadow: var(--serp-shadow-lg);
}

.cta-section h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--serp-text);
  margin-bottom: 14px;
}

.cta-section p.subhead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--serp-text);
  margin-bottom: 8px;
}

.cta-section p.details {
  font-size: 0.95rem;
  color: var(--serp-text-muted);
  margin-bottom: 32px;
}

.cta-inner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.btn-cta-big {
  background: var(--serp-green);
  color: #ffffff;
  padding: 16px 40px;
  border-radius: var(--serp-radius-full);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(251, 2, 0, 0.45);
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-cta-big:hover {
  background: var(--serp-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 2, 0, 0.55);
}

.cta-robot {
  width: 140px;
  height: auto;
}

/* ==========================================================================
   LANDING PAGE: Footer
   ========================================================================== */
.marketing-footer {
  position: relative;
  z-index: 1;
  background: #c6e8e7;
  padding: 60px 32px 30px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

[data-theme="dark"] .marketing-footer {
  background: #0f1d18;
  border-top: 1px solid #1f5f73;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1f5f73;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .footer-col h4 {
  color: #6fb8d1;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1f5f73;
  transition: opacity 0.15s ease;
}

[data-theme="dark"] .footer-col a {
  color: #8fcfd0;
}

.footer-col a:hover {
  opacity: 0.75;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 101, 52, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #1f5f73;
}

[data-theme="dark"] .footer-bottom {
  color: #8fcfd0;
  border-top-color: rgba(134, 239, 172, 0.15);
}

.btn-scroll-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1f5f73;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.btn-scroll-top:hover {
  transform: translateY(-2px);
}

/* ==========================================================================
   LOGIN / SIGN UP PAGE (Screenshot 1)
   ========================================================================== */
.auth-page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-header-logo {
  margin-bottom: 30px;
  text-align: center;
}

.auth-card {
  width: 100%;
  max-width: 860px;
  background: var(--serp-card);
  border-radius: var(--serp-radius-md);
  box-shadow: var(--serp-shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  overflow: hidden;
  border: 1px solid var(--serp-border);
}

/* Left side: Mascot visual */
.auth-card-visual {
  background: #f6fafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border-right: 1px solid var(--serp-border);
}

[data-theme="dark"] .auth-card-visual {
  background: #0d1522;
}

.auth-card-visual svg {
  max-width: 100%;
  height: auto;
}

/* Right side: Login & Sign Up Form */
.auth-card-form {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--serp-text);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--serp-text-muted);
  margin-bottom: 24px;
}

.form-group-serp {
  margin-bottom: 18px;
}

.form-label-serp {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--serp-text-muted);
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #9a8fa5;
  font-size: 1rem;
  pointer-events: none;
}

.input-serp {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.92rem;
  background-color: var(--serp-input-bg);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-sm);
  color: var(--serp-text);
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.input-serp:focus {
  border-color: var(--serp-green);
  background-color: var(--serp-card);
  box-shadow: 0 0 0 3px rgba(251, 2, 0, 0.15);
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--serp-text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--serp-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.link-forgot {
  color: var(--serp-green);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.link-forgot:hover {
  text-decoration: underline;
}

.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.btn-auth-outline {
  padding: 10px 24px;
  border-radius: var(--serp-radius-sm);
  border: 1px solid var(--serp-green);
  background: transparent;
  color: var(--serp-green);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-auth-outline:hover {
  background: rgba(251, 2, 0, 0.1);
}

.btn-auth-solid {
  padding: 10px 28px;
  border-radius: var(--serp-radius-sm);
  border: none;
  background: var(--serp-green);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(251, 2, 0, 0.3);
}

.btn-auth-solid:hover {
  background: var(--serp-green-hover);
  transform: translateY(-1px);
}

/* Alert notifications */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--serp-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: none;
}

.auth-alert-error {
  background: #fff3ef;
  border: 1px solid #fed0c5;
  color: #b8361a;
}

.auth-alert-success {
  background: #eef7f7;
  border: 1px solid #c6e8e7;
  color: #1f6f87;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .tools-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .tools-visual {
    order: -1;
  }
  .social-proof-section {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .auth-card {
    grid-template-columns: 1fr;
  }
  .auth-card-visual {
    display: none;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--serp-card);
    border-bottom: 2px solid var(--serp-border);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  .nav-links.open {
    display: flex !important;
  }
  .mobile-nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--serp-text);
  }
}

/* Responsive grid for Free SERP Checker Form */
.checker-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}

@media (max-width: 640px) {
  .checker-inputs-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Responsive Auth Footer Links */
.auth-footer-links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--serp-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.auth-footer-link {
  color: var(--serp-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-footer-link:hover {
  color: var(--serp-text);
}
.auth-footer-link.highlight {
  color: var(--serp-green);
  font-weight: 600;
}
@media (max-width: 480px) {
  .auth-footer-links {
    flex-direction: column;
    gap: 8px;
  }
  .auth-footer-sep {
    display: none;
  }
}


/* ==========================================================================
   SEO COMPONENTS: FAQ Accordion, Comparison Table, Dedicated Tool Embed
   ========================================================================== */

/* FAQ Accordion Section */
.faq-section {
  max-width: 960px;
  margin: 70px auto 30px;
  padding: 0 24px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header .badge-pill {
  display: inline-block;
  background: rgba(251, 2, 0, 0.15);
  color: var(--serp-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--serp-radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--serp-text);
  margin-bottom: 12px;
}

.faq-header p {
  color: var(--serp-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--serp-card);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-md);
  box-shadow: 0 2px 8px rgba(36, 15, 48, 0.04);
  transition: all 0.25s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: rgba(251, 2, 0, 0.4);
  box-shadow: 0 4px 14px rgba(36, 15, 48, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--serp-text);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--serp-green);
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--serp-green);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--serp-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0 24px 22px 24px;
}

/* Comparison Table Styles */
.comparison-section {
  max-width: 1140px;
  margin: 60px auto;
  padding: 0 24px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--serp-card);
  border-radius: var(--serp-radius-lg);
  border: 1px solid var(--serp-border);
  box-shadow: var(--serp-shadow);
  margin-top: 36px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--serp-border);
}

.comparison-table th {
  background: var(--serp-bg-subtle);
  font-size: 1rem;
  font-weight: 800;
  color: var(--serp-text);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: rgba(251, 2, 0, 0.05);
  border-left: 2px solid var(--serp-green);
  border-right: 2px solid var(--serp-green);
}

.comparison-table th.highlight-col {
  color: var(--serp-green-dark);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td.feature-title {
  font-weight: 600;
  color: var(--serp-text);
}

.comparison-table td.feature-title small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--serp-text-muted);
  margin-top: 4px;
}

.badge-winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #c6e8e7;
  color: #175a6e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

[data-theme="dark"] .badge-winner {
  background: #1f5f73;
  color: #c6e8e7;
}

.badge-loser {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf5f5;
  color: #6b5c78;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

[data-theme="dark"] .badge-loser {
  background: #2e1b3a;
  color: #9a8fa5;
}

/* Dedicated Tool Embed / Search Box */
.tool-embed-card {
  background: var(--serp-card);
  border: 1px solid var(--serp-border);
  border-radius: var(--serp-radius-lg);
  padding: 36px;
  box-shadow: var(--serp-shadow-lg);
  max-width: 820px;
  margin: 0 auto;
}

.serp-results-container {
  margin-top: 28px;
  border-top: 1px solid var(--serp-border);
  padding-top: 24px;
}

.serp-result-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--serp-radius-md);
  border: 1px solid var(--serp-border);
  background: var(--serp-bg-subtle);
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}

.serp-result-item:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 2, 0, 0.4);
}

.serp-result-item.target-highlight {
  border-color: var(--serp-green);
  background: rgba(251, 2, 0, 0.08);
}

.serp-rank-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--serp-slate);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.serp-result-item.target-highlight .serp-rank-pill {
  background: var(--serp-green);
}


/* BRN agency logo in the app and login headers */
.brand-logo-img {
  display: block;
  height: 40px;
  width: auto;
}
