/* Design tokens — Brex system */
: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;
  --link: #15191E;
  --success: #138A43;
  --warning: #B35C00;
  --soft-orange: #FFF3EC;
  --logo-gray: #A5A9B1;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --max-width: 1280px;
  --section-padding: 120px;
  --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,
svg {
  display: block;
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Typography */
.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;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 24px;
  line-height: 1.21;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

/* Announcement bar */
.announcement-bar {
  background: var(--ink);
  color: var(--on-dark);
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.announcement-bar p {
  margin: 0;
}

.announcement-bar a {
  color: var(--on-dark);
  font-weight: 600;
  margin-left: 4px;
}

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

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

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.nav-links {
  display: none;
  gap: 32px;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu a {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
}

.mobile-menu .btn {
  margin-top: 8px;
  text-align: center;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.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-color: var(--border);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: auto;
  padding-top: 16px;
}

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

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

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

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

@media (min-width: 768px) {
  .hero {
    padding: 80px 0 var(--section-padding);
  }
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  max-width: 540px;
  margin-bottom: 24px;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.hero-bullets li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--body);
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.panel-header {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel-body {
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

.metric-caption {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.workflow-step.active {
  border-color: var(--primary);
  background: var(--soft-orange);
}

.step-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.workflow-step.active .step-icon {
  background: var(--primary);
  color: var(--on-primary);
}

.workflow-step strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.workflow-step p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Trust strip */
.trust-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
}

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

/* Sections */
.section {
  padding: 80px 0;
}

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

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

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

.section-lead {
  font-size: 18px;
  color: var(--body);
  margin-top: 16px;
}

/* 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 {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.feature-card:hover {
  box-shadow: var(--shadow-hover);
}

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

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  flex: 1;
}

/* Split layout */
.split-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.split-copy p {
  color: var(--body);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--body);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* Control module */
.control-module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.control-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--soft-orange);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.control-status {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

.control-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.control-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.control-value {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.control-value.success {
  color: var(--success);
  background: rgba(19, 138, 67, 0.1);
}

.control-value.warning {
  color: var(--warning);
  background: rgba(179, 92, 0, 0.1);
}

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

/* Metric panels */
.metric-panel-grid {
  display: grid;
  gap: 24px;
}

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

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

.metric-panel-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.13;
  margin: 8px 0 12px;
}

.metric-panel p {
  font-size: 15px;
  color: var(--muted);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 24px;
}

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

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

.testimonial-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 20px;
}

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

/* CTA section */
.cta-section {
  padding-bottom: var(--section-padding);
}

.cta-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 64px 48px;
  }
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 17px;
  color: var(--body);
  max-width: 520px;
  margin: 0 auto 32px;
}

.cta-note {
  font-size: 14px !important;
  color: var(--muted) !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

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

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

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.footer-logo {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.7);
  max-width: 360px;
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.85);
}

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

.footer-legal {
  padding-top: 32px;
  border-top: 1px solid rgba(252, 252, 253, 0.12);
}

.footer-legal p {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
  margin-bottom: 8px;
}

.legal-note {
  max-width: 480px;
}
