:root {
  --bg: #edf4ff;
  --bg-strong: #e3edfb;
  --panel: rgba(252, 254, 255, 0.74);
  --panel-strong: rgba(252, 254, 255, 0.92);
  --text: #0b1220;
  --muted: #46556c;
  --accent: #2457ff;
  --accent-soft: #60a5fa;
  --line: rgba(11, 18, 32, 0.08);
  --line-strong: rgba(166, 199, 255, 0.42);
  --shadow:
    0 28px 88px rgba(19, 44, 112, 0.10),
    0 18px 42px rgba(11, 18, 32, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 255, 255, 0.92), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(96, 165, 250, 0.20), transparent 32%),
    radial-gradient(circle at 18% 88%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 42%, var(--bg-strong) 100%);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(201, 216, 241, 0.05) 0,
      rgba(201, 216, 241, 0.05) 1px,
      transparent 1px,
      transparent 120px
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 32%);
  pointer-events: none;
  z-index: 0;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 40rem;
  height: 40rem;
  border-radius: 999px;
  filter: blur(84px);
  pointer-events: none;
  opacity: 0.38;
  z-index: 0;
}

.ambient-one {
  top: -12rem;
  right: -9rem;
  background: rgba(96, 165, 250, 0.22);
}

.ambient-two {
  left: -14rem;
  bottom: -12rem;
  background: rgba(255, 255, 255, 0.56);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.35rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-height: 2.8rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
}

.brandmark:focus-visible {
  outline: 2px solid rgba(36, 87, 255, 0.40);
  outline-offset: 6px;
  border-radius: 16px;
}

.brandmark-logo {
  display: block;
  width: clamp(11.25rem, 18vw, 16rem);
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.88;
  transition:
    opacity 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.site-nav a {
  padding: 0.48rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  background: rgba(252, 254, 255, 0.72);
  border-color: var(--line-strong);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  opacity: 1;
}

.page-shell {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero-grid,
.estimate-grid,
.pricing-columns,
.service-matrix,
.insight-grid {
  display: grid;
  gap: 1.35rem;
}

.hero-grid {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.hero-copy {
  padding: 2.4rem 0.15rem 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(166, 199, 255, 0.62);
  color: var(--accent);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.2rem);
  margin-top: 1rem;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-lead,
.content-stack p,
.estimate-panel,
.insight-card p {
  color: var(--muted);
  line-height: 1.68;
}

.hero-lead {
  max-width: 64ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.hero-pills span {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-panel,
.estimate-panel,
.insight-card,
.content-stack,
.pricing-columns article,
.service-matrix article {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-panel,
.content-stack {
  padding: 1.45rem;
}

.intake-form,
.email-copy-form {
  display: grid;
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-row .grow-2 {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 0.45rem;
}

label span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #33465d;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(36, 87, 255, 0.58);
  box-shadow:
    0 0 0 4px rgba(36, 87, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #2457ff 0%, #1737bd 100%);
  color: #ffffff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  box-shadow:
    0 20px 38px rgba(36, 87, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 42px rgba(36, 87, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

button:focus-visible {
  outline: 2px solid rgba(36, 87, 255, 0.42);
  outline-offset: 3px;
}

.checkbox-line {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
}

.checkbox-line input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-status {
  min-height: 1.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.insight-grid {
  margin-top: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card,
.pricing-columns article,
.service-matrix article {
  padding: 1.35rem;
}

.insight-index,
.quote-eyebrow {
  font-size: 0.84rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
}

.content-stack {
  display: grid;
  gap: 1rem;
}

.service-matrix,
.pricing-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.estimate-shell {
  display: grid;
  gap: 1.35rem;
}

.estimate-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.status-orb {
  min-width: 8rem;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(36, 87, 255, 0.10);
  border: 1px solid rgba(166, 199, 255, 0.55);
  color: var(--accent);
  font-weight: 700;
}

.estimate-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.estimate-panel {
  padding: 1.35rem;
}

.stage-feed {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.stage-feed li {
  color: var(--muted);
}

.quote-placeholder {
  min-height: 16rem;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(11, 18, 32, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  color: var(--muted);
  background: rgba(247, 251, 255, 0.62);
}

.quote-card {
  display: grid;
  gap: 1rem;
}

.quote-band {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.quote-band strong {
  font-size: 1.45rem;
  color: var(--text);
}

.hidden {
  display: none;
}

.site-footer {
  width: min(1220px, calc(100vw - 2rem));
  margin: 0 auto 2.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(201, 216, 241, 0.42);
}

.site-footer div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .estimate-grid,
  .service-matrix,
  .pricing-columns,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .estimate-header {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100vw - 1rem, 100%);
  }

  .site-header {
    padding-top: 1.1rem;
  }

  .brandmark-logo {
    width: clamp(10rem, 54vw, 14rem);
  }

  .hero-panel,
  .content-stack,
  .estimate-panel {
    padding: 1rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .field-row .grow-2 {
    grid-column: span 1;
  }

  .form-actions {
    flex-direction: column;
    align-items: start;
  }

  h1 {
    max-width: none;
  }
}
