:root {
  --blue: #0878d8;
  --blue-dark: #0468bd;
  --blue-soft: #d9efff;
  --green: #16b86a;
  --lime: #b3f523;
  --ink: #0f1b2d;
  --muted: #647386;
  --line: #dce6ef;
  --surface: #ffffff;
  --page: #f7fbff;
  --tint: #eff7ff;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 8px 24px rgba(15, 27, 45, 0.04);
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #38a0ff;
  --blue-dark: #167ee6;
  --blue-soft: rgba(56, 160, 255, 0.16);
  --green: #35d58a;
  --ink: #eef6ff;
  --muted: #a6b5c8;
  --line: #24364d;
  --surface: #111d2b;
  --page: #07111f;
  --tint: #0b1727;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.18), 0 14px 34px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family:
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.wrap {
  width: min(100% - 40px, 1040px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 252, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .site-header {
  background: rgba(7, 17, 31, 0.9);
}

.nav {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: white;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(8, 120, 216, 0.22);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-mark .brand-bolt {
  fill: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(8, 120, 216, 0.16);
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(8, 120, 216, 0.22);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-small {
  min-height: 42px;
  padding-inline: 22px;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  justify-self: end;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.theme-toggle:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun-icon,
:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

.button-secondary,
.button-ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
  box-shadow: none;
}

.button-secondary:hover,
.button-ghost:hover {
  background: #f8fbfe;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.07);
}

:root[data-theme="dark"] .button-secondary,
:root[data-theme="dark"] .button-ghost {
  background: #0b1727;
}

:root[data-theme="dark"] .button-secondary:hover,
:root[data-theme="dark"] .button-ghost:hover {
  background: #14243a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.button-light {
  background: white;
  color: var(--ink);
  border-color: white;
  box-shadow: 0 10px 24px rgba(15, 27, 45, 0.12);
}

.button-light:hover {
  background: #f5fbff;
  color: var(--ink);
}

.hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(
      circle at 79% 7%,
      rgba(158, 215, 255, 0.7),
      transparent 28%
    ),
    linear-gradient(180deg, #f9fdff 0%, #f6fbff 100%);
  border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 79% 7%, rgba(56, 160, 255, 0.2), transparent 32%),
    linear-gradient(180deg, #081322 0%, #07111f 100%);
}

.hero-inner {
  padding: 96px 0 108px;
}

.status-pill,
.emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  padding: 6px 14px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 27, 45, 0.04);
  font-size: 13px;
  font-weight: 750;
}

:root[data-theme="dark"] .status-pill {
  background: #0f1b2d;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(22, 184, 106, 0.12);
}

.hero h1,
.intake-copy h1 {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--blue);
}

.hero-copy {
  max-width: 680px;
  margin: 28px auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.trust-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 38px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
  font-weight: 650;
}

.trust-list span,
.price-card li::before {
  color: var(--green);
}

.section {
  padding: 78px 0 84px;
  border-bottom: 1px solid var(--line);
}

.section-tint {
  background: var(--tint);
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2,
.cta-panel h2 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.cta-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.step-card,
.price-card,
.promise-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 168px;
  padding: 24px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3,
.step-card h3,
.price-card h3,
.promise-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
}

.service-card p,
.step-card p,
.price-card p,
.promise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.step-card {
  min-height: 148px;
  padding: 28px 24px;
}

.step-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 14px;
}

.price-card {
  position: relative;
  min-height: 304px;
  padding: 28px 24px;
}

.price-card.popular {
  border: 2px solid var(--blue);
  box-shadow: 0 14px 30px rgba(8, 120, 216, 0.1);
}

:root[data-theme="dark"] .price-card.popular {
  box-shadow: 0 18px 38px rgba(56, 160, 255, 0.12);
}

.popular-label {
  position: absolute;
  top: -14px;
  left: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.price {
  margin: 18px 0 18px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  font-weight: 850;
}

.price-card ul {
  display: grid;
  gap: 10px;
  min-height: 94px;
  margin: 0 0 22px;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.price-card li {
  display: flex;
  gap: 10px;
}

.price-card li::before {
  content: "✓";
  flex: 0 0 auto;
  font-weight: 800;
}

.price-card .button {
  width: 100%;
  min-height: 42px;
  font-size: 14px;
}

.cta-section {
  padding: 84px 0 92px;
}

.cta-panel {
  min-height: 236px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 42px 24px;
  text-align: center;
  color: white;
  background: linear-gradient(180deg, var(--green) 0%, var(--lime) 100%);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(8, 120, 216, 0.16);
}

.cta-panel h2,
.cta-panel p {
  color: white;
  text-shadow: 2px 2px 7px rgba(0, 0, 0, 0.4);
}

.intake-main {
  min-height: calc(100vh - 180px);
}

.faq-main {
  min-height: calc(100vh - 180px);
}

.faq-hero {
  padding: 96px 0 56px;
  text-align: center;
}

.faq-hero h1 {
  max-width: 760px;
  margin: 0 auto 18px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.faq-hero > p:not(.emergency-pill) {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 19px;
}

.faq-section {
  padding-top: 48px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-list details[open] {
  border-color: rgba(8, 120, 216, 0.36);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .faq-list details[open] {
  border-color: rgba(56, 160, 255, 0.44);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-size: 20px;
  line-height: 1;
  transition: transform 220ms ease, background-color 180ms ease;
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  transition: height 260ms ease;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-list details,
  .faq-list summary::after,
  .faq-answer {
    transition: none;
    height: auto !important;
  }
}

.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(300px, 470px);
  gap: 56px;
  align-items: start;
  padding: 112px 0 90px;
}

.intake-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 58px);
}

.intake-copy > p:not(.emergency-pill) {
  max-width: 610px;
  margin: 0 0 54px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.emergency-pill {
  color: var(--blue);
  background: var(--blue-soft);
  border: 0;
}

.emergency-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.repair-form {
  display: grid;
  gap: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.access-fields {
  display: grid;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section-heading h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.form-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

label {
  display: grid;
  gap: 8px;
  color: #27364a;
  font-weight: 800;
  font-size: 15px;
}

:root[data-theme="dark"] label {
  color: #dbe9f8;
}

label small {
  margin-top: -8px;
  color: var(--muted);
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  box-shadow: 0 1px 0 rgba(15, 27, 45, 0.02);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background: #0b1727;
}

input::placeholder,
textarea::placeholder {
  color: #9aa6b5;
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #72849a;
}

textarea {
  min-height: 154px;
  padding-top: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 120, 216, 0.12);
}

.form-button {
  justify-self: start;
  min-width: 294px;
}

.form-note,
.form-success,
.form-error {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.form-success {
  padding: 14px 16px;
  color: #075f37;
  background: #e6f8ef;
  border: 1px solid #bce8d2;
  border-radius: var(--radius);
  font-weight: 750;
}

.form-error {
  padding: 14px 16px;
  color: #8a1f1f;
  background: #fff0f0;
  border: 1px solid #ffd0d0;
  border-radius: var(--radius);
  font-weight: 750;
}

:root[data-theme="dark"] .form-error {
  color: #ffd6d6;
  background: rgba(178, 38, 38, 0.14);
  border-color: rgba(255, 116, 116, 0.32);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.promise-stack {
  display: grid;
  gap: 20px;
  padding-top: 66px;
}

.promise-card {
  min-height: 176px;
  padding: 26px 30px;
}

.promise-card h2 {
  font-size: 20px;
}

.promise-card p {
  font-size: 16px;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .card-grid,
  .step-grid,
  .pricing-grid,
  .intake-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .promise-stack {
    padding-top: 0;
  }

  .intake-layout {
    gap: 38px;
    padding-top: 72px;
  }

  .faq-layout {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 28px, 1040px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: 64px;
    gap: 12px;
  }

  .brand span:last-child {
    font-size: 15px;
  }

  .button-small {
    min-height: 38px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 66px 0 74px;
  }

  .faq-hero {
    padding: 66px 0 34px;
  }

  .hero h1,
  .intake-copy h1,
  .faq-hero h1 {
    font-size: 42px;
  }

  .hero-copy,
  .intake-copy > p:not(.emergency-pill),
  .faq-hero > p:not(.emergency-pill) {
    font-size: 17px;
  }

  .hero-actions,
  .hero-actions .button,
  .form-button {
    width: 100%;
  }

  .trust-list {
    align-items: center;
    gap: 12px;
    flex-direction: column;
  }

  .section {
    padding: 58px 0 64px;
  }

  .section-heading h2,
  .cta-panel h2 {
    font-size: 30px;
  }

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

  .intake-copy > p:not(.emergency-pill) {
    margin-bottom: 36px;
  }

  .footer-inner {
    min-height: 118px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 28px 0;
  }

  .footer-inner p {
    margin: 0;
  }
}
