/* ===========================
   Payments Central Developer Portal
   Shared styles — light theme
   =========================== */

:root {
  --color-bg:        #ffffff;
  --color-bg-card:   #f8fafc;
  --color-bg-code:   #f1f5f9;
  --color-border:    #e2e8f0;
  --color-accent:    #3b82f6;
  --color-accent-h:  #2563eb;
  --color-success:   #059669;
  --color-warning:   #d97706;
  --color-danger:    #dc2626;
  --color-text:      #0f172a;
  --color-muted:     #64748b;
  --font-sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:       "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
  --radius:          8px;
  --radius-sm:       4px;
  --shadow:          0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-h); text-decoration: underline; }

/* ---- Nav ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
}
.nav-logo:hover { color: var(--color-text); text-decoration: none; }

.nav-logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent), #8b5cf6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--color-muted);
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-text); background: #f1f5f9; text-decoration: none; }
.nav-links a.active { color: var(--color-accent); background: #eff6ff; }

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--color-accent-h) !important; color: #fff !important; text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--color-text);
}

.hero p {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-h); color: #fff; }
.btn-outline {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { background: #f8fafc; border-color: var(--color-accent); color: var(--color-text); }

/* ---- Cards ---- */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px #eff6ff, var(--shadow);
}

/* ---- Grid ---- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* ---- Sections ---- */
.section { padding: 64px 24px; max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.section-subtitle {
  color: var(--color-muted);
  font-size: 16px;
  margin-bottom: 40px;
}

/* ---- Code blocks ---- */
pre, code {
  font-family: var(--font-mono);
  font-size: 13px;
}
pre {
  background: var(--color-bg-code);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.7;
  color: #1e40af;
}
code {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 3px;
  padding: 1px 6px;
  color: #1d4ed8;
  font-size: 0.875em;
}
pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}
.badge-get    { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-post   { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-sandbox{ background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-free   { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 20px;
  padding: 0 0 32px 0;
  position: relative;
}
.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  counter-increment: step;
}
.step-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; padding-top: 8px; color: var(--color-text); }
.step-body p  { color: var(--color-muted); font-size: 14px; }

/* ---- Table ---- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}
th { color: var(--color-muted); font-weight: 600; background: #f8fafc; }
tbody tr:hover { background: #f8fafc; }

/* ---- Callouts ---- */
.callout {
  border-left: 3px solid;
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  margin: 20px 0;
}
.callout-info  { border-color: var(--color-accent);  background: #eff6ff; color: #1e3a8a; }
.callout-warn  { border-color: var(--color-warning); background: #fffbeb; color: #78350f; }
.callout-tip   { border-color: var(--color-success); background: #ecfdf5; color: #064e3b; }
.callout strong { display: block; margin-bottom: 4px; }
.callout code { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: inherit; }

/* ---- Guide layout ---- */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: 80px;
}
.guide-sidebar ul { list-style: none; }
.guide-sidebar li + li { margin-top: 2px; }
.guide-sidebar a {
  display: block;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  transition: 0.15s;
  text-decoration: none;
}
.guide-sidebar a:hover,
.guide-sidebar a.active {
  color: var(--color-text);
  background: #f1f5f9;
  text-decoration: none;
}
.guide-sidebar a.active { color: var(--color-accent); background: #eff6ff; }
.sidebar-group {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 12px 10px 4px;
}

.guide-content h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--color-text); }
.guide-content h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; padding-top: 36px; border-top: 1px solid var(--color-border); color: var(--color-text); }
.guide-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 28px; }
.guide-content h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; color: var(--color-text); }
.guide-content p  { color: var(--color-muted); margin-bottom: 16px; line-height: 1.75; }
.guide-content ul, .guide-content ol { padding-left: 24px; color: var(--color-muted); margin-bottom: 16px; }
.guide-content li { margin-bottom: 6px; }
.guide-content pre { margin-bottom: 20px; }
.guide-content .lead { font-size: 17px; color: var(--color-text); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
  background: #f8fafc;
}
.site-footer a { color: var(--color-muted); }
.site-footer a:hover { color: var(--color-text); text-decoration: none; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; display: none; }
  .nav-links { display: none; }
  .hero h1 { font-size: 32px; }
}
