:root {
  --ink: #0B1F2E;
  --cyan: #1B8C8C;
  --cyan-light: #CFE8E6;
  --paper: #F7F5F0;
  --stone: #5A6B72;
  --mist: #E3E0D8;
  --white: #ffffff;
  --radius: 12px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img.logo-lockup { height: 52px; width: auto; max-width: 320px; display: block; object-fit: contain; }
.brand img { height: 40px; width: auto; object-fit: contain; }

.logo-lockup { height: 48px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.login-brand .logo-lockup { height: 56px; max-width: 320px; margin: 0 auto 1rem; }
.sidebar-brand .logo-lockup { height: 36px; max-width: 240px; }
.brand strong { font-size: 1.25rem; letter-spacing: -0.5px; }
.site-nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.55rem 1.1rem; border-radius: 8px; border: none;
  font-weight: 600; cursor: pointer; font-size: 0.95rem;
}
.btn-primary { background: var(--cyan); color: var(--white); }
.btn-primary:hover { filter: brightness(0.95); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--mist); }
.btn-secondary:hover { background: var(--cyan-light); text-decoration: none; }

.hero {
  padding: 4rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -1px; }
.hero p.lead { font-size: 1.15rem; color: var(--stone); margin: 0 0 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(11,31,46,0.06);
}
.hero-card-title { margin-top: 0; }
.hero-offers {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--stone);
}
.hero-offers-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
}
.public-stats {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan-light), #f0faf9);
  border: 1px solid rgba(27,140,140,0.2);
  border-top: 1px solid var(--mist);
}
.public-stats .rate {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.public-stats .label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 0.35rem;
}
.public-stats .detail {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--stone);
}
.public-stats .stats-loading { margin: 0; color: var(--stone); font-size: 0.9rem; }

.section { padding: 3rem 2rem; max-width: 1100px; margin: 0 auto; }
.section h2 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.section .sub { color: var(--stone); margin-bottom: 1.5rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.plan {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.plan.featured { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.plan h3 { margin: 0 0 0.25rem; }
.plan .price { font-size: 1.75rem; font-weight: 700; margin: 0.5rem 0; }
.plan .msrp-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
  margin-bottom: 0.1rem;
}
.plan .price small { font-size: 0.9rem; font-weight: 500; color: var(--stone); }
.plan ul { margin: 0.75rem 0 1rem; padding-left: 1.1rem; color: var(--stone); font-size: 0.9rem; }
.plan-alt { margin: 0.65rem 0 0; font-size: 0.85rem; color: var(--stone); }

.cart-page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  box-sizing: border-box;
}
.cart-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(11,31,46,0.06);
}
.cart-summary { margin-bottom: 1.25rem; }
.cart-plan-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cart-plan-lines { margin: 0; padding-left: 1.1rem; color: var(--stone); }
.cart-plan-pick { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.cart-form .field { margin-bottom: 1rem; }
.cart-form .field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.cart-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--mist);
  border-radius: 8px;
  font-size: 1rem;
}
.payment-method { margin: 0; color: var(--stone); }
.turnstile-wrap { margin: 0.75rem 0; }
.err { color: #9b1c2e; margin: 0.5rem 0; }
.ok { color: #0d6b4d; margin: 0.5rem 0; }
.hint { color: var(--stone); font-size: 0.9rem; margin: 0.25rem 0 0; }
.code-block {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  word-break: break-all;
}
.pay-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: center;
  justify-content: center;
}
.site-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 0.9rem 0.95rem;
  border: 1px solid var(--mist);
  box-shadow: 0 4px 16px rgba(11, 31, 46, 0.04);
}
.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(155deg, #f4fbfb 0%, var(--cyan-light) 55%, #e8f6f5 100%);
  border: 1px solid rgba(27, 140, 140, 0.14);
}
.feature-icon img {
  width: 2rem;
  height: 2rem;
  display: block;
}
.feature h3 { margin: 0 0 0.3rem; font-size: 0.92rem; line-height: 1.3; }
.feature p { margin: 0; color: var(--stone); font-size: 0.8rem; line-height: 1.45; }

.site-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--ink);
  color: #c5d0d6;
  font-size: 0.9rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.site-footer a { color: #dce8ec; }
.site-footer .copy { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #1e3344; color: #8fa3ad; font-size: 0.85rem; }

.content-page { max-width: 800px; margin: 0 auto; padding: 2.5rem 2rem 3rem; }
.content-page h1 { margin-top: 0; }
.content-page h2 { margin-top: 2rem; font-size: 1.2rem; }
.content-page h3 { margin-top: 1.35rem; font-size: 1.05rem; color: var(--ink); }
.content-page p, .content-page li { color: var(--stone); }
.content-page ul { margin: 0.5rem 0 1.25rem; padding-left: 1.35rem; }
.content-page li { margin-bottom: 0.4rem; }
.content-page .legal-lead { font-size: 1.05rem; color: var(--ink); margin-bottom: 1.5rem; }
.content-page .legal-note { font-size: 0.92rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--mist); }

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pill.ok { background: #d4f5e8; color: #0d6b4d; }
.status-pill.warn { background: #fff3d6; color: #8a5a00; }
.status-pill.err { background: #fde2e4; color: #9b1c2e; }

.peering-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.peering-table th, .peering-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--mist); }
.peering-table th { background: var(--cyan-light); font-size: 0.85rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}
