/* WhyPay SEO Pages — RTL Hebrew */

:root {
  --purple: #1E3A8A;
  --purple-dark: #172554;
  --purple-light: #EFF6FF;
  --green: #22C55E;
  --green-light: #F0FDF4;
  --orange: #F59E0B;
  --red: #EF4444;
  --bg: #F8F9FA;
  --bg-white: #FFFFFF;
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;
  --border: #E9ECEF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
}

/* ── Typography ───────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-right: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

/* ── Layout ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow { max-width: 760px; }

section { padding: 4rem 0; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -.5px;
}

.logo-tagline {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .2s;
}

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

.nav-cta {
  background: var(--purple);
  color: #fff !important;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover {
  background: var(--purple-dark) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

@media (max-width: 600px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 16px rgba(108,92,231,.3);
}

.btn--primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,.4);
  text-decoration: none;
  color: #fff;
}

.btn--lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

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

.btn--outline:hover {
  background: var(--purple-light);
  text-decoration: none;
  color: var(--purple);
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #f0edff 0%, #e8f8f5 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,92,231,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__stats { justify-content: center; }
  .hero__cta { justify-content: center; }
}

.hero__badge {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: .5px;
}

.hero__title { margin-bottom: 1rem; }

.hero__title span { color: var(--purple); }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero__stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--purple);
  display: block;
}

.hero__stat-label {
  font-size: .8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero__note {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .5rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  width: 100%;
}

.hero__card-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

.hero__score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero__score-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 238deg, var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__score-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}

.hero__score-text { font-size: .95rem; line-height: 1.4; }
.hero__score-text strong { display: block; font-size: 1rem; }

.hero__args { list-style: none; padding: 0; }
.hero__args li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero__args li:last-child { border-bottom: none; }
.hero__args li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Steps ────────────────────────────────────────── */
.steps-section { background: var(--bg-white); }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 3rem; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step-card {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-card::after {
  content: '→';
  position: absolute;
  top: 50%;
  left: -1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--text-light);
}

.step-card:last-child::after { display: none; }

@media (max-width: 768px) {
  .step-card::after {
    content: '↓';
    top: auto;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { font-size: .9rem; color: var(--text-secondary); }

/* ── Features ─────────────────────────────────────── */
.features-section { background: var(--bg); }

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}

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

.feature-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.feature-desc { font-size: .9rem; color: var(--text-secondary); margin: 0; }

/* ── Articles Grid ────────────────────────────────── */
.articles-section { background: var(--bg-white); }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.article-card__category {
  font-size: .75rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}

.article-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
  line-height: 1.4;
}

.article-card:hover .article-card__title { color: var(--purple); }

.article-card__desc {
  font-size: .85rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 1rem;
}

.article-card__meta {
  font-size: .75rem;
  color: var(--text-light);
  display: flex;
  gap: .75rem;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-section { background: var(--bg); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform .2s;
}

details[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.1rem;
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── CTA Band ─────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, #9B59B6 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }

.btn--white {
  background: #fff;
  color: var(--purple);
}

.btn--white:hover {
  background: var(--purple-light);
  color: var(--purple);
  text-decoration: none;
}

/* ── Article Page ─────────────────────────────────── */
.article-hero {
  background: linear-gradient(135deg, #f0edff 0%, #f8f9fa 100%);
  padding: 3rem 0 2.5rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--purple); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-light); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  flex-wrap: wrap;
}

.article-meta__category {
  background: var(--purple-light);
  color: var(--purple);
  padding: .2rem .7rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .8rem;
}

.article-body {
  padding: 3rem 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--purple-light);
  color: var(--text);
}

.article-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 .5rem;
  color: var(--text);
}

.article-content p { color: var(--text-secondary); line-height: 1.8; }

.article-content ul, .article-content ol {
  color: var(--text-secondary);
  line-height: 1.8;
}

.highlight-box {
  background: var(--purple-light);
  border-right: 4px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .95rem;
  color: var(--text);
}

.highlight-box--green {
  background: var(--green-light);
  border-color: var(--green);
}

.article-sidebar .sticky-box {
  position: sticky;
  top: 80px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.toc-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li { margin-bottom: .4rem; }
.toc-list a {
  font-size: .9rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.toc-list a:hover { color: var(--purple); }

.cta-sticky {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--purple-light), #e8f8f5);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.cta-sticky p { font-size: .9rem; margin-bottom: .75rem; }

/* ── Article FAQ ──────────────────────────────────── */
.article-faq { padding: 2rem 0 3rem; }

/* ── Related Articles ─────────────────────────────── */
.related-section {
  background: var(--bg);
  padding: 3rem 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ── Article CTA Box ──────────────────────────────── */
.article-cta-box {
  background: linear-gradient(135deg, var(--purple) 0%, #9B59B6 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
  margin: 2.5rem 0;
}

.article-cta-box h3 { color: #fff; margin-bottom: .75rem; font-size: 1.3rem; }
.article-cta-box p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

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

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.footer-desc { font-size: .9rem; line-height: 1.6; }

.footer-heading {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: .4rem; }

.footer-links a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  font-size: .8rem;
  text-align: center;
  color: rgba(255,255,255,.4);
}

/* ── Utilities ────────────────────────────────────── */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.tag {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple);
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 50px;
}
