/* Gutter guards for six-inch gutters in Nashville — one-page guide.
   Purpose-built stylesheet. Mobile first. No JavaScript, no external requests. */

:root {
  --ink:        #14212a;
  --body:       #333f48;
  --muted:      #5c6a73;
  --paper:      #ffffff;
  --field:      #eceeea;
  --tint:       #e3ece7;
  --line:       #d5dad4;
  --line-2:     #e4e8e2;
  --accent:     #0d6353;
  --accent-dk:  #08473b;
  --deep:       #132025;
  --deep-2:     #1c2f35;
  --on-dark:    #e6eeeb;
  --on-dark-2:  #adc0ba;
  --on-dark-3:  #7fd6c1;
  --wood:       #a9825a;
  --wood-dk:    #7d5f3f;
  --steel:      #46555f;

  --rail: 71rem;
  --edge: clamp(1rem, 4vw, 2rem);
  --pad: clamp(1.25rem, 3.6vw, 2.6rem);
  --gap: clamp(1.1rem, 2.6vw, 2rem);
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--field);
  color: var(--body);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 46em) { body { font-size: 1.125rem; } }

h1, h2 {
  color: var(--ink);
  line-height: 1.16;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.016em;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.72rem, 5.1vw, 2.6rem); letter-spacing: -0.024em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.95rem); }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

strong { color: var(--ink); font-weight: 700; }

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--accent-dk);
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  z-index: 5;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- one shared outer rail ---------- */

.wrap {
  width: min(100% - (2 * var(--edge)), var(--rail));
  margin-inline: auto;
}

.sec { margin: var(--gap) 0 0; }

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(1.5rem, 4.4vw, 3.1rem) var(--pad);
}

.band { padding: clamp(2.3rem, 5.6vw, 4.1rem) 0; }
.bandin { padding-inline: var(--pad); }

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--dark { color: var(--on-dark-3); }

/* ---------- hero ---------- */

.hero {
  background: var(--deep);
  color: var(--on-dark-2);
  padding: clamp(2.2rem, 6vw, 4.3rem) 0 clamp(2.2rem, 6vw, 4.1rem);
}

.hero .wrap > .hero__in { padding-inline: var(--pad); }

.hero h1 { color: #ffffff; margin-bottom: 1.1rem; }

.hero__copy .answer {
  color: var(--on-dark);
  font-size: clamp(1.08rem, 2.5vw, 1.32rem);
  line-height: 1.52;
  margin-bottom: 1rem;
}

.hero__sub { color: var(--on-dark-2); margin-bottom: 0; }

.xsec {
  margin: 1.9rem 0 0;
  border: 1px solid #2c4048;
  border-radius: 6px;
  background: var(--deep-2);
  padding: 0.5rem;
}
.xsec svg { display: block; width: 100%; height: auto; }

.xsec__plate  { fill: var(--deep-2); }
.xsec__roof   { fill: var(--steel); stroke: #8ea3ac; stroke-width: 3; }
.xsec__fascia { fill: var(--wood); stroke: var(--wood-dk); stroke-width: 3; }
.xsec__metal  { fill: none; stroke: #e3ecef; stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.xsec__guide  { stroke: #6f8a90; stroke-width: 2.5; stroke-dasharray: 7 7; }
.xsec__dim    { stroke: var(--on-dark-3); stroke-width: 4; }
.xsec__arrow  { fill: var(--on-dark-3); }
.xsec__lead   { stroke: var(--on-dark-3); stroke-width: 3; }
.xsec__dot    { fill: var(--on-dark-3); }
.xsec__big    { fill: var(--on-dark-3); font-family: var(--ui); font-size: 46px; font-weight: 700; }
.xsec__lbl    { fill: var(--on-dark); font-family: var(--ui); font-size: 30px; font-weight: 600; }
.xsec__lbl--mid { fill: var(--on-dark-2); }

@media (min-width: 62em) {
  .hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(1.8rem, 3.6vw, 3.4rem);
    align-items: center;
  }
  .xsec { margin: 0; }
}

/* ---------- section leads ---------- */

.lead { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.lead__head { margin-bottom: 0.85rem; }
.lead__answer {
  font-size: clamp(1.04rem, 2.1vw, 1.19rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

@media (min-width: 62em) {
  .lead--split {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.4rem, 3vw, 2.8rem);
    align-items: start;
  }
  .lead__head { margin-bottom: 0; }
}

.lead--dark h2 { color: #ffffff; }
.lead--dark .lead__answer { color: var(--on-dark); }

.sheet__bridge {
  margin: 0 0 1.2rem;
  max-width: 46ch;
  color: var(--ink);
  font-weight: 600;
}

.sheet__close {
  margin: clamp(1.3rem, 2.8vw, 2rem) 0 0;
  max-width: 74ch;
  padding-top: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid var(--line-2);
}

/* ---------- profile cards (semantic table) ---------- */

.profiles { width: 100%; border-collapse: collapse; }
.profiles caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.profiles thead {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.profiles, .profiles tbody, .profiles tr, .profiles th, .profiles td { display: block; }

.profiles tbody {
  display: grid;
  gap: 0.9rem;
}

.profiles tr {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  background: #fbfcfa;
  padding: clamp(1rem, 2.6vw, 1.4rem);
}

.profiles th[scope="row"] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0 0 0.85rem;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 0.85rem;
}

.profiles th[scope="row"]::before { content: none; }

.glyph {
  flex: 0 0 auto;
  width: 3.35rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profiles__name {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.profiles td { padding: 0 0 0.85rem; overflow-wrap: anywhere; }
.profiles td:last-child { padding-bottom: 0; }

.profiles td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 46em) {
  .profiles tbody { grid-template-columns: 1fr 1fr; gap: 1.1rem; }
}

/* ---------- label band ---------- */

.band--label { background: var(--tint); border-block: 1px solid #cfdcd5; }

.label__answer {
  font-size: clamp(1.1rem, 2.3vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink);
  margin: 0.9rem 0 0;
  padding-left: 0.95rem;
  border-left: 4px solid var(--accent);
}

.label__body { margin-top: 1.5rem; }
.label__body p:last-child { margin-bottom: 0; }

.fitmatrix__wrap {
  margin-top: clamp(1.6rem, 3.4vw, 2.5rem);
  grid-column: 1 / -1;
}

.fitmatrix__title {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
}

.fitmatrix { width: 100%; border-collapse: collapse; }
.fitmatrix caption,
.fitmatrix thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.fitmatrix, .fitmatrix tbody, .fitmatrix tr, .fitmatrix th, .fitmatrix td { display: block; }
.fitmatrix tbody { display: grid; gap: 0.75rem; }
.fitmatrix tr {
  background: var(--paper);
  border: 1px solid #c8d7d0;
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  padding: 1rem;
}
.fitmatrix th,
.fitmatrix td { text-align: left; padding: 0 0 0.7rem; overflow-wrap: anywhere; }
.fitmatrix td:last-child { padding-bottom: 0; }
.fitmatrix th::before,
.fitmatrix td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.fitmatrix th { color: var(--ink); font-size: 1.02rem; line-height: 1.35; }
.fitmatrix td strong { color: var(--accent-dk); }

@media (min-width: 46em) {
  .fitmatrix tbody { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (min-width: 62em) {
  .label__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.8rem, 3.8vw, 3.4rem);
    align-items: start;
  }
  .label__body { margin-top: 0; }
}

/* ---------- decision sheet ---------- */

.sheet--decide { border-top: 5px solid var(--accent-dk); }

.decide__answer {
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  line-height: 1.46;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 clamp(1.4rem, 3vw, 2.1rem);
  max-width: 42ch;
}

.decide__cases p:last-child { margin-bottom: 0; }

.decide__note {
  margin: clamp(1.4rem, 3vw, 2.1rem) 0 0;
  padding-top: clamp(1rem, 2.2vw, 1.5rem);
  border-top: 1px solid var(--line-2);
  color: var(--muted);
  max-width: 74ch;
}

@media (min-width: 62em) {
  .decide__answer { max-width: 34ch; font-size: 1.5rem; }
  .decide__cases {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.6rem, 3.4vw, 3rem);
  }
  .decide__cases p { margin-bottom: 0; }
}

/* ---------- company band ---------- */

.band--firms { background: var(--deep); color: var(--on-dark-2); }

.firms { width: 100%; border-collapse: collapse; }
.firms caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.firms thead {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.firms, .firms tbody, .firms tr, .firms th, .firms td { display: block; }

.firms tbody { display: grid; gap: 1rem; }

.firms tr {
  background: var(--paper);
  border: 1px solid #cfd6d2;
  border-radius: 5px;
  padding: clamp(1.05rem, 2.8vw, 1.6rem);
  color: var(--body);
}

.firms th[scope="row"] {
  text-align: left;
  padding: 0 0 0.9rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-2);
}

.firms td { padding: 0 0 0.95rem; overflow-wrap: anywhere; }
.firms td:last-child { padding-bottom: 0; }

.firms th[scope="row"]::before,
.firms td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.firms th[scope="row"] a {
  display: inline-block;
  min-height: 44px;
  line-height: 1.28;
  padding: 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-dk);
}
.firms th[scope="row"] a:hover { color: var(--ink); }

.firms__after { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.firms__after p:last-child { margin-bottom: 0; }

@media (min-width: 60em) {
  .firms tbody { grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: stretch; }
  .firms__after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.4rem, 3vw, 2.4rem);
  }
  .firms__after p { margin-bottom: 0; }
}

/* ---------- quote checklist ---------- */

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checks li {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0 0 2.1rem;
  position: relative;
  overflow-wrap: anywhere;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.85rem;
  height: 0.5rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

.quote__close {
  margin: clamp(1.4rem, 3vw, 2.1rem) 0 0;
  padding: clamp(1rem, 2.4vw, 1.4rem) 0 0;
  border-top: 3px solid var(--accent-dk);
  color: var(--ink);
  font-weight: 600;
  max-width: 62ch;
}

@media (min-width: 62em) {
  .checks { grid-template-columns: 1fr 1fr; gap: 0.6rem clamp(1.6rem, 3.4vw, 3rem); }
}

/* ---------- footer ---------- */

.foot {
  margin-top: var(--gap);
  padding: clamp(1.6rem, 3.4vw, 2.4rem) 0 clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.foot p {
  padding-inline: var(--pad);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 78ch;
}

/* ---------- 404 ---------- */

.nf {
  min-height: 72vh;
  display: grid;
  align-content: center;
  padding: 3rem 0;
}
.nf h1 { margin-bottom: 1rem; }
.nf .wrap { padding-inline: var(--pad); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
