:root {
  --ink: #10231f;
  --muted: #50645d;
  --paper: #fbfaf4;
  --panel: #ffffff;
  --mist: #eef5f0;
  --line: #d8e3dc;
  --deep: #0b4a3f;
  --leaf: #2b7c63;
  --sun: #e4b85d;
}

* {
  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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, white);
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 68% 30%, var(--sun) 0 16%, transparent 17%), var(--deep);
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  min-height: calc(100vh - 74px);
  padding: clamp(24px, 4vw, 46px) clamp(20px, 5vw, 64px) clamp(34px, 5vw, 56px);
}

.hero-intro {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--leaf);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: .96;
}

h1 {
  max-width: 980px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
}

h3 {
  font-size: clamp(28px, 4vw, 44px);
}

.lead,
.section-heading p,
.works-bridge p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.lead {
  max-width: 820px;
  margin: 0;
}

.check-card,
.output-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(16, 35, 31, .12);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.life-hero-image,
.life-story-card {
  margin: 0;
}

.life-hero-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(16, 35, 31, .12);
}

.life-hero-image img {
  display: block;
  width: 100%;
  height: clamp(420px, 56vh, 640px);
  object-fit: cover;
}

.life-hero-image figcaption {
  position: absolute;
  right: clamp(14px, 2.5vw, 30px);
  bottom: clamp(14px, 2.5vw, 30px);
  display: grid;
  gap: 4px;
  width: min(520px, calc(100% - 28px));
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(16, 35, 31, .72);
  color: white;
  line-height: 1.3;
  backdrop-filter: blur(16px);
}

.life-hero-image figcaption strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

.life-hero-image figcaption span {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
}

.check-card {
  padding: 28px;
}

.check-card h2 {
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.form-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

input {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-prompts button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  color: var(--deep);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: var(--deep);
  background: var(--deep);
  color: white;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.section {
  padding: clamp(62px, 8vw, 106px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 34px;
}

.check-output-section {
  background: var(--mist);
}

.check-shell {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, .72fr);
  gap: 24px;
  align-items: start;
}

.output-card {
  max-width: 920px;
  padding: 30px;
}

.output-card h3 {
  margin-bottom: 14px;
}

.output-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.output-row {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.output-row span {
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.life-image-section {
  background: var(--panel);
}

.actual-surface-section {
  background: var(--paper);
}

.actual-surface-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: stretch;
}

.actual-surface-card {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 48px rgba(16, 35, 31, .08);
}

.actual-surface-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: top center;
}

.actual-surface-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.actual-surface-card strong {
  font-size: 20px;
}

.actual-surface-card span {
  color: var(--muted);
  line-height: 1.45;
}

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

.life-story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 20px 48px rgba(16, 35, 31, .08);
}

.life-story-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.life-story-card figcaption {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.life-story-card strong {
  font-size: 19px;
}

.life-story-card span {
  color: var(--muted);
  line-height: 1.45;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

.route-card {
  min-height: 300px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.route-card span {
  color: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-card h3 {
  margin: 52px 0 14px;
  font-size: 31px;
}

.route-card p {
  color: var(--muted);
  line-height: 1.5;
}

.route-card strong {
  display: block;
  margin-top: 22px;
  color: var(--deep);
}

.works-bridge {
  display: grid;
  grid-template-columns: minmax(0, .9fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--deep);
  color: white;
}

.works-bridge .eyebrow,
.works-bridge p {
  color: rgba(255, 255, 255, .78);
}

.works-bridge .button.primary {
  border-color: white;
  background: white;
  color: var(--deep);
}

.mobile-action-bar {
  display: none;
}

@media (max-width: 980px) {
  body {
    padding-bottom: 72px;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .hero-intro,
  .check-shell,
  .works-bridge {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .actual-surface-grid,
  .life-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .mobile-action-bar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: .85fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 250, 244, .94);
    box-shadow: 0 18px 50px rgba(16, 35, 31, .18);
    backdrop-filter: blur(14px);
  }

  .mobile-action-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-action-bar a.primary {
    border-color: var(--deep);
    background: var(--deep);
    color: white;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .hero {
    padding-top: 34px;
    gap: 18px;
  }

  .life-hero-image img {
    height: 315px;
  }

  .life-hero-image figcaption {
    position: static;
    width: auto;
    border: 0;
    background: var(--deep);
  }

  .life-image-grid {
    grid-template-columns: 1fr;
  }

  .actual-surface-grid {
    grid-template-columns: 1fr;
  }

  .actual-surface-card img {
    min-height: 240px;
  }

  .life-story-card figcaption {
    min-height: 0;
  }
}
