/* Shinglesage: a kitchen-table chat about an older roof. Warm, rounded, unhurried.
   Linen and Cream carry the page, Pine Green does the talking.
   Honey is on the main button only, with Deep Pine text.
   Rust is on the "Needs attention" badge only. */

/* Fallback faces sized to Nunito and Nunito Sans (widths measured against Arial on Windows:
   Nunito 800 = 100% of Arial Bold, Nunito 700 = 97.5%, Nunito Sans 400 = 100.8% of Arial,
   Nunito Sans 600 = 95.3% of Arial Bold), so lines stay put when the web fonts arrive. */
@font-face {
  font-family: "Nunito Fallback"; font-weight: 800;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold");
  size-adjust: 100%; ascent-override: 101.1%; descent-override: 35.3%; line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback"; font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold");
  size-adjust: 97.5%; ascent-override: 103.7%; descent-override: 36.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Sans Fallback"; font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans"), local("Roboto");
  size-adjust: 100.8%; ascent-override: 100.3%; descent-override: 35%; line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Sans Fallback"; font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold");
  size-adjust: 95.3%; ascent-override: 106.1%; descent-override: 37%; line-gap-override: 0%;
}

:root {
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.4l2.9 2.9 5.9-6.6' fill='none' stroke='%23FFFCF5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --num-size: 1.875rem;
  --steps-gap: clamp(2rem, 4vw, 3.5rem);
}

h3 { font-weight: 700; }

/* ---------- Buttons: soft pills ---------- */
.btn-main { box-shadow: 0 2px 0 color-mix(in srgb, var(--c-on-accent) 22%, transparent); }
.btn-main:hover { filter: brightness(1.04); }
.btn-step:hover { filter: none; background: var(--c-deep); }
.btn-back { color: var(--c-heading); }

/* ---------- Header: the pine band from the kit ---------- */
.site-header .header-row { padding-block: var(--s4); }
.brand-icon { width: 2.375rem; height: 2.375rem; }
.brand-name { font-size: 1.625rem; letter-spacing: -0.005em; }
.call-btn { border-color: var(--c-on-brand-muted); padding-inline: var(--s5); }
/* phone: the name and the number share one row without squeezing either */
@media (max-width: 29.99rem) {
  .header-row { gap: var(--s3); }
  .brandmark { gap: var(--s2); }
  .site-header .brand-icon { width: 2rem; height: 2rem; }
  .site-header .brand-name { font-size: 1.375rem; }
  .call-btn { padding-inline: var(--s3); font-size: 0.9375rem; }
}
/* a very narrow phone: the button says "Call us" and still dials the number */
@media (max-width: 23.99rem) {
  .site-header .call-label { display: inline; color: inherit; font-weight: 600; }
  .site-header .call-number { display: none; }
}

/* ---------- Hero: one calm question under a wide roofline ---------- */
.hero-statement { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(3rem, 8vw, 5.5rem); }
/* the "short rule" of this layout is the roofline from the logo */
.statement-roof { display: block; width: min(78%, 27rem); height: auto; margin-bottom: clamp(1.25rem, 3.5vw, 2rem); overflow: visible; }
.statement-roof path { stroke: var(--c-brand); }
.hero-statement .hero-copy { max-width: 48rem; }
.hero-statement .hero-title { font-size: var(--h1-size); letter-spacing: -0.012em; }
.hero-tagline {
  font-weight: 700; font-size: clamp(1.4375rem, 4.8vw, 2rem); line-height: 1.2;
  color: var(--c-ink); margin-top: var(--s4);
}
.hero-support { color: var(--c-ink); margin-top: var(--s3); }
.hero-statement .hero-actions { margin-top: var(--s6); gap: var(--s3); }
.hero-note { font-size: var(--small-size); color: var(--c-muted); }
@media (max-width: 29.99rem) { .hero-actions .btn-main { width: 100%; } }
@media (max-width: 22.49rem) { .hero-actions .btn-main { padding-inline: var(--s3); font-size: 1.0625rem; } }
@media (min-width: 54rem) {
  .statement-roof { width: 34rem; }
  .statement-roof path { stroke-width: 5; }
}

/* what the check walks through: a cream card of ticked lines */
.hero-statement .hero-points {
  width: 100%; max-width: 27rem; margin-top: clamp(2.75rem, 7vw, 4rem);
  padding: clamp(1.5rem, 6vw, 2.25rem); border-top: 0;
  background: var(--c-surface); border-radius: var(--radius-card);
}
.points-title {
  font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.2;
  letter-spacing: 0; text-transform: none; color: var(--c-heading);
}
.hero-statement .points-list { display: grid; gap: 0; margin-top: var(--s4); text-align: left; font-weight: 600; }
.points-list li { display: flex; align-items: center; gap: var(--s3); padding-block: 0.6875rem; line-height: 1.35; }
.points-list li + li { border-top: 1px solid var(--c-line); }
.points-list li::before {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--c-brand) var(--tick) center / 1rem 1rem no-repeat;
}
.points-source { margin-top: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--c-line); line-height: 1.5; text-align: left; }
@media (min-width: 54rem) {
  /* wide: the same lines sit side by side, centred, with no rules between them */
  .hero-statement .hero-points { max-width: 50rem; padding: 2.25rem 2.75rem 2rem; }
  .hero-statement .points-list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s6); margin-top: var(--s4); }
  .points-list li { padding-block: var(--s2); }
  .points-list li + li { border-top: 0; }
  .points-source { text-align: center; margin-top: var(--s4); }
}

/* ---------- The form: a short quiz on a sheet of linen ---------- */
.section-form { padding-block: clamp(3rem, 8vw, 5.5rem); }
.form-card { border: 1px solid var(--c-line); padding: clamp(1.5rem, 6vw, 2.75rem); }
.form-title { font-size: clamp(1.75rem, 5.4vw, 2.25rem); }
.form-intro { margin-top: var(--s2); }
.lead-form { margin-top: var(--s5); }
.progress { gap: var(--s2); margin-bottom: var(--s6); }
.progress li { border-top: 0; height: 0.5rem; border-radius: 999px; background: var(--c-tint); }
.progress li.is-on { background: var(--c-brand); }

.step-count { letter-spacing: 0; text-transform: none; font-size: var(--small-size); }
.step-title { font-weight: 800; font-size: 1.625rem; margin-top: 0; }
.step-legend { margin-bottom: var(--s2); }
.step-intro { margin-bottom: var(--s6); }
.fields { row-gap: var(--s6); }

/* the six questions carry their number, like the steps further down the page */
.field[data-answer] > .label,
.field[data-name="zip"] > .label {
  position: relative; padding-left: calc(var(--num-size) + 0.75rem); min-height: var(--num-size);
  padding-top: 0.125rem; margin-bottom: var(--s3);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.35; color: var(--c-ink);
}
.field[data-answer] > .label::before,
.field[data-name="zip"] > .label::before {
  position: absolute; left: 0; top: 0; width: var(--num-size); height: var(--num-size); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-brand); color: var(--c-on-brand);
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1;
}
.field[data-answer="roof_age"] > .label::before { content: "1"; }
.field[data-answer="signs"] > .label::before { content: "2"; }
.field[data-answer="leak_now"] > .label::before { content: "3"; }
.field[data-answer="roof_material"] > .label::before { content: "4"; }
.field[data-answer="owner"] > .label::before { content: "5"; }
.field[data-name="zip"] > .label::before { content: "6"; }
.help { margin: calc(var(--s2) * -1) 0 var(--s3); }
.field[data-answer] > .help, .field[data-name="zip"] > .help { padding-left: calc(var(--num-size) + 0.75rem); }

.input { padding-inline: var(--s4); }
.input:focus-visible { outline-offset: 2px; }

/* choices: linen pills; the chosen one turns Sage Mist with a pine edge, as in the kit */
.chip span {
  min-height: 3.25rem; padding: var(--s2) var(--s4);
  transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.chip:hover input:not(:checked) + span { background: var(--c-surface); color: var(--c-ink); }
.chip input:checked + span {
  background: var(--c-tint); color: var(--c-on-tint); border-color: var(--c-brand);
  box-shadow: inset 0 0 0 1px var(--c-brand);
}
/* pick one: a small pine tick sits on the edge of the chosen pill */
.field-single .chip input:checked + span::after {
  content: ""; position: absolute; top: -0.4375rem; right: -0.1875rem; width: 1.375rem; height: 1.375rem;
  border-radius: 50%; background: var(--c-brand) var(--tick) center / 0.875rem 0.875rem no-repeat;
  box-shadow: 0 0 0 2px var(--c-card);
}
/* pick several: a real tick box in front of each line, so it reads as a checklist */
.field-multi .chips[data-cols] { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 34rem) { .field-multi .chips[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-multi .chips[data-cols] .chip span { justify-content: flex-start; text-align: left; gap: var(--s3); padding-inline: var(--s4); }
.field-multi .chip span::before {
  content: ""; flex: none; width: 1.375rem; height: 1.375rem; border-radius: 0.4375rem;
  border: 2px solid var(--c-field-line); background: var(--c-card);
}
.field-multi .chip input:checked + span::before {
  border-color: var(--c-brand); background: var(--c-brand) var(--tick) center / 1rem 1rem no-repeat;
}
/* a very narrow phone: two ages per row, so no label breaks in two */
@media (max-width: 21.49rem) { .field[data-answer="roof_age"] .chips[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the ZIP box is as long as a ZIP */
.field[data-name="zip"] .input { max-width: 11rem; }
/* five choices in two columns: the first one takes the full row */
.field[data-answer="roof_material"] .chip:first-child { grid-column: 1 / -1; }

/* the one-line reaction after an answer, and the visitor's own result: same badges as "Three honest results" */
.reaction { margin-top: var(--s4); padding-left: var(--s4); border-left: 3px solid var(--c-brand); color: var(--c-deep); }
.result-title { font-weight: 800; font-size: 1.625rem; }
.result-panel .result-badge { font-size: 1.1875rem; padding: 0.5rem 1.125rem; }
.result-why-title { font-family: var(--font-display); font-weight: 800; color: var(--c-heading); }
.result-reasons li::marker { color: var(--c-brand); }
.result-offer-title { font-weight: 800; }

.step-nav { margin-top: var(--s7); }
.step-nav .btn-step, .step-nav .btn-main { padding-inline: var(--s4); }
.consent { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--c-line); }
.step-send { margin-top: var(--s5); }
/* "Send my answers" stays on one line beside Back on a phone */
.step-send .btn-main { white-space: nowrap; }
@media (max-width: 24rem) { .step-send .btn-main { padding-inline: var(--s2); font-size: 1.0625rem; } }
.form-error, .notice { border-radius: var(--radius-input); }
.privacy-line { margin-top: var(--s5); line-height: 1.5; }

/* ---------- Thank-you panel ---------- */
.thanks-steps-title { letter-spacing: 0; text-transform: none; font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; color: var(--c-heading); }
.thanks-steps strong { font-family: var(--font-display); font-weight: 800; color: var(--c-heading); }
.thanks-num { background: var(--c-brand); color: var(--c-on-brand); font-family: var(--font-display); font-weight: 800; margin-top: -0.0625rem; }

/* ---------- What happens next: three numbered stops on one line ---------- */
.steps-list { gap: var(--s6); margin-top: var(--s7); }
.step-card {
  position: relative; border-top: 0; padding: 0.375rem 0 0 4.25rem; min-height: 3rem;
  font-size: 1.1875rem; line-height: 1.5;
}
.step-num {
  position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-brand); color: var(--c-on-brand); font-size: 1.375rem;
}
.step-card:not(:last-child)::before {
  content: ""; position: absolute; left: calc(1.5rem - 1px); top: 3.5rem; bottom: calc(var(--s6) * -1 + 0.5rem);
  border-left: 2px solid var(--c-tint);
}
.step-name { display: inline; font-size: inherit; line-height: inherit; font-weight: 800; margin: 0; }
.step-text { display: inline; margin: 0; max-width: none; }
@media (max-width: 51.99rem) {
  .steps-list { grid-template-columns: minmax(0, 1fr); }
  .step-card { max-width: 34rem; }
}
@media (min-width: 52rem) {
  .steps-list { gap: var(--steps-gap); margin-top: var(--s8); }
  .step-card { padding: 4.25rem 0 0 0; }
  .step-card:not(:last-child)::before {
    left: 3.75rem; right: calc(var(--steps-gap) * -1 + 0.75rem); top: calc(1.5rem - 1px); bottom: auto;
    border-left: 0; border-top: 2px solid var(--c-tint);
  }
}

/* ---------- Three honest results (Shinglesage's own section) ---------- */
.results-head { max-width: 42rem; }
.results-list { display: grid; gap: var(--s4); margin-top: var(--s7); }
.result-card {
  background: var(--c-card); color: var(--c-on-card); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 5vw, 2rem);
}
.result-badge {
  display: inline-flex; align-items: center; padding: 0.375rem 0.9375rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.9375rem; line-height: 1.3;
}
.badge-good { background: var(--c-tint); color: var(--c-on-tint); }
.badge-look { background: var(--c-surface); color: var(--c-on-tint); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.badge-attention { background: var(--c-attention); color: var(--c-bg); }
.result-text { margin-top: var(--s4); }
.results-footnote { margin-top: var(--s6); font-size: var(--small-size); font-weight: 600; max-width: 42rem; }
@media (min-width: 56rem) {
  .results-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
}

/* ---------- Plain answers: an open list, nothing boxed ---------- */
.qa-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s6); }
.qa { border-top: 1px solid var(--c-line); padding-block: var(--s5); }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa:last-child { padding-bottom: 0; }
.qa-q { font-size: 1.375rem; line-height: 1.25; font-weight: 800; }
.qa-a { margin-top: var(--s2); max-width: 40rem; }
@media (min-width: 56rem) {
  .section-answers > .wrap {
    display: grid; grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.6fr);
    gap: clamp(2rem, 6vw, 5rem); align-items: start;
  }
  .qa-list { margin-top: var(--s2); }
  .qa { padding-block: var(--s6); }
}

/* ---------- Who we are ---------- */
.who-body { gap: var(--s4); }
.who-body > p:first-child { margin-bottom: var(--s3); }
@media (min-width: 56rem) {
  .who-body { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .who-body > p { grid-column: 1 / -1; max-width: 42rem; }
}
.who-note { background: var(--c-bg); color: var(--c-ink); border-radius: var(--radius-l); padding: var(--s5) clamp(1.5rem, 5vw, 2rem); }
.who-note-title { color: var(--c-heading); font-size: 1.1875rem; font-weight: 800; margin-bottom: var(--s1); }

/* ---------- Footer: Deep Pine, as in the kit ---------- */
.site-footer.tone-brand { --bg: var(--c-deep); }
.footer-line { font-family: var(--font-display); font-weight: 700; }

/* ---------- Privacy, terms, 404 ---------- */
.legal-status { letter-spacing: 0; text-transform: none; border-radius: var(--radius-m); padding: 0.375rem 0.9375rem; font-family: var(--font-display); font-weight: 700; }

/* Hero photo (made with Higgsfield, 26 Nov 2026). Decorative: no people, no text. */
#hero::after { content: ""; display: block; grid-column: 1 / -1; height: clamp(180px, 34vw, 440px); margin-top: 2.5rem; border-radius: 14px; background: url(hero.jpg) center / cover no-repeat; }

