/* The HomeGuild — home checklist (checklist.html). Hero + sign-up on basalt, the list on paper. */

/* ---------- hero ---------- */
.ck-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.ck-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ck-hero-copy { display: grid; gap: 24px; }
.ck-hero .h1 { font-size: clamp(42px, 5.6vw, 80px); max-width: 13ch; }
.ck-hero .lede { max-width: 46ch; }
.ck-seasons { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ck-seasons li { display: grid; gap: 4px; padding: 16px 16px 0 0; }
.ck-seasons li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.ck-seasons b { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: var(--display-tracking); }
.ck-seasons span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }

.ck-card { display: grid; gap: 22px; padding: clamp(24px, 3vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.ck-card-head { display: grid; gap: 8px; }
.ck-card .form { gap: 18px; }
.ck-card .form[hidden] { display: none; }
.ck-card .form-success { border: 0; padding: 0; background: none; }
.ck-card .form-success .btn { justify-self: start; }
.ck-card .btn.primary { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .ck-hero-grid { grid-template-columns: 1fr; }
  .ck-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-seasons li:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- list ---------- */
.ck-list { padding-top: clamp(40px, 5vw, 64px); }
.ck-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.ck-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ck-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ck-actions[hidden] { display: none; }

.ck-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ck-tag.diy { background: #DCE3D3; color: #2F3E26; }
.ck-tag.pro { background: #F1E1BC; color: #5E430C; }

.season { display: grid; grid-template-columns: minmax(0, .38fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.season-head { align-self: start; position: sticky; top: 96px; display: grid; gap: 10px; }
.season-head .h2 { font-size: clamp(34px, 4vw, 54px); }
.season-when { font-weight: 600; font-size: 15px; color: var(--ink); }
.season-why { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.season-progress { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.season.complete .season-progress { color: #3E5A2C; font-weight: 600; }
.season-now { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.season-now[hidden] { display: none; }

.ck-items { list-style: none; margin: 0; padding: 0; }
.ck { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.ck:first-child { border-top: 0; padding-top: 0; }
.ck label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; cursor: pointer; }
.ck input[type=checkbox] { appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1.5px solid var(--ink-3); border-radius: 50%; background: var(--bg-2); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.ck input[type=checkbox]::after { content: ""; width: 10px; height: 6px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .2s var(--ease); }
.ck input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
.ck input[type=checkbox]:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.ck input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ck-body { display: grid; gap: 4px; }
.ck-body b { font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.35; }
.ck-body > span { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.ck-body a { text-decoration: underline; text-underline-offset: 3px; }
.ck:has(input:checked) .ck-body b { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-3); }
.ck-meta { display: grid; justify-items: end; gap: 8px; padding-top: 2px; }
.ck-link { font-size: 14px; font-weight: 600; color: #7E5A11; white-space: nowrap; }
.ck-link::after { content: " →"; }
.ck-link:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .season { grid-template-columns: 1fr; }
  .season-head { position: static; }
  .ck { grid-template-columns: 1fr; }
  .ck-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-left: 40px; justify-items: start; }
}
.season.is-now .season-head .h2 { color: var(--ink); }

/* ---------- replacement table ---------- */
.rp-wrap { overflow-x: auto; }
.rp { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.rp th, .rp td { text-align: left; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.rp thead th { border-top: 0; font-size: 12px; font-weight: 500; letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--ink-2); padding-top: 0; }
.rp tbody th { font-weight: 600; color: var(--ink); }
.rp td { color: var(--ink-2); }
.rp .rp-note { color: var(--ink-3); font-size: 14px; }
.rp input { width: 92px; padding: 8px 10px; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.rp input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.rp [data-due] { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 4ch; }
.rp tr.soon [data-due] { color: #7E5A11; }
.rp tr.over [data-due] { color: #9A2F1F; }
@media (max-width: 640px) {
  .rp thead { display: none; }
  .rp tr { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
  .rp th, .rp td { border: 0; padding: 0; }
  .rp tbody th { grid-column: 1 / -1; }
  .rp td:nth-child(2) { font-size: 14px; }
  .rp .rp-note { grid-column: 2 / -1; text-align: right; }
}

/* ---------- gate (only when JS has locked the page) ---------- */
.ck-locked .ck-rest { max-height: 560px; overflow: hidden; filter: blur(3px); user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, transparent 90%); mask-image: linear-gradient(to bottom, #000 0, transparent 90%); }
.ck-gate { position: relative; margin-top: -320px; padding-bottom: 8px; display: grid; justify-items: center; }
.ck-gate[hidden] { display: none; }
.ck-gate-card { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 560px; padding: clamp(24px, 4vw, 40px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 30px 60px -30px rgb(30 34 31 / .45); }
.ck-gate-card .muted { color: var(--ink-2); }

/* ---------- closer ---------- */
.ck-closer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.ck-closer-body { display: grid; gap: 24px; }
.ck-closer-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .ck-closer-grid { grid-template-columns: 1fr; } }

/* ---------- print: the list only, black on white, no gate ---------- */
@media print {
  @page { margin: 14mm; }
  .nav, .footer, .ck-hero, .ck-closer, .ck-gate, .ck-actions, .ck-link, .season-now { display: none !important; }
  body, .paper { background: #fff !important; color: #000; }
  .ck-locked .ck-rest { max-height: none; filter: none; -webkit-mask-image: none; mask-image: none; }
  .ck-list { padding: 0; }
  .ck-toolbar { border-color: #000; padding-bottom: 8px; }
  .ck-toolbar::before { content: "The Treasure Valley home checklist · homeguildboise.com/checklist"; display: block; width: 100%; font: 600 16px var(--font-body); }
  .season { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; break-inside: auto; }
  .season-head { position: static; display: block; }
  .season-head .h2 { font-size: 24px; display: inline; margin-right: 10px; }
  .season-when, .season-progress { display: inline; font-size: 12px; }
  .season-why { font-size: 12px; max-width: none; margin: 4px 0 0; }
  .ck { padding: 6px 0; break-inside: avoid; gap: 4px 12px; }
  .ck-body b { font-size: 12.5px; }
  .ck-body > span { font-size: 11px; line-height: 1.4; }
  .ck input[type=checkbox] { width: 14px; height: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ck label { grid-template-columns: 16px 1fr; gap: 8px; }
  .ck-tag { font-size: 10px; padding: 1px 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rp { font-size: 11px; }
  .rp th, .rp td { padding: 4px 8px 4px 0; }
  .rp input { width: 60px; padding: 2px 4px; border-color: #999; }
  .replace { break-before: page; }
}
