:root {
  color-scheme: light;
  --ink: #202427;
  --muted: #5b646b;
  --line: #d7e0df;
  --paper: #fbfaf7;
  --white: #ffffff;
  --teal: #1f6f60;
  --teal-dark: #164f45;
  --yellow: #f3b43f;
  --clay: #bd6f4a;
  --blue: #325c7c;
  --shadow: 0 18px 50px rgba(22, 40, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(215, 224, 223, 0.8);
  display: flex;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--teal);
  border-radius: 6px;
  color: var(--white);
  display: inline-flex;
  font-size: 12px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  min-height: 84vh;
  overflow: hidden;
  padding: 118px clamp(18px, 6vw, 72px) 56px;
  position: relative;
}

.hero-bg,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-bg {
  background-image: url("assets/contractor-admin-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 21, 25, 0.82) 0%, rgba(8, 21, 25, 0.68) 35%, rgba(8, 21, 25, 0.28) 66%, rgba(8, 21, 25, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 21, 25, 0.22), rgba(8, 21, 25, 0.32));
}

.hero-content {
  color: var(--white);
  max-width: 760px;
  position: relative;
  z-index: 2;
}

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

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

h1 {
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 820px;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.03;
  margin-bottom: 18px;
}

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

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.signup button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover,
.signup button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--yellow);
  box-shadow: 0 10px 30px rgba(243, 180, 63, 0.25);
  color: #1f241e;
}

.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.microcopy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-top: 16px;
}

.quick-strip {
  background: var(--teal-dark);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
}

.quick-strip div {
  background: rgba(255, 255, 255, 0.06);
  padding: 24px clamp(16px, 3vw, 42px);
}

.quick-strip strong {
  color: var(--yellow);
  display: block;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 6px;
}

.quick-strip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(56px, 8vw, 98px) clamp(18px, 6vw, 72px);
}

.split {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.section-copy .eyebrow,
.audience .eyebrow,
.faq .eyebrow,
.contrast .eyebrow,
.lead-capture .eyebrow {
  color: var(--teal);
}

.narrow {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

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

.feature-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(19, 48, 57, 0.06);
  padding: 24px;
}

.feature-grid p,
.faq-list p,
.final-cta p,
.footer p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon {
  align-items: center;
  background: #e8f3ef;
  border: 1px solid #c8ded5;
  border-radius: 8px;
  color: var(--teal-dark);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.contrast {
  background: #f2f0e8;
}

.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 38px auto 0;
  max-width: 980px;
}

.steps div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.steps strong {
  color: var(--clay);
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.steps span {
  font-weight: 800;
}

.lead-capture {
  align-items: center;
  background: var(--white);
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.signup {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.hidden {
  display: none;
}

.signup label {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 10px;
}

.signup-row {
  display: flex;
  gap: 10px;
}

.signup input {
  border: 1px solid #bbc8c6;
  border-radius: 8px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
}

.signup button {
  background: var(--teal);
  color: var(--white);
  white-space: nowrap;
}

.download-link {
  color: var(--blue);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
}

.audience {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.audience-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience-list li {
  background: #edf5f2;
  border: 1px solid #cde0da;
  border-radius: 8px;
  font-weight: 900;
  padding: 14px;
  text-align: center;
}

.articles {
  background: var(--white);
}

.article-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 34px auto 0;
  max-width: 1120px;
}

.article-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.article-grid h3 a {
  text-decoration: none;
}

.article-tag {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.text-link {
  color: var(--teal);
  display: inline-flex;
  font-weight: 900;
  margin-top: 8px;
}

.article-page {
  background: var(--paper);
}

.article-hero {
  background: #23343c;
  color: var(--white);
  padding: 118px clamp(18px, 6vw, 72px) 60px;
}

.article-hero-inner {
  max-width: 900px;
}

.article-hero h1 {
  font-size: clamp(40px, 6vw, 70px);
}

.article-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.5;
  max-width: 760px;
}

.article-layout {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 58px clamp(18px, 6vw, 72px);
}

.article-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 46px);
}

.article-body h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-top: 36px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  margin-top: 28px;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.66;
}

.article-body li {
  margin-bottom: 8px;
}

.prompt-box {
  background: #f2f0e8;
  border: 1px solid #ded8c8;
  border-radius: 8px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.article-sidebar {
  align-self: start;
  background: #edf5f2;
  border: 1px solid #cde0da;
  border-radius: 8px;
  padding: 22px;
  position: sticky;
  top: 86px;
}

.article-sidebar h2 {
  font-size: 22px;
}

.article-sidebar p {
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  background: #23343c;
  color: var(--white);
}

.faq .section-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.faq .eyebrow {
  color: var(--yellow);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 34px auto 0;
  max-width: 900px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  color: rgba(255, 255, 255, 0.78);
  margin: 14px 0 0;
}

.final-cta {
  align-items: center;
  background: var(--yellow);
  color: #1f241e;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 34px clamp(18px, 6vw, 72px);
}

.final-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0;
}

.final-cta p {
  color: rgba(31, 36, 30, 0.72);
  margin: 0;
}

.final-cta .primary {
  background: #1f241e;
  box-shadow: none;
  color: var(--white);
}

.footer {
  background: #172329;
  color: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 8px;
  padding: 26px clamp(18px, 6vw, 72px);
}

.footer p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  margin: 0;
}

code {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 2px 5px;
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding-top: 102px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 21, 25, 0.86), rgba(8, 21, 25, 0.5)),
      linear-gradient(180deg, rgba(8, 21, 25, 0.18), rgba(8, 21, 25, 0.46));
  }

  .quick-strip,
  .split,
  .lead-capture,
  .audience,
  .steps,
  .article-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

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

@media (max-width: 560px) {
  .topbar {
    height: 58px;
  }

  .hero {
    min-height: 82vh;
    padding: 88px 18px 38px;
  }

  .hero-actions,
  .signup-row {
    flex-direction: column;
  }

  .button,
  .signup button {
    width: 100%;
  }

  .quick-strip,
  .feature-grid,
  .audience-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 18px;
  }
}
