/* =========================================================
   ClawSuite Prospect — Landing Page
   Aesthetic: Luxury editorial × data confidence
   Fonts: DM Serif Display (headlines) + Plus Jakarta Sans (body)
   ========================================================= */

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

/* Tokens */
:root {
  --color-bg-dark: #0a0f1e;
  --color-bg-dark-alt: #0e1529;
  --color-bg-light: #ffffff;
  --color-bg-alt: #f6f8fb;
  --color-bg-warm: #faf9f7;
  --color-text: #1a1d2b;
  --color-text-secondary: #5c6178;
  --color-text-muted: #8b90a5;
  --color-text-inverse: #e8eaf0;
  --color-text-inverse-muted: #8b90a5;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-glow: rgba(37, 99, 235, 0.15);
  --color-green: #10b981;
  --color-green-bg: rgba(16, 185, 129, 0.1);
  --color-amber: #f59e0b;
  --color-amber-bg: rgba(245, 158, 11, 0.1);
  --color-red: #ef4444;
  --color-red-bg: rgba(239, 68, 68, 0.08);
  --color-border: #e5e7ee;
  --color-border-dark: #1e2640;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Section eyebrow */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px var(--color-accent-glow);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}

.btn-lg {
  font-size: 1.1rem;
  padding: 18px 40px;
  border-radius: var(--radius-md);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
  padding: 110px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
}

/* Subtle radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-inverse-muted);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 24px;
  font-weight: 400; /* DM Serif only has 400 */
  letter-spacing: -0.01em;
}

.hero .subhead {
  font-size: 1.15rem;
  color: var(--color-text-inverse-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta-group {
  margin-bottom: 56px;
}

.trust-line {
  font-size: 0.85rem;
  color: var(--color-text-inverse-muted);
  margin-top: 14px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-metric-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
}

.hero-metric-label {
  font-size: 0.78rem;
  color: var(--color-text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.hero-metric-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border-dark);
}

/* =========================================================
   PROBLEM
   ========================================================= */
.problem {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.problem h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 52px;
  text-align: center;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-red-bg);
  color: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.problem-bottom {
  text-align: center;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* =========================================================
   SOLUTION (email preview)
   ========================================================= */
.solution {
  padding: 100px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.solution h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 52px;
}

.solution .section-eyebrow {
  text-align: center;
}

.solution-preview {
  max-width: 620px;
  margin: 0 auto 36px;
}

.solution-email {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.email-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.email-dot.green {
  background: var(--color-green);
}

.email-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.email-from {
  font-weight: 700;
  font-size: 0.9rem;
}

.email-time {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.email-subject {
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.email-body {
  padding: 12px 24px 20px;
}

.prospect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f5;
}

.prospect-row:last-of-type {
  border-bottom: none;
}

.prospect-info {
  display: flex;
  flex-direction: column;
}

.prospect-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.prospect-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.prospect-score {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.score-hot {
  background: var(--color-green-bg);
  color: var(--color-green);
}

.score-warm {
  background: var(--color-amber-bg);
  color: var(--color-amber);
}

.email-fade {
  padding: 16px 0 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.solution-caption {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-inverse-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* =========================================================
   VALUE STACK
   ========================================================= */
.value-stack {
  padding: 100px 0;
  background: var(--color-bg-warm);
}

.value-stack h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 52px;
}

.value-stack .section-eyebrow {
  text-align: center;
}

.stack-items {
  max-width: 680px;
  margin: 0 auto;
}

.stack-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.stack-item:first-child {
  padding-top: 0;
}

.stack-item-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.stack-item-content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 420px;
}

.stack-item-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  min-width: 100px;
}

.stack-value-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 2px;
}

.stack-value-period {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Total bar */
.stack-total {
  max-width: 680px;
  margin: 36px auto 0;
  background: var(--color-bg-dark);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: var(--color-text-inverse);
}

.stack-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.stack-total-line + .stack-total-line {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-dark);
}

.stack-total-amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.stack-total-amount.struck {
  text-decoration: line-through;
  text-decoration-color: var(--color-red);
  text-decoration-thickness: 2px;
  color: var(--color-text-inverse-muted);
}

.stack-total-amount.highlight {
  color: var(--color-green);
  font-size: 2rem;
}

.stack-total-yours span:first-child {
  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================================
   PRICE ANCHOR (comparison table)
   ========================================================= */
.price-anchor {
  padding: 100px 0;
  background: var(--color-bg-light);
}

.price-anchor h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 52px;
}

.price-anchor .section-eyebrow {
  text-align: center;
}

.compare-table {
  max-width: 700px;
  margin: 0 auto;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
  gap: 4px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.compare-header {
  border-bottom: 2px solid var(--color-border);
}

.compare-header .compare-cell {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.compare-cell {
  text-align: center;
  font-size: 0.92rem;
}

.compare-cell:first-child {
  text-align: left;
}

.compare-name {
  font-weight: 700;
}

.compare-price-cell {
  font-weight: 600;
  font-size: 0.88rem;
}

.compare-price-cell small {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

/* Check icons */
.check-yes::before {
  content: '\2713';
  color: var(--color-green);
  font-weight: 800;
  font-size: 1.1rem;
}

.check-partial::before {
  content: '\007E';
  color: var(--color-amber);
  font-weight: 800;
  font-size: 1.2rem;
}

.check-no::before {
  content: '\2717';
  color: var(--color-red);
  font-weight: 700;
  font-size: 1rem;
  opacity: 0.5;
}

/* "Ours" row highlight */
.compare-row.ours {
  background: var(--color-accent-glow);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  border-bottom: none;
  margin-top: 8px;
}

.ours .compare-name {
  color: var(--color-accent);
}

.ours-price {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1rem;
}

.compare-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works {
  padding: 100px 0;
  background: var(--color-bg-alt);
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 56px;
}

.how-it-works .section-eyebrow {
  text-align: center;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin-top: 24px;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* =========================================================
   GUARANTEE
   ========================================================= */
.guarantee {
  padding: 100px 0;
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

.guarantee-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  background: linear-gradient(180deg, var(--color-bg-dark-alt) 0%, var(--color-bg-dark) 100%);
}

.guarantee-badge {
  color: var(--color-green);
  margin-bottom: 24px;
}

.guarantee-card h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 36px;
}

.guarantee-points {
  text-align: left;
}

.guarantee-point {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-dark);
}

.guarantee-point:last-child {
  border-bottom: none;
}

.guarantee-point strong {
  font-size: 1rem;
  display: block;
  margin-bottom: 4px;
}

.guarantee-point p {
  font-size: 0.9rem;
  color: var(--color-text-inverse-muted);
  line-height: 1.6;
}

/* =========================================================
   SOCIAL PROOF
   ========================================================= */
.social-proof {
  padding: 80px 0;
  background: var(--color-bg-warm);
}

.social-proof .section-eyebrow {
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-placeholder {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 20px;
  color: var(--color-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  padding: 100px 0;
  background: var(--color-bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle glow behind CTA */
.final-cta::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 12px;
}

.final-cta-sub {
  color: var(--color-text-inverse-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  background: var(--color-bg-dark-alt);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: #4a5272;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--color-accent);
}

.waitlist-form .btn {
  white-space: nowrap;
}

/* Pricing summary below form */
.pricing-final {
  margin-top: 8px;
}

.pricing-final-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.pricing-final-price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #fff;
}

.pricing-final-period {
  font-size: 0.9rem;
  color: var(--color-text-inverse-muted);
}

.pricing-final-annual {
  font-size: 0.85rem;
  color: var(--color-text-inverse-muted);
  margin-top: 8px;
}

.save-badge {
  display: inline-block;
  background: var(--color-green-bg);
  color: var(--color-green);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 32px 0;
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-dark);
  color: var(--color-text-inverse-muted);
  text-align: center;
  font-size: 0.88rem;
}

.footer a {
  color: var(--color-text-inverse-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover {
  color: #fff;
}

.footer-brand {
  font-weight: 700;
  color: var(--color-text-inverse);
}

.footer-sep {
  margin: 0 12px;
  opacity: 0.3;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero .subhead,
.hero-cta-group,
.hero-metrics {
  animation: fadeInUp 0.6s ease both;
}

.hero .subhead { animation-delay: 0.1s; }
.hero-cta-group { animation-delay: 0.2s; }
.hero-metrics { animation-delay: 0.3s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero {
    padding: 72px 0 64px;
  }

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

  .hero .subhead {
    font-size: 1rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: 16px 28px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .hero-metric-divider {
    width: 40px;
    height: 1px;
  }

  /* Problem cards */
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .problem h2,
  .solution h2,
  .value-stack h2,
  .price-anchor h2,
  .how-it-works h2 {
    font-size: 1.8rem;
  }

  /* Solution email */
  .solution-preview {
    margin-left: -12px;
    margin-right: -12px;
  }

  .prospect-title {
    font-size: 0.75rem;
  }

  /* Value stack */
  .stack-item {
    flex-direction: column;
    gap: 12px;
  }

  .stack-item-value {
    align-items: flex-start;
    flex-direction: row;
    gap: 6px;
  }

  .stack-value-amount {
    font-size: 1.2rem;
  }

  .stack-total {
    padding: 24px 20px;
  }

  .stack-total-amount.highlight {
    font-size: 1.6rem;
  }

  /* Compare table */
  .compare-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compare-row {
    min-width: 520px;
    font-size: 0.82rem;
  }

  /* Steps */
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0;
  }

  .step {
    max-width: 320px;
  }

  /* Guarantee */
  .guarantee-card {
    padding: 36px 24px;
  }

  .guarantee-card h2 {
    font-size: 1.6rem;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Waitlist form */
  .waitlist-form {
    flex-direction: column;
  }

  .final-cta h2 {
    font-size: 1.8rem;
  }

  .pricing-final-price {
    font-size: 1.6rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .container {
    padding: 0 18px;
  }
}
