:root {
  /* Brand */
  --terracotta: #c96442;
  --terracotta-hover: #b55735;
  --coral: #d97757;

  /* Text */
  --text-primary: #141413;
  --text-secondary: #5e5d59;
  --text-tertiary: #87867f;
  --text-emphasis: #3d3d3a;
  --text-button: #4d4c48;
  --text-inverse: #faf9f5;
  --text-inverse-soft: #b0aea5;

  /* Surface */
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --warm-sand: #e8e6dc;
  --dark-surface: #30302e;
  --deep-dark: #141413;

  /* Borders & rings */
  --border-cream: #f0eee6;
  --border-warm: #e8e6dc;
  --border-dark: #30302e;
  --ring-warm: #d1cfc5;
  --ring-deep: #c2c0b6;

  /* Focus */
  --focus-blue: #3898ec;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-3xl: 32px;

  /* Shadows */
  --shadow-whisper: rgba(0, 0, 0, 0.05) 0px 4px 24px;
  --shadow-ring: 0 0 0 1px var(--ring-warm);

  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--parchment);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50, "opsz" 36;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: sticky;
  top: 0.75rem;
  z-index: 100;
  background: rgba(245, 244, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-lg);
}
.site-header .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: var(--text-inverse);
  padding: 0.625rem 1.1rem;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px var(--terracotta);
}
.btn:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
}
.btn--lg {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}
.btn--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--r-md);
}
.btn--ghost {
  background: var(--warm-sand);
  color: var(--text-button);
  box-shadow: var(--shadow-ring);
}
.btn--ghost:hover {
  background: var(--border-warm);
}
.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Sections */
section {
  padding: 5.5rem 2rem;
}
section > .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-align: center;
}
section .section-lead {
  font-family: "Inter", sans-serif;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Dark brand section */
.section--dark {
  background: var(--deep-dark);
  color: var(--text-inverse-soft);
}
.section--dark h2,
.section--dark h3 {
  color: var(--text-inverse);
}
.section--dark .section-lead {
  color: rgba(176, 174, 165, 0.9);
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 2rem 5.5rem;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(201, 100, 66, 0.1), transparent 60%),
    radial-gradient(ellipse 50% 35% at 15% 75%, rgba(201, 100, 66, 0.07), transparent 55%);
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.08;
  margin: 0 auto 1.5rem;
  max-width: 860px;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 50, "opsz" 64;
}
.hero .sub {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto 2.5rem;
  max-width: 640px;
}
.hero .cta-row {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Problem section */
.problem {
  border-top: 1px solid var(--border-cream);
  border-bottom: 1px solid var(--border-cream);
  background: var(--ivory);
}
.problem .section-inner {
  max-width: 760px;
  text-align: center;
}
.problem p {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "opsz" 24;
}
.problem p:last-child {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Audit preview mockup */
.preview {
  background: var(--ivory);
  border: 1px solid var(--border-cream);
}
.preview .section-inner {
  max-width: 960px;
}
.preview .mockup {
  background: var(--parchment);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-whisper);
  padding: 2.5rem;
  border: 1px solid var(--border-cream);
  margin-top: 1.5rem;
}
.preview .mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-warm);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.preview .mockup-header .title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-primary);
}
.preview .mockup-header .meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.preview .mockup-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-top: 1px solid var(--border-cream);
  font-size: 0.9375rem;
}
.preview .mockup-row:first-of-type {
  border-top: none;
}
.preview .mockup-row .label {
  color: var(--text-tertiary);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding-top: 0.125rem;
}
.preview .mockup-row .value {
  color: var(--text-primary);
}
.preview .mockup-row .value .hit {
  color: var(--text-secondary);
  display: block;
}
.preview .mockup-row .value .miss {
  color: var(--terracotta);
  font-weight: 500;
  display: block;
  margin-top: 0.125rem;
}
.preview .mockup-fixes {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-warm);
}
.preview .mockup-fixes .fix {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.preview .mockup-fixes .fix::before {
  content: "→";
  color: var(--terracotta);
  font-weight: 500;
  flex-shrink: 0;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-whisper);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50, "opsz" 24;
}
.card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.card .num {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  background: var(--warm-sand);
  color: var(--text-button);
  border-radius: 999px;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

/* Guarantee */
.guarantee-box {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-2xl);
  padding: 3.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.guarantee-box h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--text-inverse);
  line-height: 1.2;
}
.guarantee-box p {
  font-size: 1.0625rem;
  color: rgba(176, 174, 165, 0.9);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

/* Who */
.who {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.who p {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 100, "opsz" 20;
}
.who p:last-child {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border-warm);
}
.faq-item {
  background: transparent;
  border-bottom: 1px solid var(--border-warm);
  border-radius: 0;
  padding: 1.75rem 0.5rem;
}
.faq-item h4 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.faq-item p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 6rem 2rem;
}
.cta-strip h2 {
  margin-bottom: 1rem;
}
.cta-strip p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}

/* Form */
.form {
  max-width: 580px;
  margin: 0 auto;
  display: grid;
  gap: 1.125rem;
}
.form .field label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: var(--text-emphasis);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-warm);
  background: var(--ivory);
  color: var(--text-primary);
  border-radius: var(--r-lg);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input::placeholder,
.form textarea::placeholder {
  color: var(--text-tertiary);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.15);
}
.form textarea {
  min-height: 130px;
  resize: vertical;
}
.form .honeypot {
  display: none;
}
.form .submit-row {
  margin-top: 0.5rem;
}
.form .form-note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 0.75rem;
}

/* Cross-vertical nav */
.vertical-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 2.5rem 2rem;
  font-size: 0.875rem;
  border-top: 1px solid var(--border-cream);
  background: var(--ivory);
  color: var(--text-secondary);
}
.vertical-nav .label {
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}
.vertical-nav a {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  color: var(--text-primary);
  background: var(--parchment);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.vertical-nav a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.vertical-nav a[aria-current="page"] {
  background: var(--warm-sand);
  color: var(--text-button);
  border-color: var(--border-warm);
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-cream);
  background: var(--parchment);
}
.site-footer a {
  color: var(--terracotta);
}
.site-footer a:hover {
  text-decoration: underline;
}

/* Thank you */
.thank-you {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}
.thank-you h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.thank-you p {
  font-size: 1.125rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Scroll-triggered fade-in (progressive enhancement) */
@supports (animation-timeline: view()) {
  .hero, section, .vertical-nav {
    animation: fadeIn 0.8s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 20%;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 1.25rem;
  }
  section {
    padding: 3.5rem 1.25rem;
  }
  .hero {
    padding: 2.5rem 1.25rem 3.5rem;
  }
  .card,
  .faq-item,
  .guarantee-box {
    padding: 1.75rem;
  }
  .guarantee-box {
    padding: 2.25rem 1.75rem;
  }
  .preview .mockup {
    padding: 1.75rem 1.25rem;
  }
  .preview .mockup-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
