/* ==========================================================================
   Closed Caption Converter — site design system
   Loaded after bootstrap.min.css and styles.min.css on every page.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root,
[data-bs-theme=dark] {
  --ccc-bg: #0b0b0c;
  --ccc-surface: #141416;
  --ccc-surface-2: #1c1c1f;
  --ccc-border: rgba(255, 255, 255, .08);
  --ccc-border-strong: rgba(255, 255, 255, .16);

  --ccc-red: #a2160f;          /* brand fill (buttons, badges) */
  --ccc-red-dark: #580101;     /* gradients */
  --ccc-red-bright: #f04848;   /* accessible accent on dark (≈5.2:1) */
  --ccc-red-glow: rgba(240, 72, 72, .18);

  --ccc-text: #f3f3f4;
  --ccc-text-muted: #a1a1aa;
  --ccc-radius: 14px;
  --ccc-radius-sm: 10px;
  --ccc-shadow: 0 10px 30px rgba(0, 0, 0, .35);

  --bs-body-bg: var(--ccc-bg);
  --bs-body-bg-rgb: 11, 11, 12;
  --bs-body-color: var(--ccc-text);
  --bs-emphasis-color: #fff;
  --bs-secondary-color: var(--ccc-text-muted);
  --bs-secondary-bg: var(--ccc-surface);
  --bs-tertiary-bg: var(--ccc-surface-2);
  --bs-secondary-bg-subtle: var(--ccc-surface);
  --bs-dark-bg-subtle: var(--ccc-surface);
  --bs-border-color: var(--ccc-border);
  --bs-link-color: var(--ccc-red-bright);
  --bs-link-color-rgb: 240, 72, 72;
  --bs-link-hover-color: #ff7373;
  --bs-link-hover-color-rgb: 255, 115, 115;
  --bs-focus-ring-color: rgba(240, 72, 72, .45);
  --bs-body-line-height: 1.6;
}

/* ---- Base -------------------------------------------------------------- */
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--ccc-bg);
  color: var(--ccc-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.015em; color: #fff; }
h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { text-wrap: pretty; }
a { transition: color .15s ease; }
a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ccc-red-bright); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ccc-red); color: #fff; }
.text-muted, .text-body-secondary { color: var(--ccc-text-muted) !important; }
img { max-width: 100%; height: auto; }

.display-hero {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: #d4d4d8; line-height: 1.6; }
.measure { max-width: 65ch; }
.measure-center { max-width: 48rem; margin-inline: auto; }
.measure-wide { max-width: 56rem; margin-inline: auto; }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: 6rem; } }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ccc-red-bright);
  margin-bottom: .75rem;
}
.text-accent { color: var(--ccc-red-bright) !important; }

/* ---- Layout ------------------------------------------------------------ */
.section { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); }
.section-sm { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-alt { background: var(--ccc-surface); border-block: 1px solid var(--ccc-border); }
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--ccc-text-muted); font-size: 1.15rem; }

.bg-hero {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgba(162, 22, 15, .35), transparent 60%),
    linear-gradient(135deg, #000 0%, #1a0202 55%, var(--ccc-red-dark) 100%);
  isolation: isolate;
  overflow-x: clip;
}
.bg-hero::after {          /* fade into page background */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6rem;
  background: linear-gradient(transparent, var(--ccc-bg));
  z-index: -1;
  pointer-events: none;
}
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero .lead { max-width: 36rem; margin-bottom: 2rem; }
.hero-sm { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.hero-sm .display-hero { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.hero-media { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }

/* ---- Navbar ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-nav.is-scrolled { background: rgba(11, 11, 12, .85); border-bottom-color: var(--ccc-border); }
.site-nav .navbar { padding-block: .85rem; }
/* Brand lockup: 3D tile mark + stacked wordmark */
.site-nav .navbar-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; margin-right: 1.5rem; }
.site-nav .navbar-brand:hover { text-decoration: none; }
.brand-mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 6px 14px rgba(162, 22, 15, .45));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), filter .35s ease;
}
.navbar-brand:hover .brand-mark {
  transform: perspective(160px) rotateX(14deg) rotateY(-18deg) translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(240, 72, 72, .55));
}
.brand-text { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; line-height: 1; color: #fff; }
.site-nav .nav-link { color: #d4d4d8; font-weight: 500; padding-inline: .8rem !important; border-radius: 8px; }
.site-nav .nav-link:hover { color: #fff; text-decoration: none; }
.site-nav .nav-link.active { color: #fff; }
@media (min-width: 992px) {
  .site-nav .nav-link.active { box-shadow: inset 0 -2px 0 var(--ccc-red-bright); border-radius: 0; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link { padding-inline: .5rem !important; font-size: .95rem; }
  .site-nav .navbar-brand { margin-right: .75rem; }
}
.site-nav .navbar-toggler { color: #fff; }
.site-nav .navbar-toggler:focus { box-shadow: none; }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-block: 1rem .5rem; }
  .nav-actions { margin-top: .75rem; }
  .nav-actions .btn { flex: 1; }
}

/* ---- Buttons ----------------------------------------------------------- */
.btn { font-weight: 700; border-radius: 10px; padding: .6rem 1.15rem; transition: all .15s ease; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .8rem; }
.btn-primary,
[data-bs-theme=dark] .btn-primary {
  --bs-btn-bg: var(--ccc-red);
  --bs-btn-border-color: var(--ccc-red);
  --bs-btn-hover-bg: #c01b12;
  --bs-btn-hover-border-color: #c01b12;
  --bs-btn-active-bg: #8a130d;
  box-shadow: 0 6px 20px rgba(162, 22, 15, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(192, 27, 18, .45); }
.btn-outline-primary,
[data-bs-theme=dark] .btn-outline-primary {
  --bs-btn-color: var(--ccc-red-bright);
  --bs-btn-border-color: rgba(240, 72, 72, .55);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ccc-red);
  --bs-btn-hover-border-color: var(--ccc-red);
  --bs-btn-active-bg: var(--ccc-red);
  --bs-btn-active-border-color: var(--ccc-red);
}
.btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(255, 255, 255, .06);
  --bs-btn-border-color: var(--ccc-border-strong);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .12);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .3);
  --bs-btn-active-bg: rgba(255, 255, 255, .16);
  --bs-btn-active-color: #fff;
}
.btn-white {
  --bs-btn-color: #111;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: #ececec;
  --bs-btn-hover-border-color: #ececec;
}
.btn .bi { vertical-align: -.125em; }
.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow .bi { transition: transform .15s ease; }
.link-arrow:hover .bi { transform: translateX(3px); }

/* ---- Cards & tiles ----------------------------------------------------- */
.card-ccc {
  background: var(--ccc-surface);
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius);
  padding: 1.75rem;
  height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.section-alt .card-ccc { background: var(--ccc-surface-2); }
.card-ccc.hover:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 72, 72, .4);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(240, 72, 72, .1);
}
.card-ccc h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card-ccc p { color: var(--ccc-text-muted); }
.card-ccc p:last-child { margin-bottom: 0; }
.card-ccc.d-flex.flex-column > .mt-auto { padding-top: 1rem; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--ccc-red-bright);
  background: rgba(240, 72, 72, .12);
  border: 1px solid rgba(240, 72, 72, .25);
  margin-bottom: 1rem;
}
.icon-tile-sm { width: 1.4rem; height: 1.4rem; font-size: .75rem; border-radius: 6px; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; padding-block: .3rem; color: #d4d4d8; }
.check-list li .icon-tile-sm { margin-top: .15rem; }
.check-list.cols-2 { columns: 2 16rem; column-gap: 2rem; }
.check-list.cols-2 li { break-inside: avoid; }

/* Quote / testimonial */
.quote-card { position: relative; }
.quote-card blockquote { font-size: 1.15rem; line-height: 1.6; color: #e4e4e7; margin: 0 0 1.25rem; }
.quote-card .quote-mark { color: var(--ccc-red-bright); font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.quote-card .quote-logo { max-height: 2.5rem; width: auto; }
.quote-card .who { font-weight: 700; margin: 0; color: #fff; }
.quote-card .role { color: var(--ccc-text-muted); font-size: .9rem; margin: 0; }

/* Media frame (videos, screenshots) */
.media-frame {
  border-radius: var(--ccc-radius);
  overflow: hidden;
  border: 1px solid var(--ccc-border);
  box-shadow: var(--ccc-shadow);
  background: #000;
}

/* ---- Customer logo marquee -------------------------------------------- */
/* Logos in assets/img/logos/ are pre-rendered white-on-transparent copies of the originals in assets/img/. */
.logo-band { padding-block: 2.5rem 1.5rem; }
.logo-band .label {
  text-align: center;
  color: var(--ccc-text-muted);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.75rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: .75rem 0;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex-shrink: 0; padding-inline: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.marquee-track img {
  display: block;
  height: 34px;
  width: auto;
  opacity: .55;
  transition: opacity .2s ease, transform .2s ease;
}
.marquee-track img.tall { height: 46px; }
.marquee-track img.wide { height: 28px; }
.marquee-track img.svg { height: 30px; filter: brightness(0) invert(1); }
.marquee-track li:hover img { opacity: 1; transform: scale(1.04); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767.98px) {
  .marquee-track { animation-duration: 40s; }
  .marquee-track img { height: 26px; }
  .marquee-track img.tall { height: 36px; }
  .marquee-track img.wide { height: 22px; }
  .marquee-track img.svg { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; row-gap: 1.25rem; padding-inline: 1rem; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

/* Partner / integration logo tiles (keep brand colours) */
.logo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  padding: .9rem 1.1rem;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius-sm);
}
.logo-tile img { max-height: 36px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile img.invert { filter: brightness(0) invert(1); opacity: .9; }
@media (max-width: 575.98px) { .logo-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---- Panels ------------------------------------------------------------ */
.panel {
  position: relative;
  background:
    radial-gradient(40rem 22rem at 100% 0%, var(--ccc-red-glow), transparent 60%),
    var(--ccc-surface);
  border: 1px solid var(--ccc-border);
  border-radius: calc(var(--ccc-radius) + 6px);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  overflow: hidden;
}

/* CTA band */
.cta-band {
  position: relative;
  border-radius: calc(var(--ccc-radius) + 6px);
  padding: clamp(2rem, 1.25rem + 3.5vw, 4rem);
  background:
    radial-gradient(36rem 20rem at 0% 100%, rgba(0, 0, 0, .35), transparent 60%),
    linear-gradient(120deg, #7a0d08 0%, var(--ccc-red) 55%, #c4251b 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 60px rgba(162, 22, 15, .3);
  overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* ---- Accordion --------------------------------------------------------- */
.accordion {
  --bs-accordion-bg: var(--ccc-surface);
  --bs-accordion-border-color: var(--ccc-border);
  --bs-accordion-border-radius: var(--ccc-radius-sm);
  --bs-accordion-inner-border-radius: var(--ccc-radius-sm);
  --bs-accordion-btn-padding-y: 1.1rem;
  --bs-accordion-active-bg: var(--ccc-surface-2);
  --bs-accordion-active-color: #fff;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(240, 72, 72, .3);
}
.accordion-item { margin-bottom: .6rem; border: 1px solid var(--ccc-border) !important; border-radius: var(--ccc-radius-sm) !important; overflow: hidden; }
.accordion-button { font-weight: 700; color: #fff; }
.accordion-body { color: #d4d4d8; }
[data-bs-theme=dark] .accordion-button::after {
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f3f3f4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f04848'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

/* ---- Feature split rows (features page) ------------------------------- */
.split-row {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ccc-surface);
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius);
  overflow: hidden;
}
.split-row + .split-row { margin-top: 1.5rem; }
.split-row .split-media { min-height: 220px; background-position: center; background-size: cover; background-repeat: no-repeat; }
.split-row .split-body { padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.split-row .split-body p { color: var(--ccc-text-muted); }
@media (min-width: 768px) {
  .split-row { grid-template-columns: 1fr 1fr; }
  .split-row .split-media { min-height: 320px; }
  .split-row.reverse .split-media { order: 2; }
}

/* ---- Tables ------------------------------------------------------------ */
.table-ccc {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, .025);
  --bs-table-hover-bg: rgba(240, 72, 72, .07);
  --bs-table-border-color: var(--ccc-border);
  margin: 0;
}
.table-ccc thead th {
  position: sticky;
  top: 0;
  background: var(--ccc-surface-2);
  color: #fff;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ccc-border-strong);
  z-index: 1;
}
.table-ccc td, .table-ccc th { padding: .85rem 1rem; vertical-align: middle; }
.table-wrap {
  background: var(--ccc-surface);
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius);
  overflow: hidden;
}
.table-wrap .table-responsive { max-height: none; }
.tick { color: var(--ccc-red-bright); font-size: 1.1rem; }
.cross { color: #52525b; }

/* ---- Pricing ----------------------------------------------------------- */
.price-card { display: flex; flex-direction: column; padding: 2rem; }
.price-card .price { font-size: 2.75rem; font-weight: 700; line-height: 1; color: #fff; }
.price-card .price small { font-size: 1rem; font-weight: 400; color: var(--ccc-text-muted); }
.price-card hr { border-color: var(--ccc-border); opacity: 1; margin-block: 1.5rem; }
.price-card.featured {
  border-color: rgba(240, 72, 72, .6);
  box-shadow: 0 0 0 1px rgba(240, 72, 72, .25), 0 20px 50px rgba(162, 22, 15, .22);
  background:
    radial-gradient(30rem 14rem at 50% 0%, rgba(162, 22, 15, .2), transparent 70%),
    var(--ccc-surface);
}
.badge-ccc {
  display: inline-block;
  background: var(--ccc-red);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .65rem;
  border-radius: 999px;
}

/* ---- Forms ------------------------------------------------------------- */
.form-label { font-weight: 700; font-size: .9rem; color: #e4e4e7; }
.form-control, .form-select {
  background-color: var(--ccc-bg);
  border-color: var(--ccc-border-strong);
  border-radius: var(--ccc-radius-sm);
  padding: .7rem .9rem;
  color: #fff;
}
.form-control:focus, .form-select:focus {
  background-color: var(--ccc-bg);
  border-color: var(--ccc-red-bright);
  box-shadow: 0 0 0 .2rem rgba(240, 72, 72, .2);
  color: #fff;
}
.form-control::placeholder { color: #71717a; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--ccc-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon-tile { margin: 0; }
.contact-list strong { display: block; color: #fff; }

/* ---- Prose (legal pages) ---------------------------------------------- */
.prose { max-width: 52rem; color: #d4d4d8; font-size: 1.02rem; }
.prose h2 { font-size: 1.6rem; margin: 3rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--ccc-border); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose .table-scroll {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius-sm);
}
.prose table { width: 100%; min-width: 40rem; font-size: .9rem; border-collapse: collapse; }
.prose tr > :first-child { border-left: 0; }
.prose tr > :last-child { border-right: 0; }
.prose thead tr:first-child > * { border-top: 0; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose th, .prose td { padding: .65rem .85rem; border: 1px solid var(--ccc-border); vertical-align: top; text-align: left; }
.prose th { background: var(--ccc-surface-2); color: #fff; }
.toc { position: sticky; top: 6rem; max-height: calc(100vh - 8rem); overflow-y: auto; font-size: .9rem; }
.toc .eyebrow { margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--ccc-border); }
.toc a { display: block; padding: .35rem 0 .35rem 1rem; color: var(--ccc-text-muted); margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: #fff; text-decoration: none; border-left-color: var(--ccc-red-bright); }

/* ---- 404 --------------------------------------------------------------- */
.error-code {
  font-size: clamp(6rem, 4rem + 10vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, var(--ccc-red-bright), var(--ccc-red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  background:
    radial-gradient(50rem 20rem at 100% 100%, rgba(88, 1, 1, .55), transparent 70%),
    #070707;
  border-top: 1px solid var(--ccc-border);
  padding-block: 4rem 2rem;
  font-size: .95rem;
}
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--ccc-text-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #fff; margin-bottom: .85rem; }
.site-footer .brand .icon-tile { margin: 0; width: 2.25rem; height: 2.25rem; }
.site-footer .about { color: var(--ccc-text-muted); max-width: 22rem; }
.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ccc-border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: var(--ccc-text-muted);
  font-size: .85rem;
}
.social { display: flex; gap: .5rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--ccc-border);
  color: #d4d4d8;
}
.social a:hover { color: #fff; border-color: rgba(240, 72, 72, .5); background: rgba(240, 72, 72, .1); }

/* ---- Code & callouts --------------------------------------------------- */
code { color: #ff8a8a; font-size: .9em; }
.code-block {
  background: #050505;
  border: 1px solid var(--ccc-border);
  border-radius: var(--ccc-radius-sm);
  padding: 1rem 1.25rem;
  margin: 0 0 1rem;
  font-size: .82rem;
  line-height: 1.55;
  color: #e4e4e7;
  overflow-x: auto;
}
.code-block code { color: inherit; font-size: inherit; }
.code-figure { margin: 0 0 1rem; }
.code-figure figcaption {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ccc-text-muted);
  background: var(--ccc-surface-2);
  border: 1px solid var(--ccc-border);
  border-bottom: 0;
  border-radius: var(--ccc-radius-sm) var(--ccc-radius-sm) 0 0;
  padding: .5rem 1.25rem;
}
.code-figure .code-block { border-top-left-radius: 0; border-top-right-radius: 0; margin: 0; }
.callout {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: rgba(240, 72, 72, .07);
  border: 1px solid rgba(240, 72, 72, .25);
  border-radius: var(--ccc-radius-sm);
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  color: #e4e4e7;
  font-size: .95rem;
}
.callout .icon-tile-sm { margin-top: .1rem; }
.badge-type {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ccc-border);
  color: #d4d4d8;
  white-space: nowrap;
}
.stripe-button-el { width: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
