:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-subtle: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --err-bg: #fef2f2;
  --err-border: #fecaca;
  --err-text: #991b1b;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-subtle);
  padding: 0.12em 0.38em;
  border-radius: 5px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

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

.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-nav .nav-cta {
  background: var(--text);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
}

.header-nav .nav-cta:hover {
  background: #1e293b;
  color: #ffffff;
}

/* Language Switcher (zero-JS crawlable details dropdown) */
.lang-switcher {
  position: relative;
}

.lang-switcher summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 500;
  user-select: none;
  white-space: nowrap;
}

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

.lang-switcher summary:hover {
  border-color: var(--primary);
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 50;
  width: 420px;
  max-width: 92vw;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.lang-menu-search {
  width: 100%;
  font: inherit;
  font-size: 0.83rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 8px;
}

.lang-menu-search:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.lang-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.lang-opt {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.lang-opt-native {
  font-weight: 600;
  color: var(--text);
}

.lang-opt-en {
  font-size: 0.74rem;
  color: var(--text-light);
}

.lang-opt:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.lang-opt:hover .lang-opt-native,
.lang-opt-active .lang-opt-native {
  color: var(--primary);
}

.lang-opt-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-search-input {
  font-size: 0.82rem;
  padding: 6px 10px;
  background: var(--bg);
}

/* Hero */
.hero {
  padding: 44px 0 36px;
  text-align: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.trust-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  margin: 0 auto 12px;
  max-width: 760px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Tool Card */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

.dropzone-icon {
  color: var(--primary);
  margin-bottom: 10px;
}

.dropzone-text {
  font-size: 1.04rem;
  margin-bottom: 4px;
}

.link-like {
  color: var(--primary);
  text-decoration: underline;
}

.dropzone-hint {
  font-size: 0.86rem;
  color: var(--text-light);
}

/* Sample pills */
.samples-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.samples-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sample-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sample-pill:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sample-pill .pill-badge {
  font-size: 0.72rem;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}

/* Options drawer */
.options-drawer {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.options-drawer summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.opt-summary-hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.84rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field select,
.field input,
.field textarea {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 11px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-top: 14px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
}

/* Status & Alerts */
.status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: #3730a3;
  font-weight: 500;
  font-size: 0.92rem;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #c7d2fe;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.alert-error {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-text);
}

.alert-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  margin-bottom: 16px;
}

.alert-success {
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.turnstile-wrap {
  margin-top: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  font-size: 0.82rem;
  padding: 6px 11px;
  border-radius: 7px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-outline:hover {
  background: var(--surface-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

/* Results Workspace */
.results-section {
  padding: 12px 0 44px;
}

.results-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.results-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-chip strong {
  color: var(--text);
}

.results-actions {
  display: flex;
  gap: 10px;
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.tab-btn {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  padding: 9px 14px;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border);
  margin-bottom: -1px;
}

.table-panel,
.overlay-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #fcfdff;
}

.table-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
}

.table-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.search-input {
  font: inherit;
  font-size: 0.84rem;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  width: 170px;
}

.table-scroll {
  overflow: auto;
  max-height: 520px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 600;
  text-align: start;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-strong);
  border-inline-end: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 7px 12px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  border-inline-end: 1px solid #f1f5f9;
  vertical-align: top;
  max-width: 420px;
  word-break: break-word;
}

.data-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.data-table tbody tr:hover {
  background: var(--primary-soft);
}

/* Overlay gallery */
.overlay-panel {
  padding: 18px;
}

.overlay-note {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.overlay-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.overlay-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}

.overlay-item img {
  display: block;
  width: 100%;
  height: auto;
}

.overlay-caption {
  padding: 8px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
}

/* Local CLI / Python funnel */
.local-section {
  padding: 24px 0 48px;
}

.local-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #34d399;
  margin-bottom: 8px;
}

.local-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1.25;
}

.local-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.local-card a {
  color: #a5b4fc;
}

.local-card code {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.local-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.local-card .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #475569;
}

.local-card .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.local-code {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid #334155;
  background: #172033;
}

.code-tab,
.code-copy {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
}

.code-tab {
  background: transparent;
  color: #94a3b8;
}

.code-tab.active {
  background: #334155;
  color: #ffffff;
}

.code-copy {
  margin-left: auto;
  background: #4f46e5;
  color: #ffffff;
}

.local-code pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.55;
}

.local-code pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
}

/* Features & FAQ */
.features-section,
.faq-section {
  padding: 28px 0 44px;
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.faq-container {
  max-width: 780px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 2px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Contact section */
.contact-section {
  padding: 16px 0 56px;
}

.contact-container {
  max-width: 780px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.contact-header {
  margin-bottom: 20px;
}

.eyebrow-indigo {
  color: var(--primary);
}

.contact-header h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.contact-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-message-field {
  margin-top: 14px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.req {
  color: #dc2626;
}

.opt {
  font-weight: 400;
  color: var(--text-light);
}

.char-count {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-light);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.contact-privacy-note {
  font-size: 0.82rem;
  color: var(--text-light);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 22px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.footer-lang-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}

.footer-lang-label {
  color: var(--text-light);
  font-weight: 600;
  white-space: nowrap;
}

.footer-lang-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.footer-lang-list a {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.footer-lang-list a:hover {
  background: var(--surface-subtle);
  color: var(--text);
  text-decoration: none;
}

.footer-lang-list a.footer-lang-active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

/* Native RTL page support (/ar/) */
[dir="rtl"] .tool-card,
[dir="rtl"] .feature-card,
[dir="rtl"] .pricing-card,
[dir="rtl"] .contact-card,
[dir="rtl"] .faq-item,
[dir="rtl"] .guide-card,
[dir="rtl"] .guide-link-card {
  text-align: right;
}

[dir="rtl"] .plan-list,
[dir="rtl"] .guide-card ul,
[dir="rtl"] .guide-card ol {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .tldr-box {
  border-left: 1px solid #c7d2fe;
  border-right: 4px solid var(--primary);
}

[dir="rtl"] .seo-table thead th {
  text-align: right;
}

/* Benchmarks strip */
.benchmark-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.bench-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-align: center;
}

.bench-item strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 2px;
}

.bench-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Pricing plans */
.pricing-section {
  padding: 20px 0 44px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.pricing-card-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.1);
}

.plan-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.plan-eyebrow-primary {
  color: var(--primary);
}

.pricing-card h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

.plan-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.plan-cta {
  width: 100%;
}

.contact-volume-field {
  grid-column: 1 / -1;
}

/* Legal & Security pages */
.legal-main {
  padding: 36px 0 56px;
}

.legal-container {
  max-width: 820px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
}

.legal-card h1 {
  margin: 4px 0 6px;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: 0 0 24px;
  font-size: 0.86rem;
  color: var(--text-light);
}

.legal-card h2 {
  margin: 24px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-card ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.legal-card li {
  margin-bottom: 6px;
}

/* SEO / GEO Guide Hub & Guide Pages */
.header-nav a.nav-active {
  color: var(--primary);
  font-weight: 600;
}

.section-sub {
  text-align: center;
  max-width: 700px;
  margin: -14px auto 26px;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.guides-hub-section {
  padding: 12px 0 36px;
}

.guide-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-link-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.guide-link-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Visual proof overlays */
.proof-title {
  margin-top: 40px;
}

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

.proof-figure,
.guide-figure {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.guide-figure {
  margin: 16px 0 22px;
}

.proof-figure img,
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg);
}

.proof-figure figcaption,
.guide-figure figcaption {
  padding: 11px 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

.guide-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 14px 0 22px;
}

.guide-figure-grid .guide-figure {
  margin: 0;
}

.guide-link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px 17px;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-link-card:hover {
  border-color: #c7d2fe;
  background: #fafbff;
  box-shadow: 0 3px 12px rgba(79, 70, 229, 0.06);
  text-decoration: none;
}

.guide-link-card strong {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.guide-link-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.guide-link-row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guide-link-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.related-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-link-arrow {
  flex-shrink: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.guide-link-card:hover .guide-link-arrow {
  color: var(--primary);
  transform: translateX(2px);
}

[dir="rtl"] .guide-link-card:hover .guide-link-arrow {
  transform: translateX(-2px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.guide-main {
  padding: 32px 0 56px;
}

.guide-container {
  max-width: 920px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px 36px;
}

.guide-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.guide-card h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.guide-card h3 {
  margin: 20px 0 8px;
  font-size: 1.04rem;
  color: var(--text);
}

.guide-card p,
.guide-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.guide-card ul,
.guide-card ol {
  padding-left: 22px;
  margin: 10px 0 16px;
}

.guide-card li {
  margin-bottom: 8px;
}

.tldr-box {
  background: var(--primary-soft);
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 16px 0 20px;
  color: #1e1b4b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.guide-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.seo-table-wrap {
  overflow-x: auto;
  margin: 14px 0 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
  background: var(--surface);
}

.seo-table thead th {
  background: var(--surface-subtle);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.seo-table tbody td {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.seo-table tbody tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:nth-child(even) {
  background: #fafcff;
}

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 12px 0 20px;
}

.code-block code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.guide-faq {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related-guides {
  margin-top: 28px;
}

.related-guides h2 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 12px;
}

@media (max-width: 1020px) {
  .guide-link-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .benchmark-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid,
  .guide-link-grid,
  .guide-link-grid-2,
  .guide-link-grid-4,
  .proof-grid,
  .guide-figure-grid {
    grid-template-columns: 1fr;
  }
  .local-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .contact-card,
  .legal-card,
  .guide-card {
    padding: 22px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .header-nav a:not(.nav-cta) {
    display: none;
  }
}
