:root {
  --bg: #f4f6f8;
  --ink: #17202a;
  --muted: #5c6876;
  --line: #d8e0ea;
  --surface: #ffffff;
  --surface-2: #eef4f1;
  --green: #116466;
  --green-dark: #0b4f51;
  --orange: #b84a27;
  --blue: #315b96;
  --night: #101820;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

main { min-width: 320px; }

.hero {
  min-height: 88vh;
  display: grid;
  align-content: start;
  padding: 22px clamp(20px, 6vw, 84px) 72px;
  background:
    linear-gradient(90deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.94) 36%, rgba(244, 246, 248, 0.58) 66%, rgba(244, 246, 248, 0.22) 100%),
    url("assets/guardrails-hero.png") center right / cover no-repeat;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
}

.brand,
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand {
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.hero-inner {
  max-width: 760px;
  padding-top: clamp(72px, 12vh, 136px);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary,
button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.button.secondary { background: rgba(255, 255, 255, 0.66); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 2px;
  min-height: 102px;
  align-content: center;
  padding: 18px clamp(18px, 4vw, 42px);
  background: #fff;
}

.trust-strip strong {
  font-size: 22px;
}

.trust-strip span {
  color: var(--muted);
}

.section {
  padding: 64px clamp(20px, 6vw, 84px);
}

.section-head {
  max-width: 840px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-head p,
.offer-card p,
.proof-panel p,
.pain-grid p,
.work-card p {
  color: var(--muted);
}

.portfolio {
  background: #ffffff;
}

.portfolio-grid,
.pain-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card,
.pain-grid article,
.offer-card,
.proof-panel,
form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.07);
}

.work-card,
.pain-grid article,
.offer-card {
  padding: 18px;
}

.work-window {
  height: 118px;
  margin-bottom: 16px;
  border: 1px solid #cfd9e5;
  border-radius: 8px;
  background: linear-gradient(180deg, #152330 0 28px, #f7fafc 28px);
  overflow: hidden;
  position: relative;
}

.work-window > span {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff6f61;
}

.work-window > span:nth-child(1) { left: 14px; }
.work-window > span:nth-child(2) { left: 30px; background: #f4c430; }
.work-window > span:nth-child(3) { left: 46px; background: #2fbf71; }

.work-lines {
  display: grid;
  gap: 10px;
  padding: 48px 18px 0;
}

.work-lines i {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: #dce7f2;
}

.work-lines i:nth-child(2) {
  width: 74%;
  background: #edf2f7;
}

.work-lines i:nth-child(3) {
  width: 56%;
  background: #e7f2ee;
}

.work-card h3,
.pain-grid h3,
.offer-card h3,
.proof-panel h3 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.2;
}

.work-card a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.score {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--green-dark) !important;
  font-weight: 900;
}

.offer-line {
  padding: 12px;
  border-left: 4px solid var(--orange);
  background: #fff7f2;
  color: #53301f;
}

dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

dd { margin: 0; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 28px;
  align-items: start;
}

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

.steps li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.proof-panel {
  padding: 22px;
}

.intake {
  background: var(--night);
  color: #f8fafc;
}

.intake .section-head p {
  color: #cbd5e1;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 940px;
  padding: 18px;
  color: var(--ink);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

textarea,
label:has(textarea) {
  grid-column: 1 / -1;
}

.hidden { display: none; }

.thanks {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 48px clamp(20px, 8vw, 100px);
}

.thanks h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.05;
}

.thanks p {
  max-width: 640px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero {
    min-height: 82vh;
    background:
      linear-gradient(180deg, rgba(244, 246, 248, 0.98) 0%, rgba(244, 246, 248, 0.93) 58%, rgba(244, 246, 248, 0.76) 100%),
      url("assets/guardrails-hero.png") center bottom / cover no-repeat;
  }

  .trust-strip,
  .split,
  .portfolio-grid,
  .pain-grid,
  .offer-grid,
  form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: 78vh;
    padding-bottom: 44px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
  }

  .hero-inner {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .lead {
    font-size: 17px;
  }

  .steps li {
    grid-template-columns: 1fr;
  }

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