/* ==========================================================
   OpenRanker — custom overrides
   Primary brand color: #573ff7
   ========================================================== */

:root {
  --brand:        #573ff7;
  --brand-dark:   #4a34dd;
  --brand-50:     #efedff;
  --brand-100:    #e0ddff;
  --brand-200:    #c4beff;
  --brand-300:    #a094ff;
  --brand-400:    #7a67fc;
  --brand-600:    #4a34dd;
  --brand-700:    #3b28b3;
}

html { scroll-behavior: smooth; }
body {
  background: #ffffff;
  color: #111827;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Gradient blobs ── */
.blob { position: absolute; border-radius: 9999px; filter: blur(90px); pointer-events: none; }
.blob-purple { background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%); }
.blob-pink   { background: radial-gradient(circle, rgba(236,72,153,0.10) 0%, transparent 70%); }
.blob-orange { background: radial-gradient(circle, rgba(87,63,247,0.14) 0%, transparent 70%); }

/* ── Navbar ── */
#navbar { transition: background 0.3s, box-shadow 0.3s; }
#navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 #e5e7eb;
}

/* ── Cards ── */
.card-base    { background: #ffffff; border: 1px solid #e5e7eb; }
.card-popular {
  background: linear-gradient(140deg, rgba(87,63,247,0.06) 0%, rgba(139,92,246,0.04) 100%);
  border: 1.5px solid var(--brand);
}

/* ── AI Overview highlight badge ── */
.ai-badge {
  background: linear-gradient(90deg, rgba(87,63,247,0.12), rgba(139,92,246,0.14));
  border: 1px solid rgba(87,63,247,0.25);
  color: var(--brand-700);
}

/* ── FAQ accordion ── */
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.acc-body.open { max-height: 400px; }
.acc-icon { transition: transform 0.28s ease; }
.acc-icon.rotated { transform: rotate(180deg); }

/* ── Step gradient numbers ── */
.step-num {
  background: linear-gradient(135deg, #573ff7 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Toggle knob ── */
#toggle-knob { transition: left 0.22s ease; }

/* ── Pulse dot ── */
@keyframes pulse-dot { 0%,100%{opacity:.6} 50%{opacity:1} }
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── AI Overview glow text ── */
.ai-glow {
  background: linear-gradient(90deg, #573ff7, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Language switcher ── */
.lang-switch {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}

/* ── Pricing redesign ── */
.pricing2-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .pricing2-grid { grid-template-columns: 1fr; max-width: 520px; }
}

.pcard {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pcard--pro {
  border: 1.5px solid var(--brand);
  box-shadow: 0 10px 30px rgba(87,63,247,0.12);
}

.pcard__title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: .15em;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pcard__subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 18px;
}
.pcard__price-main {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 20px;
}
.pcard__price-main small {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 500;
  margin-left: 4px;
}

.pbtn {
  width: 100%;
  padding: 11px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
  text-decoration: none;
}
.pbtn--ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand-200);
}
.pbtn--ghost:hover { background: var(--brand-50); }
.pbtn--ghost:disabled { opacity: .6; cursor: not-allowed; }
.pbtn--solid {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pbtn--solid:hover { background: var(--brand-dark); }
.pbtn--outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.pbtn--outline:hover { background: var(--brand); color: #fff; }

.toggle-group {
  display: inline-flex;
  border: 1px solid var(--brand-200);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  background: #fff;
}
.toggle-group button {
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  color: var(--brand);
}
.toggle-group button.active {
  background: var(--brand);
  color: #fff;
}

.pcard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.pselect {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fff;
  color: #111827;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23573ff7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  margin-bottom: 16px;
}

.price-display {
  margin-bottom: 14px;
}
.price-display .main {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.price-display .unit {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-left: 4px;
  font-weight: 500;
}
.price-display .total {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.save-badge {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
}

.credit-note {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--brand);
}

.ksize {
  margin-top: 16px;
  padding: 14px;
  background: var(--brand-50);
  border-radius: 10px;
}
.ksize__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 8px;
}
.ksize__row {
  font-size: 0.86rem;
  color: #374151;
  padding: 4px 0;
}
.ksize__row b { color: #111827; font-weight: 700; }

.pfeatures {
  margin-top: 18px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pfeatures li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #374151;
}
.pfeatures .check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 1px;
}
.pfeatures b { color: var(--brand); font-weight: 700; }

.contact-list {
  margin-top: 14px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #4b5563;
}
.contact-list i { color: var(--brand); }
