/**
 * CapchaCloud shared design system — marketing + trust pages.
 * Load Inter/Outfit from Google Fonts on pages that need display type.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;700;800&display=swap");

:root {
  --cc-bg: #030305;
  --cc-panel: rgba(15, 15, 20, 0.72);
  --cc-border: rgba(255, 255, 255, 0.08);
  --cc-text: #fafafa;
  --cc-muted: #a1a1aa;
  --cc-accent: #f38020;
  --cc-accent-glow: rgba(243, 128, 32, 0.22);
  --cc-danger: #f87171;
  --cc-success: #34d399;
  --cc-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cc-font-display: "Outfit", var(--cc-font-sans);
  --cc-radius-lg: 20px;
  --cc-radius-md: 12px;
  --cc-radius-sm: 10px;
  --cc-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

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

body.cc-body {
  margin: 0;
  font-family: var(--cc-font-sans);
  background: var(--cc-bg);
  color: var(--cc-text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(243, 128, 32, 0.09), transparent 38%),
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.05), transparent 32%);
}

a.cc-link {
  color: var(--cc-accent);
  font-weight: 600;
  text-decoration: none;
}
a.cc-link:hover {
  text-decoration: underline;
}

/* —— Site chrome —— */
.cc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--cc-border);
  background: rgba(3, 3, 5, 0.88);
  backdrop-filter: blur(14px);
}

.cc-site-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cc-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--cc-font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}
.cc-site-brand span {
  color: var(--cc-accent);
}
.cc-site-brand img {
  border-radius: 8px;
}

.cc-site-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.cc-site-nav-links a {
  color: var(--cc-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.cc-site-nav-links a:hover {
  color: #fff;
}

/* Breadcrumb (trust / docs pages) */
.cc-breadcrumb {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 24px 14px;
  font-size: 0.8125rem;
  color: var(--cc-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-breadcrumb a {
  color: var(--cc-muted);
  font-weight: 600;
  text-decoration: none;
}
.cc-breadcrumb a:hover {
  color: var(--cc-accent);
  text-decoration: underline;
}
.cc-bc-sep {
  margin: 0 0.5em;
  opacity: 0.45;
  user-select: none;
}
.cc-breadcrumb-current {
  color: var(--cc-text);
  font-weight: 600;
}

.cc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}
.cc-wrap--wide {
  max-width: 1180px;
}

.cc-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(243, 128, 32, 0.12);
  color: var(--cc-accent);
  border: 1px solid rgba(243, 128, 32, 0.28);
  margin-bottom: 18px;
}

a.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--cc-radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--cc-accent);
  border: 1px solid rgba(243, 128, 32, 0.5);
  box-shadow: 0 8px 24px var(--cc-accent-glow);
}
a.cc-btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.cc-h1 {
  font-family: var(--cc-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  background: linear-gradient(135deg, #fff 28%, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cc-h2 {
  font-family: var(--cc-font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.cc-h3 {
  font-family: var(--cc-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.cc-lead {
  color: var(--cc-muted);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 0 20px;
  line-height: 1.55;
}

.cc-muted {
  color: var(--cc-muted);
  font-size: 0.9rem;
}

.cc-glass {
  background: var(--cc-panel);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: var(--cc-shadow);
}

.cc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .cc-grid-2 {
    grid-template-columns: 1fr;
  }
}

.cc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .cc-grid-3 {
    grid-template-columns: 1fr;
  }
}

.cc-card {
  padding: 22px 20px;
  height: 100%;
}
.cc-card--featured {
  border-color: rgba(243, 128, 32, 0.45);
  box-shadow: 0 8px 32px var(--cc-accent-glow);
  position: relative;
}
.cc-card--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--cc-radius-lg) var(--cc-radius-lg) 0 0;
  background: linear-gradient(90deg, #f38020, #ffb347);
}

/* Bar comparison */
.cc-bar-wrap {
  margin: 28px 0;
}
.cc-bar-row {
  margin-bottom: 18px;
}
.cc-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.cc-bar-track {
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--cc-border);
}
.cc-bar-fill {
  height: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a0a0a;
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.cc-bar-fill--bad {
  background: linear-gradient(90deg, #b91c1c, #f87171);
  color: #fff;
}
.cc-bar-fill--good {
  background: linear-gradient(90deg, #059669, #34d399);
}

/* Calculator */
.cc-calc {
  padding: 24px;
  margin: 28px 0;
}
.cc-calc label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.cc-calc input[type="range"] {
  width: 100%;
  max-width: 420px;
}
.cc-calc-out {
  margin-top: 16px;
  font-size: 1.1rem;
}
.cc-calc-out strong {
  color: var(--cc-accent);
}

/* Legal risk */
.cc-risk {
  padding: 26px 24px;
  margin: 32px 0;
  border-color: rgba(248, 113, 113, 0.25);
}
.cc-risk ul {
  margin: 12px 0 0;
  padding-left: 1.2rem;
  color: #d4d4d4;
}
.cc-callout-good {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--cc-radius-md);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #ecfdf5;
  font-weight: 600;
  line-height: 1.5;
}

/* Pricing strip */
.cc-price-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .cc-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .cc-price-grid {
    grid-template-columns: 1fr;
  }
}
.cc-price-tier {
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.cc-price-tier .cc-price {
  font-family: var(--cc-font-display);
  font-size: 1.65rem;
  font-weight: 800;
  margin: 6px 0;
}
.cc-price-tier .cc-credits {
  font-size: 0.8rem;
  color: var(--cc-accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.cc-price-tier ul {
  text-align: left;
  font-size: 0.78rem;
  color: var(--cc-muted);
  padding-left: 1rem;
  margin: 0;
  flex: 1;
}

/* Code */
.cc-code {
  background: #0d0d0d;
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius-sm);
  padding: 16px 18px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e5e5e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Footer */
.cc-site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--cc-border);
  font-size: 0.85rem;
  color: var(--cc-muted);
  text-align: center;
}
.cc-site-footer a {
  color: var(--cc-muted);
  font-weight: 600;
  text-decoration: none;
}
.cc-site-footer a:hover {
  color: var(--cc-accent);
}

/* Widget mount */
#capcha-embed {
  scroll-margin-top: 88px;
}
.cc-widget-shell {
  padding: 20px;
  max-width: 440px;
  margin: 0 auto;
}
@media (min-width: 901px) {
  .cc-widget-shell {
    margin: 0;
  }
}

/* Trust table */
.cc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
.cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.cc-table--matrix {
  min-width: 640px;
}
.cc-table--matrix td,
.cc-table--matrix th {
  text-align: center;
}
.cc-table--matrix td:first-child,
.cc-table--matrix th:first-child {
  text-align: left;
}
.cc-table .cc-check {
  color: var(--cc-success);
  font-weight: 800;
}
.cc-table th,
.cc-table td {
  border: 1px solid var(--cc-border);
  padding: 10px 12px;
  text-align: left;
}
.cc-table th {
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}
