:root {
  --ink: #16211c;
  --muted: #607068;
  --line: #dce5df;
  --paper: #f8faf6;
  --white: #ffffff;
  --green: #1f7a5a;
  --green-dark: #14563f;
  --gold: #e0a72f;
  --coral: #d95f4c;
  --blue: #2f6f9f;
  --shadow: 0 20px 60px rgba(22, 33, 28, 0.12);
}

* {
  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;
  line-height: 1.5;
}

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

.site-header {
  align-items: center;
  background: rgba(248, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.trust-row,
.hero-actions,
.admin-actions {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 800;
  gap: 10px;
}

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

.nav {
  color: var(--muted);
  gap: 24px;
  font-size: 0.94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  min-height: calc(100vh - 68px);
}

.hero-copy {
  align-self: center;
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

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

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

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  margin-bottom: 0;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.button {
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

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

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.trust-row {
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-visual {
  align-items: center;
  background:
    linear-gradient(rgba(12, 41, 31, 0.25), rgba(12, 41, 31, 0.55)),
    url("https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1400&q=80");
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
}

.progress-panel,
.tool-panel,
.plan-output,
.application-form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-panel {
  max-width: 430px;
  padding: 24px;
  width: 100%;
}

.panel-topline,
.focus-card,
.footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.panel-topline {
  margin-bottom: 12px;
}

.progress-track {
  background: #e7eee9;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--green), var(--gold));
  display: block;
  height: 100%;
}

.focus-card {
  align-items: flex-start;
  background: #f1f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 14px;
  justify-content: flex-start;
  margin: 22px 0;
  padding: 18px;
}

.focus-card p {
  color: var(--muted);
  margin: 4px 0 0;
}

.dot {
  background: var(--coral);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 12px;
  margin-top: 6px;
  width: 12px;
}

.mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
}

.mini-grid span {
  background: #edf3ef;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 9px 4px;
  text-align: center;
}

.mini-grid .done {
  background: var(--green);
  color: var(--white);
}

.outcomes {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.outcomes div {
  padding: 28px clamp(20px, 4vw, 48px);
}

.outcomes p,
.steps p,
.price-card li,
.section-heading > p:not(.eyebrow),
.plan-output p,
.lead-card p {
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

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

.steps,
.price-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.steps article,
.price-card,
.lead-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.steps span {
  color: var(--blue);
  display: block;
  font-weight: 900;
  margin-bottom: 36px;
}

.plan-builder,
.pricing {
  background: #eef5f1;
}

.builder-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 380px) 1fr;
}

.tool-panel,
.plan-output,
.application-form {
  padding: 24px;
}

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

input,
select,
textarea {
  background: var(--white);
  border: 1px solid #cddad2;
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 12px;
  width: 100%;
}

.honeypot {
  display: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.plan-output {
  min-height: 268px;
}

.plan-output ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  position: relative;
}

.price-card.featured {
  border-color: var(--green);
  box-shadow: var(--shadow);
}

.badge {
  color: var(--coral);
  font-weight: 900;
  margin-bottom: 12px;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
}

.apply-section {
  background: var(--white);
}

.application-form {
  background: var(--paper);
  box-shadow: none;
  max-width: 980px;
}

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

.form-status {
  color: var(--green);
  font-weight: 800;
  margin: 14px 0 0;
}

.admin-section {
  display: none;
}

.admin-section.visible {
  display: block;
}

.admin-actions {
  gap: 10px;
  margin-bottom: 18px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.lead-card {
  box-shadow: none;
}

.lead-card strong {
  display: block;
  margin-bottom: 4px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px clamp(20px, 5vw, 72px);
}

.thanks-section {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 68px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.thanks-copy {
  max-width: 820px;
}

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

  .hero,
  .builder-layout,
  .outcomes,
  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 480px;
  }

  .steps span {
    margin-bottom: 18px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .hero-copy,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

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

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