/* ===========================
   ELITE OS / ESRElite Solar Recovery
   Dark Legal Consumer Protection Theme
   =========================== */

/* --- Variables --- */
:root {
  --navy-deep: #050a12;
  --navy-dark: #080e1a;
  --navy-mid: #0d1525;
  --navy-surface: #111c30;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --amber-glow: rgba(245, 158, 11, 0.08);
  --text-primary: #f0e6d3;
  --text-secondary: #9a8e7a;
  --text-muted: #5a5248;
  --border: rgba(245, 158, 11, 0.12);
  --border-hover: rgba(245, 158, 11, 0.28);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);
  --red-tag: rgba(239, 68, 68, 0.15);
  --red-text: #fca5a5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --section-pad: clamp(60px, 8vw, 100px);
  --container: 1160px;
  --radius: 4px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, var(--navy-deep) 0%, transparent 100%);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo-sub {
  color: var(--amber);
}
.nav-tagline {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,158,11,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(245,158,11,0.04) 0%, transparent 50%),
    linear-gradient(to bottom, var(--navy-deep) 0%, var(--navy-dark) 100%);
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--amber); }
  50% { opacity: 0.6; box-shadow: 0 0 20px var(--amber); }
}

.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 28px;
  max-width: 800px;
}
.hero-headline-em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  position: relative;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.hero-badges {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 32px 0 0;
}
.badge-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -1px;
}
.badge-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 32px;
}

/* --- Stats Strip --- */
.stats-strip {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 48px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.stat-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* --- Anatomy Section --- */
.anatomy {
  padding: var(--section-pad) 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section-title em {
  font-style: italic;
  color: var(--amber);
}
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}
.anatomy-header { margin-bottom: 0; }

.traps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.trap-card {
  background: var(--navy-dark);
  padding: 36px 32px;
  position: relative;
  transition: background 0.2s;
}
.trap-card:hover { background: var(--navy-surface); }
.trap-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  opacity: 0.5;
}
.trap-icon { margin-bottom: 20px; }
.trap-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.trap-body {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}
.trap-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.trap-tag-red {
  background: var(--red-tag);
  color: var(--red-text);
}

/* --- Playbook Section --- */
.playbook {
  padding: var(--section-pad) 32px;
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
}
.playbook-header {
  max-width: var(--container);
  margin: 0 auto 56px;
}
.playbook-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.play-card {
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.play-linetop {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--amber), transparent);
}
.play-body { padding: 36px 32px; }
.play-tactic-label, .play-truth-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.play-tactic-label { color: var(--text-muted); }
.play-truth-label { color: var(--amber); margin-top: 16px; }
.play-tactic {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}
.play-truth {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.7;
}
.play-divider {
  height: 1px;
  background: var(--border);
  margin-top: 8px;
}

/* --- Process Section --- */
.process {
  padding: var(--section-pad) 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.process-header { margin-bottom: 56px; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 40px 1fr;
  align-items: start;
  gap: 0;
  padding: 0;
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy-surface);
  letter-spacing: -2px;
  line-height: 1;
  padding-top: 4px;
  -webkit-text-stroke: 1px var(--amber);
  text-stroke: 1px var(--amber);
}
.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}
.step-connector::before {
  content: '';
  width: 1px;
  flex: 1;
  background: var(--border);
  min-height: 32px;
}
.step-connector::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 4px;
}
.step-last .step-connector { display: none; }

.step-content {
  padding: 0 0 48px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.step-last .step-content {
  border-bottom: none;
  padding-bottom: 0;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.step-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

/* --- Closing Section --- */
.closing {
  position: relative;
  padding: var(--section-pad) 32px;
  background: var(--navy-dark);
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.closing-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}
.closing-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-primary);
  margin: 16px 0 24px;
}
.closing-headline em { font-style: italic; color: var(--amber); }
.closing-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}
.closing-cta-block {
  display: inline-block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px 48px;
  border-radius: var(--radius);
}
.cta-loan-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.cta-loan-figures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.loan-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.loan-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}
.loan-desc {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.loan-sep {
  font-size: 20px;
  color: var(--amber);
  opacity: 0.4;
}

/* --- Footer --- */
.footer {
  padding: 56px 32px 32px;
  border-top: 1px solid var(--border);
  background: var(--navy-deep);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 12px;
}
.footer-logo-sub { color: var(--amber); }
.footer-mission {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 280px;
  line-height: 1.6;
}
.footer-phone {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.footer-hours {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.footer-legal {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 360px;
  line-height: 1.6;
}
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Hero CTA --- */
.hero-cta-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-cta:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}
.hero-cta-note {
  font-size: 13px;
  color: var(--text-secondary);
}

/* --- Intake Form Section --- */
.intake-section {
  padding: var(--section-pad) 32px;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intake-inner { max-width: 820px; margin: 0 auto; }
.intake-header { margin-bottom: 48px; }
.intake-form { position: relative; }
.intake-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--wide { grid-column: 1 / -1; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.02em; }
.field-req { color: var(--amber); margin-left: 2px; }
.field-optional { color: var(--text-muted); font-weight: 300; }
.field-hint { font-size: 11px; color: var(--text-muted); margin-top: -4px; }
.field-input,
.field-select,
.field-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--text-muted); }
.field-input:focus, .field-select:focus, .field-textarea:focus { border-color: var(--amber); }
.field-input--error { border-color: #ef4444 !important; }
.field-error { font-size: 12px; color: #fca5a5; min-height: 16px; }
.field-textarea { resize: vertical; min-height: 120px; }
.field-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='%239a8e7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.field-select option { background: var(--navy-dark); color: var(--text-primary); }
.address-row { display: flex; gap: 10px; align-items: flex-start; }
.address-row .field-input { flex: 1; }
.address-row .field-select { width: 100px; flex-shrink: 0; }
.input-prefix-wrap { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 12px; color: var(--text-secondary); font-size: 14px; pointer-events: none; }
.field-input--prefix { padding-left: 26px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.radio-label input[type="radio"] { display: none; }
.radio-custom {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--border-hover); background: transparent;
  flex-shrink: 0; transition: border-color 0.15s, background 0.15s;
}
.radio-label input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--amber); background: var(--amber);
  box-shadow: inset 0 0 0 4px var(--navy-mid);
}
.radio-text { font-size: 14px; color: var(--text-primary); }
.consent-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.consent-label input[type="checkbox"] { display: none; }
.consent-custom {
  width: 18px; height: 18px; border-radius: 2px;
  border: 1px solid var(--border-hover); background: transparent;
  flex-shrink: 0; margin-top: 2px;
  transition: border-color 0.15s, background 0.15s; position: relative;
}
.consent-label input[type="checkbox"]:checked ~ .consent-custom {
  background: var(--amber); border-color: var(--amber);
}
.consent-label input[type="checkbox"]:checked ~ .consent-custom::after {
  content: ''; position: absolute; top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid var(--navy-deep); border-top: none; border-left: none;
  transform: rotate(45deg);
}
.consent-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.file-upload-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.field-file { display: none; }
.file-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border-hover);
  border-radius: var(--radius); font-size: 13px; color: var(--text-secondary);
  cursor: pointer; background: transparent;
  transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.file-upload-btn:hover { border-color: var(--amber); color: var(--amber); }
.file-name-display { font-size: 13px; color: var(--text-muted); }
.intake-submit-row { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-intake-submit {
  background: var(--amber); color: var(--navy-deep);
  border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  padding: 16px 36px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.15s, transform 0.1s; letter-spacing: 0.01em;
}
.btn-intake-submit:hover:not(:disabled) { background: var(--amber-light); transform: translateY(-1px); }
.btn-intake-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner { display: inline-flex; align-items: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }
.intake-disclaimer { font-size: 12px; color: var(--text-muted); }
.intake-success { text-align: center; padding: 56px 32px; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--amber-dim); color: var(--amber); font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; border: 1px solid rgba(245,158,11,0.3);
}
.success-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 12px;
}
.success-body { font-size: 16px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 20px; line-height: 1.7; }
.success-share { font-size: 14px; color: var(--text-muted); }
.success-link { color: var(--amber); text-decoration: none; }
.success-link:hover { text-decoration: underline; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-headline { letter-spacing: -1px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-badges { gap: 0; }
  .badge { padding-right: 20px; }
  .badge-sep { margin-right: 20px; }
  .stats-strip-inner { gap: 24px; justify-content: flex-start; }
  .stat-divider { display: none; }
  .stat-item { padding: 0; }
  .step { grid-template-columns: 48px 24px 1fr; }
  .step-num { font-size: 36px; }
  .process-steps { gap: 0; }
  .footer-inner { flex-direction: column; }
  .cta-loan-figures { flex-direction: column; gap: 16px; }
  .loan-sep { display: none; }
  .intake-grid { grid-template-columns: 1fr; }
  .form-field--wide { grid-column: 1; }
  .address-row { flex-direction: column; }
  .address-row .field-select { width: 100%; }
  .btn-intake-submit { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .anatomy, .process, .closing { padding-left: 20px; padding-right: 20px; }
  .playbook { padding-left: 20px; padding-right: 20px; }
  .trap-card, .play-body { padding: 28px 20px; }
  .footer-inner { padding: 0 20px; }
  .intake-section { padding-left: 20px; padding-right: 20px; }
}