/* Design tokens — Brex */
:root {
  --primary: #FF5900;
  --accent-hover: #E65000;
  --accent-pressed: #CC4700;
  --ink: #15191E;
  --body: #33383F;
  --muted: #60646C;
  --canvas: #FCFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F9;
  --border: #E6E8EB;
  --border-strong: #C9CDD2;
  --soft-orange: #FFF3EC;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --logo-gray: #A5A9B1;
  --success: #138A43;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 16px;
}

.announcement {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  font-size: 14px;
  padding: 8px 16px;
}

.announcement a {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement a:hover {
  color: var(--primary);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__brand span {
  color: var(--muted);
  font-weight: 400;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
}

.nav__links a:hover {
  background: var(--surface-alt);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
}

.nav__toggle[aria-expanded="true"] .nav__icon-menu {
  display: none;
}

.nav__toggle[aria-expanded="false"] .nav__icon-close {
  display: none;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + var(--announcement-height, 0px));
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.nav__mobile li a {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .nav__inner {
    padding: 0 32px;
  }

  .nav__toggle {
    display: none;
  }

  .nav__links {
    display: flex;
  }

  .nav__mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--on-primary);
}

.btn--primary:active {
  background: var(--accent-pressed);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
}

.btn--ghost:hover {
  background: var(--surface-alt);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.link-arrow:hover {
  color: var(--primary);
}

.link-arrow svg {
  transition: transform 0.15s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 120px 0;
  }
}

.section__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.section__title {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

.section__lead {
  font-size: 16px;
  color: var(--body);
  max-width: 560px;
  margin: 0 0 32px;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}

@media (min-width: 1024px) {
  .hero {
    padding: 80px 0 120px;
  }
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--soft-orange);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero__title .accent {
  color: var(--primary);
}

.hero__subtitle {
  font-size: clamp(18px, 2.5vw, 20px);
  color: var(--body);
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero__trust {
  font-size: 14px;
  color: var(--muted);
}

.hero__media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero__panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.hero__panel-dots {
  display: flex;
  gap: 6px;
}

.hero__panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.hero__panel-dots span:first-child {
  background: var(--primary);
}

.hero__panel-body {
  padding: 24px;
}

.slot-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.slot-preview__reel {
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--surface-alt) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 6vw, 40px);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat__value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.stat__label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Benefits */
.benefits__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--soft-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}

.feature-card__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Workflow section */
.workflow {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.workflow__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 1024px) {
  .workflow__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.workflow__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.workflow__step {
  display: flex;
  gap: 16px;
}

.workflow__step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow__step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.workflow__step-text {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.metric-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

.metric-panel__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.metric-item__num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.metric-item__desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* Trust */
.trust__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust__logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust__quotes {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .trust__quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.quote-card p {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--body);
}

.quote-card cite {
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
}

.cta-band .section__title {
  color: var(--on-dark);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .section__lead {
  color: rgba(252, 252, 253, 0.85);
  margin-left: auto;
  margin-right: auto;
}

.cta-band__legal {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.6);
  max-width: 560px;
  margin: 24px auto 0;
  line-height: 1.5;
}

/* FAQ */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

.faq__question:hover {
  color: var(--primary);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  display: none;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__text {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.7);
  max-width: 320px;
  margin: 0;
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  color: rgba(252, 252, 253, 0.5);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: var(--on-dark);
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}