/* Design tokens — Brex-inspired */
: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: 1280px;
  --nav-height: 72px;
  --section-pad: clamp(64px, 10vw, 120px);
  --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);
}

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: 10000;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-md);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(24px, 4vw, 32px);
  padding-right: clamp(24px, 4vw, 32px);
}

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

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

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

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

.logo 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;
  letter-spacing: -0.01em;
  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;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.43;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  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);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  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);
  padding: 4px 0;
}

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

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

.nav-desktop-only {
  display: none;
}

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

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

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

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.menu-toggle .icon-close {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
}

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

.mobile-nav a {
  font-weight: 600;
  font-size: 14px;
  padding: 12px 8px;
}

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

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

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

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

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 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 .accent-line {
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(16px, 2vw, 18px);
  max-width: 36em;
  color: var(--body);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

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

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

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

.mock-window {
  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);
}

.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

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

.mock-dot:nth-child(1) {
  background: #ff5f57;
}

.mock-dot:nth-child(2) {
  background: #febc2e;
}

.mock-dot:nth-child(3) {
  background: #28c840;
}

.mock-body {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  font-size: 13px;
  color: var(--body);
}

.mock-row.highlight {
  background: var(--soft-orange);
  border: 1px solid rgba(255, 89, 0, 0.2);
}

.mock-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.mock-meta {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

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

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

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

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.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(--muted);
}

/* 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.three {
    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-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 h3 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

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

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

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

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

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.pricing-card .plan-note {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  flex-grow: 1;
}

.pricing-display {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pricing-display small {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.pricing-card .btn {
  width: 100%;
}

/* Workflow split */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

  .split.reverse .split-copy {
    order: 2;
  }

  .split.reverse .split-media {
    order: 1;
  }
}

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

.split-copy p {
  margin: 0 0 20px;
  color: var(--body);
}

.split-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--body);
}

.split-list li {
  margin-bottom: 8px;
}

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

/* Trust logos */
.trust-strip {
  text-align: center;
}

.trust-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--logo-gray);
  margin: 0 0 24px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
  align-items: center;
}

.trust-logos span {
  font-size: 15px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: -0.02em;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

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

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: var(--surface);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}

.faq-question:hover {
  background: var(--surface-alt);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.is-open .faq-answer {
  padding: 0 24px 20px;
  max-height: 400px;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

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

.cta-band h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--on-dark);
}

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

.cta-band .btn-primary {
  min-width: 200px;
}

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

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

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

.footer-brand p {
  margin: 12px 0 0;
  color: rgba(252, 252, 253, 0.7);
  max-width: 280px;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(252, 252, 253, 0.85);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
}

.footer-bottom a {
  color: rgba(252, 252, 253, 0.7);
}

.footer-legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(252, 252, 253, 0.45);
  max-width: 720px;
}
