/* ResCDN shared styles */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter.woff2') format('woff2');
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #fff;
  color: #1e293b;
  line-height: 1.6;
  font-size: 15px;
}

nav {
  background: #0f172a;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 32px;
}
nav .brand { color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; letter-spacing: -0.3px; }
nav .brand span { color: #38bdf8; }
nav a { color: #94a3b8; text-decoration: none; font-size: 14px; }
nav a:hover { color: #fff; }
nav .nav-right { margin-left: auto; display: flex; gap: 16px; align-items: center; }
nav .btn-nav { background: #38bdf8; color: #0f172a; padding: 6px 16px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }

.page { max-width: 1100px; margin: 0 auto; padding: 64px 32px; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 64px 32px; }

h1 { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 26px; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }

p { color: #475569; margin-bottom: 16px; }
ul { padding-left: 20px; color: #475569; margin-bottom: 16px; }
li { margin-bottom: 6px; }
a { color: #0ea5e9; }

.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.btn-primary { background: #0ea5e9; color: #fff; }
.btn-primary:hover { background: #0284c7; color: #fff; }
.btn-outline { border: 1px solid #cbd5e1; color: #475569; background: #fff; }
.btn-outline:hover { border-color: #94a3b8; color: #1e293b; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 500; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }

code { font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; color: #0f172a; }
pre { background: #0f172a; color: #e2e8f0; padding: 20px 24px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.7; margin-bottom: 24px; }
pre code { background: none; color: inherit; padding: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 40px 0; }
.card { border: 1px solid #e2e8f0; border-radius: 12px; padding: 28px; }
.card-icon { font-size: 24px; margin-bottom: 12px; }

hr { border: none; border-top: 1px solid #e2e8f0; margin: 40px 0; }

footer { background: #0f172a; color: #64748b; padding: 40px 32px; font-size: 13px; }
footer .footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
footer .footer-brand { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
footer a { color: #64748b; text-decoration: none; }
footer a:hover { color: #94a3b8; }
footer .footer-col { display: flex; flex-direction: column; gap: 8px; }
footer .footer-col-title { color: #94a3b8; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
footer .footer-bottom { max-width: 1100px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid #1e293b; color: #475569; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.stats { display: flex; gap: 48px; flex-wrap: wrap; margin: 40px 0; }
.stat-num { font-size: 32px; font-weight: 700; color: #0f172a; line-height: 1; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
th { text-align: left; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #475569; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: #22c55e; }
.dot-yellow { background: #eab308; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; }
.pricing-card { border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; }
.pricing-card.featured { border-color: #0ea5e9; box-shadow: 0 0 0 1px #0ea5e9; }
.pricing-card .price { font-size: 36px; font-weight: 700; color: #0f172a; line-height: 1; margin: 16px 0 4px; }
.pricing-card .price span { font-size: 16px; font-weight: 400; color: #64748b; }
.pricing-card ul { list-style: none; padding: 0; margin: 20px 0 28px; }
.pricing-card ul li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; color: #475569; font-size: 14px; }
.pricing-card ul li::before { content: "\2713  "; color: #16a34a; font-weight: 700; }

.legal h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; }
.legal h3 { font-size: 16px; margin-top: 24px; color: #334155; }
.legal p, .legal li { color: #475569; font-size: 14px; line-height: 1.75; }

.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1100px; margin: 0 auto; padding: 48px 32px; }
.sidebar { position: sticky; top: 24px; align-self: start; }
.sidebar a { display: block; color: #475569; text-decoration: none; font-size: 13px; padding: 5px 0; }
.sidebar a:hover { color: #0ea5e9; }
.sidebar .sidebar-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #94a3b8; margin: 20px 0 6px; }
.method { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-right: 10px; font-family: monospace; }
.get { background: #dbeafe; color: #1d4ed8; }
.post { background: #dcfce7; color: #166534; }
.endpoint { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; }

@media (max-width: 700px) {
  .docs-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 600px) {
  h1 { font-size: 28px; }
  nav { padding: 0 16px; gap: 16px; }
  .page, .page-narrow { padding: 40px 16px; }
  .stats { gap: 28px; }
}
