/* 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;
  --section-pad: clamp(64px, 10vw, 120px);
  --gutter: clamp(24px, 4vw, 32px);
}

*,
*::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,
svg {
  display: block;
  max-width: 100%;
}

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: 0;
  padding: 12px 16px;
  background: var(--surface);
  z-index: 10000;
}

.skip-link:focus {
  left: var(--gutter);
  top: 8px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Announcement */
.announcement {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 8px 16px;
}

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

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

.announcement__arrow {
  transition: transform 0.15s ease;
}

.announcement a:hover .announcement__arrow {
  transform: translateX(3px);
}

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

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 16px;
}

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

.nav__brand span {
  color: var(--primary);
}

.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;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.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__toggle-icon--open {
  display: none;
}

.nav__toggle[aria-expanded="false"] .nav__toggle-icon--close,
.nav__toggle:not([aria-expanded="true"]) .nav__toggle-icon--close {
  display: none;
}

.nav__mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
  background: var(--surface);
}

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

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

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

@media (min-width: 1024px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__mobile-panel {
    display: none !important;
  }
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-height: 44px;
}

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

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

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

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 var(--section-pad);
}

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

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

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

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero__title-brand {
  display: block;
  color: var(--ink);
}

.hero__title-brand em {
  font-style: normal;
  color: var(--primary);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 32rem;
}

.hero__bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--body);
}

.hero__bullets svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

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

.hero-media__frame {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Section */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  max-width: 640px;
  margin-bottom: 48px;
}

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

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

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

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 24px;
}

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

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  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);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

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

/* Metrics */
.metric-row {
  display: grid;
  gap: 24px;
}

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

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

.section--alt .metric-panel {
  background: var(--surface);
}

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

.metric-panel__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.metric-panel__desc {
  margin: 0;
  font-size: 14px;
  color: var(--body);
}

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

.trust-strip__item {
  font-size: 14px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Steps */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
}

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

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

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

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

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center;
}

.cta-band__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--on-dark);
}

.cta-band__desc {
  margin: 0 auto 28px;
  max-width: 36rem;
  font-size: 16px;
  color: rgba(252, 252, 253, 0.85);
}

.cta-band .btn--primary {
  font-size: 16px;
  padding: 14px 28px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 64px var(--gutter) 32px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.footer__grid {
  display: grid;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto 48px;
}

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

.footer__brand {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--on-dark);
}

.footer__brand span {
  color: var(--primary);
}

.footer p {
  margin: 0;
  color: rgba(252, 252, 253, 0.7);
  max-width: 28rem;
}

.footer__heading {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
  color: var(--on-dark);
}

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

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

.footer__links a {
  color: rgba(252, 252, 253, 0.7);
  font-size: 12px;
}

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

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(252, 252, 253, 0.5);
  font-size: 12px;
}

.footer__legal {
  margin-top: 16px;
  color: rgba(252, 252, 253, 0.45);
  max-width: 52rem;
}
