/**
 * web/public/seo/seo.css — The public static pages (/features, /features/*, /about, /faq,
 * /android, 404), built by scripts/build-seo.mjs. They look like the landing page
 * (src/styles/landing.css): the same colors, header, buttons, cards and footer. No dependency on
 * the app's bundle.
 */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/seo/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090e;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --faint: #6b7280;
  --gold: #f5b942;
  --gold-soft: rgba(245, 185, 66, 0.12);
  --green: #34d399;
  --radius: 18px;
  --max-width: 1120px;
}

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

html {
  overflow-wrap: anywhere;
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-align: start;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(900px 480px at 50% -120px, rgba(245, 185, 66, 0.10), transparent 70%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.seo-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.seo-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.seo-brand-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.25);
}

.seo-nav {
  display: flex;
  gap: 22px;
  margin-inline-end: auto;
}

.seo-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s;
}

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

/* ── Buttons ── */
.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s;
}

.seo-btn-primary {
  background: #fff;
  color: #0b0d12;
}

.seo-btn-primary:hover {
  background: #f1f1f1;
}

.seo-btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.seo-btn-ghost:hover {
  background: var(--surface-hover);
}

.seo-btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
  background: var(--gold);
  color: #1a1204;
}

.seo-btn-small:hover {
  background: #f7c55f;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Page ── */
.seo-main {
  flex: 1;
  padding: 28px 0 24px;
}

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--faint);
  font-size: 0.85rem;
}

.seo-breadcrumb li + li::before {
  content: '‹';
  margin-inline-end: 8px;
}

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

.seo-breadcrumb [aria-current] {
  color: var(--muted);
}

.seo-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 48px;
  text-align: center;
}

.seo-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(245, 185, 66, 0.22);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

.seo-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 2.9rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.seo-hero-intro {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.95;
}

.seo-hero .seo-cta-buttons {
  margin-top: 26px;
}

.seo-hero-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.85rem;
}

/* Block headings (steps, questions, related) */
.seo-steps-block,
.seo-faq-block,
.seo-related-block {
  margin-top: 64px;
}

.seo-steps-block > h2,
.seo-faq-block > h2,
.seo-related-block > h2 {
  margin-bottom: 24px;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
}

/* ── Article ── */
.seo-article {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo-section {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.seo-section h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 800;
}

.seo-section p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.95;
}

.seo-section p + p {
  margin-top: 10px;
}

.seo-bullets {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.seo-bullets li {
  position: relative;
  padding-inline-start: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.seo-bullets li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--green);
  font-weight: 700;
}

/* ── Cards: features hub, steps, related ── */
.seo-hub-grid,
.seo-related-grid,
.seo-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.seo-hub-card,
.seo-related-card,
.seo-step-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}

.seo-hub-card:hover,
.seo-related-card:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.seo-hub-card h2,
.seo-related-card h3,
.seo-step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.seo-hub-card p,
.seo-related-card p,
.seo-step-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.85;
}

.seo-hub-more,
.seo-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.93rem;
}

.seo-hub-more:hover,
.seo-related-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.seo-step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 800;
}

/* ── Questions ── */
.seo-faq-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

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

.seo-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
}

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

.seo-faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}

.seo-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.seo-faq-q {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.7;
}

.seo-faq-a {
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.95;
}

/* The FAQ page: the list straight under the hero */
.seo-hero + .seo-faq-grid {
  margin-bottom: 8px;
}

/* ── Closing call ── */
.seo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 72px;
  padding: 52px 24px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(245, 185, 66, 0.13), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-strong);
}

.seo-cta h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
}

.seo-cta p {
  max-width: 560px;
  color: var(--muted);
}

.seo-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* ── 404 ── */
.seo-404-box {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 0;
  text-align: center;
}

.seo-404-code {
  color: var(--gold);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.seo-404-box h1 {
  margin-top: 8px;
  font-size: 1.6rem;
}

.seo-404-box p {
  margin: 10px 0 24px;
  color: var(--muted);
}

/* ── Footer ── */
.seo-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}

.seo-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.seo-footer-brand {
  max-width: 340px;
}

.seo-footer-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.seo-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.seo-footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-footer-links a:hover {
  color: var(--text);
}

.seo-footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}

/* ── Smaller screens ── */
@media (max-width: 960px) {
  .seo-hub-grid,
  .seo-related-grid,
  .seo-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .seo-container {
    padding: 0 16px;
  }

  .seo-nav {
    display: none;
  }

  .seo-header-inner {
    justify-content: space-between;
  }

  .seo-hero {
    padding: 40px 0 32px;
  }

  .seo-hub-grid,
  .seo-related-grid,
  .seo-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .seo-section {
    padding: 22px 18px;
  }

  .seo-cta {
    padding: 40px 18px;
  }

  .seo-cta-buttons,
  .seo-cta-buttons .seo-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ── Language link (the same page in the other language) ── */
.seo-lang {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s;
}

.seo-lang:hover {
  color: var(--text);
}
