/* LLC Launch Kit — Brand-matched design system
   Uses the actual InDesign color palette for brand consistency. */

:root {
  /* Your actual brand palette from InDesign spec */
  --ink: #1a2332;           /* Body text, headings */
  --ink-soft: #44506a;      /* Captions, secondary text */
  --paper: #ffffff;         /* Background */
  --paper-warm: #f6f4ef;    /* Callout box fills */
  --accent: #0a6847;        /* Section numbers, checkmarks, links */
  --accent-dark: #07523a;   /* Cover elements */
  --warn: #9a3412;          /* Warning boxes */
  
  /* Additional neutral grays for UI elements */
  --border: #e2ddd4;        /* Subtle borders */
  --border-strong: #d1ccc3; /* Strong borders */
  
  /* Typography scale - proper hierarchy */
  --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: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing system - consistent rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  
  /* Layout */
  --max-width: 44rem;
  --section-padding: var(--space-24);
}

/* Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif; /* Matches your serif body preference */
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-text-size-adjust: 100%;
}

/* CONTRAST: Typography hierarchy matching InDesign spec */
h1, h2, h3, .btn, .eyebrow, .price, nav, footer {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-6);
  letter-spacing: -0.025em;
  color: var(--ink);
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--accent); /* Your accent color for sub-parts */
}

p {
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

/* ALIGNMENT: Consistent layout system */
.wrap, .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  padding: var(--section-padding) 0;
}

section:first-child {
  padding-top: var(--space-16);
}

/* REPETITION: Consistent header across all pages */
.site-header, header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap, header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.brand span {
  color: var(--ink-soft);
}

.state-nav, .nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.state-indicator {
  color: var(--ink-soft);
  font-weight: 500;
}

.state-nav a, .nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.state-nav a:hover, .nav a:hover {
  color: var(--accent);
}

/* PROXIMITY: Hero sections using brand colors */
.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  text-align: center;
  padding: var(--space-24) 0;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-4);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead, .hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

/* Professional button system using brand colors */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  background: white;
  color: var(--accent);
}

.btn:hover {
  background: var(--paper-warm);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-note {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
}

/* State-specific hero colors - using your brand accent consistently */
.florida-page .hero,
.iowa-page .hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

.florida-page .hero *,
.iowa-page .hero * {
  color: white;
}

.florida-page .btn,
.iowa-page .btn {
  background: white;
  color: var(--accent);
  border: 2px solid white;
}

.florida-page .btn:hover,
.iowa-page .btn:hover {
  background: var(--paper-warm);
  color: var(--accent-dark);
}

/* Professional table design using brand colors */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
  background: var(--paper-warm);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table th,
table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table th {
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

table tr:last-child td {
  border-bottom: none;
  font-weight: 600;
  background: white;
}

/* Card system with brand colors */
.warn-box {
  background: #fef3c7; /* Warm background for warning */
  border: 1px solid var(--warn);
  border-left: 4px solid var(--warn);
  border-radius: 8px;
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.guarantee {
  background: var(--paper-warm);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.verified {
  background: var(--paper-warm);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

/* Improved list styling - no overlap issues */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-2);
  background: var(--paper-warm);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Enhanced list styling - FIXED padding for numbered lists */
ol.how li {
  background: var(--paper-warm);
  margin-bottom: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-16); /* Proper left padding for numbers */
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  position: relative;
  counter-increment: step-counter;
}

ol.how {
  counter-reset: step-counter;
  padding-left: 0;
  list-style: none;
}

ol.how li::before {
  content: counter(step-counter);
  position: absolute;
  left: var(--space-6);
  top: var(--space-6);
  background: var(--accent);
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* FAQ styling */
.faq {
  margin: var(--space-8) 0;
}

.faq dt {
  font-weight: 600;
  color: var(--ink);
  margin: var(--space-6) 0 var(--space-2) 0;
  font-size: var(--text-lg);
}

.faq dt:first-child {
  margin-top: 0;
}

.faq dd {
  margin: 0 0 var(--space-4) 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Price display using brand accent */
.price {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  margin: var(--space-8) 0;
  text-align: center;
}

.price-strike {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--space-2);
}

/* Footer */
footer.site {
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0;
  margin-top: var(--space-24);
}

footer.site p {
  color: var(--ink-soft);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  text-align: center;
}

footer.site strong {
  color: var(--ink);
}

/* Responsive design */
@media (max-width: 640px) {
  :root {
    --section-padding: var(--space-16);
  }
  
  .wrap, .container {
    padding: 0 var(--space-4);
  }
  
  h1 {
    font-size: var(--text-3xl);
  }
  
  .site-header .wrap, header.site .wrap {
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .state-nav, .nav {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .btn {
    width: 100%;
  }
  
  table th,
  table td {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}