/* Roof Longevity Idaho: free Roof Life Check page.
   Brand from rooflongevityidaho.com: near-black, copper orange, amber; Montserrat headings, DM Sans body. */
:root {
  --ink: #121214;
  --ink-2: #19191c;
  --paper: #f6f4ef;
  --line: #e4dfd5;
  --line-strong: #cdc6b8;
  --text: #1c1b19;
  --body: #3a3833;
  --muted: #625e57;
  --orange: #c2510a;
  --orange-hover: #a54405;
  --orange-soft: #fbf0e6;
  --amber: #f09b48;
  --bad: #a3402a;
  --good: #2f6f48;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --check-amber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23f09b48' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%232f6f48' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.7 3.7 7.3-8.2' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 5.5l9 9m0-9l-9 9' fill='none' stroke='%23a3402a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: #fff; color: #000; }
.fn { color: inherit; text-decoration: none; font-weight: 700; font-size: 0.72em; vertical-align: super; line-height: 0; margin-left: 1px; }

/* Hero */
.hero { position: relative; isolation: isolate; background: var(--ink); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.8) 0%, rgba(12, 12, 14, 0.72) 38%, rgba(12, 12, 14, 0.9) 78%, rgba(12, 12, 14, 0.96) 100%);
}
.site-header { padding: 14px 0 4px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name small { display: block; margin-top: 3px; font-weight: 700; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.call {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.call:hover { background: rgba(255, 255, 255, 0.18); }
.call svg { color: var(--amber); }

.hero-copy { max-width: 1000px; padding-top: 18px; padding-bottom: 22px; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
.dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--amber); }
.hero h1 {
  margin: 0 auto 12px;
  font-size: clamp(28px, 7.2vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 .hl { color: var(--amber); }
.sub { max-width: 36em; margin: 0 auto 14px; color: rgba(255, 255, 255, 0.86); font-size: clamp(16.5px, 2.1vw, 20px); line-height: 1.45; }
.proof { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0; list-style: none; text-align: left; font-size: 15.5px; font-weight: 500; }
.proof li { display: flex; align-items: flex-start; gap: 9px; }
.proof li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--check-amber) center / contain no-repeat; }

/* Quiz card */
.quiz-wrap { position: relative; z-index: 2; max-width: 600px; margin-bottom: -72px; }
.quiz {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.12);
  scroll-margin-top: 12px;
}
.quiz-top { padding: 20px 22px 0; }
.quiz-title { font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
.quiz-promise { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.bar { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: #efeae2; }
.bar span { display: block; width: 14%; height: 100%; border-radius: 99px; background: var(--orange); transition: width 0.35s ease; }
.quiz-body { padding: 18px 22px 4px; }
.step[hidden] { display: none; }
.step.is-in { animation: step-in 0.26s ease; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q { margin-bottom: 14px; font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.25; outline: none; }
.q-sub { margin: -6px 0 14px; color: var(--muted); font-size: 15.5px; }
.q-sub a { color: var(--orange); font-weight: 700; }
.stop .q-sub + .q-sub { margin-top: 0; }
.choices { display: grid; gap: 10px; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: 600 17.5px/1.25 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover { border-color: var(--orange); }
.choice:active { transform: scale(0.99); }
.choice:focus-visible { outline: 3px solid rgba(194, 81, 10, 0.35); outline-offset: 2px; }
.mark { flex: none; width: 26px; height: 26px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; transition: background-color 0.15s, border-color 0.15s; }
.choice.is-picked { border-color: var(--orange); background: var(--orange-soft); }
.choice.is-picked .mark { border-color: var(--orange); background: var(--orange) var(--check-white) center / 16px no-repeat; }
.quiz-foot { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 8px 22px 18px; }
.quiz-foot .back:not([hidden]) + .quiz-note { display: none; }
.quiz-foot:has(.back:not([hidden])) { justify-content: flex-start; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 15px var(--font-body);
  cursor: pointer;
}
.back[hidden] { display: none; }
.back::before { content: ""; width: 8px; height: 8px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
.back:hover { color: var(--text); }
.quiz-note { color: var(--muted); font-size: 13.5px; line-height: 1.4; text-align: center; }
.quiz-note[hidden] { display: none; }

/* Contact step */
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 5px; }
.field span { color: var(--body); font-size: 14px; font-weight: 600; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: 500 17px var(--font-body);
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(194, 81, 10, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field-row { display: grid; grid-template-columns: 1fr 108px; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fbeae6; color: #8a2f1d; font-size: 15px; font-weight: 500; }
.error[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font: 700 18px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid rgba(194, 81, 10, 0.4); outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; margin-top: 16px; }
.consent { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Booking step */
.cal { height: 700px; margin: 0 -22px; border-top: 1px solid var(--line); }
.cal iframe { display: block; }
.cal-wait { padding: 48px 22px; color: var(--muted); text-align: center; }
.cal-alt { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.cal-alt[hidden] { display: none; }
.cal-alt a, .booked a { color: var(--orange); font-weight: 700; }
.booked { margin-top: 16px; }
.booked[hidden] { display: none; }
.next { display: grid; gap: 8px; padding: 0; list-style: none; }
.next li { display: flex; align-items: flex-start; gap: 10px; }
.next li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: var(--check-green) center / contain no-repeat; }
.booked-alt { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Trust strip */
.trust { padding: 100px 0 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; max-width: 780px; padding: 0 20px; list-style: none; }
.trust-list li { display: flex; align-items: flex-start; gap: 9px; color: #33312c; font-size: 15px; font-weight: 600; line-height: 1.3; }
.trust-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--orange); }

/* Sections */
.section { padding: 64px 0; }
.section h2 { margin-bottom: 22px; font-size: clamp(26px, 4.4vw, 38px); }
.problem { background: var(--paper); }
.daggers { display: grid; gap: 12px; padding: 0; list-style: none; }
.daggers li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.daggers li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; background: var(--cross) center / contain no-repeat; }

.why { background: #fff; }
.why-grid { display: grid; gap: 28px; align-items: center; }
.why-copy p { color: var(--body); font-size: 18px; }
.why-copy p + p { margin-top: 4px; }
.why-copy .big { margin-top: 22px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.25; }
.why-copy .big span { color: var(--orange); }
.why-photo { margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 1024 / 540; background: #ddd; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }

.how { background: var(--paper); }
.how h2 { text-align: center; }
.steps { display: grid; gap: 14px; padding: 0; list-style: none; }
.steps li { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.num { display: block; margin-bottom: 8px; color: var(--orange); font: 800 30px/1 var(--font-head); }
.steps h3 { margin-bottom: 8px; font-size: 20px; }
.steps p { color: var(--body); }
.matters { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted) !important; font-size: 15.5px; }
.matters strong { color: var(--text); }
.others { margin-top: 18px; padding: 22px; border-radius: 18px; background: var(--ink); color: #fff; }
.others-head { margin-bottom: 12px; font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.others ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.others li { color: rgba(255, 255, 255, 0.84); }
.others strong { color: var(--amber); }

.versus { background: #fff; }
.vs { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 15.5px; line-height: 1.4; }
.vs th, .vs td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs thead th { border-bottom: 2px solid var(--line-strong); font-family: var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.25; }
.vs thead th span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.vs thead td { border-bottom: 2px solid var(--line-strong); }
.vs thead td { width: 24%; }
.vs tbody th { color: var(--body); font-weight: 700; }
.vs .us { background: var(--orange-soft); font-weight: 600; }
.vs thead .us { border-radius: 14px 14px 0 0; }
.vs tbody tr:last-child .us { border-radius: 0 0 14px 14px; }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }

.offer { background: var(--paper); }
.stack { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; list-style: none; }
.stack li { display: grid; gap: 2px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.stack li:last-child { border-bottom: 0; }
.stack strong { font-size: 17px; }
.stack span { color: var(--muted); font-size: 15.5px; }
.guarantee { margin: 18px 0 28px; padding: 20px 22px; border: 2px solid var(--orange); border-radius: 18px; background: #fff; }
.guarantee-head { margin-bottom: 6px; color: var(--orange); font-family: var(--font-head); font-weight: 800; font-size: 19px; }

.fit { background: #fff; }
.fit-grid { display: grid; gap: 14px; }
.fit-col { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.fit-head { margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.fit-col ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.fit-col li { display: flex; align-items: flex-start; gap: 10px; }
.fit-col li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; background: center / contain no-repeat; }
.good li::before { background-image: var(--check-green); }
.bad li::before { background-image: var(--cross); }
.fit-note { margin-top: 14px; font-weight: 700; }
.faq-head { margin: 44px 0 6px; font-size: 22px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 36px 18px 0; font-weight: 700; font-size: 17.5px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; color: var(--body); }

.final { padding: 64px 0 72px; background: var(--ink); color: #fff; }
.final h2 { margin-bottom: 14px; font-size: clamp(28px, 5vw, 44px); font-weight: 800; }
.final-line { color: rgba(255, 255, 255, 0.86); font-size: 18px; }
.final-urgency { margin-top: 8px; color: var(--amber); font-size: 16px; font-weight: 600; }
.final .quiz-wrap { margin: 32px auto 0; }

.site-footer { padding: 28px 0 100px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: var(--ink-2); color: rgba(255, 255, 255, 0.72); font-size: 14px; }
.site-footer strong, .site-footer a { color: #fff; }
.fine { margin-top: 10px; color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }

.sticky {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font: 700 17.5px var(--font-body);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(150%);
  transition: transform 0.25s ease;
}
.sticky.is-on { transform: none; }
.noscript { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; padding: 14px; background: #fff; color: #000; text-align: center; }

@media (max-width: 359px) {
  .brand-name { display: none; }
  .trust-list { grid-template-columns: 1fr; }
}
@media (min-width: 700px) {
  .fit-grid { grid-template-columns: 1fr 1fr; }
  .stack li { grid-template-columns: 250px 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 640px) {
  .eyebrow { align-items: center; margin-bottom: 18px; padding: 7px 15px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 14px; font-weight: 500; }
  .dot { margin-top: 0; }
  .hero h1 .hl { display: block; }
}
@media (min-width: 900px) {
  .hero-copy { padding-top: 40px; padding-bottom: 34px; }
  .hero h1 { margin-bottom: 16px; }
  .sub { margin-bottom: 18px; }
  .proof { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
  .trust-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
  .section { padding: 84px 0; }
  .why-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .others { padding: 26px 30px; }
  .vs { font-size: 16px; }
  .vs th, .vs td { padding: 16px 18px; }
  .sticky { display: none; }
  .site-footer { padding-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step.is-in { animation: none; }
  .bar span, .sticky { transition: none; }
}
