/* ==========================================================================
   FenRoofs — Architectural Authority & Storm-Ready Craft
   Palette: Charcoal #111318 | Iron Slate #1A1E26 | Copper #C25E2E / #DF7846
            Limestone #F4F5F7 | Pure White #FFFFFF | Deep Ink #11141A
   ========================================================================== */

:root {
  --charcoal: #111318;
  --charcoal-deep: #0B0D11;
  --slate: #1A1E26;
  --slate-elevated: #222732;
  --slate-border: rgba(255, 255, 255, 0.11);
  --slate-border-strong: rgba(255, 255, 255, 0.2);

  --copper: #C25E2E;
  --copper-bright: #DF7846;
  --copper-dark: #A14A20;
  --copper-soft: rgba(194, 94, 46, 0.14);
  --copper-ring: rgba(223, 120, 70, 0.35);

  --limestone: #F4F5F7;
  --white: #FFFFFF;
  --ink: #11141A;
  --ink-secondary: #434B59;
  --ink-muted: #687283;
  --line-light: #E2E5EC;
  --line-strong: #CFD4DF;

  --text-on-dark: #F7F8FA;
  --text-on-dark-muted: #B4BCC9;
  --text-on-dark-subtle: #8892A4;

  --success: #2E9E6E;
  --danger: #D1493B;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --header-h: 78px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 2px 10px rgba(17, 19, 24, 0.06);
  --shadow-md: 0 14px 36px rgba(17, 19, 24, 0.09);
  --shadow-lg: 0 26px 64px rgba(11, 13, 17, 0.32);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--charcoal);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--white);
  overflow-x: hidden;
}

body.drawer-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 0.9em;
}

:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--copper);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

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

/* Container & Layout Rhythm */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 8.5vw, 124px) 0;
  scroll-margin-top: var(--header-h);
}

.section-light {
  background-color: var(--limestone);
  color: var(--ink);
}

.section-white {
  background-color: var(--white);
  color: var(--ink);
}

.section-dark {
  background-color: var(--charcoal);
  color: var(--text-on-dark);
}

/* Typography System */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

.section-kicker::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background-color: var(--copper);
}

.section-kicker-light {
  color: var(--copper-bright);
}

.section-kicker-light::before {
  background-color: var(--copper-bright);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-title-light {
  color: var(--white);
}

.section-intro {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--ink-secondary);
}

.section-intro-light {
  color: var(--text-on-dark-muted);
}

.section-header {
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.split-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 56px;
  align-items: end;
}

.centered-header {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

.centered-header .section-kicker {
  justify-content: center;
}

.centered-header .section-intro {
  margin-top: 18px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: transform 0.22s var(--ease), background-color 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), color 0.22s var(--ease);
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.22s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-copper {
  background-color: var(--copper);
  color: var(--white);
  border-color: var(--copper);
  box-shadow: 0 8px 24px rgba(194, 94, 46, 0.28);
}

.btn-copper:hover {
  background-color: var(--copper-bright);
  border-color: var(--copper-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(223, 120, 70, 0.36);
}

.btn-copper:active {
  transform: translateY(0);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.btn-outline-dark {
  background-color: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}

.btn-outline-dark:hover {
  background-color: var(--slate-elevated);
  border-color: var(--slate-elevated);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Sticky Header & Mobile Drawer
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(17, 19, 24, 0.72) 0%, rgba(17, 19, 24, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
}

.brand-sub {
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--copper-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(4px);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--charcoal);
  border-left: 1px solid var(--slate-border);
  transform: translateX(102%);
  transition: transform 0.34s var(--ease);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--slate-border);
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  color: var(--white);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  gap: 6px;
}

.drawer-nav a {
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.drawer-nav a:hover {
  background: rgba(194, 94, 46, 0.14);
  color: var(--white);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--slate-border);
}

.drawer-meta {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--text-on-dark-subtle);
  text-align: center;
}

.drawer-meta a {
  color: var(--copper-bright);
  font-weight: 600;
}

/* ==========================================================================
   1. Commanding Architectural Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 52px);
  background: var(--charcoal);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 46%;
  transform: scale(1.015);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(17, 19, 24, 0.94) 0%, rgba(17, 19, 24, 0.82) 38%, rgba(17, 19, 24, 0.44) 68%, rgba(17, 19, 24, 0.22) 100%),
    linear-gradient(180deg, rgba(17, 19, 24, 0.56) 0%, rgba(17, 19, 24, 0.08) 32%, rgba(17, 19, 24, 0.22) 72%, rgba(17, 19, 24, 0.95) 100%);
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(44px, 6vw, 72px);
  margin-top: auto;
}

.hero-content {
  max-width: 710px;
}

.eyebrow-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  margin-bottom: 24px;
  background: rgba(17, 19, 24, 0.62);
  border: 1px solid rgba(223, 120, 70, 0.42);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F4C4AC;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--copper-bright);
  box-shadow: 0 0 0 4px rgba(223, 120, 70, 0.22);
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.45rem, 4.9vw, 4.35rem);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 600px;
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.68;
  color: rgba(244, 245, 247, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-footnote {
  margin: 18px 0 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(244, 245, 247, 0.68);
}

.hero-spec-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 20px;
  min-width: 240px;
  background: rgba(17, 19, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.spec-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.spec-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}

.spec-meta {
  font-size: 0.78rem;
  color: var(--text-on-dark-muted);
}

/* 4-Metric Authority Strip */
.authority-strip {
  position: relative;
  z-index: 2;
  background: rgba(17, 19, 24, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.authority-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.authority-item:first-child {
  padding-left: 0;
}

.authority-item:last-child {
  border-right: none;
  padding-right: 0;
}

.authority-item dt {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1;
  color: var(--copper-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.authority-item dd {
  margin: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.authority-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.authority-item span {
  font-size: 0.78rem;
  color: var(--text-on-dark-subtle);
}

/* ==========================================================================
   2. Roofing Systems & Craftsmanship Showcase
   ========================================================================== */
.customization-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 36px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--copper-soft);
  color: var(--copper);
}

.customization-banner p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.customization-banner strong {
  color: var(--ink);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  background: rgba(17, 19, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
}

.project-spec {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

.project-title {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.project-desc {
  margin: 0 0 20px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: auto 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.project-metrics li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-metrics span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.project-metrics strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.project-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0 2px;
  background: transparent;
  border: none;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.project-action svg {
  color: var(--copper);
  transition: transform 0.22s var(--ease);
}

.project-action:hover {
  color: var(--copper);
}

.project-action:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   3. Interactive Live Roof Replacement Estimator
   ========================================================================== */
.estimator-section {
  background-color: var(--charcoal);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(194, 94, 46, 0.13) 0%, transparent 44%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: start;
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--slate);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.control-block {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.control-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: rgba(194, 94, 46, 0.18);
  border: 1px solid rgba(223, 120, 70, 0.35);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--copper-bright);
  font-variant-numeric: tabular-nums;
}

.control-hint {
  font-size: 0.78rem;
  color: var(--text-on-dark-subtle);
}

.footprint-readout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sqft-value {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.squares-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(194, 94, 46, 0.2);
  border: 1px solid rgba(223, 120, 70, 0.45);
  font-size: 0.78rem;
  font-weight: 800;
  color: #F6C3A9;
  font-variant-numeric: tabular-nums;
}

/* Custom Range Slider */
.range-wrap {
  padding: 6px 2px 2px;
}

.roof-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--copper-bright) 0%, var(--copper-bright) var(--slider-pct, 36.8%), rgba(255, 255, 255, 0.14) var(--slider-pct, 36.8%), rgba(255, 255, 255, 0.14) 100%);
  outline: none;
  cursor: pointer;
}

.roof-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--copper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}

.roof-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  border-color: var(--copper-bright);
}

.roof-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--copper);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-on-dark-subtle);
  font-variant-numeric: tabular-nums;
}

.range-scale em {
  font-style: normal;
  color: var(--text-on-dark-muted);
}

/* Material Cards */
.material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 15px 16px;
  text-align: left;
  background: rgba(17, 19, 24, 0.56);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.choice-card:hover {
  border-color: var(--slate-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.choice-card.is-active {
  background: rgba(194, 94, 46, 0.14);
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 1px var(--copper-bright);
}

.choice-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
}

.choice-top strong {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--white);
}

.choice-rate {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--copper-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.choice-sub {
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--text-on-dark-subtle);
}

/* Segmented Controls */
.control-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.segment-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.segment-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(17, 19, 24, 0.56);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.segment-btn strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.segment-btn span {
  font-size: 0.72rem;
  color: var(--text-on-dark-subtle);
}

.segment-btn:hover {
  border-color: var(--slate-border-strong);
}

.segment-btn.is-active {
  background: rgba(194, 94, 46, 0.16);
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 1px var(--copper-bright);
}

.segment-btn.is-active span {
  color: #F4C4AC;
}

/* Toggle Switches */
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toggle-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  background: rgba(17, 19, 24, 0.56);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.toggle-card:has(input:checked) {
  border-color: rgba(223, 120, 70, 0.65);
  background: rgba(194, 94, 46, 0.11);
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle-card:has(input:focus-visible) {
  outline: 2px solid var(--copper-bright);
  outline-offset: 2px;
}

.toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-copy strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.toggle-copy span {
  font-size: 0.77rem;
  line-height: 1.4;
  color: var(--text-on-dark-subtle);
}

.toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.22s var(--ease);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.22s var(--ease);
}

.toggle-card input:checked ~ .toggle-switch {
  background: var(--copper);
}

.toggle-card input:checked ~ .toggle-switch::after {
  transform: translateX(20px);
}

/* Right Output & Live Lead Preview */
.estimator-output {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.estimate-panel {
  padding: 28px;
  background: linear-gradient(180deg, #1E232D 0%, #161A22 100%);
  border: 1px solid rgba(223, 120, 70, 0.35);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.estimate-eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper-bright);
}

.estimate-range {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.estimate-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--slate-border);
  border-bottom: 1px solid var(--slate-border);
}

.kpi-box dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
}

.kpi-box dd {
  margin: 5px 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.estimate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}

.breakdown-row strong {
  color: var(--white);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.breakdown-row.is-muted {
  color: var(--text-on-dark-subtle);
}

.breakdown-row.is-muted strong {
  color: var(--text-on-dark-subtle);
  font-weight: 600;
}

/* Live Homeowner Inspection Lead Preview Card */
.lead-preview-card {
  background: var(--charcoal-deep);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lead-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--slate-border);
}

.lead-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(46, 158, 110, 0.22);
}

.lead-time {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-on-dark-subtle);
}

.lead-card-body {
  padding: 20px;
}

.lead-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.lead-tag {
  display: inline-block;
  padding: 3px 8px;
  margin-bottom: 7px;
  background: rgba(46, 158, 110, 0.16);
  border: 1px solid rgba(46, 158, 110, 0.35);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #79DBA9;
}

.lead-caller {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.lead-budget-box {
  text-align: right;
  flex-shrink: 0;
}

.lead-budget-box span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-subtle);
}

.lead-budget-box strong {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--copper-bright);
  font-variant-numeric: tabular-nums;
}

.lead-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.lead-specs span {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.lead-route-note {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.55;
  color: var(--text-on-dark-subtle);
}

.lead-route-note code {
  color: #F4C4AC;
}

.lead-route-note strong {
  color: var(--text-on-dark);
}

.lead-card-footer {
  padding: 0 20px 20px;
}

/* ==========================================================================
   4. Comparison: Outdated Site vs. FenRoofs Authority Build
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-old {
  background: var(--limestone);
  border: 1px solid var(--line-light);
}

.compare-new {
  background: var(--charcoal);
  border: 1px solid rgba(223, 120, 70, 0.45);
  border-top: 4px solid var(--copper);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.compare-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--line-light);
}

.compare-new .compare-header {
  border-bottom-color: var(--slate-border);
}

.compare-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-badge-old {
  background: rgba(209, 73, 59, 0.11);
  color: var(--danger);
}

.compare-badge-new {
  background: rgba(194, 94, 46, 0.22);
  color: var(--copper-bright);
}

.compare-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.compare-header p {
  margin: 8px 0 0;
  font-size: 0.94rem;
  color: var(--ink-muted);
}

.compare-new .compare-header p {
  color: var(--text-on-dark-muted);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.compare-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}

.icon-x {
  background: rgba(209, 73, 59, 0.12);
  color: var(--danger);
}

.icon-check {
  background: rgba(194, 94, 46, 0.24);
  color: var(--copper-bright);
}

.compare-list strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.compare-list span {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.compare-new .compare-list span {
  color: var(--text-on-dark-muted);
}

.compare-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 32px;
  font-size: 0.88rem;
}

.compare-footer-old {
  background: #E9ECF2;
  color: var(--ink-secondary);
}

.compare-footer-old strong {
  color: var(--danger);
  font-weight: 800;
}

.compare-footer-new {
  background: var(--slate);
  border-top: 1px solid var(--slate-border);
  color: var(--text-on-dark-muted);
}

.compare-footer-new strong {
  color: var(--copper-bright);
  font-weight: 800;
}

/* ==========================================================================
   5. Transparent Flat Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1020px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 40px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.pricing-featured {
  background: var(--charcoal);
  border-color: rgba(223, 120, 70, 0.5);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.featured-ribbon {
  position: absolute;
  top: -13px;
  right: 28px;
  padding: 5px 14px;
  background: var(--copper);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pricing-tier {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pricing-tier-copper {
  color: var(--copper-bright);
}

.pricing-name {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.18;
}

.pricing-tagline {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-secondary);
}

.pricing-featured .pricing-tagline {
  color: var(--text-on-dark-muted);
}

.pricing-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}

.pricing-featured .pricing-figure {
  border-bottom-color: var(--slate-border);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-term {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.pricing-featured .price-term {
  color: var(--copper-bright);
}

.pricing-features {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.pricing-features strong {
  color: var(--ink);
}

.pricing-featured .pricing-features li {
  color: var(--text-on-dark-muted);
}

.pricing-featured .pricing-features strong {
  color: var(--white);
}

.feat-check {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--copper);
}

.pricing-featured .feat-check {
  color: var(--copper-bright);
}

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 780px;
  margin: 34px auto 0;
  padding: 16px 22px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink-secondary);
}

.pricing-guarantee svg {
  flex-shrink: 0;
  color: var(--copper);
}

.pricing-guarantee strong {
  color: var(--ink);
}

/* ==========================================================================
   6. 3-Step 24-Hour Turnkey Launch
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--limestone);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--charcoal);
  border-radius: var(--radius-sm);
  transition: border-top-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.process-step:hover {
  border-top-color: var(--copper);
  transform: translateY(-3px);
}

.step-index {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--copper);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
}

.process-step p {
  margin: 0 0 22px;
  font-size: 0.94rem;
  line-height: 1.66;
  color: var(--ink-secondary);
  flex: 1;
}

.step-tag {
  align-self: flex-start;
  padding: 5px 11px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   7. Authority FAQ Accordion
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 36px 64px;
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.faq-intro .section-intro {
  margin-top: 18px;
}

.faq-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--copper);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.faq-direct-link svg {
  color: var(--copper);
  transition: transform 0.2s var(--ease);
}

.faq-direct-link:hover {
  color: var(--copper);
}

.faq-direct-link:hover svg {
  transform: translateX(4px);
}

.faq-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

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

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.faq-trigger:hover {
  background: rgba(244, 245, 247, 0.7);
}

.faq-item.is-open .faq-trigger {
  color: var(--copper-dark);
}

.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--copper);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq-plus::before {
  width: 14px;
  height: 2px;
}

.faq-plus::after {
  width: 2px;
  height: 14px;
}

.faq-item.is-open .faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 26px 24px;
}

.faq-panel p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ==========================================================================
   8. Request Private Preview Form
   ========================================================================== */
.preview-section {
  background: linear-gradient(180deg, var(--slate) 0%, var(--charcoal) 100%);
  border-top: 1px solid var(--slate-border);
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px 56px;
  align-items: start;
}

.preview-copy .section-intro {
  margin-top: 20px;
}

.preview-deliverables {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.preview-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.deliv-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(194, 94, 46, 0.18);
  border: 1px solid rgba(223, 120, 70, 0.4);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--copper-bright);
  font-variant-numeric: tabular-nums;
}

.preview-deliverables strong {
  display: block;
  font-size: 0.96rem;
  color: var(--white);
}

.preview-deliverables span {
  display: block;
  margin-top: 3px;
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}

.preview-direct {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-border);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-on-dark-subtle);
}

.preview-direct a {
  font-weight: 700;
  color: var(--copper-bright);
  border-bottom: 1px solid rgba(223, 120, 70, 0.45);
}

.preview-form-card {
  padding: clamp(26px, 3.6vw, 40px);
  background: var(--charcoal-deep);
  border: 1px solid var(--slate-border);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.form-head {
  margin-bottom: 24px;
}

.form-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--white);
}

.form-head p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: var(--text-on-dark-subtle);
}

.form-alert {
  padding: 12px 15px;
  margin-bottom: 18px;
  background: rgba(209, 73, 59, 0.14);
  border: 1px solid rgba(209, 73, 59, 0.45);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: #FCA5A5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.field label span {
  color: var(--copper-bright);
}

.field label .optional-tag {
  font-weight: 500;
  color: var(--text-on-dark-subtle);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--slate);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-on-dark-subtle);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper-bright);
  box-shadow: 0 0 0 3px var(--copper-ring);
}

.field select option {
  background: var(--charcoal);
  color: var(--white);
}

.field textarea {
  resize: vertical;
  min-height: 86px;
}

.form-privacy {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-on-dark-subtle);
}

/* Success State */
.form-success {
  text-align: left;
}

.success-badge {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 158, 110, 0.16);
  border: 1px solid rgba(46, 158, 110, 0.42);
  color: #79DBA9;
}

.form-success h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--white);
}

.success-lead {
  margin: 10px 0 20px;
  font-size: 0.93rem;
  color: var(--text-on-dark-muted);
}

.success-summary {
  padding: 16px 18px;
  margin-bottom: 20px;
  background: var(--slate);
  border: 1px solid var(--slate-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-on-dark);
  white-space: pre-line;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-reset {
  display: block;
  margin: 16px auto 0;
  padding: 6px 12px;
  background: transparent;
  border: none;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-on-dark-subtle);
  text-decoration: underline;
}

.success-reset:hover {
  color: var(--white);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--charcoal-deep);
  border-top: 1px solid var(--slate-border);
  color: var(--text-on-dark-muted);
  padding: 64px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.75fr);
  gap: 36px 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--slate-border);
}

.footer-desc {
  margin: 18px 0 0;
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-on-dark-subtle);
}

.footer-links-col h4 {
  margin: 0 0 16px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  transition: color 0.2s var(--ease);
}

.footer-links-col a:hover {
  color: var(--copper-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-on-dark-subtle);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom code {
  color: var(--text-on-dark-muted);
}

/* ==========================================================================
   Scroll Reveals (Progressive Enhancement)
   ========================================================================== */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Responsive Refinements
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

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

  .hero-spec-badge {
    display: none;
  }

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

  .authority-item:nth-child(odd) {
    padding-left: 0;
  }

  .authority-item:nth-child(even) {
    border-right: none;
    padding-right: 0;
  }

  .authority-item:nth-child(1),
  .authority-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

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

  .estimator-layout,
  .preview-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .estimator-output,
  .faq-intro {
    position: static;
  }
}

@media (max-width: 820px) {
  .split-header,
  .comparison-grid,
  .pricing-grid,
  .process-grid,
  .footer-top,
  .control-row-2 {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-media img {
    object-position: 60% 35%;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(17, 19, 24, 0.72) 0%, rgba(17, 19, 24, 0.78) 54%, rgba(17, 19, 24, 0.96) 100%);
  }

  .material-grid,
  .toggle-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .estimate-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-identity {
    flex-direction: column;
  }

  .lead-budget-box {
    text-align: left;
  }

  .header-actions .btn-copper {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .authority-grid {
    grid-template-columns: 1fr;
  }

  .authority-item {
    padding: 16px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .segment-group {
    grid-template-columns: 1fr;
  }

  .estimate-kpis {
    grid-template-columns: 1fr;
  }

  .compare-header,
  .compare-list,
  .compare-footer {
    padding-inline: 22px;
  }

  .faq-trigger,
  .faq-panel {
    padding-inline: 20px;
  }
}
