/* ============================================================
   TreeReportPro.com - Design System Stylesheet
   Theme: Earthy Warm
   ============================================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/css/fonts/dm-serif-display-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/css/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/css/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/css/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/css/fonts/inter-700.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #2D5F2D;
  --color-primary-light: #4A8B4A;
  --color-primary-dark: #1A3D1A;

  --color-accent: #D4A03C;
  --color-accent-light: #E8C36A;
  --color-accent-dark: #B8842A;

  --color-bg: #FDFBF7;
  --color-bg-alt: #F5F0E8;
  --color-surface: #FFFFFF;
  --color-border: #DED5C4;
  --color-text: #2C2416;
  --color-text-secondary: #5C5040;
  --color-text-muted: #8A7E6C;

  --color-success: #3A7D44;
  --color-warning: #D4A03C;
  --color-danger: #C2452D;
  --color-info: #3B7BA8;

  --shadow-sm: 0 1px 3px rgba(44, 36, 22, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 36, 22, 0.12);
  --shadow-lg: 0 12px 32px rgba(44, 36, 22, 0.16);

  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h4 { font-size: var(--text-xl); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--space-16) 0;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

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

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text);
}

.btn-accent:hover {
  background-color: var(--color-accent-light);
}

.btn-lg {
  min-height: 56px;
  padding: 16px 40px;
  font-size: var(--text-lg);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* --- Inputs --- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.input, .select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus, .select:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 2px rgba(74, 139, 74, 0.2);
}

.input-error {
  border-color: var(--color-danger);
}

.error-message {
  color: var(--color-danger);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .error-message {
  display: block;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A7E6C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text);
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 64px;
  transition: box-shadow 0.2s;
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  display: none;
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.nav-hamburger svg {
  width: 24px;
  height: 24px;
}

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--space-8) 20px;
  display: none;
  flex-direction: column;
  gap: var(--space-6);
  z-index: 99;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer a {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-drawer .btn {
  margin-top: var(--space-4);
}

/* --- Hero --- */
.hero {
  padding: var(--space-16) 0 var(--space-20);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.hero .lead {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  align-items: flex-start;
}

/* Phone mockup */
.phone-mockup {
  width: 240px;
  background: var(--color-surface);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 3px solid var(--color-border);
}

.phone-header {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) var(--space-4) var(--space-3);
  text-align: center;
}

.phone-header h4 {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 600;
}

.phone-header p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  margin-bottom: 0;
}

.phone-body {
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-danger);
  border: none;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.record-btn svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.phone-transcript {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-align: left;
  line-height: 1.5;
}

/* PDF mockup */
.pdf-mockup {
  width: 200px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  display: none;
}

.pdf-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
}

.pdf-header-bar h4 {
  font-size: var(--text-xs);
  color: var(--color-primary);
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 700;
}

.pdf-section {
  margin-bottom: var(--space-3);
}

.pdf-section h5 {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}

.pdf-line {
  height: 4px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  margin-bottom: 3px;
}

.pdf-line.short { width: 60%; }
.pdf-line.med { width: 80%; }

.pdf-risk-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: var(--space-2);
}

.pdf-risk-cell {
  height: 14px;
  border-radius: 2px;
  font-size: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

/* --- Waitlist Form --- */
.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form .form-row {
  display: grid;
  gap: var(--space-3);
}

.waitlist-form .btn {
  width: 100%;
  margin-top: var(--space-3);
}

.form-success {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  display: none;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-2);
}

.form-error-global {
  background: rgba(194, 69, 45, 0.1);
  color: var(--color-danger);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  display: none;
}

/* --- Pain Point Section --- */
.pain-point {
  text-align: center;
}

.pain-point h2 {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pain-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.pain-stat {
  text-align: center;
}

.pain-stat .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-accent-dark);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.pain-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* --- How It Works --- */
.how-it-works {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.step-icon svg {
  width: 36px;
  height: 36px;
}

.step-number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.step p {
  font-size: var(--text-sm);
  max-width: 280px;
  margin: 0 auto;
}

/* --- Report Preview --- */
.report-preview {
  text-align: center;
}

.report-card {
  max-width: 700px;
  margin: var(--space-10) auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.report-top-bar {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.report-top-bar h4 {
  color: #fff;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
}

.report-body {
  padding: var(--space-6);
}

.report-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.report-row:last-child {
  border-bottom: none;
}

.report-label {
  font-weight: 600;
  color: var(--color-text);
}

.report-value {
  color: var(--color-text-secondary);
}

.risk-matrix {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 2px;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
}

.risk-header {
  font-weight: 700;
  text-align: center;
  padding: var(--space-2);
  color: var(--color-text);
}

.risk-label {
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: var(--space-2);
  font-size: 11px;
}

.risk-cell {
  padding: var(--space-2);
  text-align: center;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
}

.risk-low { background: #d4edda; color: #1a5c2a; }
.risk-moderate { background: #fff3cd; color: #856404; }
.risk-high { background: #fde2d4; color: #a83218; }
.risk-extreme { background: #f5c6cb; color: #721c24; }

/* --- Features Grid --- */
.features {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

/* --- ROI Calculator --- */
.roi-calculator {
  text-align: center;
}

.calc-card {
  max-width: 600px;
  margin: var(--space-10) auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.calc-input-group {
  margin-bottom: var(--space-8);
}

.calc-input-group label {
  font-size: var(--text-lg);
  font-weight: 600;
  display: block;
  margin-bottom: var(--space-4);
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  outline: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.calc-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.calc-value {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-top: var(--space-3);
}

.calc-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.calc-result {
  text-align: center;
}

.calc-result .result-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.calc-result .result-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.calc-assumption {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --- Social Proof --- */
.social-proof {
  text-align: center;
}

.proof-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.proof-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.proof-badge svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.proof-badge span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* --- Pricing --- */
.pricing {
  text-align: center;
}

.pricing-card {
  max-width: 480px;
  margin: var(--space-10) auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--color-primary);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-price {
  margin: var(--space-6) 0;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  color: var(--color-text);
  line-height: 1;
}

.pricing-period {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.pricing-annual {
  font-size: var(--text-sm);
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-top: var(--space-2);
}

.pricing-features {
  text-align: left;
  margin: var(--space-6) 0;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.pricing-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  flex-shrink: 0;
}

.pricing-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* --- FAQ --- */
.faq {
  text-align: center;
}

.faq-list {
  max-width: 700px;
  margin: var(--space-10) auto 0;
  text-align: left;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  min-height: 48px;
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--color-text-muted);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-20) 0;
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  color: rgba(255,255,255,0.8);
}

.final-cta .waitlist-form .input,
.final-cta .waitlist-form .select {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

.final-cta .waitlist-form .input::placeholder {
  color: rgba(255,255,255,0.5);
}

.final-cta .waitlist-form label {
  color: rgba(255,255,255,0.9);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: #fff;
  text-decoration: none;
  margin-bottom: var(--space-3);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.footer-links h4 {
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--text-sm);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 768px;
  margin: 0 auto;
  padding: var(--space-16) 0;
}

.legal-content h1 {
  margin-bottom: var(--space-8);
}

.legal-content h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.legal-content p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.legal-content li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal-content a {
  text-decoration: underline;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-8);
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(194, 69, 45, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(194, 69, 45, 0); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

/* --- Responsive --- */
@media (min-width: 480px) {
  .pain-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .waitlist-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .section {
    padding: var(--space-20) 0;
  }

  h1 { font-size: var(--text-4xl); }

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

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

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-mockup {
    display: block;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--text-5xl); }

  .hero h1 {
    font-size: var(--text-5xl);
  }

  .section {
    padding: var(--space-24) 0;
  }

  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
  }

  .nav-hamburger {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .hero-content {
    text-align: left;
  }

  .hero .lead {
    margin-left: 0;
  }

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

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

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}

/* --- Print --- */
@media print {
  .nav, .footer, .final-cta, .waitlist-form, .btn, .nav-drawer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
  }
}
