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

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

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

.announcement a:hover {
  color: #fff;
}

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

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

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

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

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

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

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

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

.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;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px var(--gutter);
  z-index: 99;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: block;
}

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

.mobile-menu ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
}

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

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

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

.btn-link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 10px 0;
  min-height: 44px;
}

.btn-link-arrow::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.15s ease;
}

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

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

.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

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

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

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

.hero-title .product-name {
  display: block;
  color: var(--ink);
}

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

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

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

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

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

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

.hero-media-inner {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 20px;
  min-height: 280px;
}

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

.slot-tile {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--surface-alt) 0%, #e8eaee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid var(--border);
}

.slot-tile.is-win {
  background: var(--soft-orange);
  border-color: #ffd4bc;
}

.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--muted);
}

.preview-bar strong {
  color: var(--ink);
  font-weight: 600;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.badge-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

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

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

.section-header {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-header p {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
}

.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .card-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-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;
  font-size: 18px;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin: 0 0 10px;
  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: 14px;
  color: var(--muted);
}

/* Metrics */
.metric-row {
  max-width: var(--max-width);
  margin: 0 auto;
  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);
  text-align: center;
}

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

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

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

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

/* Trust strip */
.trust-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

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

.trust-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Workflow */
.workflow {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 48px;
  align-items: center;
}

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

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.workflow-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 28px;
}

.workflow-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

.product-panel img {
  border-radius: var(--radius-sm);
}

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

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

.cta-band p {
  margin: 0 auto 28px;
  max-width: 50ch;
  color: #c5c8ce;
  font-size: 16px;
}

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

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.footer-brand .product-name {
  font-size: 24px;
  font-weight: 600;
  color: var(--on-dark);
  margin: 0 0 8px;
}

.footer-brand p {
  margin: 0;
  font-size: 14px;
  color: #a5a9b1;
  max-width: 40ch;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #a5a9b1;
}

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

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

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

.footer-col a:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid #2a2f36;
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.5;
  color: #a5a9b1;
}

.footer-legal p {
  margin: 0 0 12px;
}