/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Source+Sans+3:wght@400;600&display=swap');

/* ===== CSS Variables ===== */
:root {
  --color-bg: #0A0A0B;
  --color-surface: #141416;
  --color-surface-raised: #1C1C1F;
  --color-border: #27272A;
  --color-border-hover: #3F3F46;
  --color-primary: #0D9488;
  --color-primary-hover: #14B8A6;
  --color-primary-active: #0F766E;
  --color-text: #FAFAFA;
  --color-text-body: #D4D4D8;
  --color-text-muted: #71717A;
  --color-amber: #F59E0B;
  --content-max-width: 1000px;
  --header-height: 64px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* ===== Base ===== */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--color-primary-hover);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 1.5rem;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

body > .site-header {
  max-width: none;
  padding: 0 calc((100% - var(--content-max-width)) / 2 + 1.5rem);
}

.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header .logo:hover {
  color: var(--color-text);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-header nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 150ms ease;
}

.site-header nav a:hover {
  color: var(--color-text);
}

/* ===== Main ===== */
main {
  flex: 1;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}

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

/* Legacy class name mapping */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.cta-button:hover {
  background: var(--color-primary-hover);
  color: #fff;
  text-decoration: none;
}

.cta-button:active {
  background: var(--color-primary-active);
}

/* ===== Hero Section ===== */
.hero {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 120px 1.5rem 80px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero .microcopy {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== Value Propositions ===== */
.value-props {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.value-props .section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
  color: var(--color-text);
}

.value-prop {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.value-prop:last-child {
  border-bottom: none;
}

.value-prop-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.value-prop h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.value-prop p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 600px;
}

/* ===== How It Works ===== */
.how-it-works {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.how-it-works .section-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 3.5rem;
  color: var(--color-text);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: relative;
}

/* Connecting line between steps */
.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(33.33% / 2 + 24px);
  right: calc(33.33% / 2 + 24px);
  height: 1px;
  background: var(--color-border);
}

.step-item {
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  display: inline-block;
  padding-right: 12px;
}

.step-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* Legacy step-card class (for old HTML) */
.step-card {
  position: relative;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.step-card:last-child {
  border-bottom: none;
}

.step-card .step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
  background: none;
  padding: 0;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== Stats Section ===== */
.stats-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 1.5rem;
}

.stat-value,
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 100px 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* ===== FAQ Section ===== */
.faq-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.faq-section h2 {
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.faq-item summary,
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  transition: color 150ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 200ms ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '\2212';
}

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

.faq-answer,
.faq-item > div {
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer p:last-child,
.faq-item > div p:last-child {
  margin-bottom: 0;
}

/* ===== Features Grid (legacy) ===== */
.features {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.features h2 {
  margin-bottom: 0.5rem;
}

.section-description {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card {
  background: var(--color-bg);
  padding: 2rem;
  transition: background-color 150ms ease;
}

.feature-card:hover {
  background: var(--color-surface);
}

.feature-icon {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== Site Footer ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}

body > .site-footer {
  max-width: none;
  padding-left: calc((100% - var(--content-max-width)) / 2 + 1.5rem);
  padding-right: calc((100% - var(--content-max-width)) / 2 + 1.5rem);
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
}

.site-footer nav a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 400;
  transition: color 150ms ease;
}

.site-footer nav a:hover {
  color: var(--color-text);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* ===== Legal Pages ===== */
main.legal,
main.content-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main.legal h1,
main.content-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

main.legal h2,
main.content-page h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

main.legal h3,
main.content-page h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

main.legal p,
main.content-page p {
  color: var(--color-text-body);
  line-height: 1.8;
}

main.legal strong,
main.content-page strong {
  color: var(--color-text);
}

main.legal ul,
main.legal ol,
main.content-page ul,
main.content-page ol {
  color: var(--color-text-body);
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main.legal li,
main.content-page li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

main.legal a,
main.content-page a {
  color: var(--color-primary-hover);
}

main.legal a:hover,
main.content-page a:hover {
  color: var(--color-text);
}

/* ===== Tables (legal pages) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

th, td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-body);
}

th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

/* ===== Support Card ===== */
.support-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.support-card p {
  margin-bottom: 0;
}

/* ===== Warning Box ===== */
.warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  color: #fbbf24;
}

.warning-box p {
  margin-bottom: 0;
  color: #fbbf24;
}

/* ===== Numbered Steps (legal pages) ===== */
.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: steps;
  margin: 2rem 0;
}

.steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-body);
}

.steps li::before {
  content: counter(steps);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 50%;
}

/* ===== Social Proof ===== */
.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-size: 14px;
  color: var(--color-text-muted);
}

.social-proof-brands {
  display: flex;
  gap: 1.5rem;
}

.brand-pill {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: 0.5;
  letter-spacing: 0.02em;
}

/* ===== Responsive: Desktop ===== */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

/* ===== Responsive: Tablet and below ===== */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 80px 1.5rem 60px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-row::before {
    display: none;
  }

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

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

  .stat-value,
  .stat-number {
    font-size: 2rem;
  }

  .cta-section {
    padding: 60px 1.5rem;
  }

  .how-it-works,
  .value-props,
  .faq-section,
  .features {
    padding: 3rem 1.5rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .site-footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  main.legal,
  main.content-page {
    padding: 2rem 1rem;
  }

  main.legal h1,
  main.content-page h1 {
    font-size: 1.75rem;
  }
}

/* ===== Responsive: Small mobile ===== */
@media (max-width: 480px) {
  .site-header {
    height: auto;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body > .site-header {
    padding: 0.75rem 1rem;
  }

  .site-header nav {
    gap: 1rem;
  }

  .site-header nav a {
    font-size: 0.8rem;
  }

  .hero {
    padding: 60px 1rem 40px;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .cta-button {
    width: 100%;
    text-align: center;
  }
}
