/* Speak landing page — Brex design system tokens */

: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;
  --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-pad: 120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  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 {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

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

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

.announcement-bar a:hover {
  text-decoration: underline;
}

.announcement-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 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 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background 0.15s;
}

.nav-links a:not(.btn):hover {
  background: var(--surface-alt);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: var(--radius-md);
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  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, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.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: 0;
  min-height: auto;
  font-weight: 600;
  gap: 6px;
}

.btn-link-arrow:hover {
  gap: 10px;
}

.btn-link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

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

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

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

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

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

.section-headline {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-subhead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
  max-width: 600px;
}

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

.section-header.center {
  text-align: center;
}

.section-header.center .section-subhead {
  margin: 0 auto;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.hero-title {
  font-size: 72px;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}

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

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

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

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

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

.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.hero-mockup {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

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

.mockup-dot.active {
  background: var(--primary);
}

.mockup-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-left: 8px;
}

.mockup-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble.tutor {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  background: var(--primary);
  color: var(--on-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
  background: var(--soft-orange);
  border: 1px dashed var(--primary);
  color: var(--muted);
  font-style: italic;
  align-self: flex-start;
}

.mockup-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--muted);
}

.mockup-mic {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mockup-mic svg {
  width: 16px;
  height: 16px;
  color: white;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  position: relative;
}

.step-number {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* Split section */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.split-content p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 24px;
  line-height: 1.5;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

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

.split-list svg {
  width: 20px;
  height: 20px;
  color: var(--success, #138A43);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.conversation-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-scenario {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.demo-scenario-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.demo-line {
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.demo-line:last-child {
  border-bottom: none;
}

.demo-line.user-response {
  color: var(--primary);
  font-weight: 600;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.metric-value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  fill: var(--primary);
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 20px;
}

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

.testimonial-role {
  font-size: 13px;
  color: var(--muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

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

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

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

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  margin: 0 32px;
  max-width: calc(var(--max-width) - 64px);
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  margin-bottom: 16px;
}

.cta-band p {
  font-size: 18px;
  color: rgba(252, 252, 253, 0.75);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  font-size: 15px;
  padding: 14px 32px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 80px 32px 40px;
  margin-top: var(--section-pad);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

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

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

.footer-desc {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.6);
  line-height: 1.5;
  max-width: 320px;
}

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

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.75);
  transition: color 0.15s;
}

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

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

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.5;
}

.testimonial-grid-spaced {
  margin-top: 48px;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-height);
  background: var(--surface);
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

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

.mobile-nav a {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid,
  .split-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-media {
    order: -1;
  }

  .feature-grid,
  .steps-grid,
  .metrics-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .section-headline,
  .split-content h2,
  .cta-band h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-pad: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section-headline,
  .split-content h2,
  .cta-band h2 {
    font-size: 28px;
  }

  .cta-band {
    padding: 48px 24px;
    margin: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 64px 24px 32px;
  }
}

@media (max-width: 375px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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