/* =========================================================
   ExamiAI SEO pages — matches landing brand (#2962FF)
   ========================================================= */
:root {
  --brand-mid: var(--brand, #2962FF);
  --accent: var(--brand, #2962FF);
  --accent-light: #93C5FD;
  --border: var(--line, #E8EDF5);
  --bg-soft: var(--soft, #F4F6FA);
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.seo-body {
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(41, 98, 255, 0.08), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    var(--bg, #fff);
}

.seo-main {
  padding: 28px 0 88px;
  max-width: 100%;
  overflow-x: clip;
}

.seo-page {
  max-width: 980px;
  margin: 0 auto;
}

/* Breadcrumbs */
.seo-bc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.seo-bc li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: .45;
}
.seo-bc a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.seo-bc a:hover { text-decoration: underline; }

/* Hero */
.seo-hero {
  position: relative;
  display: grid;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(41, 98, 255, 0.14), transparent 60%),
    linear-gradient(180deg, #fff 0%, #F8FAFF 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.seo-hero-copy { position: relative; z-index: 1; min-width: 0; }
.seo-hero-art {
  display: none;
  width: min(280px, 100%);
  justify-self: end;
  filter: drop-shadow(0 16px 28px rgba(41,98,255,.12));
  animation: seoFloat 6s ease-in-out infinite;
}
@keyframes seoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.seo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.seo-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--ink);
}
.seo-lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
  font-weight: 500;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 750;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.seo-btn-ico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: 0 0 auto;
}
.seo-btn:hover { transform: translateY(-1px); }
.seo-btn.primary {
  background: linear-gradient(180deg, #3B72FF 0%, var(--brand) 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px rgba(41, 98, 255, .25);
}
.seo-btn.light {
  background: #fff;
  color: var(--brand);
}
.seo-btn.ghost-muted {
  opacity: .7;
  cursor: default;
}

/* Stats */
.seo-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.seo-stat {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.seo-stat small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.seo-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Blocks */
.seo-block { margin: 32px 0; }
.seo-block > h2 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.seo-block > p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Horizontal chip / card rails */
.seo-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.seo-chips::-webkit-scrollbar { height: 6px; }
.seo-chips::-webkit-scrollbar-thumb { background: #C9D4E5; border-radius: 99px; }

.seo-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 750;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.seo-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 98, 255, .28);
  box-shadow: 0 10px 24px rgba(41, 98, 255, .1);
  color: var(--brand);
}
.seo-chip .seo-chip-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
  padding: 0;
}
.seo-chip .seo-chip-ico img { width: 28px; height: 28px; }

/* Cards */
.seo-grid-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.seo-card {
  display: block;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-width: 0;
}
.seo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 98, 255, .28);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}
.seo-card .seo-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.seo-card .seo-card-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--brand);
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}
.seo-card .seo-card-ico img { width: 42px; height: 42px; }
.seo-card h2,
.seo-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.seo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 500;
}
.seo-card .seo-card-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 750;
  color: var(--brand);
}

/* Exam hub rail */
.seo-exam-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.seo-exam-rail .seo-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
}

/* PYQ list */
.seo-pyq-list { display: grid; gap: 12px; }
.seo-pyq-item {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease;
}
.seo-pyq-item:hover {
  border-color: rgba(41, 98, 255, .3);
  transform: translateY(-1px);
}
.seo-pyq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.seo-pyq-meta span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.seo-pyq-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  font-weight: 600;
  font-size: 14px;
}

/* Question card */
.seo-q-card {
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.seo-q-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.seo-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}
.seo-q-text {
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
}
.seo-options { display: grid; gap: 8px; }
.seo-option {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--soft);
  font-weight: 600;
  font-size: 14px;
}
.seo-answer {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.seo-answer a { color: var(--brand); font-weight: 750; }

/* Pager */
.seo-pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  font-weight: 750;
  flex-wrap: wrap;
  color: var(--muted);
}
.seo-pager a {
  color: var(--brand);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
}

/* FAQ */
.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
}
.seo-faq p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA band */
.seo-cta-band {
  position: relative;
  margin-top: 40px;
  padding: 32px 24px;
  border-radius: 28px;
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, #0B1220 0%, #12255A 45%, #2962FF 100%);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg, 0 28px 64px rgba(15,23,42,.14));
  overflow: hidden;
}
.seo-cta-art {
  position: absolute;
  right: -2%;
  bottom: -18%;
  width: min(260px, 42vw);
  opacity: .18;
  pointer-events: none;
}
.seo-cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.seo-cta-band p {
  margin: 0 auto 18px;
  opacity: .9;
  max-width: 520px;
  line-height: 1.6;
  font-size: 15px;
}
.seo-cta-band .seo-cta-row {
  justify-content: center;
}
.seo-cta-band .seo-btn.ghost-muted {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
}

/* Prose / blog */
.seo-prose {
  line-height: 1.75;
  color: var(--muted);
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.seo-prose p { margin: 0 0 14px; }
.seo-prose h2,
.seo-prose h3 {
  color: var(--ink);
  letter-spacing: -.02em;
  margin: 24px 0 10px;
}
.seo-prose a { color: var(--brand); font-weight: 700; }

/* Login gate */
.seo-login-gate { margin-top: 8px; }
.seo-login-gate-inner {
  text-align: center;
  padding: 36px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #F8FAFF 0%, #fff 100%);
  box-shadow: var(--shadow);
}
.seo-login-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: transparent;
  margin-bottom: 16px;
  overflow: hidden;
}
.seo-login-gate-icon img { width: 48px; height: 48px; }
.seo-login-gate h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.seo-login-gate p {
  margin: 0 auto 18px;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.65;
}
.seo-login-gate .seo-cta-row {
  justify-content: center;
  margin-top: 0;
}

@media (min-width: 640px) {
  .seo-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seo-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .seo-chips { flex-wrap: wrap; overflow: visible; }
  .seo-hero { padding: 36px 32px; grid-template-columns: 1.2fr .8fr; }
  .seo-hero-art { display: block; }
}

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

@media (prefers-reduced-motion: reduce) {
  .seo-hero-art { animation: none; }
}

@media (max-width: 639px) {
  .seo-hero .seo-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .seo-hero .seo-btn { width: 100%; }
  .seo-cta-band .seo-cta-row {
    flex-direction: column;
    align-items: stretch;
    max-width: 360px;
    margin-inline: auto;
  }
  .seo-cta-band .seo-btn { width: 100%; }
}
