﻿/* ── Documentation Page Header ───────────────────────────────────────────── */
.docs-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}
.docs-page-header-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 0.75rem;
}
.docs-page-header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--color-primary);
  background: #EFF6FF; border: 1px solid #BFDBFE;
  padding: 3px 10px; border-radius: 999px;
}
.docs-page-header-base {
  font-size: 12px; color: var(--color-text-light);
  font-family: var(--font-mono);
}
.docs-page-header-base code {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-text-mid);
}
.docs-page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--color-navy); line-height: 1.15;
  margin-bottom: 0.5rem;
}
.docs-page-header-sub {
  font-size: 15px; color: var(--color-text-mid); line-height: 1.5;
}
.docs-page-header-highlight {
  color: var(--color-primary); font-weight: 700;
}
.docs-page-header-help {
  color: var(--color-success); font-weight: 600;
  text-decoration: none; border-bottom: 1px dashed var(--color-success);
}
.docs-page-header-help:hover { text-decoration: none; border-bottom-style: solid; }

/* ── Documentation ────────────────────────────────────────────────────────── */
.docs-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

/* Sidebar */
.docs-toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.docs-toc-group { margin-bottom: 1.5rem; }
.docs-toc-group:last-child { margin-bottom: 0; }

.docs-toc-group-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  text-transform: uppercase;
  padding: 0 8px 6px;
}

.docs-toc-link {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-mid);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1.3;
}
.docs-toc-link:hover { color: var(--color-text); background: var(--color-surface-mid); }
.docs-toc-link--active {
  color: var(--color-primary);
  font-weight: 600;
  border-left-color: var(--color-primary);
  background: #EFF6FF;
}

/* Main content column */
.docs-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Doc section */
.doc-section {
  scroll-margin-top: 100px;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.doc-section:last-child { border-bottom: none; }

.doc-section-title {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 6px;
}
.doc-divider { border: none; border-top: 1px solid var(--color-border); margin-bottom: 1.5rem; }
.docs-para { font-size: 15px; color: var(--color-text-mid); line-height: 1.75; margin-bottom: 1rem; }
.docs-link { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.docs-link:hover { text-decoration: underline; }

.docs-inline-code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--color-surface-mid);
  border: 1px solid var(--color-border);
  padding: 1px 6px;
  border-radius: 4px;
  color: #7C3AED;
}

/* Code blocks */
.code-block {
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 0;
}
.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #94A3B8;
  white-space: pre;
  line-height: 1.7;
}
.code-block--lang { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.code-block-wrap {
  position: relative;
  margin-top: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.code-copy-btn {
  position: absolute;
  top: 10px; right: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #94A3B8;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.code-copy-btn:hover { background: rgba(255,255,255,0.15); color: #E2E8F0; }
.code-copy-btn--copied {
  background: rgba(16,185,129,0.15);
  color: #10B981;
  border-color: rgba(16,185,129,0.3);
}

/* Callouts */
.docs-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.docs-callout i { margin-top: 2px; flex-shrink: 0; font-size: 15px; }
.docs-callout--info { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; }
.docs-callout--info i { color: #2563EB; }
.docs-callout--warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; }
.docs-callout--warning i { color: #D97706; }
.docs-callout code {
  background: rgba(255,255,255,0.55);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Feature list */
.docs-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.25rem;
}
.docs-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--color-text-mid);
}
.docs-feature-item i { color: var(--color-success); font-size: 14px; flex-shrink: 0; }

/* Steps */
.docs-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}
.docs-steps li {
  counter-increment: steps;
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 1.6;
  padding: 12px 0 12px 44px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.docs-steps li:last-child { border-bottom: none; }
.docs-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.docs-steps a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.docs-steps a:hover { text-decoration: underline; }
.docs-steps code {
  font-family: var(--font-mono); font-size: 12px;
  background: var(--color-surface-mid);
  border: 1px solid var(--color-border);
  padding: 1px 5px; border-radius: 3px;
}

/* Endpoint row */
.docs-endpoint-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0F172A;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.docs-endpoint-row--get { background: #0C1A2E; }

.docs-method-badge {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  color: #fff;
  background: #10B981;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.docs-method-badge--get {
  background: #2563EB;
}
.docs-endpoint-url {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #94A3B8;
  word-break: break-all;
}

/* Language tabs */
.lang-tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: var(--color-surface-mid);
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 6px 6px 0;
}
.lang-tab {
  padding: 7px 16px;
  font-size: 13px; font-weight: 600;
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--color-text-mid);
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 7px;
}
.lang-tab:hover { color: var(--color-text); background: rgba(255,255,255,0.6); }
.lang-tab--active { background: #0F172A; color: #CBD5E1; }
.lang-tab i { font-size: 14px; opacity: 0.85; }

/* Rate limits */
.rate-limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.rate-limit-card { padding: 1.5rem; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.rate-limit-plan { font-size: 11px; font-weight: 700; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.1em; }
.rate-limit-value { font-family: var(--font-heading); font-size: 36px; font-weight: 700; color: var(--color-primary); line-height: 1; margin: 4px 0; }
.rate-limit-unit { font-size: 12px; color: var(--color-text-light); }

/* Docs mobile — compact horizontal tab strip instead of hiding sidebar */
@media (max-width: 768px) {
  .docs-wrap { grid-template-columns: 1fr; gap: 0; }
  .docs-toc {
    position: static;
    max-height: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    padding: 0.5rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .docs-toc::-webkit-scrollbar { display: none; }
  .docs-toc-group { display: contents; margin-bottom: 0; }
  .docs-toc-group-label { display: none; }
  .docs-toc-link {
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-left: 0;
    margin-bottom: -2px;
    border-radius: 0;
    padding: 8px 10px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .docs-toc-link--active {
    border-left: none;
    border-bottom-color: var(--color-primary);
    background: transparent;
    color: var(--color-primary);
  }
  .docs-content { border: 1px solid var(--color-border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 0 1rem; }
  .doc-section { padding: 1.75rem 0; }
  .rate-limit-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Supported documents grid ────────────────────────────────────────────── */
.docs-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0.75rem 0 0.25rem;
}

.docs-doc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.docs-doc-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.docs-doc-icon--blue   { background: #EFF6FF; color: var(--color-primary); }
.docs-doc-icon--green  { background: #F0FDF4; color: var(--color-success); }
.docs-doc-icon--purple { background: #F5F3FF; color: #7C3AED; }
.docs-doc-icon--yellow { background: #FFFBEB; color: var(--color-warning); }
.docs-doc-label { font-size: 13px; font-weight: 600; color: var(--color-text); line-height: 1.35; }

/* ── Workflow timeline ────────────────────────────────────────────────────── */
.docs-workflow {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 1.25rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.docs-workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 1.25rem 1rem;
  background: var(--color-white);
  flex: 1;
  text-align: center;
}

.docs-workflow-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.docs-workflow-step-num--orange { background: #F97316; }
.docs-workflow-step-num--yellow { background: #EAB308; }
.docs-workflow-step-num--green  { background: var(--color-success); }

.docs-workflow-step-label {
  font-size: 13px; font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.docs-workflow-step-sub {
  font-size: 11.5px;
  color: var(--color-text-light);
  line-height: 1.4;
}
.docs-workflow-step-sub code { font-family: var(--font-mono); font-size: 11px; }

.docs-workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 13px;
  color: var(--color-text-light);
  background: var(--color-surface);
  flex-shrink: 0;
}

/* ── Processing time cards ────────────────────────────────────────────────── */
.docs-timing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0.75rem 0;
}

.docs-timing-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.docs-timing-card--fast { background: #F0FDF4; border-color: #A7F3D0; }
.docs-timing-card--slow { background: #FFFBEB; border-color: #FDE68A; }

.docs-timing-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.docs-timing-card--fast .docs-timing-card-icon { color: var(--color-success); }
.docs-timing-card--slow .docs-timing-card-icon { color: var(--color-warning); }

.docs-timing-card-title { font-size: 14px; font-weight: 700; color: var(--color-text); margin-bottom: 4px; }
.docs-timing-card-desc  { font-size: 13px; color: var(--color-text-mid); line-height: 1.55; }

/* ── Status code sections ─────────────────────────────────────────────────── */
.docs-status-section { margin-top: 1.75rem; }
.docs-status-section:first-child { margin-top: 0; }

.docs-status-section-title {
  font-size: 14px; font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 8px;
}

/* ── Docs responsive additions ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .docs-doc-grid   { grid-template-columns: repeat(2, 1fr); }
  .docs-timing-row { grid-template-columns: 1fr; }
  .docs-workflow   { flex-wrap: wrap; }
  .docs-workflow-arrow { padding: 4px; }
}

@media (max-width: 480px) {
  .docs-doc-grid { grid-template-columns: repeat(2, 1fr); }
  .docs-workflow { flex-direction: column; }
  .docs-workflow-arrow { transform: rotate(90deg); background: transparent; }
}

/* ── Code block label ────────────────────────────────────────────────────── */
.code-block-label {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #475569;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: var(--font-mono);
}
.code-block-label + .code-copy-btn { top: 36px; }
.code-block-wrap:has(.code-block-label) .code-block { border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg); }

/* ── Promise banner ───────────────────────────────────────────────────────── */
.docs-promise-banner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 2rem;
  background: linear-gradient(135deg, #0d1b2e 0%, #1a2e4a 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}
.docs-promise-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(56,189,248,0.15); border: 1px solid rgba(56,189,248,0.3);
  color: #38BDF8; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.docs-promise-text {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: #fff; letter-spacing: -0.03em; margin-bottom: 6px;
}
.docs-promise-sub { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 380px; }

.docs-promise-steps { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.docs-pstep {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 8px 14px;
  font-size: 13px; color: rgba(255,255,255,0.8);
}
.docs-pstep code { font-family: var(--font-mono); font-size: 12px; color: #38BDF8; }
.docs-pstep-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.docs-pstep-num--green { background: var(--color-success); }
.docs-pstep-arrow { text-align: center; color: rgba(255,255,255,0.25); font-size: 12px; }

/* ── API Key selector bar ────────────────────────────────────────────────── */
.docs-key-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0F172A;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-wrap: wrap;
}
.docs-key-bar-icon { color: #38BDF8; font-size: 13px; flex-shrink: 0; }
.docs-key-bar-label {
  font-size: 11.5px; font-weight: 600; color: #64748B;
  white-space: nowrap;
  font-family: var(--font-mono);
}
.docs-key-bar-guest {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: #475569;
}
.docs-key-bar-guest a {
  color: #38BDF8; font-weight: 600; text-decoration: none;
}
.docs-key-bar-guest a:hover { text-decoration: underline; }
.docs-key-select {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #E2E8F0;
  font-size: 12.5px;
  font-family: var(--font-mono);
  padding: 5px 10px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  min-width: 220px;
  max-width: 380px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.docs-key-select option { background: #1e293b; color: #E2E8F0; }
.docs-key-select:focus {
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.1);
}
.docs-key-injected {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: #10B981;
  margin-left: auto;
  white-space: nowrap;
}
.docs-key-injected i { font-size: 12px; }

/* ── Language tabs ───────────────────────────────────────────────────────── */
.docs-lang-tabs {
  display: flex; gap: 2px;
  background: #0F172A;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 8px 10px 0;
  overflow-x: auto;
}
.docs-lang-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  border-radius: 6px 6px 0 0;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-body);
  color: #64748B;
  background: transparent;
  border: none; cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.docs-lang-tab:hover { color: #94A3B8; background: rgba(255,255,255,0.05); }
.docs-lang-tab--active {
  color: #E2E8F0;
  background: rgba(255,255,255,0.07);
  border-bottom: 2px solid var(--color-primary);
}
.docs-lang-tab i { font-size: 13px; }

/* ── ToC help box ─────────────────────────────────────────────────────────── */
.docs-toc-help {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}
.docs-toc-help-title {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 4px;
}
.docs-toc-help-sub {
  font-size: 11.5px; color: var(--color-text-mid);
  line-height: 1.5; font-style: italic;
}

/* ── Help strip ───────────────────────────────────────────────────────────── */
.docs-help-strip {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  background: #F0FDF4; border: 1px solid #A7F3D0;
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
}
.docs-help-strip-title { font-size: 14px; font-weight: 700; color: var(--color-text); margin-bottom: 3px; }
.docs-help-strip-sub   { font-size: 13px; color: var(--color-text-mid); }
.docs-help-strip-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 640px) {
  .docs-promise-banner { flex-direction: column; }
  .docs-promise-steps  { width: 100%; }
  .docs-help-strip     { flex-direction: column; align-items: flex-start; }
  .docs-help-strip-actions { width: 100%; }
  .docs-help-strip-actions .btn { flex: 1; justify-content: center; }
}

/* ── Support ──────────────────────────────────────────────────────────────── */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.support-right { display: flex; flex-direction: column; gap: 1rem; }

.support-success {
  text-align: center; padding: 2.5rem 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.support-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #DCFCE7;
  display: flex; align-items: center; justify-content: center;
}
.support-success-icon i { color: var(--color-success); font-size: 24px; }
.support-success h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.support-success p { font-size: 14px; color: var(--color-text-mid); }

.support-option {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 1.25rem;
}
.support-option--green { background: #F0FDF4; border-color: #A7F3D0; }
.support-option--blue  { background: #EFF6FF; border-color: #BFDBFE; }
.support-option--gray  { background: var(--color-surface); }

.support-option-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.support-option-title { font-family: var(--font-heading); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.support-option-desc { font-size: 13px; color: var(--color-text-mid); line-height: 1.5; margin-bottom: 8px; }
.support-option-link { font-size: 13px; font-weight: 600; text-decoration: none; }

.faq-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer; font-size: 13px; color: var(--color-text-mid);
  transition: opacity 0.15s;
}
.faq-row:last-child { border-bottom: none; }
.faq-row:hover { opacity: 0.7; }
.faq-row i { font-size: 11px; color: var(--color-text-light); }

/* â”€â”€ Landing Page (lp-*) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.lp { font-family: var(--font-body); color: var(--color-text); overflow-x: hidden; background: #fff; }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.lp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.lp-logo-img--footer {
  height: 40px;
}
.lp-logo-badge {
  font-size: 11px; font-weight: 600; color: var(--color-primary);
  background: #EFF6FF; border: 1px solid #BFDBFE;
  padding: 2px 10px; border-radius: 999px;
}
.lp-nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 14px; font-weight: 500; }
.lp-nav-links a { color: var(--color-text-mid); text-decoration: none; }
.lp-nav-links a:hover { color: var(--color-text); }
.lp-nav-links a.btn--primary,
.lp-nav-links a.btn--primary:hover {
  color: #fff;
}

/* Hero */
.lp-hero {
  background: linear-gradient(135deg, #e4f2ec 0%, #e8effc 55%, #ecf4fc 100%);
  padding: 4rem 2rem 4rem; overflow: hidden;
}
.lp-hero-split {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.lp-hero-left { display: flex; flex-direction: column; gap: 1.5rem; }
.lp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.1);
  padding: 6px 16px; border-radius: 999px; width: fit-content;
  font-size: 13px; font-weight: 500; color: var(--color-text-mid);
}
.lp-hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
  animation: heroPulse 1.8s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
  50%      { box-shadow: 0 0 0 7px rgba(16,185,129,0.05); }
}
.lp-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--color-navy);
}
.lp-hero-title-accent { color: var(--color-primary); }
.lp-hero-subtitle { font-size: 16px; color: var(--color-text-mid); line-height: 1.7; max-width: 480px; }
.lp-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn--ghost-dark {
  background: rgba(255,255,255,0.8); color: var(--color-text);
  border: 1px solid rgba(0,0,0,0.14);
}
.btn--ghost-dark:hover { background: #fff; }
.lp-hero-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-xl); padding: 0.85rem 0; flex-wrap: wrap;
}
.lp-hero-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 1.5rem; }
.lp-hero-stat-value { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--color-navy); letter-spacing: -0.03em; }
.lp-hero-stat-label { font-size: 11px; color: var(--color-text-mid); font-weight: 500; }
.lp-hero-stat-divider { width: 1px; height: 36px; background: var(--color-border); }

/* Hero right */
.lp-hero-right { display: flex; align-items: center; justify-content: center; }
.lp-hero-card-wrap { position: relative; width: 100%; max-width: 400px; padding: 22px; }
.lp-card-glow {
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none; border-radius: 50%;
}
.lp-sc { position: absolute; width: 26px; height: 26px; border-color: #2563EB; border-style: solid; border-width: 0; }
.lp-sc--tl { top:0; left:0;   border-top-width:3px; border-left-width:3px;  border-radius:5px 0 0 0; }
.lp-sc--tr { top:0; right:0;  border-top-width:3px; border-right-width:3px; border-radius:0 5px 0 0; }
.lp-sc--bl { bottom:0; left:0;  border-bottom-width:3px; border-left-width:3px;  border-radius:0 0 0 5px; }
.lp-sc--br { bottom:0; right:0; border-bottom-width:3px; border-right-width:3px; border-radius:0 0 5px 0; }
.lp-scan-line {
  position: absolute; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, transparent, #2563EB 30%, #93C5FD, #2563EB 70%, transparent);
  box-shadow: 0 0 10px rgba(37,99,235,0.8), 0 0 24px rgba(37,99,235,0.3);
  animation: lpScan 2.8s ease-in-out infinite; z-index: 20;
}
@keyframes lpScan {
  0%   { top: 22px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: calc(100% - 22px); opacity: 0; }
}

/* Egyptian ID card — real photo */
.lp-eid-img {
  width: 100%; display: block; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative; z-index: 2;
}
.lp-scan-label {
  display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: #2563EB;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.2);
  padding: 5px 16px; border-radius: 999px; width: fit-content; margin-inline: auto;
}
.lp-scan-dot { width: 8px; height: 8px; border-radius: 50%; background: #2563EB; animation: heroPulse 1.2s ease-in-out infinite; }

@media (max-width: 900px) {
  .lp-hero-split { grid-template-columns: 1fr; }
  .lp-hero-left { align-items: center; text-align: center; }
  .lp-hero-subtitle { max-width: 100%; }
  .lp-hero-stats { justify-content: center; }
  .lp-hero-right { margin-top: 1rem; }
}

/* Shared section */
.lp-section { padding: 5rem 0; }
.lp-section--white { background: #fff; }
.lp-section--dark  { background: #0d1b2e; }
.lp-section--dim   { background: #111827; }
.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.lp-section-header { text-align: center; margin-bottom: 3.5rem; }
.lp-section-title {
  font-family: var(--font-heading); font-size: clamp(22px, 3.5vw, 32px); font-weight: 700;
  letter-spacing: -0.03em; color: var(--color-navy); margin-bottom: 10px;
}
.lp-section-title--white { color: #fff; }
.lp-section-subtitle { font-size: 16px; color: var(--color-text-mid); }
.lp-section-subtitle--muted { color: #94A3B8; }

/* Features */
.lp-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.lp-feature-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.lp-feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 1.1rem;
}
.lp-feature-icon--blue   { background: #EFF6FF; color: var(--color-primary); }
.lp-feature-icon--green  { background: #F0FDF4; color: var(--color-success); }
.lp-feature-icon--yellow { background: #FFFBEB; color: var(--color-warning); }
.lp-feature-title { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--color-navy); }
.lp-feature-desc  { font-size: 14px; color: var(--color-text-mid); line-height: 1.6; }

/* How It Works */
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.lp-step { text-align: center; }
.lp-step-num {
  font-family: var(--font-heading); font-size: 52px; font-weight: 800;
  color: rgba(255,255,255,0.08); margin-bottom: 1rem; line-height: 1;
}
.lp-step-icon {
  width: 56px; height: 56px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1); color: #60A5FA; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.lp-step-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.lp-step-desc  { font-size: 14px; color: #94A3B8; line-height: 1.6; }

/* Two-column */
.lp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.lp-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary); background: #EFF6FF;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 1rem;
}
.lp-eyebrow--border {
  color: #94A3B8; background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
}
.lp-col-title {
  font-family: var(--font-heading); font-size: 30px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--color-navy); margin-bottom: 1rem; line-height: 1.2;
}
.lp-col-title--white { color: #fff; }
.lp-col-desc { font-size: 15px; color: var(--color-text-mid); line-height: 1.7; margin-bottom: 1.5rem; }
.lp-col-desc--muted { color: #94A3B8; }
.lp-checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.lp-checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--color-text); }
.lp-checklist li i { color: var(--color-success); font-size: 16px; flex-shrink: 0; }

/* Code card */
.lp-code-card {
  background: #0d1b2e; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.lp-code-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lp-code-card-lang {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; color: #60A5FA; text-transform: uppercase;
}
.lp-code-card-copy {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #64748B; font-family: var(--font-body);
  display: flex; align-items: center; gap: 5px; padding: 4px 8px;
  border-radius: var(--radius-sm); transition: color 0.15s;
}
.lp-code-card-copy:hover { color: #94A3B8; }
.lp-code-body { padding: 1.5rem 1.75rem; overflow-x: auto; margin: 0; }
.lp-code-body code {
  font-family: var(--font-mono); font-size: 13px; color: #94A3B8;
  white-space: pre; line-height: 1.7;
}

/* CTA */
.lp-cta {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 60%, #3B82F6 100%);
  padding: 5rem 2rem;
}
.lp-cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lp-cta-title {
  font-family: var(--font-heading); font-size: 36px; font-weight: 700;
  letter-spacing: -0.03em; color: #fff;
}
.lp-cta-sub { font-size: 16px; color: rgba(255,255,255,0.75); }
.lp-cta-actions { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; justify-content: center; }
.btn--white { background: #fff; color: var(--color-primary); font-weight: 700; }
.btn--white:hover { background: #f0f4ff; }
.btn--outline-white {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45); font-weight: 600;
}
.btn--outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* Footer */
.lp-footer { background: #0d1b2e; padding: 4rem 0 2rem; }
.lp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.lp-footer-brand-desc {
  font-size: 13px; color: #64748B; line-height: 1.6; margin-top: 1rem; max-width: 240px;
}
.lp-footer-col { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-col-title {
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: #fff; letter-spacing: 0.02em; margin-bottom: 4px;
}
.lp-footer-col a { font-size: 13px; color: #64748B; text-decoration: none; transition: color 0.15s; }
.lp-footer-col a:hover { color: #94A3B8; text-decoration: none; }
.lp-footer-badge-row { display: flex; gap: 8px; margin-top: 1.25rem; flex-wrap: wrap; }
.lp-footer-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  color: #475569; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 2px 8px;
}
.lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: #475569;
}
.lp-footer-bottom-links { display: flex; align-items: center; gap: 1.25rem; }
.lp-footer-bottom-links a { color: #475569; text-decoration: none; transition: color 0.15s; }
.lp-footer-bottom-links a:hover { color: #94A3B8; }

/* Landing responsive */
@media (max-width: 1024px) {
  .lp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lp-steps-grid    { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .lp-two-col       { gap: 2.5rem; }
  .lp-section-title { font-size: 26px; }
  .lp-col-title     { font-size: 24px; }
}
@media (max-width: 900px) {
  .lp-hero-split { grid-template-columns: 1fr; }
  .lp-hero-left  { align-items: center; text-align: center; }
  .lp-hero-subtitle { max-width: 100%; }
  .lp-hero-actions  { justify-content: center; }
  .lp-hero-stats    { justify-content: center; }
  .lp-hero-right    { margin-top: 0.5rem; }
}
@media (max-width: 768px) {
  .lp-hero { padding: 2.5rem 1.25rem 2rem; }
  .lp-container { padding: 0 1.25rem; }
  .lp-section { padding: 3.5rem 0; }
  .lp-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .lp-steps-grid { grid-template-columns: 1fr; }
  .lp-features-grid { grid-template-columns: 1fr 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .lp-section-title { font-size: 24px; }
  .lp-col-title     { font-size: 22px; }
  .lp-hero-stat     { padding: 0 1rem; }
  .lp-hero-stat-value { font-size: 18px; }
  .lp-cta-title     { font-size: 26px; }
  .lp-cta           { padding: 3.5rem 1.25rem; }
  .lp-footer        { padding: 3rem 0 1.5rem; }
  .lp-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  /* ID card in hero: scale down */
  .lp-hero-card-wrap { max-width: 320px; padding: 16px; }

}
@media (max-width: 480px) {
  .lp-features-grid { grid-template-columns: 1fr; }
  .lp-footer-grid   { grid-template-columns: 1fr; }
  .lp-hero-stats    { flex-direction: column; gap: 0.75rem; }
  .lp-hero-stat-divider { width: 48px; height: 1px; }
  .lp-nav-inner     { padding: 0 1rem; }
  .lp-hero-card-wrap { max-width: 280px; }
  .lp-hero-title    { font-size: 26px; }
  .lp-cta-actions   { flex-direction: column; width: 100%; }
  .lp-cta-actions .btn { width: 100%; justify-content: center; }
  .lp-checklist li  { font-size: 14px; }
}
