:root {
  --ink: #13201d;
  --muted: #5a6b65;
  --deep: #12332e;
  --deep-2: #0a2421;
  --paper: #f8f5ef;
  --surface: #ffffff;
  --line: #d9ded8;
  --gold: #f2b84b;
  --green: #5fbfa4;
  --blue: #7fb4c6;
  --shadow: 0 22px 60px rgba(18, 32, 29, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 245, 239, 0.94);
  border-bottom: 1px solid rgba(217, 222, 216, 0.75);
  backdrop-filter: blur(18px);
  animation: headerDrop 620ms ease both;
}

.brand img {
  width: clamp(190px, 24vw, 260px);
}

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

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--deep);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: var(--paper);
  background: var(--deep);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 82svh;
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 124px) clamp(20px, 6vw, 72px);
  overflow: hidden;
  color: var(--paper);
}

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

.hero-media {
  background-image: url("assets/hero-kitchen.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroImageDrift 1400ms ease-out both;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 36, 33, 0.88) 0%, rgba(10, 36, 33, 0.66) 48%, rgba(10, 36, 33, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 36, 33, 0.55), rgba(10, 36, 33, 0.16));
}

.hero-content {
  width: min(760px, 100%);
}

.hero-content .eyebrow,
.hero-content h1,
.hero-copy,
.hero-actions,
.hero-proof {
  animation: fadeUp 720ms ease both;
}

.hero-content h1 {
  animation-delay: 100ms;
}

.hero-copy {
  animation-delay: 190ms;
}

.hero-actions {
  animation-delay: 290ms;
}

.hero-proof {
  animation-delay: 390ms;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.52;
  color: rgba(248, 245, 239, 0.9);
}

.hero-actions,
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(18, 32, 29, 0.18);
}

.button.primary {
  color: var(--deep-2);
  background: var(--gold);
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(248, 245, 239, 0.42);
  background: rgba(248, 245, 239, 0.1);
}

.button.dark {
  color: var(--paper);
  background: var(--deep);
}

.button.full {
  width: 100%;
}

.hero-proof {
  gap: 0;
  width: min(680px, 100%);
  margin: 42px 0 0;
  border: 1px solid rgba(248, 245, 239, 0.24);
  background: rgba(10, 36, 33, 0.42);
  backdrop-filter: blur(10px);
}

.hero-proof div {
  flex: 1 1 180px;
  padding: 18px;
  border-right: 1px solid rgba(248, 245, 239, 0.18);
  transition: background-color 180ms ease;
}

.hero-proof div:hover {
  background: rgba(248, 245, 239, 0.08);
}

.hero-proof div:last-child {
  border-right: 0;
}

.hero-proof dt {
  font-size: 1.55rem;
  font-weight: 950;
}

.hero-proof dd {
  margin: 4px 0 0;
  color: rgba(248, 245, 239, 0.76);
  line-height: 1.35;
}

.section {
  padding: clamp(70px, 9vw, 112px) clamp(20px, 6vw, 72px);
}

.section-head {
  width: min(900px, 100%);
  margin: 0 auto 38px;
  text-align: center;
}

.section-head.compact {
  margin-left: 0;
  text-align: left;
}

.section-head p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.feature-grid,
.pricing-grid,
.trust-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.price-card,
.trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(18, 32, 29, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feature-card:hover,
.price-card:hover,
.trust-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(95, 191, 164, 0.6);
  box-shadow: 0 18px 42px rgba(18, 32, 29, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--deep);
  background: rgba(95, 191, 164, 0.24);
  border-radius: 50%;
  font-weight: 950;
  transition: transform 220ms ease, background-color 220ms ease;
}

.feature-card:hover .feature-icon {
  transform: rotate(-4deg) scale(1.08);
  background: rgba(242, 184, 75, 0.26);
}

.feature-card p,
.price-card p,
.trust-grid p,
.pipeline p,
.homeowner-band p,
.apply-copy p,
.lead-form label {
  color: var(--muted);
  line-height: 1.58;
}

.process-section {
  color: var(--paper);
  background: var(--deep);
}

.process-section .eyebrow,
.apply-section .eyebrow {
  color: var(--green);
}

.process-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pipeline {
  display: grid;
  gap: 12px;
}

.pipeline article {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(248, 245, 239, 0.16);
  background: rgba(248, 245, 239, 0.08);
  border-radius: var(--radius);
  transition: transform 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.pipeline article:hover {
  transform: translateX(6px);
  border-color: rgba(242, 184, 75, 0.34);
  background: rgba(248, 245, 239, 0.12);
}

.pipeline span {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--gold);
  font-weight: 950;
  box-shadow: 0 0 0 0 rgba(242, 184, 75, 0.45);
  animation: softPulse 2600ms ease-in-out infinite;
}

.pipeline h3 {
  grid-column: 2;
  margin-bottom: 6px;
}

.pipeline p {
  grid-column: 2;
  margin-bottom: 0;
  color: rgba(248, 245, 239, 0.78);
}

.pricing-section {
  background: #eef4f1;
}

.price-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  color: var(--paper);
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.price-card.featured:hover {
  transform: translateY(-13px);
}

.plan-label {
  color: var(--muted);
  font-weight: 900;
}

.featured .plan-label,
.featured p {
  color: rgba(248, 245, 239, 0.78);
}

.price-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: 0;
}

.text-link {
  margin-top: auto;
  color: var(--deep);
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 180ms ease, text-underline-offset 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  text-underline-offset: 8px;
}

.featured .text-link {
  color: var(--gold);
}

.homeowner-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(34px, 5vw, 52px) clamp(20px, 6vw, 72px);
  color: var(--deep);
  background: var(--gold);
  overflow: hidden;
}

.homeowner-band .eyebrow {
  color: var(--deep);
}

.homeowner-band h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.homeowner-band p {
  margin-bottom: 0;
  color: rgba(18, 32, 29, 0.82);
}

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

.trust-grid article {
  min-height: 190px;
  border-top: 5px solid var(--blue);
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(72px, 9vw, 118px) clamp(20px, 6vw, 72px);
  color: var(--paper);
  background: var(--deep-2);
}

.apply-copy {
  align-self: start;
}

.apply-copy h2 {
  max-width: 10ch;
}

.apply-copy p {
  max-width: 600px;
  color: rgba(248, 245, 239, 0.78);
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(248, 245, 239, 0.86);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

.lead-form {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(248, 245, 239, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.lead-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(18, 32, 29, 0.22);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--deep);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfb;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 184, 75, 0.55);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(95, 191, 164, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

.reveal.reveal-stagger {
  opacity: 1;
  transform: none;
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageDrift {
  from {
    opacity: 0;
    transform: scale(1.09);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 184, 75, 0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(242, 184, 75, 0.12);
  }
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 72px);
  color: rgba(248, 245, 239, 0.75);
  background: #081a18;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 950;
}

.footer-brand img {
  width: 36px;
  height: 36px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 980px) {
  .feature-grid,
  .pricing-grid,
  .trust-grid,
  .process-layout,
  .apply-section,
  .homeowner-band {
    grid-template-columns: 1fr;
  }

  .homeowner-band {
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 68px;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
    animation: fadeUp 180ms ease both;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: 84svh;
    padding-top: 70px;
    padding-bottom: 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 36, 33, 0.9), rgba(10, 36, 33, 0.56)),
      linear-gradient(0deg, rgba(10, 36, 33, 0.58), rgba(10, 36, 33, 0.22));
  }

  .hero-proof div {
    flex-basis: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(248, 245, 239, 0.18);
  }

  .hero-proof div:last-child {
    border-bottom: 0;
  }

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

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

@media (max-width: 430px) {
  .brand img {
    width: 178px;
  }

  .button {
    width: 100%;
  }

  .pipeline article {
    grid-template-columns: 1fr;
  }

  .pipeline span,
  .pipeline h3,
  .pipeline p {
    grid-column: 1;
  }

  .pipeline span {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
