:root {
  color-scheme: light;
  --ink: #1d2835;
  --muted: #657385;
  --line: #d9e1e8;
  --panel: #f6f8f5;
  --white: #ffffff;
  --green: #24745a;
  --green-dark: #185642;
  --blue: #355c8c;
  --coral: #c95d48;
  --gold: #d69b27;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--green-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border: 3px solid var(--green);
  border-radius: 6px;
  display: inline-block;
  position: relative;
}

.brand-mark::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  position: absolute;
  left: 6px;
  top: 7px;
  transform: rotate(-45deg);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 42px;
}

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 38px;
  align-items: center;
  padding: 44px 0 28px;
}

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

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

h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

p {
  margin: 0 0 14px;
}

.intro {
  margin-top: 18px;
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

button,
.button-link {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.ghost-button,
.tool-actions button {
  background: var(--panel);
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.hero-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
}

.tool-panel,
.notes-section,
.print-section,
.related-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}

.tool-panel {
  box-shadow: 0 14px 38px rgba(29, 40, 53, 0.08);
}

.tool-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.progress-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.progress-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.progress-card strong {
  display: block;
  margin: 4px 0 10px;
  font-size: 28px;
}

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

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
}

.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-top: 20px;
}

.checklist-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.checklist-section {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.checklist-section:last-child {
  border-bottom: 0;
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 650;
}

.task-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.task-row input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.side-panel {
  padding: 18px;
  align-self: start;
  background: var(--panel);
}

.side-panel section + section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.side-panel ul {
  margin: 0;
  padding-left: 20px;
}

.side-panel li + li {
  margin-top: 8px;
}

.notes-section,
.print-section,
.related-section {
  margin-top: 22px;
}

.notes-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  background: var(--panel);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notes-grid p {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--white);
}

.print-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.print-section p {
  max-width: 740px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  min-height: 140px;
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: var(--white);
}

.related-card span {
  display: block;
  color: var(--ink);
  font-weight: 850;
  margin-bottom: 8px;
}

.related-card small {
  color: var(--muted);
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px 36px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero,
  .tool-top,
  .checklist-layout,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .notes-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .print-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 40px;
  }

  .intro {
    font-size: 17px;
  }

  .tool-panel,
  .notes-section,
  .print-section,
  .related-section {
    padding: 16px;
  }
}

@media print {
  .site-header,
  .hero,
  .tool-actions,
  .notes-section,
  .print-section,
  .related-section,
  .site-footer {
    display: none !important;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .tool-panel,
  .checklist-card,
  .side-panel {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .task-row {
    break-inside: avoid;
    background: #fff;
  }
}
