/* ═══════════════════════════════════════════════════════════
   NestVerdict — Blue Tape Walkthrough Checklist Styles
═══════════════════════════════════════════════════════════ */

.bt-hero {
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 24px;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-100);
}
.bt-hero__inner { max-width: 760px; }
.bt-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 6px;
}
.bt-hero__sub {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 640px;
}

/* ── Explainer ─────────────────────────────────────────────── */
.bt-explainer { padding: 40px 0 8px; }
.bt-explainer__inner { max-width: 780px; margin: 0 auto; }
.bt-explainer h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.bt-explainer p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 14px;
}
.bt-tips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.bt-tips__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.bt-tips__card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.bt-tips__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bt-tips__card li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.5;
}
.bt-tips__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Personalize form ─────────────────────────────────────── */
.bt-main { padding: 32px 0 8px; }
.bt-form-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
}
.bt-form-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.bt-form-card__sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}
.field input,
.field select {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-100);
  background: var(--off-white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-base);
  width: 100%;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.bt-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.bt-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  padding: 9px 12px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  cursor: pointer;
}
.bt-checkbox input { accent-color: var(--teal); width: 15px; height: 15px; flex-shrink: 0; }

.bt-form__submit { margin-top: 6px; }

/* ── Checklist results ───────────────────────────────────── */
.bt-checklist-section { padding: 36px 0 60px; }
.bt-checklist-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.bt-checklist-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.bt-checklist-header__sub {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-top: 2px;
}
.bt-checklist-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bt-progress {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--teal-text);
  background: var(--teal-dim);
  padding: 6px 12px;
  border-radius: 100px;
}

.bt-section { margin-bottom: 22px; break-inside: avoid; }
.bt-section__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray-100);
}
.bt-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
}
.bt-item:hover { background: var(--gray-50); }
.bt-item__check {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--teal);
}
.bt-item__label {
  font-size: 13.5px;
  color: var(--navy);
  line-height: 1.5;
  cursor: pointer;
}
.bt-item__check:checked + .bt-item__label {
  color: var(--gray-400);
  text-decoration: line-through;
}

/* ── Shared CTA / extras / FAQ (mirrors other tools) ────────── */
.calc-cta {
  margin-top: 48px;
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.calc-cta__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(43,168,160,.20) 0%, transparent 60%);
  pointer-events: none;
}
.calc-cta__inner { position: relative; z-index: 1; }
.calc-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.calc-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.70);
  margin-bottom: 22px;
}

.calc-extras {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.calc-extra-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.calc-extra-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.calc-extra-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cross-link {
  font-size: 13.5px;
  color: var(--gray-600);
  margin-top: 4px;
}
.cross-link a { color: var(--teal-text); font-weight: 600; }

.calc-disclaimer {
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--gray-400);
  text-align: center;
}

.email-form { display: flex; gap: 8px; }
.email-form input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-100);
  background: var(--off-white);
  font-size: 14px;
  min-width: 0;
}
.email-form input:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}
.email-form__success {
  font-size: 13px;
  color: var(--teal-text);
  font-weight: 500;
}
.email-form__success[hidden] { display: none; }

.afford-faq {
  margin-top: 56px;
  max-width: 760px;
}
.afford-faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}
.afford-faq__item {
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
}
.afford-faq__item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.afford-faq__item p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.65;
}

@media (max-width: 900px) {
  .bt-tips { grid-template-columns: 1fr; }
  .calc-extras { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .bt-checkbox-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .calc-cta { padding: 32px 22px; }
  .bt-checkbox-grid { grid-template-columns: 1fr; }
}

/* ── Print (Download PDF) ─────────────────────────────────── */
.print-brand-footer, .print-brand-header { display: none; }

@media print {
  .no-print { display: none !important; }
  body { background: var(--white); }
  /* This @media print block is the fallback for a manual browser print (Ctrl/Cmd+P) only —
     it renders the brand header/footer once each (top of page 1 / end of the document),
     not repeated per page. Both `position: fixed` and CSS running page-margin boxes
     (position: running() + @page content: element()) were tried for true per-page
     repetition and proved unreliable in this print engine — verified against real generated
     PDFs: fixed elements had the footer bleed onto the top of the following page and the
     header never rendered at all, while running elements were silently unsupported. The
     "Print / save PDF" button instead generates the PDF programmatically via pdfmake (see
     script.js), which guarantees a real header/footer on every page — use that button for
     a fully branded, repeating result. */
  @page { size: A4 portrait; margin: 14mm 12mm; }

  .bt-hero { padding-top: 0; }

  .print-brand-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 3px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
  }
  .print-brand-header__logo-img { height: 14px; width: auto; }
  .print-brand-header__logo-text { font-family: var(--font-display); font-size: 11px; font-weight: 700; }
  .print-brand-header__accent { color: var(--teal-text); }
  .print-brand-header__title {
    margin-left: auto;
    font-size: 9px;
    color: var(--gray-600);
  }

  .print-brand-footer {
    display: block;
    margin-top: 16px;
    padding-top: 3px;
    border-top: 1px solid var(--gray-200);
  }
  .print-brand-footer__brand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }
  .print-brand-footer__logo { font-family: var(--font-display); font-size: 9px; font-weight: 700; color: var(--navy); }
  .print-brand-footer__accent { color: var(--teal-text); }
  .print-brand-footer__url { font-size: 7.5px; color: var(--gray-400); }
  .print-disclaimer {
    display: block;
    font-size: 6.5px;
    line-height: 1.3;
    color: var(--gray-400);
    margin-top: 2px;
  }

  .bt-item__check:checked + .bt-item__label { color: var(--navy); text-decoration: none; }
}
