/* Sadpedia — Brex-inspired design 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;
  --success: #138A43;
  --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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  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;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

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

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

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

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

.announcement svg {
  width: 14px;
  height: 14px;
}

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

.nav .container {
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

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

.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;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.15s;
}

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

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

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

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

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

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-hover);
}

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

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

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

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

.mobile-menu .btn-primary {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  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, color 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 {
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  font-weight: 600;
}

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

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

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

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

@media (min-width: 768px) {
  .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-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-orange);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-brand {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 16px;
}

.hero-brand .dot {
  color: var(--primary);
}

.hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 520px;
}

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

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

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.hero-benefit svg {
  color: var(--success);
  flex-shrink: 0;
}

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

.product-ui {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.product-ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.product-ui-dots {
  display: flex;
  gap: 6px;
}

.product-ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.product-ui-dots span:first-child { background: #FF5F57; }
.product-ui-dots span:nth-child(2) { background: #FFBD2E; }
.product-ui-dots span:nth-child(3) { background: #28CA41; }

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

.product-ui-body {
  padding: 20px;
}

.domain-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}

.domain-row:hover {
  box-shadow: var(--shadow-hover);
}

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

.domain-score {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.score-buy {
  background: #E8F5EE;
  color: var(--success);
}

.score-watch {
  background: var(--soft-orange);
  color: var(--primary);
}

.domain-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.ui-stat {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.ui-stat-value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ui-stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

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

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

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

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

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

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

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

.section-desc {
  font-size: 16px;
  color: var(--body);
  margin: 0;
}

/* Steps */
.steps-grid {
  display: grid;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--soft-orange);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}

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

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

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

@media (min-width: 1024px) {
  .features-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.15s;
}

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

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

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

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

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

/* Metrics */
.metrics-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.metric-value .accent {
  color: var(--primary);
}

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

/* Compare section */
.compare-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

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

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-list li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--body);
}

.compare-list li:last-child {
  border-bottom: none;
}

.compare-list .icon-fail {
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-list .icon-success {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.compare-card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.compare-card-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}

/* Trust logos */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  padding: 40px 0;
}

.trust-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--logo-gray);
  letter-spacing: -0.01em;
}

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

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

.pricing-detail {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  text-align: left;
}

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

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

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

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

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

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

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

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

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

.faq-answer {
  display: none;
  padding: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  display: block;
}

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

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

.cta-band-title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

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

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

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

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

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

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

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

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

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(252, 252, 253, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

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

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