/* ============================================
   Solar Permit Guide — styles.css
   Aesthetic: Governmental clarity meets editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50:  #fafaf9;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3c7;
  --sky-700:   #0369a1;
  --sky-600:   #0284c7;
  --sky-100:   #e0f2fe;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --red-700:   #b91c1c;
  --red-100:   #fee2e2;

  --font-serif: 'Lora', Georgia, serif;
  --font-sans:  'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:  'IBM Plex Mono', monospace;

  --max-w: 1120px;
  --radius: 4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sky-600); }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--stone-900); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600;
  transition: top .2s;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ── SITE HEADER ── */
.site-header {
  background: var(--stone-900);
  border-bottom: 3px solid var(--amber-500);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}
.site-logo {
  display: flex; align-items: center; gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--amber-500);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.logo-text span { color: var(--amber-400); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0; }
.site-nav a {
  color: var(--stone-300);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .875rem;
  border-radius: var(--radius);
  transition: color .15s, background .15s;
  letter-spacing: .01em;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-nav a.active { color: var(--amber-400); }

.nav-cta {
  background: var(--amber-500) !important;
  color: var(--stone-900) !important;
  font-weight: 600 !important;
  margin-left: .5rem;
}
.nav-cta:hover { background: var(--amber-400) !important; }

.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--stone-300);
  font-size: 1.5rem;
}

/* ── BREADCRUMB ── */
.breadcrumb-bar {
  background: var(--stone-100);
  border-bottom: 1px solid var(--stone-200);
  padding: .6rem 1.5rem;
}
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto;
  font-size: .8rem; color: var(--stone-500);
  font-family: var(--font-sans);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--stone-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--sky-700); text-decoration: underline; }
.breadcrumb .sep { color: var(--stone-400); }

/* ── PAGE HERO ── */
.page-hero {
  background: var(--stone-900);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(245,158,11,.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-400), transparent);
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 720px;
}
.page-hero .lead {
  font-size: 1.1rem;
  color: var(--stone-300);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.hero-meta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--stone-400);
  font-family: var(--font-mono);
}
.hero-meta span { display: flex; align-items: center; gap: .4rem; }

/* ── LAYOUT ── */
.layout-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.layout-container.full-width {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.main-content { min-width: 0; }
.sidebar { position: sticky; top: 84px; }

/* ── ARTICLE PROSE ── */
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--stone-900);
  margin: 2.5rem 0 .875rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--stone-200);
  line-height: 1.3;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--stone-800);
  margin: 1.75rem 0 .6rem;
  line-height: 1.4;
}
.prose h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--stone-700);
  margin: 1.25rem 0 .4rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .8rem;
}
.prose p { margin-bottom: 1.1rem; color: var(--stone-700); font-size: 1rem; }
.prose ul, .prose ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--stone-700);
}
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--stone-900); font-weight: 600; }
.prose a { color: var(--sky-700); }

/* ── CALLOUT BOXES ── */
.callout {
  border-left: 4px solid;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex; gap: 1rem;
}
.callout-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: .1rem; }
.callout-body { min-width: 0; }
.callout-body strong { display: block; margin-bottom: .35rem; font-size: .95rem; }
.callout-body p { margin: 0; font-size: .9rem; line-height: 1.6; }

.callout.info    { background: var(--sky-100);   border-color: var(--sky-600);   }
.callout.warning { background: var(--amber-100); border-color: var(--amber-600); }
.callout.success { background: var(--green-100); border-color: var(--green-700); }
.callout.danger  { background: var(--red-100);   border-color: var(--red-700);   }

/* ── DATA TABLE ── */
.data-table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; background: #fff;
}
.data-table thead { background: var(--stone-900); color: #fff; }
.data-table thead th {
  padding: .875rem 1.1rem;
  text-align: left;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.data-table tbody tr { border-bottom: 1px solid var(--stone-200); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--stone-50); }
.data-table tbody td { padding: .8rem 1.1rem; color: var(--stone-700); vertical-align: top; }
.data-table tbody td:first-child { font-weight: 600; color: var(--stone-900); }

/* ── STEP LIST ── */
.step-list { list-style: none; margin: 1.75rem 0; padding: 0; counter-reset: steps; }
.step-list li {
  counter-increment: steps;
  display: flex; gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stone-200);
}
.step-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--stone-900);
  color: var(--amber-400);
  font-family: var(--font-mono);
  font-size: .85rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  margin-top: .15rem;
}
.step-num::before { content: counter(steps, decimal-leading-zero); }
.step-body strong { display: block; margin-bottom: .35rem; font-size: 1rem; color: var(--stone-900); }
.step-body p { margin: 0; font-size: .9rem; color: var(--stone-600); line-height: 1.6; }

/* ── FAQ ── */
.faq-section { margin: 2.5rem 0; }
.faq-section h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--stone-200);
}
.faq-item {
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; background: none; border: none;
  padding: 1.1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .975rem; font-weight: 600;
  color: var(--stone-900);
  text-align: left;
  transition: background .15s;
}
.faq-question:hover { background: var(--stone-100); }
.faq-question[aria-expanded="true"] { background: var(--stone-100); color: var(--sky-700); }
.faq-chevron { font-size: .875rem; transition: transform .25s; flex-shrink: 0; color: var(--stone-500); }
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: .925rem;
  color: var(--stone-700);
  line-height: 1.7;
}
.faq-answer.open { display: block; }
.faq-answer p { margin-bottom: .75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── SIDEBAR WIDGETS ── */
.widget {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--stone-500);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--stone-200);
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { border-bottom: 1px solid var(--stone-100); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  display: block;
  padding: .5rem 0;
  font-size: .875rem;
  color: var(--stone-600);
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.toc-list a:hover { color: var(--sky-700); padding-left: .5rem; }
.toc-list .sub { padding-left: .875rem; font-size: .825rem; }

.quick-facts { list-style: none; padding: 0; }
.quick-facts li {
  display: flex; gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--stone-100);
  font-size: .875rem;
}
.quick-facts li:last-child { border-bottom: none; }
.fact-label { color: var(--stone-500); flex-shrink: 0; width: 110px; font-size: .8rem; }
.fact-value { color: var(--stone-800); font-weight: 500; }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500;
  padding: .2rem .6rem;
  border-radius: 100px;
  letter-spacing: .03em;
}
.badge-amber { background: var(--amber-100); color: #92400e; }
.badge-green { background: var(--green-100); color: #166534; }
.badge-sky   { background: var(--sky-100);   color: #075985; }
.badge-stone { background: var(--stone-200); color: var(--stone-700); }

.cta-widget {
  background: var(--stone-900);
  color: #fff;
  border: none;
}
.cta-widget .widget-title { color: var(--stone-400); border-color: var(--stone-700); }
.cta-widget h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.3;
}
.cta-widget p { font-size: .875rem; color: var(--stone-400); margin-bottom: 1.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans);
  font-size: .875rem; font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}
.btn-amber { background: var(--amber-500); color: var(--stone-900); }
.btn-amber:hover { background: var(--amber-400); color: var(--stone-900); }
.btn-full { width: 100%; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--stone-300);
  color: var(--stone-300);
}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-sky { background: var(--sky-700); color: #fff; }
.btn-sky:hover { background: var(--sky-600); }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card-icon { font-size: 1.5rem; margin-bottom: .875rem; }
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700;
  color: var(--stone-900);
  margin-bottom: .4rem;
  line-height: 1.3;
}
.card p { font-size: .875rem; color: var(--stone-600); line-height: 1.5; margin: 0; }
.card-arrow {
  display: flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600;
  color: var(--sky-700);
  margin-top: .875rem;
  text-decoration: none;
}

/* ── STATE GRID ── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1.75rem 0;
}
.state-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  display: flex; align-items: center; gap: .75rem;
  transition: all .15s;
  box-shadow: var(--shadow-sm);
}
.state-card:hover {
  border-color: var(--sky-700);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.state-abbr {
  width: 40px; height: 40px;
  background: var(--stone-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .85rem; font-weight: 600;
  color: var(--stone-700);
  flex-shrink: 0;
}
.state-name { font-size: .875rem; font-weight: 600; color: var(--stone-900); line-height: 1.2; }
.state-count { font-size: .75rem; color: var(--stone-500); }

/* ── TOOL EMBED ── */
.tool-embed {
  background: #fff;
  border: 2px solid var(--stone-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.tool-header {
  background: var(--stone-900);
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.tool-header h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  margin: 0;
}
.tool-header p { font-size: .8rem; color: var(--stone-400); margin: .25rem 0 0; }
.tool-body { padding: 2rem; }

/* Form elements */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--stone-600);
  margin-bottom: .5rem;
}
.form-select, .form-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--stone-300);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--stone-800);
  background: #fff;
  transition: border-color .15s;
  appearance: none;
}
.form-select { 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='%2378716c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--sky-700);
  box-shadow: 0 0 0 3px rgba(3,105,161,.12);
}

.result-box {
  background: var(--stone-50);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
}
.result-box.visible { display: block; }
.result-box h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--stone-900);
  margin-bottom: 1rem;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.result-stat {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
  padding: .875rem 1rem;
}
.result-stat .stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-500); margin-bottom: .25rem; }
.result-stat .stat-value { font-size: 1.15rem; font-weight: 700; color: var(--stone-900); font-family: var(--font-mono); }
.checklist-output { list-style: none; padding: 0; }
.checklist-output li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--stone-200);
  font-size: .875rem;
  color: var(--stone-700);
}
.checklist-output li:last-child { border-bottom: none; }
.checklist-output li::before {
  content: '☐';
  font-size: 1.1rem;
  color: var(--stone-400);
  flex-shrink: 0;
  margin-top: -.1rem;
}

/* ── AD PLACEHOLDER ── */
.ad-slot {
  background: var(--stone-100);
  border: 1px dashed var(--stone-300);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone-400);
  font-size: .75rem;
  font-family: var(--font-mono);
  text-align: center;
  margin: 1.5rem 0;
}
.ad-slot-leaderboard { height: 90px; }
.ad-slot-rectangle { height: 250px; }
.ad-slot-sidebar { height: 280px; }

/* ── DISCLAIMER ── */
.disclaimer {
  background: var(--stone-100);
  border-top: 1px solid var(--stone-200);
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  font-size: .8rem;
  color: var(--stone-500);
  line-height: 1.6;
  border-radius: var(--radius-lg);
}
.disclaimer strong { color: var(--stone-600); }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--stone-900);
  color: var(--stone-400);
  margin-top: 5rem;
  padding: 3rem 1.5rem 2rem;
  border-top: 3px solid var(--amber-500);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: .875rem;
  color: var(--stone-500);
  line-height: 1.7;
  margin-top: .875rem;
  max-width: 280px;
}
.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--stone-500);
  margin-bottom: .875rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a {
  color: var(--stone-400);
  text-decoration: none;
  font-size: .875rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--amber-400); }
.footer-bottom {
  border-top: 1px solid var(--stone-800);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: var(--stone-600);
}
.footer-bottom a { color: var(--stone-500); text-decoration: none; }
.footer-bottom a:hover { color: var(--stone-300); }
.footer-legal { display: flex; gap: 1.5rem; }

/* ── HOMEPAGE SPECIFIC ── */
.home-hero {
  background: var(--stone-900);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(245,158,11,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(3,105,161,.1) 0%, transparent 50%);
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--amber-500) 0%, var(--amber-400) 40%, transparent 100%);
}
.home-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}
.home-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.home-hero h1 em { font-style: italic; color: var(--amber-400); }
.home-hero .lead {
  font-size: 1.1rem;
  color: var(--stone-300);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-tool-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-tool-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: #fff;
  margin-bottom: .35rem;
}
.hero-tool-card p { font-size: .85rem; color: var(--stone-400); margin-bottom: 1.25rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--amber-600);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-label::before {
  content: '';
  display: block; width: 24px; height: 2px;
  background: var(--amber-500);
}
.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--stone-900);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section-lead { font-size: 1rem; color: var(--stone-600); max-width: 560px; margin-bottom: 2rem; }

.home-section { padding: 4rem 1.5rem; }
.home-section.alt { background: var(--stone-100); border-top: 1px solid var(--stone-200); border-bottom: 1px solid var(--stone-200); }
.home-section-inner { max-width: var(--max-w); margin: 0 auto; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  counter-reset: process;
}
.process-card {
  background: #fff;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  counter-increment: process;
}
.process-card::before {
  content: counter(process, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 2rem; font-weight: 700;
  color: var(--stone-200);
  position: absolute; top: 1rem; right: 1.25rem;
  line-height: 1;
}
.process-icon { font-size: 1.5rem; margin-bottom: .875rem; }
.process-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--stone-900);
  margin-bottom: .4rem;
}
.process-card p { font-size: .85rem; color: var(--stone-600); line-height: 1.6; margin: 0; }

/* ── PRINT STYLES ── */
@media print {
  .site-header, .site-footer, .sidebar, .ad-slot, .breadcrumb-bar { display: none !important; }
  .layout-container { grid-template-columns: 1fr; }
  .page-hero { background: #fff !important; color: #000 !important; }
  .page-hero h1 { color: #000; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .layout-container { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-tool-card { max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--stone-900); padding: 1rem; border-top: 1px solid var(--stone-700); gap: .25rem; }
  .site-nav.open { display: flex; }
  .hamburger { display: block; }
  .header-inner { position: relative; }
  .home-hero { padding: 3rem 1.25rem 2.5rem; }
  .home-section { padding: 3rem 1.25rem; }
  .layout-container { padding: 2rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .result-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .state-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
