/* ═══════════════════════════════════════════════════════════════════════════
   NomosPay — Premium Documentation Design System
   Shared across: index.html, how-to-use.html, privacy-policy.html,
                  terms-of-service.html
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ─── Custom Properties ──────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --navy-deep:    #0d1f35;
  --navy-mid:     #143150;
  --navy-light:   #1e4a76;
  --gold:         #c9922a;
  --gold-light:   #e8b84b;
  --gold-pale:    #fdf6e6;
  --white:        #ffffff;
  --off-white:    #f8f9fc;

  /* Text */
  --text-dark:    #0f172a;
  --text-body:    #1e293b;
  --text-muted:   #64748b;
  --text-faint:   #94a3b8;

  /* UI */
  --bg:           #ffffff;
  --bg-soft:      #f8f9fc;
  --bg-card:      #ffffff;
  --border:       #e2e8f0;
  --border-strong:#cbd5e1;

  /* Semantic */
  --success:      #166534;
  --success-bg:   #dcfce7;
  --info:         #1e40af;
  --info-bg:      #dbeafe;
  --warning:      #92400e;
  --warning-bg:   #fef3c7;
  --danger:       #991b1b;
  --danger-bg:    #fee2e2;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(13,31,53,.04);
  --shadow-sm:    0 2px 8px rgba(13,31,53,.06);
  --shadow-md:    0 4px 20px rgba(13,31,53,.08);
  --shadow-lg:    0 8px 40px rgba(13,31,53,.12);
  --shadow-xl:    0 20px 60px rgba(13,31,53,.16);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Spacing */
  --section-gap:  80px;
  --card-radius:  14px;
  --radius-sm:    8px;
  --radius-pill:  999px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0d1117;
    --bg-soft:      #131923;
    --bg-card:      #161e2a;
    --border:       #1e2d40;
    --border-strong:#2a3d54;
    --text-body:    #cbd5e1;
    --text-dark:    #e2e8f0;
    --text-muted:   #94a3b8;
    --text-faint:   #64748b;
    --off-white:    #161e2a;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
    --shadow-md:    0 4px 20px rgba(0,0,0,.4);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.5);
  }
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--text-dark); }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--navy-light);
}

pre {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  overflow-x: auto;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.6;
}
pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--navy-deep);
  color: var(--white);
}

/* Section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  margin: 0;
  opacity: 0.4;
}

/* ─── Top Navigation ─────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(13, 31, 53, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.topnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.topnav-glyph {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201, 146, 42, 0.4);
}

.topnav-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topnav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

.topnav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.topnav-links a.active {
  color: var(--gold-light);
  background: rgba(201, 146, 42, 0.12);
}

.topnav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(201,146,42,.35);
}
.topnav-cta:hover { filter: brightness(1.08); }

/* Mobile nav toggle placeholder */
@media (max-width: 640px) {
  .topnav-links { display: none; }
  .topnav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Animated mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(30,74,118,.7) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(20,49,80,.8) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 20%, rgba(201,146,42,.06) 0%, transparent 50%);
  animation: heroMesh 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 75% 50%, rgba(201,146,42,.04) 0%, transparent 70%),
    radial-gradient(circle 300px at 15% 70%, rgba(30,74,118,.5) 0%, transparent 60%);
  animation: heroMesh2 16s ease-in-out infinite alternate;
}

@keyframes heroMesh {
  0%   { opacity: 1; transform: scale(1) translateX(0); }
  100% { opacity: 0.85; transform: scale(1.05) translateX(-2%); }
}
@keyframes heroMesh2 {
  0%   { opacity: 0.6; transform: scale(1.05) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(-2%); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-inner h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.hero-tagline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Floating orbs decoration */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.hero-deco-1 {
  width: 400px; height: 400px;
  background: rgba(201, 146, 42, 0.08);
  top: -100px; right: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}
.hero-deco-2 {
  width: 300px; height: 300px;
  background: rgba(30, 74, 118, 0.4);
  bottom: -80px; left: -80px;
  animation: floatOrb 11s ease-in-out infinite reverse;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(20px, -20px) scale(1.05); }
}

/* Hero small variant */
.hero-sm {
  padding: 70px 0 55px;
}
.hero-sm .hero-inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
}

/* ─── Kicker Badge ───────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 146, 42, 0.15);
  border: 1px solid rgba(201, 146, 42, 0.35);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: kickerPulse 2s ease-in-out infinite;
}
@keyframes kickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .22s ease;
  border: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy-deep);
  box-shadow: 0 4px 16px rgba(201, 146, 42, 0.4);
}
.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 146, 42, 0.5);
  color: var(--navy-deep);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy-mid);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

/* ─── Stats Strip ────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--white);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .stats-strip { background: var(--bg-soft); }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-cell {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
  transition: background .2s;
}
@media (prefers-color-scheme: dark) {
  .stat-cell { background: var(--bg-card); }
}
.stat-cell:hover {
  background: var(--bg-soft);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-mid);
  line-height: 1;
  margin-bottom: 6px;
  background: linear-gradient(135deg, var(--navy-mid), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.card-gold {
  border-left: 4px solid var(--gold);
}

.card-featured {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,146,42,.1), var(--shadow-lg);
}

/* Glassmorphism card (for dark sections) */
.card-glass {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: background .25s, border-color .25s, transform .25s;
}
.card-glass:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(201, 146, 42, 0.3);
  transform: translateY(-3px);
}

.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }
}

/* ─── Feature Chips ──────────────────────────────────────────────────────── */
.feature-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-color .2s, box-shadow .2s;
}
.feature-chip:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.08);
}
.feature-chip-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.feature-chip-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}
.feature-chip-text span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ─── Step List ──────────────────────────────────────────────────────────── */
.step-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 76px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold) 0%, var(--border) 100%);
  opacity: 0.5;
}

.step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
  box-shadow: 0 2px 10px rgba(201,146,42,.35);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.step-content h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.step-content p, .step-content ul {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ─── Workflow ───────────────────────────────────────────────────────────── */
.workflow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.workflow-step {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.workflow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -14px;
  top: 28px;
  font-size: 1.2rem;
  color: var(--gold);
  z-index: 2;
}

.workflow-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.workflow-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.workflow-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.workflow-box h4 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.workflow-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .workflow { flex-direction: column; gap: 16px; }
  .workflow-step:not(:last-child)::after { content: '↓'; right: auto; top: auto; bottom: -20px; left: 50%; transform: translateX(-50%); }
}

/* ─── Callouts ───────────────────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--card-radius);
  border-left: 4px solid;
  margin: 24px 0;
}

.callout-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.5;
}

.callout-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9375rem;
}
.callout-body p, .callout-body ul {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: inherit;
  opacity: 0.9;
}

.callout-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: var(--info);
}
.callout-warning {
  background: var(--warning-bg);
  border-color: #d97706;
  color: #92400e;
}
.callout-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
.callout-danger {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* Large warning (for ToS disclaimer) */
.callout-warning-lg {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border: 2px solid #f59e0b;
  border-left: 6px solid #d97706;
  border-radius: var(--card-radius);
  padding: 28px 32px;
  margin: 32px 0;
}
.callout-warning-lg .callout-icon {
  font-size: 1.75rem;
}
.callout-warning-lg strong {
  font-size: 1.1rem;
  color: #78350f;
  display: block;
  margin-bottom: 8px;
}
.callout-warning-lg p, .callout-warning-lg ul {
  color: #92400e;
  font-size: 0.9375rem;
}

/* ─── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold     { background: rgba(201,146,42,.12); color: var(--gold); border: 1px solid rgba(201,146,42,.25); }
.badge-navy     { background: rgba(20,49,80,.1); color: var(--navy-mid); border: 1px solid rgba(20,49,80,.2); }
.badge-success  { background: var(--success-bg); color: var(--success); }
.badge-warning  { background: var(--warning-bg); color: var(--warning); }
.badge-info     { background: var(--info-bg); color: var(--info); }
.badge-danger   { background: var(--danger-bg); color: var(--danger); }

.yes-no-yes {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--success-bg); color: var(--success);
}
.yes-no-no {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--danger-bg); color: var(--danger);
}

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 24px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

thead tr {
  background: var(--navy-deep);
}
thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--bg-soft); }
tbody tr:hover { background: rgba(201,146,42,.04); }

td {
  padding: 13px 18px;
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.5;
}

td strong { font-size: 0.875rem; }

/* ─── TOC Box ────────────────────────────────────────────────────────────── */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--card-radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.toc ol, .toc ul {
  padding-left: 1.2rem;
  margin: 0;
}
.toc li { margin-bottom: 6px; }
.toc a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.toc a:hover { color: var(--gold); }

/* ─── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq details[open] {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,.08);
}

.faq summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform .25s;
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after {
  content: '−';
}

.faq-body {
  padding: 0 24px 24px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.faq-body p:last-child { margin-bottom: 0; }

/* ─── Pricing Plans ──────────────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1000px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow .25s, transform .25s;
}
.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.plan-card.featured {
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(201,146,42,.1), var(--shadow-md);
  transform: scale(1.02);
  position: relative;
}
.plan-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.plan-featured-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy-mid);
}
.plan-price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  margin: 0;
}
.plan-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1.5;
}
.plan-features li.dim { color: var(--text-faint); }
.plan-features li.dim::before { color: var(--text-faint); content: '–'; }

.plan-cta {
  display: block;
  text-align: center;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all .2s;
  border: 1.5px solid var(--border-strong);
  color: var(--text-dark);
  background: transparent;
}
.plan-cta:hover {
  border-color: var(--navy-mid);
  color: var(--navy-mid);
  background: var(--bg-soft);
}
.plan-cta-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: transparent;
  color: var(--navy-deep);
  box-shadow: 0 4px 14px rgba(201,146,42,.35);
}
.plan-cta-gold:hover {
  filter: brightness(1.08);
  color: var(--navy-deep);
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

/* ─── Approval Flow ──────────────────────────────────────────────────────── */
.approval-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.approval-step {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  transition: border-color .2s, box-shadow .2s;
}
.approval-step:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}
.approval-step-role {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.approval-step-limit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.approval-step-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.approval-arrow {
  font-size: 1.5rem;
  color: var(--gold);
  padding: 0 8px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .approval-flow { flex-direction: column; }
  .approval-arrow { transform: rotate(90deg); }
}

/* ─── Two-column layout ──────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
}

/* ─── Quick-start guide layout ───────────────────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc-sticky { display: none; }
}

.guide-toc-sticky {
  position: sticky;
  top: 84px;
}

.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
}

.guide-toc-head {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  padding: 6px 20px 12px;
}

.guide-toc a {
  display: block;
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  line-height: 1.3;
}
.guide-toc a:hover {
  color: var(--text-dark);
  background: var(--bg-soft);
  border-left-color: var(--gold);
}
.guide-toc a.active {
  color: var(--gold);
  font-weight: 600;
  border-left-color: var(--gold);
  background: rgba(201,146,42,.06);
}

/* ─── Legal article body ─────────────────────────────────────────────────── */
.legal-body {
  padding: 60px 0 80px;
}

.legal-body h2 {
  font-size: 1.5rem;
  color: var(--navy-mid);
  margin-top: 52px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal-body h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.legal-body p {
  font-size: 0.9375rem;
  color: var(--text-body);
}
.legal-body ul {
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.legal-body ul li { margin-bottom: 6px; }

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-deep);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .topnav-glyph {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 260px;
}
.footer-brand .footer-built {
  margin-top: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li { margin: 0; }
.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--gold); }

/* ─── Utility Classes ────────────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8rem; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.grid { display: grid; }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── Chip tags for code labels ──────────────────────────────────────────── */
.code-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 5px;
  border: 1px solid rgba(232,184,75,.2);
  margin: 2px;
}

/* ─── Gold rule ──────────────────────────────────────────────────────────── */
.gold-rule {
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border: none;
  opacity: 0.5;
  margin: 48px 0;
  border-radius: var(--radius-pill);
}

/* ─── Hero stat pills ────────────────────────────────────────────────────── */
.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ─── Section heading decoration ─────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp .6s ease both;
}
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }
.animate-delay-4 { animation-delay: .4s; }

/* ─── Print styles ───────────────────────────────────────────────────────── */
@media print {
  .topnav, .footer, .hero { display: none; }
  body { font-size: 12pt; }
  a { color: inherit; }
  .container-narrow { max-width: 100%; padding: 0; }
}
