/* ===================================================================
   HubSpot Deploy — Landing Page Styles
   Editorial Serif Aesthetic — matches frontend-v2 design system
   =================================================================== */

/* ===== Design Tokens ===== */
:root {
  /* Colors */
  --background: #fafaf8;
  --foreground: #1a1a1a;
  --muted: #f5f3f0;
  --muted-foreground: #6b6b6b;
  --accent: #b8860b;
  --accent-secondary: #d4a84b;
  --accent-foreground: #ffffff;
  --accent-muted: rgba(184, 134, 11, 0.06);
  --card: #ffffff;
  --border: #e8e4df;
  --border-hover: #d8d4cf;
  --ring: #b8860b;
  --success: #2d7a4f;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 8px 24px rgba(26, 26, 26, 0.08);
  --shadow-accent: 0 4px 12px rgba(184, 134, 11, 0.15);

  /* Spacing */
  --container-max: 1120px;
  --container-pad: clamp(1.5rem, 5vw, 3rem);
  --section-gap: clamp(4rem, 8vw, 8rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--foreground);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 200ms ease-out;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
}

*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 4px var(--background);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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

.rule-line {
  height: 1px;
  background-color: var(--border);
  margin: 0;
}

/* ===== Section Label ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label-line {
  height: 1px;
  flex: 1;
  background-color: var(--border);
}

.section-label-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease-out;
  min-height: 44px;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--accent-foreground);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid var(--foreground);
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease-out;
  min-height: 44px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--muted);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ===== Beta Badge ===== */
.beta-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background-color: var(--accent-muted);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.beta-badge-inline {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background-color: var(--accent-muted);
  border: 1px solid rgba(184, 134, 11, 0.2);
  border-radius: 9999px;
  padding: 0.125rem 0.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.beta-badge-large {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background-color: var(--accent-muted);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.875rem;
  margin-bottom: 1.5rem;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 200ms ease-out;
}

.nav-link:hover {
  color: var(--foreground);
  text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  padding: clamp(5rem, 10vw, 10rem) 0 clamp(4rem, 8vw, 8rem);
  text-align: center;
}

.hero-heading {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-subheading {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-beta-note {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.hero-beta-note a {
  color: var(--accent);
}

/* ===== Features ===== */
.features {
  padding: var(--section-gap) 0;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--foreground);
  max-width: 36ch;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

/* ===== Feature Card ===== */
.feature-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease-out, border-color 200ms ease-out;
}

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

.card-featured {
  border-top: 2px solid var(--accent);
  background-color: var(--accent-muted);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  border-radius: 0.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-featured .feature-icon {
  background-color: rgba(184, 134, 11, 0.1);
}

.feature-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.feature-list li {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  padding-left: 1.25rem;
  position: relative;
}

.feature-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: var(--section-gap) 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
  max-width: 680px;
}

.step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

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

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.25rem;
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ===== Beta Section ===== */
.beta-section {
  padding: var(--section-gap) 0;
}

.beta-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 0.75rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.beta-heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.beta-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  max-width: 52ch;
  margin: 0 auto 1.75rem;
}

.beta-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.beta-list li {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.beta-list li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success);
  flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: var(--section-gap) 0;
}

.cta-inner {
  text-align: center;
}

.cta-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 28ch;
  margin: 0 auto 1rem;
}

.cta-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
}

.footer-tagline {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: color 200ms ease-out;
}

.footer-link:hover {
  color: var(--foreground);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .step {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .footer-tagline {
    text-align: left;
  }
}
