:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #fff7f2;
  --text: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --brand: #e53935;
  --brand-dark: #c62828;
  --brand-warm: #f57c00;
  --success: #087a55;
  --shadow: 0 12px 36px rgba(18, 28, 45, 0.08);
  --radius: 18px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(229, 57, 53, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 231, 236, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--content));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #fff;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #344054;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #fff1ec;
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-lines::before {
  transform: translateY(-6px);
}

.nav-toggle-lines::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  transform: translateY(-2px) rotate(-45deg);
}

.container {
  width: min(calc(100% - 32px), var(--content));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - 32px), 860px);
  margin-inline: auto;
}

.page-main {
  min-height: 62vh;
}

.hero {
  padding: 52px 0 24px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid #ffd7c9;
  border-radius: 999px;
  background: #fff7f2;
  color: #9f2f24;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p,
.page-heading p {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.page-heading {
  padding: 56px 0 26px;
}

.page-heading h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-card {
  margin-bottom: 32px;
  padding: clamp(22px, 4vw, 42px);
}

.prose {
  color: #344054;
  font-size: 1rem;
}

.prose h2,
.prose h3 {
  color: #101828;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.prose h2 {
  margin: 38px 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.prose h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 7px;
}

.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #d1fadf;
  border-left: 4px solid #12b76a;
  border-radius: 12px;
  background: #ecfdf3;
  color: #05603a;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  background: #111827;
  color: #d0d5dd;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 0;
  color: #98a2b3;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: #eaecf0;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #344054;
  color: #98a2b3;
  font-size: 0.84rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.25);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ad-slot {
  width: 100%;
  min-height: 90px;
  margin: 22px auto;
  overflow: hidden;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 62px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 11px 12px;
  }

  .hero {
    padding-top: 38px;
  }

  .footer-top {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Source-page components retained from the user's About/Privacy/Terms content */
.source-page-content > :first-child { margin-top: 0; }
.source-page-content h2 { margin-top: 2rem; }
.source-page-content h3 { margin-top: 1.5rem; }
.source-page-content a { overflow-wrap: anywhere; }
.story-box,
.highlight-box,
.legal-note {
  margin: 1.35rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f9fafb;
}
.story-box { border-color: #fed7aa; background: #fff7ed; }
.highlight-box { border-color: #a7f3d0; background: #ecfdf5; }
.legal-note { border-color: #c7d7fe; background: #f5f8ff; }
.story-box h3,
.highlight-box h3,
.legal-note h3 { margin-top: 0; }
.code-bg {
  display: inline-block;
  max-width: 100%;
  padding: 0.08rem 0.42rem;
  border-radius: 7px;
  background: #f2f4f7;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
