:root {
  --deep: #15110f;
  --ink: #261d18;
  --ink-soft: #67594f;
  --orange: #f79300;
  --orange-dark: #9a4c00;
  --orange-soft: #fff0d8;
  --paper: #fffdf9;
  --line: #dfd1c0;
  --success: #21683d;
  --danger: #8a2d21;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f3ede5;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.copy-line { display: block; }

.checklist-site-header {
  min-height: 78px;
  padding: 10px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--deep);
  color: white;
}
.checklist-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}
.checklist-brand img { width: 56px; height: 56px; object-fit: contain; }
.checklist-brand strong { display: block; font-family: "Newsreader", Georgia, serif; font-size: 25px; font-weight: 600; line-height: 1; }
.checklist-brand small { display: block; margin-top: 5px; color: #d8cbc0; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.header-contact {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-contact:hover, .header-contact:focus-visible { background: white; outline: 2px solid var(--orange); outline-offset: 2px; }

.checklist-page { padding: 34px 18px 70px; }
.checklist-shell { width: min(100%, 980px); margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--orange-dark); font-weight: 700; text-underline-offset: 3px; }
.checklist-intro {
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  align-items: end;
  gap: 34px;
  background: var(--deep);
  color: white;
  border-top: 6px solid var(--orange);
}
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: "Newsreader", Georgia, serif; }
.checklist-intro h1 { margin: 0; font-size: clamp(39px, 6vw, 62px); font-weight: 500; line-height: .98; }
.checklist-intro-copy > p:last-child { max-width: 650px; margin: 18px 0 0; color: #dfd5cc; font-size: 17px; }
.checklist-switcher label { display: block; margin-bottom: 7px; color: #dfd5cc; font-size: 13px; font-weight: 700; }
.checklist-switcher select {
  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 13px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background: white;
  color: var(--deep);
  font-weight: 700;
}

.save-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr minmax(160px, 250px);
  align-items: center;
  gap: 18px;
  border: 1px solid #d07a08;
  border-top: 0;
  background: #fff8ec;
  box-shadow: 0 9px 24px rgba(58, 37, 21, .12);
}
.save-panel strong, .save-panel span { display: block; }
.save-panel strong { font-size: 15px; }
.save-panel span { margin-top: 2px; color: var(--success); font-size: 13px; }
.save-panel span.save-error { color: var(--danger); }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #e4d8ca; }
.progress-track span { width: 0; height: 100%; margin: 0; display: block; border-radius: inherit; background: linear-gradient(90deg, #d87000, var(--orange)); transition: width .2s ease; }

#interactiveChecklist { margin-top: 18px; }
.matter-card, .checklist-section, .general-notes-card {
  margin-top: 14px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(55, 40, 26, .06);
}
.section-heading { margin-bottom: 20px; display: flex; align-items: flex-start; gap: 18px; }
.section-heading > span {
  min-width: 62px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.section-heading h2, .general-notes-card h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 600; line-height: 1.05; }
.section-heading p, .general-notes-card > p { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid label { display: grid; gap: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.field-grid input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #bdaa97;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
.field-grid input:focus, textarea:focus, select:focus { border-color: var(--orange-dark); outline: 3px solid rgba(247, 147, 0, .23); }

.checklist-items { display: grid; gap: 9px; }
.checklist-item {
  min-height: 54px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e4d9cc;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}
.checklist-item:hover { border-color: var(--orange); background: #fffaf2; }
.checklist-item:has(input:checked) { border-color: #91b29d; background: #f2faf4; }
.checklist-item input { width: 24px; height: 24px; margin: 1px 0 0; flex: none; accent-color: var(--success); }
.checklist-item span { font-size: 15px; line-height: 1.45; }
.section-notes { margin-top: 17px; }
.section-notes label { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.note-privacy-warning { margin: 0 0 8px !important; color: var(--danger) !important; font-size: 12px !important; font-weight: 700; line-height: 1.45; }
.general-notes-card textarea { margin-top: 14px; }

.device-notice, .checklist-disclaimer {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  background: #fff4df;
}
.device-notice strong, .checklist-disclaimer strong { font-family: "Newsreader", Georgia, serif; font-size: 22px; }
.device-notice p, .checklist-disclaimer p { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.checklist-disclaimer { border-left-color: #5c4b40; background: #eee7df; }
.checklist-disclaimer #checklistDisclaimer,
.checklist-disclaimer #relationshipDisclaimer { white-space: pre-line; }

.checklist-actions {
  margin-top: 18px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 9px 24px rgba(58, 37, 21, .1);
}
.checklist-actions button, .checklist-actions a {
  min-height: 46px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--deep);
  border-radius: 5px;
  background: white;
  color: var(--deep);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.checklist-actions button:hover, .checklist-actions button:focus-visible, .checklist-actions a:hover, .checklist-actions a:focus-visible { background: var(--deep); color: white; outline: 2px solid var(--orange); outline-offset: 2px; }
.checklist-actions .action-primary { border-color: #9a4c00; background: var(--orange); }
.checklist-actions .action-danger { margin-left: auto; border-color: #c9a49d; color: var(--danger); }
.action-note { margin: 8px 2px 0; color: var(--ink-soft); font-size: 13px; }

footer {
  padding: 25px clamp(18px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
  background: var(--deep);
  color: #d8cbc0;
  font-size: 12px;
}
footer span:last-child { display: flex; gap: 18px; }
footer .footer-copyright { display: inline-flex !important; flex: 0 0 auto; white-space: nowrap !important; word-break: keep-all; }
footer a { color: white; text-underline-offset: 3px; }
footer .footer-website-link { color: var(--orange); font-weight: 700; }

[hidden] { display: none !important; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.install-button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: transparent;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.install-button:hover, .install-button:focus-visible { background: white; color: var(--deep); outline: 2px solid var(--orange); outline-offset: 2px; }

.app-main { width: min(100%, 1180px); margin: 0 auto; padding: 34px 18px 70px; }
.app-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr);
  align-items: stretch;
  overflow: hidden;
  background: var(--deep);
  color: white;
}
.app-hero-copy { padding: clamp(38px, 7vw, 82px); align-self: center; }
.app-hero-copy > .eyebrow { margin: 0 0 clamp(32px, 4vw, 46px); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.2; }
.app-hero h1 { max-width: 740px; margin: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(50px, 7vw, 82px); font-weight: 500; line-height: .94; }
.app-hero-copy > p:not(.eyebrow, .app-scope) { max-width: 680px; margin: 24px 0 0; color: #dfd5cc; font-size: 18px; }
.app-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.app-scope { margin: 24px 0 0; color: #cdbeb2; font-size: 13px; font-weight: 600; }
.app-trust-card {
  padding: clamp(30px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.16);
  background: var(--orange);
  color: var(--deep);
  text-align: center;
}
.app-trust-logo {
  width: clamp(125px, 13vw, 165px);
  height: auto;
  max-height: 195px;
  margin: 0 auto 36px;
  align-self: center;
  flex: 0 0 auto;
  object-fit: contain;
}
.app-trust-copy { width: 100%; max-width: 270px; flex: 0 0 auto; transform: translateY(-12px); }
.app-trust-word { position: relative; left: 50%; width: max-content; margin: 0; display: block; align-self: flex-start; transform: translate(-50%, -12px); font-family: "Newsreader", Georgia, serif; font-size: clamp(58px, 7vw, 86px); font-weight: 600; line-height: .85; text-align: center; }
.app-trust-copy > strong { display: block; margin-top: 18px; font-size: 17px; }
.app-trust-copy p { margin: 13px 0 0; font-size: 14px; }
.trust-quote-button { width: 100%; margin-top: 22px; }

.app-button {
  min-height: 48px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--deep);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.app-button-primary { border-color: #9a4c00; background: var(--orange); color: var(--deep); }
.app-button-secondary { border-color: var(--orange); background: white; color: var(--deep); }
.app-button:hover, .app-button:focus-visible { transform: translateY(-1px); background: var(--deep); color: white; outline: 2px solid var(--orange); outline-offset: 2px; }

.install-card {
  margin-top: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid #d07a08;
  background: #fff8ec;
}
.install-card .eyebrow { margin-bottom: 4px; color: var(--orange); }
.install-card h2 { margin: 0; font-size: 28px; line-height: 1.05; }
.install-card p { margin: 7px 0 0; color: var(--ink-soft); font-size: 14px; }
.ios-install-help { padding: 9px 11px; border-left: 4px solid var(--orange); background: white; color: var(--ink) !important; }

.checklist-choice-section { padding: 72px 0 34px; scroll-margin-top: 20px; }
.choice-heading { max-width: 720px; }
.choice-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1; }
.choice-heading > p:last-child { margin: 17px 0 0; color: var(--ink-soft); }
.app-checklist-grid { margin-top: 31px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.app-checklist-card {
  min-height: 450px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(55, 40, 26, .08);
}
.app-checklist-card::before { content: ""; height: 7px; margin: -26px -26px 24px; background: var(--orange); }
.seller-card::before { background: #d66e00; }
.inspection-card::before { background: var(--deep); }
.auction-card::before { background: #ad5600; }
.firsthome-card::before { background: #ef9e25; }
.sellerhandover-card::before { background: #5c4b40; }
.card-number { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.card-kicker { margin: 24px 0 6px; color: var(--orange-dark); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.app-checklist-card h3 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1; }
.app-checklist-card div > p:last-child { margin: 13px 0 0; color: var(--ink-soft); font-size: 14px; }
.saved-progress { margin: auto 0 14px; padding: 9px 11px; border-radius: 5px; background: #eee7df; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.saved-progress.is-complete { background: #e5f4e9; color: var(--success); }
.app-checklist-card .app-button { width: 100%; }
.card-lead-link,
.card-lead-placeholder {
  min-height: 34px;
  margin-top: 15px;
  display: block;
  line-height: 1.3;
}
.card-lead-link { color: var(--orange-dark); font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.urgent-link { color: var(--danger); }

.lead-strip, .checklist-lead-cta, .client-next-step, .completion-cta {
  padding: clamp(25px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  background: var(--deep);
  color: white;
}
.lead-strip { margin-top: 38px; }
.lead-strip h2, .checklist-lead-cta h2, .client-next-step h2, .completion-cta h2 { margin: 0; font-size: clamp(31px, 4vw, 45px); font-weight: 500; line-height: 1; }
.lead-strip p:last-child, .checklist-lead-cta p:last-child, .client-next-step p, .completion-cta p:last-child { max-width: 680px; margin: 12px 0 0; color: #d8cbc0; font-size: 14px; }
.lead-strip-actions, .checklist-lead-actions { display: grid; gap: 9px; min-width: 220px; }
.plain-contact-link { color: white; font-size: 12px; text-align: center; text-underline-offset: 3px; }
.app-information-note { margin-top: 18px; padding: 18px 20px; border-left: 5px solid #5c4b40; background: #eee7df; }
.app-information-note strong { font-family: "Newsreader", Georgia, serif; font-size: 21px; }
.app-information-note p { margin: 6px 0 0; color: var(--ink-soft); font-size: 13px; }
.content-review-note { margin-top: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: 12px; }
.content-review-note strong { color: var(--ink); }
.content-review-note span { flex: 1 1 420px; }
.content-review-note a { color: var(--orange-dark); font-weight: 700; text-underline-offset: 3px; }

.checklist-lead-cta { margin-top: 18px; }
.checklist-intro-copy #checklistDescription,
.checklist-lead-cta #leadCtaTitle,
.checklist-lead-cta #leadCtaText { white-space: pre-line; }
.client-next-step { margin-top: 18px; border-top: 6px solid var(--orange); }
.client-next-step .client-next-step-offer { color: white; font-weight: 700; }
.device-notice { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.device-notice > div { max-width: 730px; }
.completion-cta { margin-top: 18px; border-top: 6px solid var(--orange); }
.completion-cta[hidden] { display: none; }
.mobile-lead-bar { display: none; }

@media (max-width: 700px) {
  .checklist-site-header { min-height: 68px; padding: 7px 14px; }
  .checklist-brand { gap: 7px; }
  .checklist-brand img { width: 48px; height: 48px; }
  .checklist-brand strong { font-size: 16px; white-space: nowrap; }
  .checklist-brand small { display: none; }
  .header-contact { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .install-button { min-height: 40px; padding: 7px 9px; font-size: 12px; }
  .checklist-site-header .install-button { display: none !important; }
  .checklist-page { padding: 22px 12px 48px; }
  .back-link { margin-left: 4px; margin-bottom: 14px; }
  .checklist-intro { padding: 24px 19px; grid-template-columns: 1fr; gap: 22px; }
  .checklist-intro h1 { font-size: 40px; }
  .checklist-intro-copy > p:last-child { font-size: 15px; }
  .save-panel { grid-template-columns: 1fr; gap: 10px; }
  .matter-card, .checklist-section, .general-notes-card { padding: 19px 16px; }
  .section-heading { gap: 11px; }
  .section-heading > span { min-width: 52px; }
  .section-heading h2, .general-notes-card h2 { font-size: 27px; }
  .field-grid { grid-template-columns: 1fr; }
  .checklist-item { min-height: 60px; padding: 13px 12px; }
  .checklist-item span { font-size: 15px; }
  .checklist-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checklist-actions .action-danger { margin-left: 0; grid-column: 1 / -1; }
  .app-main { padding: 18px 12px 86px; }
  .app-hero { min-height: 0; grid-template-columns: 1fr; }
  .app-hero-copy { padding: 40px 22px; }
  .app-hero-copy > .eyebrow { margin-bottom: 28px; font-size: 16px; }
  .app-hero h1 { font-size: 50px; }
  .app-hero-copy > p:not(.eyebrow, .app-scope) { font-size: 16px; }
  .app-hero-actions .app-button { width: 100%; }
  .app-trust-card { padding: 38px 22px; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .app-trust-logo { width: 130px; max-height: 155px; margin-bottom: 30px; }
  .app-trust-copy { transform: translateY(-8px); }
  .app-trust-word { font-size: 72px; }
  .install-card { align-items: stretch; flex-direction: column; gap: 16px; }
  .checklist-choice-section { padding-top: 52px; }
  .app-checklist-grid { grid-template-columns: 1fr; }
  .app-checklist-card { min-height: 410px; }
  .lead-strip, .checklist-lead-cta, .client-next-step, .completion-cta { grid-template-columns: 1fr; gap: 21px; }
  .lead-strip-actions, .checklist-lead-actions { min-width: 0; }
  .device-notice { align-items: stretch; flex-direction: column; }
  .mobile-lead-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    background: var(--deep);
    box-shadow: 0 -8px 24px rgba(21,17,15,.25);
  }
  .mobile-lead-bar a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--orange); border-radius: 5px; background: white; color: var(--deep); font-size: 13px; font-weight: 700; text-decoration: none; }
  .mobile-lead-bar a:last-child { background: var(--orange); }
  body { padding-bottom: 64px; }
  footer { flex-direction: column; }
}

@media (max-width: 390px) {
  .checklist-brand strong { font-size: 15px; }
  .header-contact { padding-inline: 8px; }
  .checklist-actions { grid-template-columns: 1fr; }
  .checklist-actions .action-danger { grid-column: auto; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .checklist-site-header, .back-link, .checklist-switcher, .save-panel, .checklist-lead-cta, .device-notice, .checklist-actions, .action-note, .client-next-step, .completion-cta, .mobile-lead-bar, footer { display: none !important; }
  .checklist-page { padding: 0; }
  .checklist-intro { padding: 18px 0; grid-template-columns: 1fr; border-top: 0; border-bottom: 3px solid var(--orange); background: white; color: black; }
  .checklist-intro .eyebrow { color: var(--orange-dark); }
  .checklist-intro h1 { color: black; font-size: 31pt; }
  .checklist-intro-copy > p:last-child { color: #333; }
  .matter-card, .checklist-section, .general-notes-card { margin-top: 12px; padding: 14px; break-inside: avoid; box-shadow: none; }
  .checklist-item { min-height: 0; padding: 7px 9px; }
  .section-notes textarea, .general-notes-card textarea { min-height: 70px; }
  .checklist-disclaimer { break-inside: avoid; }
}
