:root {
  --bg: #f4f7f3;
  --surface: #ffffff;
  --surface-2: #e9f0ec;
  --ink: #18211d;
  --muted: #5f6b64;
  --line: #d6dfd9;
  --green: #15835f;
  --green-dark: #0f5f49;
  --red: #b94935;
  --amber: #c9832c;
  --blue: #286c92;
  --graphite: #24302c;
  --shadow: 0 18px 48px rgba(20, 38, 32, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(214, 223, 217, 0.82);
  background: rgba(244, 247, 243, 0.94);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 210px; }
.brand img, .site-footer img {
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { justify-self: center; display: flex; gap: 24px; font-size: 15px; }
.main-nav a:hover, .footer-layout a:hover { border-bottom: 1px solid currentColor; }
.header-phone { color: var(--green-dark); font-weight: 900; }
.header-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 130px 0 46px;
  color: #fff;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 24, 20, 0.95) 0%, rgba(16, 24, 20, 0.74) 50%, rgba(16, 24, 20, 0.22) 100%),
    linear-gradient(0deg, rgba(16, 24, 20, 0.82) 0%, transparent 42%);
}
.hero-content { position: relative; }
.eyebrow, .section-kicker {
  margin: 0 0 14px;
  color: #80ddc2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 770px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.btn-primary { color: #fff; background: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.08); }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(980px, 100%);
  margin-top: 42px;
}
.hero-strip span {
  min-height: 72px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(8, 25, 20, 0.56);
  font-weight: 900;
}

.section { padding: 86px 0; }
.muted, .alert-band { background: var(--surface-2); }
.section-kicker { color: var(--green-dark); }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: 0; }
h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 36px); line-height: 1.14; }
h4 { margin: 0 0 12px; font-size: 18px; }
p { margin: 16px 0 0; }
.section-head { max-width: 850px; margin-bottom: 34px; }
.split, .checker-layout, .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
  gap: 54px;
  align-items: start;
}

.quick-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.quick-steps li {
  padding: 18px 18px 18px 22px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.case-tab {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}
.case-tab.is-active {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}
.case-panel {
  display: none;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1fr);
  gap: 18px;
}
.case-panel.is-active { display: grid; }
.case-copy, .action-card, .letter-card, .checker-card, .lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.case-copy { padding: 32px; }
.case-label {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.danger-note {
  margin-top: 24px;
  padding: 16px;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: #fff1ee;
  color: #7b2d20;
  font-weight: 900;
}
.action-card {
  padding: 28px;
  border-top: 5px solid var(--green);
}
.action-card ol {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding-left: 22px;
}
.action-card li::marker { color: var(--green-dark); font-weight: 900; }

.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.letter-card {
  min-height: 360px;
  padding: 26px;
}
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
}
.letter-card h3 { font-size: 22px; }
.letter-card p { color: var(--muted); }

.checker-section { background: var(--surface); }
.hint {
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
}
.hint button {
  padding: 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}
.checker-card, .lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.checker-card label, .lead-form label { display: grid; gap: 7px; font-weight: 900; }
.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.checker-card input, .lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--surface);
}
.checker-card input:focus, .lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: 3px solid rgba(21, 131, 95, .18);
  border-color: var(--green);
}
.check-result {
  min-height: 172px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-2);
}
.check-result p { margin: 0; }
.status-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.status-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 800;
}
.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.warn { background: var(--amber); }
.status-dot.bad { background: var(--red); }
.result-good { color: var(--green-dark); font-weight: 900; }
.result-warn { color: #8a571c; font-weight: 900; }
.result-bad { color: #7b2d20; font-weight: 900; }

.support-section { background: var(--graphite); color: #fff; }
.support-section .section-kicker { color: #93e2c9; }
.support-section p { color: rgba(255,255,255,.78); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-links a {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}
.lead-form { background: #f7faf8; color: var(--ink); }
.consent { grid-template-columns: 18px 1fr; align-items: start; color: var(--muted); font-size: 13px; font-weight: 400; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; padding: 0; }
.form-note { min-height: 22px; margin: 0; color: var(--green-dark); font-weight: 900; }

.site-footer { padding: 36px 0; color: rgba(255,255,255,.82); background: #101815; }
.footer-layout { display: flex; justify-content: space-between; gap: 24px; }
.footer-layout > div { max-width: 620px; }
.footer-layout img { display: inline-block; margin-right: 10px; vertical-align: middle; }
.footer-layout p { margin-top: 8px; }
.footer-layout nav { display: flex; gap: 18px; align-items: start; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav, .header-phone { display: none; }
  .split, .checker-layout, .contact-layout, .case-panel, .letter-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .site-header { padding: 10px 14px; gap: 10px; }
  .brand { min-width: 0; }
  .brand small, .header-phone { display: none; }
  .hero { min-height: 86vh; padding: 100px 0 32px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn, .input-row .btn { width: 100%; }
  .hero-strip, .input-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .case-copy, .action-card, .letter-card, .checker-card, .lead-form { padding: 20px; }
  .footer-layout, .footer-layout nav { flex-direction: column; }
}

/* Allow narrow grid cells to wrap their content on phones. */
.case-copy, .action-card { min-width: 0; overflow-wrap: anywhere; }

/* Closing plan: a sequential list in the existing light/green page theme. */
.closing-plan { scroll-margin-top: 24px; padding-block: 64px; }
.closing-plan-head { max-width: 880px; margin-bottom: 36px; }
.closing-plan-head h2 { max-width: none; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
.closing-plan-head > p:last-child { max-width: 680px; margin-bottom: 0; }
.closing-plan-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: closing-step; }
.closing-plan-step { display: grid; grid-template-columns: 54px minmax(200px, .85fr) minmax(0, 1.8fr); align-items: start; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: closing-step; }
.closing-plan-number { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #e2eee7; color: var(--green-dark); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.closing-plan-step h3 { margin: 3px 0 0; font-size: 23px; line-height: 1.25; letter-spacing: -.01em; }
.closing-plan-copy { min-width: 0; }
.closing-plan-copy > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.closing-plan-copy .closing-plan-outcome { display: flex; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.closing-plan-outcome strong { flex-shrink: 0; color: var(--green-dark); font-weight: 800; }
.closing-plan-outcome span { color: var(--ink); }
.closing-plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.closing-plan-footer p { max-width: 580px; margin: 0; color: var(--muted); font-size: 15px; }
.closing-plan-footer .btn { flex-shrink: 0; }
/* Carry the homepage green hover outline into the light article theme. */
.closing-plan-step { outline: 1px solid transparent; outline-offset: -1px; border-radius: 10px; padding-inline: 12px; margin-inline: -12px; }
.closing-plan-number { outline: 1px solid transparent; outline-offset: -1px; }
#plan .btn:focus-visible, #documents .btn:focus-visible { outline: 2px solid #009f62; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
 .closing-plan-step:hover { outline-color: #19a86c; background-color: #00c96b08; box-shadow: 0 6px 18px #0f5f4908; }
 .closing-plan-step:hover .closing-plan-number { background-color: #d4efdf; color: #075d3c; outline-color: #1caa6f; }
 main .btn:hover { outline: 1px solid #00c96b; outline-offset: 3px; box-shadow: 0 0 0 4px #00c96b12; }
}
@media (prefers-reduced-motion: no-preference) {
 .closing-plan-step { transition: outline-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
 .closing-plan-number { transition: outline-color .25s ease, background-color .25s ease, color .25s ease; }
 main .btn { transition: outline-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
}
@media (max-width: 980px) {
 .closing-plan-step { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 20px; padding-block: 24px; }
 .closing-plan-number { grid-row: 1 / 3; }
 .closing-plan-copy { grid-column: 2; }
 .closing-plan-break { display: none; }
 .closing-plan-step h3 { align-self: center; margin-top: 0; }
}
@media (max-width: 700px) {
 .closing-plan { scroll-margin-top: 16px; padding-block: 62px; }
 .closing-plan-head { margin-bottom: 28px; }
 .closing-plan-step { grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; }
 .closing-plan-number { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; grid-row: 1; }
 .closing-plan-step h3 { font-size: 21px; }
 .closing-plan-copy { grid-column: 1 / -1; }
 .closing-plan-copy .closing-plan-outcome { display: block; margin-top: 10px; }
 .closing-plan-outcome strong { margin-right: 8px; }
 .closing-plan-footer { align-items: stretch; flex-direction: column; gap: 18px; margin-top: 24px; }
 .closing-plan-footer .btn { white-space: normal; text-align: center; }
}
