/* ============================================================
   XcapeVelocity.ai — informational site
   Palette: yellow #F5D000, black #111111, white #FFFFFF, red #C81E1E
   ============================================================ */

:root {
  --yellow: #F5D000;
  --yellow-deep: #D9B800;
  --black: #111111;
  --ink: #1B1B1B;
  --white: #FFFFFF;
  --paper: #FAFAF7;
  --alt-bg: #F4F2E9;
  --red: #C81E1E;
  --line: #E4E1D4;
  --max-width: 1120px;
  --radius: 2px;
  --font-display: 'Helvetica Neue', Arial, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .btn, nav a, .card-index, .step-number {
  font-family: var(--font-display);
}

a {
  color: var(--black);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.section-inner,
.header-inner,
.footer-inner,
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--black);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--black);
}

/* Reserved for the official logo file once supplied — not in use until then. */
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  flex: none;
}

.brand-logo-footer {
  height: 28px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--black);
}

.brand-suffix {
  color: var(--red);
  font-weight: 700;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--black);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.site-nav a:hover {
  border-bottom-color: var(--yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 8px;
  background: var(--black);
}

/* ---------------- Hero ---------------- */

.hero {
  background: var(--yellow);
  border-bottom: 3px solid var(--black);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 26px solid rgba(17,17,17,0.06);
  border-top-color: transparent;
  border-right-color: transparent;
}

.hero-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 40px;
  max-width: 16ch;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--black);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--black);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 rgba(17,17,17,0.25);
}

/* ---------------- Sections ---------------- */

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--alt-bg);
}

.section-inner h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--black);
  position: relative;
  padding-bottom: 16px;
}

.section-inner h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 5px;
  background: var(--yellow);
}

.section-inner p {
  max-width: 68ch;
  margin: 0 0 18px;
  font-size: 1.03rem;
}

.lede {
  font-size: 1.15rem !important;
  color: var(--black);
}

/* ---------------- Cards ---------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.card-index {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--black);
}

.card p {
  font-size: 0.96rem;
  margin: 0;
  max-width: none;
}

/* ---------------- Steps ---------------- */

.steps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: none;
}

.step {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.step h3 {
  margin: 4px 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.step p {
  margin: 0;
  font-size: 0.98rem;
}

.disclosure {
  margin-top: 34px;
  padding: 18px 20px;
  background: var(--white);
  border-left: 4px solid var(--red);
  font-size: 0.92rem;
  color: var(--ink);
  font-family: var(--font-display);
  max-width: 68ch;
}

.section-alt .disclosure {
  background: var(--paper);
}

/* ---------------- Fee example ---------------- */

.fee-example {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 26px;
  max-width: 560px;
  margin: 32px 0;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.96rem;
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-total {
  font-weight: 800;
  color: var(--black);
}

.fee-total span:first-child::before {
  content: "";
}

/* ---------------- Policy sections ---------------- */

.policy-section .section-inner p {
  max-width: 72ch;
}

.limitations {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 72ch;
}

.limitations li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 1.02rem;
}

.limitations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 1.5px solid var(--black);
}

/* ---------------- Contact ---------------- */

.contact-list {
  margin: 8px 0 24px;
  max-width: 68ch;
}

.contact-row {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row dt {
  flex: 0 0 160px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--black);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-row dd {
  margin: 0;
  font-size: 1rem;
}

.contact-note {
  font-size: 0.92rem;
  font-family: var(--font-display);
  color: var(--ink);
  max-width: 68ch;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand-name {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-brand p {
  font-family: var(--font-body);
  color: #C9C9C9;
  font-size: 0.94rem;
  margin: 10px 0 0;
  max-width: 34ch;
}

.footer-brand a {
  color: var(--yellow);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: #E8E8E0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid #333333;
}

.footer-bottom p {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: #999999;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 8px 24px 18px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .step {
    gap: 16px;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-row dt {
    flex: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}
