/* ==========================================================================
   Jar of Us — SEO Pages Shared Stylesheet
   Pure CSS, no framework. Mobile-first responsive.
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #030712;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.15);
  --pink: #ec4899;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #eab308;
  --max-w: 960px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

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

/* --- Container --- */
.seo-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.seo-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.seo-header__nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.seo-header__nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.seo-header__nav a:hover { color: white; text-decoration: none; }

/* --- Breadcrumbs --- */
.seo-breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 20px 0;
}

.seo-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.seo-breadcrumb li::after { content: "/"; margin-left: 6px; }
.seo-breadcrumb li:last-child::after { content: ""; }
.seo-breadcrumb li:last-child { color: var(--text-muted); }
.seo-breadcrumb a { color: var(--text-dim); }
.seo-breadcrumb a:hover { color: var(--purple-light); }

/* --- Hero --- */
.seo-hero {
  text-align: center;
  padding: 60px 20px 48px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%);
}

.seo-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 16px;
}

.seo-hero .subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.seo-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  background: var(--purple-glow);
  color: var(--purple-light);
  border: 1px solid rgba(124,58,237,0.25);
}

/* --- Sections --- */
.seo-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
}

.seo-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  line-height: 1.3;
}

.seo-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.seo-section p {
  margin-bottom: 14px;
  color: var(--text-secondary);
}

.seo-section--alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seo-section--alt .seo-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
}

/* --- Verdict Box --- */
.seo-verdict {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.seo-verdict strong { color: white; }

/* --- Comparison Table --- */
.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.seo-comparison-table thead th {
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.03);
}

.seo-comparison-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.seo-comparison-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.seo-comparison-table .highlight {
  color: white;
  font-weight: 600;
}

.seo-comparison-table .winner {
  color: var(--green);
  font-weight: 600;
}

.seo-comparison-table .loser {
  color: var(--text-dim);
}

/* Table responsive wrapper */
.seo-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

/* --- Cards (glass-morphism) --- */
.seo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: background 0.2s, border-color 0.2s;
}

.seo-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: var(--border-hover);
}

.seo-card h3 { margin-bottom: 8px; }

.seo-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

.seo-card .card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
}

/* --- Grid Layouts --- */
.seo-grid {
  display: grid;
  gap: 20px;
}

.seo-grid-2 { grid-template-columns: 1fr; }
.seo-grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .seo-grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .seo-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* --- Check / X Lists --- */
.seo-check-list,
.seo-x-list {
  list-style: none;
  margin: 16px 0;
}

.seo-check-list li,
.seo-x-list li {
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 15px;
}

.seo-check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.seo-x-list li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* --- Testimonials --- */
.seo-testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.seo-testimonial blockquote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.seo-testimonial blockquote::before { content: "\201C"; }
.seo-testimonial blockquote::after { content: "\201D"; }

.seo-testimonial .stars {
  color: #eab308;
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.seo-testimonial .author {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.seo-testimonial .author-tag {
  font-size: 12px;
  color: var(--text-dim);
}

/* --- FAQ (details/summary) --- */
.seo-faq { margin: 24px 0; }

.seo-faq details {
  border-bottom: 1px solid var(--border);
}

.seo-faq summary {
  padding: 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.seo-faq summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.seo-faq details[open] summary::after {
  content: "\2212";
}

.seo-faq .faq-answer {
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA Block --- */
.seo-cta-block {
  text-align: center;
  padding: 56px 20px;
  background: radial-gradient(ellipse at 50% 100%, rgba(124,58,237,0.1) 0%, transparent 70%);
}

.seo-cta-block h2 {
  font-size: 28px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.seo-cta-block p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}

/* --- Buttons --- */
.seo-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: var(--purple);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.seo-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.5);
  text-decoration: none;
  color: white;
}

.seo-cta-btn--small {
  padding: 8px 20px;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(124,58,237,0.3);
}

.seo-cta-btn--secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.seo-cta-btn--secondary:hover {
  border-color: var(--border-hover);
  color: white;
  box-shadow: none;
}

/* --- Price Tag --- */
.seo-price {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-light);
  background: var(--purple-glow);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  padding: 4px 14px;
}

/* --- How It Works Steps --- */
.seo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
  counter-reset: step;
}

.seo-step {
  counter-increment: step;
  padding-left: 48px;
  position: relative;
}

.seo-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--purple-glow);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple-light);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 36px;
  text-align: center;
}

.seo-step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

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

/* --- Listicle Item --- */
.seo-listicle-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.seo-listicle-item:last-child { border-bottom: none; }

.seo-listicle-item .rank {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.seo-listicle-item h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.seo-listicle-item.featured {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 32px 24px;
  margin: -1px 0;
}

/* --- Occasion Grid --- */
.seo-occasion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.seo-occasion {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.seo-occasion .emoji { font-size: 28px; margin-bottom: 6px; }
.seo-occasion .label { font-size: 14px; font-weight: 600; color: white; }

/* --- Footer --- */
.seo-footer {
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
}

.seo-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.seo-footer img { height: 32px; margin: 0 auto 20px; }

.seo-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.seo-footer__nav a {
  color: var(--text-dim);
  font-size: 14px;
}

.seo-footer__nav a:hover { color: var(--text-muted); }

.seo-footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Purple Highlight --- */
.purple { color: var(--purple-light); }
.green { color: var(--green); }

/* --- Responsive --- */
@media (min-width: 640px) {
  .seo-hero h1 { font-size: 40px; }
  .seo-hero { padding: 80px 20px 56px; }
  .seo-section { padding: 56px 20px; }
  .seo-section h2 { font-size: 28px; }
  .seo-steps { grid-template-columns: 1fr 1fr 1fr; }
  .seo-occasion-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .seo-hero h1 { font-size: 48px; }
  .seo-cta-block h2 { font-size: 36px; }
}

@media (min-width: 1024px) {
  .seo-container { padding: 0 40px; }
}
