/* DealMama — Brex-inspired design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

: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;
  --success: #138A43;
  --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;
  --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-color: 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-color: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  text-align: center;
}

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

.announcement-bar a:hover {
  opacity: 0.85;
}

.announcement-bar svg {
  flex-shrink: 0;
}

/* Navigation */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: 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;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
}

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

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

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

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

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  border-radius: var(--radius-md);
}

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

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

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 36px);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface);
  z-index: 99;
  padding: 24px 32px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

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

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

.mobile-menu .btn-primary {
  margin-top: 16px;
  text-align: center;
  justify-content: center;
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--on-primary);
}

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

.btn-primary:active {
  background-color: var(--accent-pressed);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

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

.btn-link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}

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

.btn-link-arrow svg {
  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: 80px 0;
}

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

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

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

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

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

.section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.5;
}

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

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

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--soft-orange);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

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

.hero-title .brand {
  display: block;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  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: 14px;
  color: var(--body);
}

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

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

/* Product mockup */
.product-panel {
  padding: 24px;
}

.mockup-window {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

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

.mockup-dot:first-child { background-color: #FF5F57; }
.mockup-dot:nth-child(2) { background-color: #FFBD2E; }
.mockup-dot:nth-child(3) { background-color: #28CA41; }

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

.mockup-body {
  padding: 16px;
}

.alert-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}

.alert-card:last-child {
  margin-bottom: 0;
}

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

.alert-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--on-primary);
}

.alert-icon.walmart { background-color: #0071CE; }
.alert-icon.target { background-color: #CC0000; }
.alert-icon.amazon { background-color: #FF9900; color: var(--ink); }

.alert-info {
  flex: 1;
  min-width: 0;
}

.alert-store {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 2px;
}

.alert-product {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.alert-price {
  font-weight: 600;
  color: var(--success);
}

.alert-was {
  color: var(--muted);
  text-decoration: line-through;
}

.alert-badge {
  background-color: var(--soft-orange);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.alert-distance {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

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

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

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

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

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.step-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 8px;
}

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

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: var(--primary);
}

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

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

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

/* Pricing */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.pricing-badge {
  display: inline-block;
  background-color: var(--soft-orange);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

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

.pricing-amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--body);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

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

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

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

.cta-band .section-title {
  color: var(--on-dark);
  margin-bottom: 16px;
}

.cta-band .section-desc {
  color: rgba(252, 252, 253, 0.7);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 600;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.6);
  margin-top: 8px;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(252, 252, 253, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
  line-height: 1.5;
}

/* Store logos strip */
.store-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

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

.store-badge {
  font-size: 14px;
  font-weight: 600;
  color: #A5A9B1;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

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

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 24px;
  }

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

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 32px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
