/* Design tokens — Brex-inspired 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;
  --soft-orange: #FFF3EC;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --logo-gray: #A5A9B1;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  --section-pad: 120px;
  --max-width: 1280px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  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(--link);
  text-decoration: none;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
}

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

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

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

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

/* 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 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.announcement-link {
  color: var(--on-dark);
  font-weight: 600;
  white-space: nowrap;
}

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

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

.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;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--soft-orange);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-text {
  display: none;
}

@media (min-width: 480px) {
  .logo-text {
    display: inline;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  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:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

.site-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    border: none;
    background: transparent;
  }
}

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

@media (min-width: 1024px) {
  .nav-links {
    flex-direction: row;
    gap: 24px;
  }
}

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

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

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

@media (min-width: 1024px) {
  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font);
  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 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
  white-space: nowrap;
}

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

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

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

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

.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: 16px;
}

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

/* Typography utilities */
.label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

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

.headline-lg {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.title-md {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.title-sm {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.caption {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.legal {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.section-lead {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  max-width: 640px;
  margin-top: 16px;
}

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

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

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

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

.hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}

.icon-check {
  flex-shrink: 0;
  margin-top: 2px;
}

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

@media (min-width: 540px) {
  .hero-cta {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Hero product panel */
.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px;
}

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

.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: 32px 28px;
}

.panel-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.mock-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.mock-input {
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--muted);
  background: var(--surface);
  margin-bottom: 20px;
}

.mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.panel-footnote {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

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

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

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

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

.section-header .section-lead {
  margin-top: 16px;
}

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

@media (min-width: 768px) {
  .feature-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;
}

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

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

.feature-card .title-md {
  margin-bottom: 12px;
}

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

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

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 32px 0;
}

.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.steps-list .title-sm {
  margin-bottom: 6px;
}

/* Metric panel */
.metric-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

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

/* Trust section */
.trust-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

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

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

.trust-card .title-sm {
  margin-bottom: 12px;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

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

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

.cta-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}

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

.cta-panel .headline-lg {
  max-width: 640px;
  margin: 0 auto;
}

.cta-panel .section-lead {
  margin: 16px auto 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

@media (min-width: 540px) {
  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

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

.footer-brand .logo-text {
  display: inline;
  font-size: 16px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 12px;
}

.footer-brand .legal {
  color: rgba(252, 252, 253, 0.6);
  max-width: 400px;
  margin-top: 12px;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(252, 252, 253, 0.1);
  padding-top: 24px;
}

.footer-bottom .legal {
  color: rgba(252, 252, 253, 0.5);
}
