/* ==========================================================================
   NakonRent — SEO pages, editorial system v2 (2026-06-30)
   Libre Caslon display · Inter body · JetBrains Mono data/labels.
   Cool paper / ink / single bronze accent. Hairlines, generous rhythm.
   Logical properties throughout for RTL. Risk palette reserved for the
   semaphore only. Tokens mirror web/styles.css — dark mode and the brand
   read identically across the landing and the SEO surface.
   ========================================================================== */

:root {
  color-scheme: light;

  /* layout */
  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 8vw, 104px);

  /* type */
  --font-display: "Libre Caslon Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* surfaces — cool paper */
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-2: #f2f4f6;
  --surface-3: #eceef0;

  /* ink */
  --ink: #191c1e;
  --ink-2: #45464d;
  --ink-3: #76777d;

  /* lines */
  --line: rgba(25, 28, 30, 0.10);
  --line-strong: #c6c6cd;

  /* accent — bronze (the one brand accent) */
  --accent: #725b26;
  --accent-strong: #594410;
  --accent-tint: rgba(114, 91, 38, 0.10);

  /* risk semaphore (risk only — never decorative) */
  --risk: #ba1a1a;
  --warn: #b45309;
  --fair: #1e7a52;

  /* dark editorial break */
  --panel: #21262a;
  --panel-ink: #eef1f3;

  /* effects */
  --shadow-edit: 0 30px 60px -12px rgba(20, 24, 28, 0.12), 0 18px 36px -18px rgba(20, 24, 28, 0.14);
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.05), 0 8px 24px -12px rgba(20, 24, 28, 0.10);
  --shadow-card: 0 4px 12px -4px rgba(20, 24, 28, 0.08), 0 2px 4px rgba(20, 24, 28, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --on-accent: #ffffff;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131618;
  --surface: #1b1f22;
  --surface-2: #1f2427;
  --surface-3: #262b2f;
  --ink: #eceef0;
  --ink-2: #b7bcc0;
  --ink-3: #868c91;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: #3a4045;
  --accent: #e2c383;
  --accent-strong: #efce8e;
  --accent-tint: rgba(226, 195, 131, 0.12);
  --risk: #f0867d;
  --warn: #e2a85c;
  --fair: #6acb93;
  --panel: #0d0f11;
  --panel-ink: #eef1f3;
  --shadow-edit: 0 34px 70px -16px rgba(0, 0, 0, 0.55), 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 4px 16px -4px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
  --on-accent: #221c0a;
}

/* ========================= base ========================= */

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body.seo-page {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* Serif display for headings; mirror the landing's Hebrew/Arabic fallback. */
.seo-page h1, .seo-page h2, .seo-page h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0;
  text-wrap: balance;
}

:root[lang="he"] .seo-page h1,
:root[lang="he"] .seo-page h2,
:root[lang="he"] .seo-page h3 {
  font-family: "Frank Ruhl Libre", "Narkisim", "David", Georgia, serif;
  letter-spacing: 0;
}

:root[lang="ar"] .seo-page h1,
:root[lang="ar"] .seo-page h2,
:root[lang="ar"] .seo-page h3 {
  font-family: "Tajawal", "Traditional Arabic", Georgia, serif;
  letter-spacing: 0;
}

::selection { background: var(--accent-tint); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 1px;
}

/* ========================= kicker ========================= */

/* shared mono micro-label with a short hairline rule before it */
.seo-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.seo-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.seo-page--profile .seo-kicker,
.seo-page--city .seo-kicker { color: var(--accent); }

/* ========================= breadcrumb ========================= */

.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.seo-breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

.seo-breadcrumb span[aria-hidden="true"] {
  color: var(--line-strong);
}

.seo-breadcrumb [aria-current="page"] {
  color: var(--ink-2);
}

/* ========================= header ========================= */

.seo-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  height: 64px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 0.5px solid var(--line);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.seo-brand {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.16s var(--ease);
}

.seo-brand:hover { color: var(--accent); }

.seo-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.seo-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.16s var(--ease);
}

.seo-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  inset-inline: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.seo-nav a:hover,
.seo-nav a:focus-visible { color: var(--accent); outline: none; }

.seo-nav a:hover::after { transform: scaleX(1); }

.seo-header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* language switcher (native <details>, no JS) */
.seo-lang { position: relative; }

.seo-lang summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding-inline: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  list-style: none;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

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

.seo-lang summary::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, currentColor 44% 56%, transparent 56%),
    linear-gradient(transparent 44%, currentColor 44% 56%, transparent 56%);
  opacity: 0.7;
}

.seo-lang[open] summary,
.seo-lang summary:hover { border-color: var(--accent); color: var(--accent); }

.seo-lang__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-edit);
  z-index: 10;
}

.seo-lang__menu a {
  padding: 9px 12px;
  border-radius: 2px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.86rem;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}

.seo-lang__menu a:hover { background: var(--accent-tint); color: var(--ink); }
.seo-lang__menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }

/* theme toggle */
.seo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.seo-toggle:hover { border-color: var(--accent); color: var(--accent); }

.seo-toggle::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
}

/* ========================= layout shell ========================= */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.seo-band {
  margin: 0;
  padding-block: var(--section-y);
  border-bottom: 0.5px solid var(--line);
  scroll-margin-top: 96px;
}

.seo-band h2 {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
}

.seo-band p {
  max-width: 66ch;
  margin: 0 0 20px;
  color: var(--ink-2);
}

.seo-small { margin-top: 16px; color: var(--ink-3); font-size: 0.86rem; }

/* ========================= hero ========================= */

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(56px, 9vw, 120px) var(--section-y);
  border-bottom: 0.5px solid var(--line);
  /* Subtle paper background */
  background:
    linear-gradient(to bottom, var(--surface-2) 0%, transparent 60%);
}

.seo-hero__content { max-width: 46rem; }

.seo-hero h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.06;
}

/* Italic accent keyword in h1 */
.seo-hero h1 em {
  font-style: italic;
}

.seo-lead {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 1.06rem;
  line-height: 1.62;
}

.seo-microfacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.seo-microfacts li { display: inline-flex; align-items: center; gap: 18px; }
.seo-microfacts li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline-end: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.seo-stat {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--ink-3);
  font-size: 0.92rem;
}

.seo-credit {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* actions */
.seo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 36px;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.seo-button--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.seo-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-edit);
}

.seo-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.seo-textlink::after { content: "\2192"; transition: transform 0.18s var(--ease); }
.seo-textlink:hover::after { transform: translateX(4px); }
[dir="rtl"] .seo-textlink::after { content: "\2190"; }
[dir="rtl"] .seo-textlink:hover::after { transform: translateX(-4px); }

/* trust pills */
.seo-pills {
  display: flex;
  flex-wrap: wrap;
  margin: 40px 0 0;
  padding: 0;
  border: 0.5px solid var(--line);
  border-radius: 3px;
  list-style: none;
  background: var(--surface);
  overflow: hidden;
}

.seo-pills li {
  flex: 1 1 120px;
  padding: 20px 22px;
  border-inline-start: 0.5px solid var(--line);
}

.seo-pills li:first-child { border-inline-start: 0; }

.seo-pills strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink);
}

.seo-pills span {
  display: block;
  margin-top: 10px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ========================= hero aside — analysis card ========================= */

.seo-hero__aside {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* The analysis preview card — shows product output, not just a legend */
.seo-analysis-card {
  border: 0.5px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-edit);
  overflow: hidden;
}

.seo-analysis-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 0.5px solid var(--line);
}

.seo-analysis-card__label {
  margin: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.seo-analysis-card__score {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.seo-analysis-card__score span {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.seo-analysis-card__score em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0;
}

/* Clause list inside the card */
.seo-clause-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-clause {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 20px;
  border-bottom: 0.5px solid var(--line);
}

.seo-clause:last-child { border-bottom: 0; }

.seo-clause__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.seo-clause--risk .seo-clause__dot { background: var(--risk); }
.seo-clause--warn .seo-clause__dot { background: var(--warn); }
.seo-clause--fair .seo-clause__dot { background: var(--fair); }

.seo-clause__text {
  color: var(--ink-2);
  font-size: 0.83rem;
  line-height: 1.42;
}

.seo-analysis-card__foot {
  padding: 12px 20px;
  background: var(--surface-2);
  border-top: 0.5px solid var(--line);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

/* Compact risk legend that lives below the card */
.seo-aside-legend {
  padding: 18px 20px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.seo-aside__kicker {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.seo-legend { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }

.seo-legend li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 0.5px solid var(--line);
}

.seo-legend li:first-child { border-top: 0; padding-top: 0; }

.seo-dot {
  grid-row: span 2;
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.seo-dot--risk { background: var(--risk); }
.seo-dot--warn { background: var(--warn); }
.seo-dot--fair { background: var(--fair); }

.seo-legend strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seo-legend em {
  grid-column: 2;
  color: var(--ink-2);
  font-style: normal;
  font-size: 0.84rem;
  line-height: 1.4;
}

.seo-aside__foot {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}

/* ========================= analysis band ========================= */

.seo-grid { display: block; }

.seo-band article { padding: 0; }

.seo-panel {
  margin-top: 36px;
  padding: 26px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
}

.seo-panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.seo-panel p { font-size: 0.92rem; }

/* ========================= table ========================= */

.seo-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-card);
}

.seo-table th,
.seo-table td {
  padding: 15px 20px;
  border-bottom: 0.5px solid var(--line);
  text-align: start;
  vertical-align: middle;
}

.seo-table th {
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-table td { color: var(--ink-2); font-size: 0.92rem; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table td:first-child { color: var(--ink); font-weight: 600; }
.seo-table td:last-child { width: 96px; text-align: center; }

.seo-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.seo-priority span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 0.5px solid var(--line);
}

.seo-priority span.is-active { background: var(--risk); border-color: var(--risk); }

/* ========================= evidence (facts + case) ========================= */

.seo-evidence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  margin-top: 52px;
  padding-top: 52px;
  border-top: 0.5px solid var(--line);
}

.seo-facts h3,
.seo-case h3,
.seo-operational h3 {
  margin: 0 0 20px;
  font-size: 1.22rem;
  line-height: 1.2;
}

/* Facts list — large ghost numerals for editorial depth */
.seo-facts ol {
  counter-reset: fact;
  display: grid;
  margin: 0;
  padding: 0;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  list-style: none;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.seo-facts li {
  position: relative;
  padding: 20px 22px 20px 68px;
  border-bottom: 0.5px solid var(--line);
}

[dir="rtl"] .seo-facts li { padding: 20px 68px 20px 22px; }
.seo-facts li:last-child { border-bottom: 0; }

.seo-facts li::before {
  counter-increment: fact;
  content: counter(fact, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 16px;
  top: 14px;
  color: var(--surface-3);
  font-family: var(--font-display);
  font-size: 3rem;        /* ↑ was 1.5rem — makes the ghost numeral dramatic */
  line-height: 0.9;
  font-style: italic;
  transition: color 0.22s var(--ease);
}

.seo-facts li:hover::before { color: var(--accent-tint); }

.seo-facts span {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.seo-facts a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.seo-facts a::after { content: "\2197"; }

.seo-case {
  padding: 26px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.seo-case p { margin: 0 0 14px; color: var(--ink-2); font-size: 0.94rem; }

.seo-case__check {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}

.seo-case a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.seo-case a::after { content: "\2192"; }
[dir="rtl"] .seo-case a::after { content: "\2190"; }

/* Operational: 3-up cards with mono labels */
.seo-operational { margin-top: 52px; }

.seo-operational ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-operational li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
  padding: 22px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.seo-operational li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.seo-operational li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.seo-operational li > p { margin: 0; color: var(--ink-2); font-weight: 400; }

.seo-operational > p {
  max-width: 64ch;
  margin: 20px 0 0;
  padding: 16px 20px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ========================= dark methodology section ========================= */

.seo-dark {
  background: var(--panel);
  border-top: 0.5px solid rgba(255,255,255,0.04);
  border-bottom: 0.5px solid rgba(255,255,255,0.04);
}

.seo-dark__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 9vw, 108px) var(--gutter);
}

.seo-dark h2 {
  margin: 0 0 52px;
  color: var(--panel-ink);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.seo-method-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-method-card {
  position: relative;
  padding: 28px 28px 32px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  transition: background 0.2s var(--ease);
}

.seo-method-card:hover {
  background: rgba(255,255,255,0.05);
}

.seo-method-num {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.seo-method-title {
  display: block;
  margin-bottom: 12px;
  color: var(--panel-ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.seo-method-body {
  margin: 0;
  color: rgba(238, 241, 243, 0.58);
  font-size: 0.9rem;
  line-height: 1.58;
}

/* ========================= link grids (profiles, cities) ========================= */

.seo-band--links { padding-block: clamp(44px, 6vw, 80px); }

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 0.5px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.seo-band--cities .seo-link-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.seo-link-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 14px 18px;
  border-inline-start: 0.5px solid var(--line);
  border-top: 0.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.seo-link-grid a::after {
  content: "\2192";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

[dir="rtl"] .seo-link-grid a::after {
  content: "\2190";
  transform: translateX(6px);
}

.seo-link-grid a:hover {
  background: var(--accent-tint);
  color: var(--ink);
}

.seo-link-grid a:hover::after {
  opacity: 1;
  transform: none;
}

/* ========================= sources ========================= */

.seo-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.seo-source-list a,
.seo-source-list .seo-source {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 18px;
  border-inline-start: 0.5px solid var(--line);
  border-top: 0.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.seo-source-list a:hover { background: var(--accent-tint); color: var(--accent); }

/* ========================= FAQ ========================= */

.seo-faq {
  max-width: 880px;
  border: 0.5px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.seo-faq details {
  border-bottom: 0.5px solid var(--line);
  background: var(--surface);
}

.seo-faq details:last-child { border-bottom: 0; }

.seo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 22px 24px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
  list-style: none;
  transition: background 0.16s var(--ease);
}

.seo-faq summary:hover { background: var(--surface-2); }

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

.seo-faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.22s var(--ease);
}

.seo-faq details[open] summary {
  background: var(--surface-2);
}

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

.seo-faq p {
  margin: 0;
  padding: 6px 24px 24px;
  max-width: 72ch;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.62;
}

/* ========================= reveal animations ========================= */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal--stagger .seo-facts li:nth-child(1) { transition-delay: 0.05s; }
.reveal--stagger .seo-facts li:nth-child(2) { transition-delay: 0.10s; }
.reveal--stagger .seo-facts li:nth-child(3) { transition-delay: 0.15s; }
.reveal--stagger .seo-facts li:nth-child(4) { transition-delay: 0.20s; }

/* ========================= footer ========================= */

.seo-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 56px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
  color: var(--ink-3);
  font-size: 0.84rem;
}

.seo-footer__brand { display: flex; flex-direction: column; gap: 10px; }

.seo-footer__brand strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.seo-footer__brand p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-3);
  font-size: 0.86rem;
  line-height: 1.5;
}

.seo-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.seo-footer h2 {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seo-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.seo-footer a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

/* ========================= motion preferences ========================= */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ========================= responsive ========================= */

@media (max-width: 960px) {
  .seo-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .seo-hero__aside { position: static; }

  .seo-operational ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-band--cities .seo-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-method-list { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .seo-header {
    position: static;
    grid-template-columns: 1fr auto;
    height: auto;
    padding-block: 16px;
  }

  .seo-nav {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 18px;
    margin-top: 6px;
  }

  .seo-evidence,
  .seo-operational ul,
  .seo-link-grid,
  .seo-band--cities .seo-link-grid,
  .seo-source-list {
    grid-template-columns: 1fr;
  }

  .seo-link-grid { border-radius: 4px; }

  .seo-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .seo-footer,
  .seo-footer__nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .seo-pills li { flex-basis: 100%; border-inline-start: 0; border-top: 0.5px solid var(--line); }
  .seo-pills li:first-child { border-top: 0; }
  .seo-actions { width: 100%; }
  .seo-button { flex: 1 1 auto; }
  .seo-hero h1 { font-size: 2.55rem; }
  .seo-lead { font-size: 1rem; }
}
