/* ============================================================
     DESIGN TOKENS
     ============================================================ */
  :root {
    --bg:        #FAF6EF;
    --surface:   #FFFFFF;
    --border:    #E8DFD0;
    --text:      #1A1714;
    --muted:     #6B5E4C;
    --amber:     #D4820A;
    --amber-bg:  #FFF3DC;
    --amber-dk:  #A86208;
    --green:     #1A7A4A;
    --green-bg:  #E8F5EE;
    --radius:    12px;
    --radius-sm: 8px;
    --shadow:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  }

  /* ============================================================
     RESET AND BASE
     ============================================================ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { font-size: 16px; scroll-behavior: smooth; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 { line-height: 1.25; font-weight: 700; }
  h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
  h2 { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }
  h3 { font-size: 1.1rem; font-weight: 600; }
  p { color: var(--muted); }

  a { color: var(--amber-dk); }

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

  /* ============================================================
     LAYOUT
     ============================================================ */
  .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  section {
    padding: 3rem 0;
  }

  .divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  /* ============================================================
     HEADER / NAV STRIP
     ============================================================ */
  .site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .site-header .inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .site-header .brand {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .site-header .brand .dot {
    width: 8px; height: 8px;
    background: var(--amber);
    border-radius: 50%;
    display: inline-block;
  }

  .site-header .disclaimer-pill {
    font-size: 0.7rem;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
  }

  /* ============================================================
     HERO
     ============================================================ */
  .hero {
    padding: 2.5rem 0 1rem;
    text-align: center;
  }

  .hero .badge {
    display: inline-block;
    background: var(--amber-bg);
    color: var(--amber-dk);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1rem;
  }

  .hero h1 { margin-bottom: 0.75rem; }

  .hero .sub {
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 2rem;
  }

  /* ============================================================
     CALCULATOR CARD
     ============================================================ */
  .calc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
  }

  .calc-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
  }

  /* Form grid */
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  @media (max-width: 520px) {
    .form-grid { grid-template-columns: 1fr; }
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .form-group.full { grid-column: 1 / -1; }

  label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
  }

  label .optional {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
  }

  select, input[type="text"] {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.875rem;
    background: var(--surface);
    color: var(--text);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5E4C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.25rem;
    cursor: pointer;
    transition: border-color 0.15s;
  }

  input[type="text"] {
    background-image: none;
    padding-right: 0.875rem;
  }

  select:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--amber);
  }

  /* Slider */
  .slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .slider-row input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    cursor: pointer;
  }

  .slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--amber);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--surface);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  }

  .slider-row input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--amber);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid var(--surface);
  }

  .slider-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--amber-dk);
    min-width: 4rem;
    text-align: right;
  }

  /* ============================================================
     RESULT CARD
     ============================================================ */
  .result-card {
    background: linear-gradient(135deg, var(--green-bg) 0%, #F0FAF3 100%);
    border: 1.5px solid #A8D9BC;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .result-card .estimate-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 0.25rem;
  }

  .result-card .total-line {
    font-size: clamp(2rem, 7vw, 2.75rem);
    font-weight: 700;
    color: var(--green);
    line-height: 1.1;
    margin-bottom: 0.25rem;
  }

  .result-card .total-caveat {
    font-size: 0.8rem;
    color: var(--green);
    opacity: 0.75;
    margin-bottom: 1.25rem;
  }

  .result-rows {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .result-row .label { color: var(--muted); flex: 1; }
  .result-row .value { font-weight: 600; color: var(--text); white-space: nowrap; }
  .result-row .value.zero { color: var(--muted); font-weight: 400; }

  .assumptions-box {
    background: rgba(255,255,255,0.6);
    border: 1px solid #A8D9BC;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.5;
  }

  .assumptions-box strong { color: var(--text); }

  /* State note */
  .state-note {
    background: var(--amber-bg);
    border: 1px solid #F0C96A;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    color: #7A5000;
    margin-top: 0.75rem;
  }

  /* ============================================================
     CTA SECTIONS
     ============================================================ */
  .cta-section {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .cta-section .cta-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber-dk);
    margin-bottom: 0.5rem;
  }

  .cta-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .cta-section p {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }

  .email-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .email-row input[type="email"] {
    font-family: inherit;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.875rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s;
  }

  .email-row input[type="email"]:focus {
    outline: none;
    border-color: var(--amber);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
  }

  .btn:active { transform: scale(0.98); }
  .btn:hover { opacity: 0.88; }

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

  .btn-secondary {
    background: var(--surface);
    color: var(--amber-dk);
    border: 1.5px solid var(--amber);
  }

  .cta-success {
    display: none;
    background: var(--green-bg);
    border: 1px solid #A8D9BC;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 500;
  }

  .cta-section.installer {
    background: #F5F0FF;
    border-color: #C4B4E8;
  }

  .cta-section.installer .cta-label {
    color: #5C3DC4;
  }

  .cta-section.installer .btn-primary {
    background: #5C3DC4;
  }

  .cta-section.installer .btn-secondary {
    color: #5C3DC4;
    border-color: #5C3DC4;
  }

  /* ============================================================
     HOW IT WORKS
     ============================================================ */
  .how-it-works {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    border: 1px solid var(--border);
  }

  .how-it-works h2 { margin-bottom: 1.5rem; font-size: 1.3rem; }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--amber-bg);
    color: var(--amber-dk);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
  }

  .step-text h3 { font-size: 0.95rem; margin-bottom: 0.25rem; }
  .step-text p { font-size: 0.875rem; }

  /* ============================================================
     FAQ
     ============================================================ */
  .faq { margin-top: 0.5rem; }

  .faq h2 { margin-bottom: 1.25rem; }

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

  .faq-item:last-child { border-bottom: none; }

  .faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.15s;
  }

  .faq-q:hover { color: var(--amber-dk); }

  .faq-q .arrow {
    font-size: 1rem;
    color: var(--muted);
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  .faq-q.open .arrow { transform: rotate(180deg); }

  .faq-a {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    padding-bottom: 1rem;
    display: none;
  }

  .faq-a.open { display: block; }

  /* ============================================================
     FOOTER
     ============================================================ */
  .site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .site-footer p + p { margin-top: 0.5rem; }

  .site-footer a { color: var(--muted); }

  /* ============================================================
     MISC UTILITIES
     ============================================================ */
  .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
  }

/* ============================================================
   STATE PAGES (added 2026-07-21)
   ============================================================ */
.stack-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; background: var(--surface); font-size: 0.95rem; }
.stack-table td { border: 1px solid var(--border); padding: 0.7rem 0.8rem; vertical-align: top; }
.stack-table td:first-child { width: 34%; background: var(--amber-bg); }
@media (max-width: 640px) {
  .stack-table td { display: block; width: 100% !important; border-bottom: none; }
  .stack-table tr { display: block; border-bottom: 1px solid var(--border); }
}
.footer-nav a { color: inherit; }
.updated { color: var(--muted); }
.state-links a { font-weight: 600; }
