/* =========================================================
   Roof Replacement Broward — direction "Roofline", jacaranda violet
   Fort Lauderdale's mid-century housing seen from the street is the
   brand: flat, low hip, gable and barrel-tile roof forms drawn as one
   line. Warm stucco ground, violet-black night for the hero and the
   footer, one jacaranda violet. Figures, dates and permit offices are
   mono and tabular. Plain CSS, no build step.
   ========================================================= */

/* shortcut: Google Fonts via @import (one extra round trip). Self-host all three faces before the renting contractor goes live. */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Figtree:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

:root {
  /* ground: warm stucco, four steps */
  /* held under impeccable's cream-palette line (r-b <= 5 on the page): stucco white, not beige */
  --paper:  #f3f1ee;   /* page */
  --card:   #fffdf8;   /* raised surface: cards, panels, header */
  --paper2: #efebe1;   /* alternating sections */
  --well:   #e9e4d8;   /* deepest wells: readouts, table heads */

  /* rules */
  --rule:        #ddd6c8;   /* hairlines between cells */
  --rule-strong: #c9c1b0;   /* panel borders; the breeze-block line */

  /* ink */
  --ink:       #1d1b27;   /* 15.2:1 on paper, 13.4:1 on well */
  --ink-soft:  #56516a;   /* 6.8:1 on paper, 6.0:1 on well */
  --ink-faint: #625d73;   /* 5.6:1 on paper, 5.0:1 on well */

  /* night: the hero and the footer */
  --night:     #1d1b27;
  --night2:    #26232f;
  --night-rule:#3a3647;
  --on-night:  #d9d4e6;   /* 11.7:1 on night */
  --on-night2: #b8b2c9;   /* 8.3:1 on night */

  /* jacaranda violet: the only saturated colour on the site */
  --vio:      #5a3ea6;   /* 7.0:1 on paper, 7.7:1 on card, 6.2:1 on well. Paper text on fills: 7.0:1 */
  --vio-deep: #3f2a7a;   /* pressed, borders, hover; 10.3:1 on paper */
  --vio-tint: #ece6fb;   /* 6.5:1 against the violet band */
  --vio-hi:   #b9a6ff;   /* violet on night: 8.0:1 */

  /* s12b shared token names, so the chat widget wears the site */
  --brand: var(--vio); --brand-dark: var(--vio-deep); --line: var(--rule-strong);
  --bg: var(--paper); --bg-alt: var(--paper2); --bg-dark: var(--night);
  --surface: var(--card); --text: var(--ink); --muted: var(--ink-soft);
  --border: var(--rule-strong); --accent: var(--vio); --cta: var(--vio);

  --max: 1180px;
  --radius: 3px;
  --font-head: "Syne", "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* the list mark: a single roof pitch */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M2 12L9 5.5L16 12' fill='none' stroke='%235a3ea6' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E");
  /* the section rule: a row of low hip roofs, the street seen from far off */
  --leader: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='8' viewBox='0 0 30 8'%3E%3Cpath d='M1 7L7 2H21L27 7' fill='none' stroke='%23c9c1b0' stroke-width='1.2'/%3E%3C/svg%3E");
  /* breeze block: the mid-century screen wall, decoration only, never behind body text */
  --breeze: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='1' y='1' width='38' height='38'/%3E%3Ccircle cx='20' cy='20' r='11'/%3E%3Cpath d='M20 1v8M20 31v8M1 20h8M31 20h8'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[id] { scroll-margin-top: 88px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--vio); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--vio-deep); }
:focus-visible { outline: 3px solid var(--vio); outline-offset: 2px; }
::selection { background: var(--vio-tint); color: var(--ink); }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); font-family: var(--font-head); font-weight: 600; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.skip-link:hover, .skip-link:focus { color: var(--paper); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.018em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.016em; }
h3 { font-size: 1.24rem; font-weight: 600; line-height: 1.25; }
h4 { font-size: 1rem; }
p + p { margin-top: 1.05em; }
strong { font-weight: 600; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--ink-faint); font-size: .95rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.sheet { background: var(--card); border: 1px solid var(--rule-strong); }

/* ---------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,254,251,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule-strong); }
.nav { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 22px; min-height: 68px; }
.nav__logo { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; flex: 0 0 auto; }
/* logomark = favicon, reused (s9). "Courses", picked by Ivan Nov 26: three
   stacked chevrons getting smaller, like rows of shingle or tile going up the
   pitch, on the CTA violet. Same artwork as favicon.svg. */
.nav__logo::before {
  content: ""; width: 30px; height: 30px; flex: 0 0 auto;
  background-color: var(--vio); border-radius: 7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M5 24l11-7 11 7' fill='none' stroke='%23b9a6ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 18.5l8-5 8 5' fill='none' stroke='%23e4dcff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 13l5-3.2 5 3.2' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 30px 30px; background-repeat: no-repeat;
}
.nav__logo strong { font-weight: 700; }
.nav__links { list-style: none; display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: .93rem; font-weight: 500; }
.nav__links a:hover { color: var(--vio); }
.nav__call { font-family: var(--font-mono); font-weight: 600; font-size: .89rem !important; letter-spacing: -.02em; color: var(--vio) !important; white-space: nowrap; }
.nav__end { display: none; align-items: center; gap: 14px; margin-left: auto; }
.nav__toggle { background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); width: 42px; height: 38px; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.nav__toggle svg { width: 21px; height: 21px; }
.has-dropdown { position: relative; }
.dropdown { position: absolute; top: 100%; left: -14px; min-width: 285px; background: var(--card); border: 1px solid var(--rule-strong); list-style: none; padding: 7px 0; opacity: 0; visibility: hidden; transition: opacity .15s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; }
.dropdown a { display: block; padding: 9px 18px; font-weight: 400; font-size: .92rem; }
.dropdown a:hover { background: var(--well); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em;
  padding: 15px 28px; border: 1px solid var(--vio); border-radius: var(--radius);
  background: var(--vio); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease-out), background .12s;
}
.btn:hover { background: var(--vio-deep); color: var(--paper); transform: translateY(-2px); }
.btn:active { transform: translateY(0); background: var(--vio-deep); }
.btn--lg { padding: 18px 32px; font-size: 1.08rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: transparent; color: var(--vio); border-color: var(--vio); transform: translateY(-2px); }

/* ---------------------------------------------------------- section marker: number, a row of roofs, label */
.dim { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dim__no { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--vio); letter-spacing: .06em; flex: 0 0 auto; }
.dim__line { flex: 1 1 auto; height: 8px; background-image: var(--leader); background-repeat: repeat-x; background-position: left center; background-size: 30px 8px; opacity: 1; }
.dim__label { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); flex: 0 0 auto; }

/* ---------------------------------------------------------- hero */
/* Night ground, white H1 (s9). .hero__photo is the photo slot: until the
   Higgsfield hero is approved it carries only a soft violet glow, and the
   roofline strip along the bottom is the hero's picture. When the photo
   lands: background-image on .hero__photo with the s9 overlay stops. */
.hero { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, rgba(90,62,166,.34), rgba(29,27,39,0) 60%); }
/* The photo (option 4, picked by Ivan Nov 26: a roofer rolling membrane on a
   mid-century flat roof). The bottom layer fades the art to night before the
   roof-type cards, so they sit on a solid ground.
   Was: the photo, once approved (Ivan, Nov 26: "dark fade, slightly purple").
   Three layers: a violet wash, the s9 horizontal scrim that holds the type
   column, then the art anchored right. Fades back to night at the far right
   edge so a wide screen never ends in a bright photo. */
.hero__photo--art {
  background:
    linear-gradient(180deg, rgba(29,27,39,0) 52%, rgba(29,27,39,.85) 72%, rgba(29,27,39,1) 84%),
    linear-gradient(180deg, rgba(90,62,166,.22), rgba(90,62,166,.10)),
    linear-gradient(90deg, rgba(29,27,39,.95) 0%, rgba(29,27,39,.9) 36%, rgba(29,27,39,.5) 62%, rgba(29,27,39,.4) 80%, rgba(29,27,39,.9) 100%),
    url("/assets/hero.webp") 78% 30% / cover no-repeat;
}
.hero__in { position: relative; max-width: var(--max); margin: 0 auto; padding: 76px 28px 64px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 52px; align-items: start; }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 1px 18px rgba(0,0,0,.25); }
.hero__sub { margin-top: 22px; font-size: 1.2rem; color: var(--on-night); max-width: 46ch; }
.hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero .btn { border-color: var(--vio-hi); }
.hero .btn--ghost { color: #fff; border-color: var(--night-rule); background: transparent; }
.hero .btn--ghost:hover { color: #fff; border-color: var(--vio-hi); }
.hero a:not(.btn) { color: var(--vio-hi); }
/* the form card is a light surface inside the night hero: give it back the paper colours */
.hero .form-card { color: var(--ink); }
.hero .form-card a:not(.btn) { color: var(--vio); }
.hero__stats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--night-rule); max-width: 470px; background: var(--night2); }
.hero__stat { padding: 14px 19px; border-right: 1px solid var(--night-rule); border-bottom: 1px solid var(--night-rule); }
.hero__stat:nth-child(2n) { border-right: 0; }
.hero__stat:nth-last-child(-n+2) { border-bottom: 0; }
.hero__stat b { display: block; font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--vio-hi); }
.hero__stat span { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-night2); }

/* the roofline: four roof forms from the City's own architectural surveys.
   Each is a card with its own number, drawing, material, rated life and
   published Broward price, and a link to the roofers for that roof. */
.hero__roofline { position: relative; padding: 8px 0 52px; }
.roofline { max-width: var(--max); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.roofline__item { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; text-decoration: none; color: var(--on-night); background: linear-gradient(180deg, rgba(90,62,166,.16), rgba(38,35,47,.9) 58%); border: 1px solid var(--night-rule); border-radius: 6px; transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; }
.roofline__no { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; color: var(--vio-hi); }
.roofline__item svg { display: block; width: 100%; max-width: 210px; height: auto; margin: 6px auto 12px; fill: none; stroke: var(--vio-hi); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.roofline__name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; color: #fff; }
.roofline__mat { font-size: .9rem; color: var(--on-night); }
.roofline__spec { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--night-rule); font-family: var(--font-mono); font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--on-night2); }
.roofline__cta { margin-top: 10px; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--vio-hi); }
.roofline__cta span { display: inline-block; transition: transform .2s var(--ease-out); }
.roofline__item:hover, .roofline__item:focus-visible { transform: translateY(-3px); border-color: var(--vio-hi); box-shadow: 0 12px 30px -14px rgba(90,62,166,.7); color: #fff; }
.roofline__item:hover svg, .roofline__item:focus-visible svg { stroke: #fff; }
.roofline__item:hover .roofline__cta span { transform: translateX(4px); }

/* the date card: what the date on your roof decides. Light card on the night ground. */
.hero__plan { position: relative; }
.gauge { border: 1px solid var(--rule-strong); background: var(--card); box-shadow: 0 1px 0 var(--rule); }
.gauge__read { padding: 22px 24px 18px; border-bottom: 1px solid var(--rule-strong); background: var(--vio); }
.gauge__label { display: block; font-family: var(--font-mono); font-size: .71rem; text-transform: uppercase; letter-spacing: .18em; color: var(--vio-tint); }
.gauge__fig { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; }
.gauge__fig b { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 7.4vw, 4.4rem); line-height: .9; letter-spacing: -.04em; color: var(--paper); }
.gauge__fig span { font-family: var(--font-mono); font-size: .79rem; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: var(--vio-tint); }
.gauge__sub { margin-top: 12px; font-size: .89rem; line-height: 1.52; color: var(--vio-tint); }
.gauge__rows { list-style: none; }
.gauge__rows li { padding: 15px 24px 15px 50px; border-bottom: 1px solid var(--rule); position: relative; }
.gauge__rows li::before { content: ""; position: absolute; left: 22px; top: 17px; width: 18px; height: 18px; background-image: var(--mark); background-repeat: no-repeat; background-size: 18px 18px; }
.gauge__rows li:last-child { border-bottom: 0; }
.gauge__rows b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; color: var(--ink); }
.gauge__rows span { display: block; margin-top: 3px; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.gauge__foot { padding: 14px 24px 16px; border-top: 1px solid var(--rule-strong); background: var(--well); font-size: .81rem; line-height: 1.5; color: var(--ink-soft); }

/* inner-page hero: shorter, no card, no roofline */
.hero--inner .hero__in { grid-template-columns: 1fr; padding: 58px 28px 62px; max-width: 900px; }
.hero--inner h1 { max-width: 24ch; font-size: clamp(2rem, 4.4vw, 3.1rem); }

/* ---------------------------------------------------------- sections */
.sec { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.sec--alt { background: var(--paper2); }
/* the 58ch measure belongs to running text only; tables, the widgets and the
   card grids use the full column. */
.sec__body > p, .sec__body > ul, .sec__body > h3, .sec__body > .muted { max-width: 50ch; }  /* Figtree sets ~1.5 chars per ch: 50ch keeps lines under 80 */
.sec__body h3 { margin-top: 2.1em; margin-bottom: .55em; }
.sec__body > :first-child { margin-top: 0; }
.sec__body p { color: var(--ink-soft); }
.sec__body ul { margin: 18px 0 0; padding-left: 0; list-style: none; }
.sec__body li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.sec__body li::before { content: ""; position: absolute; left: 0; top: .34em; width: 18px; height: 18px; background-image: var(--mark); background-repeat: no-repeat; background-size: 18px 18px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--rule-strong); background: var(--card); }
.card { padding: 27px 24px 29px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.card__no { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; color: var(--vio); letter-spacing: .08em; display: block; margin-bottom: 10px; }
.card h3 { margin-bottom: 8px; font-size: 1.14rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--vio); text-decoration: underline; }
.card p { font-size: .96rem; color: var(--ink-soft); }

/* link list */
.linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.wrap > h3 { margin-top: 2.1em; }
.wrap > h2 + h3 { margin-top: 1.1em; }
.linklist a { display: inline-block; padding: 9px 15px; background: var(--card); border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; font-family: var(--font-head); font-size: .92rem; font-weight: 500; }
.linklist a:hover { border-color: var(--vio); color: var(--vio); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--rule-strong); }
.step { counter-increment: step; display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--rule); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-size: 1.02rem; font-weight: 600; color: var(--vio); }
.step h3 { margin-bottom: 5px; font-size: 1.12rem; }
.step p { color: var(--ink-soft); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
th { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink); background: var(--well); }
td { color: var(--ink-soft); }
td:last-child { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 30px; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: -.012em; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; font-family: var(--font-mono); font-size: 1.25rem; color: var(--vio); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 40px 19px 0; color: var(--ink-soft); max-width: 54ch; }

/* CTA band: the one violet flood on the site, breeze block as texture */
.cta { background: var(--vio) var(--breeze) repeat; color: var(--paper); padding: 78px 0; border-bottom: 1px solid var(--vio-deep); }
.cta h2 { color: var(--paper); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -.028em; max-width: 17ch; }
.cta p { margin-top: 14px; color: var(--vio-tint); max-width: 52ch; }
.cta__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 13px; }
.cta .btn { background: var(--paper); color: var(--vio-deep); border-color: var(--paper); }
.cta .btn:hover { background: #fff; color: var(--vio-deep); }
.cta .btn--ghost { background: transparent; color: var(--paper); border-color: #9d8ad6; }
.cta .btn--ghost:hover { background: var(--paper); color: var(--vio-deep); border-color: var(--paper); }

/* split heading */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 38px; align-items: end; }
.split p { color: var(--ink-soft); }

/* ---------------------------------------------------------- the wind-mit sheet
   Four questions on the left; on the right, the roof lines of the state
   form OIR-B1-1802, one ruled row each, the way the form itself is laid out:
   a line number, the item, a tag for what a re-roof does to it. */
.path { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); border: 1px solid var(--rule-strong); background: var(--card); margin-top: 32px; }
.path__in { padding: 28px 26px; border-right: 1px solid var(--rule-strong); }
.path__q { border: 0; margin-bottom: 22px; }
.path__q:last-of-type { margin-bottom: 0; }
.path__q legend { font-family: var(--font-mono); font-size: .73rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 9px; }
.path__opts { display: flex; flex-wrap: wrap; gap: 7px; }
.path__opts label { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius); font-family: var(--font-head); font-size: .89rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.path__opts label:hover { border-color: var(--vio); color: var(--ink); }
.path__opts label:has(input:checked) { border-color: var(--vio); background: var(--vio-tint); color: var(--ink); }
.path__opts input { accent-color: var(--vio); width: 16px; height: 16px; }
.path__out { padding: 28px 26px; background: var(--well); }
.path__head { font-family: var(--font-mono); font-size: .73rem; text-transform: uppercase; letter-spacing: .14em; color: var(--vio); margin-bottom: 18px; }
.path__route { list-style: none; counter-reset: stop; }
.path__route li { position: relative; padding: 16px 0 16px 52px; counter-increment: stop; border-top: 1px solid var(--rule-strong); }
.path__route li::before { content: counter(stop, decimal-leading-zero); position: absolute; left: 0; top: 15px; width: 34px; height: 26px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--vio); border-radius: var(--radius); font-family: var(--font-mono); font-size: .74rem; font-weight: 500; color: var(--vio-deep); font-variant-numeric: tabular-nums; }
.path__route li:last-child { border-bottom: 1px solid var(--rule-strong); }
.path__route h3 { font-size: 1.02rem; color: var(--ink); margin-bottom: 4px; }
.path__tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--vio-deep); background: var(--vio-tint); border-radius: var(--radius); }
.path__route p { font-size: .93rem; line-height: 1.55; color: var(--ink-soft); max-width: 50ch; }
.path__note { margin-top: 16px; font-size: .86rem; color: var(--ink-soft); max-width: 50ch; }

/* ---------------------------------------------------------- form */
.form-card { background: var(--card); border: 1px solid var(--rule-strong); padding: 27px 24px; }
.form-card h2 { font-size: 1.4rem; }
.form-card p { color: var(--ink-soft); }
.field { margin-bottom: 15px; }
.field label { display: block; font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-faint); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 13px; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }  /* 5.6:1 on paper */
.field input:focus, .field textarea:focus { border-color: var(--vio); outline: 2px solid rgba(90,62,166,.28); outline-offset: 0; }
.form-error { color: #8c2f22; font-weight: 600; font-size: .94rem; margin-bottom: 12px; }

/* ---------------------------------------------------------- footer */
/* night ground with the breeze-block screen as texture: decoration only */
.site-footer { background: var(--night) var(--breeze) repeat; color: var(--on-night); padding: 58px 0 0; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--vio-hi); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 0; border: 1px solid var(--night-rule); background: var(--night2); }
.footer-grid > div { padding: 25px 22px; border-right: 1px solid var(--night-rule); }
.footer-grid > div:last-child { border-right: 0; }
.site-footer h3 { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500; color: var(--vio-hi); margin-bottom: 14px; line-height: 1.4; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer p { color: var(--on-night); }
.site-footer strong { color: #fff; }
.titleblock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--night-rule); border-bottom: 0; background: var(--night); }
.titleblock div { padding: 12px 22px; border-right: 1px solid var(--night-rule); }
.titleblock div:last-child { border-right: 0; }
.titleblock dt { font-family: var(--font-mono); font-size: .65rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-night2); }
.titleblock dd { font-family: var(--font-mono); font-size: .73rem; font-variant-numeric: tabular-nums; color: #fff; margin-top: 3px; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid var(--night-rule); margin-top: 0; padding: 21px 0 94px; font-family: var(--font-mono); font-size: .78rem; color: var(--on-night2); letter-spacing: .02em; }

/* ---------------------------------------------------------- sticky phone bar */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; border-top: 1px solid var(--vio-deep); }
.sticky-cta a { flex: 1 1 0; text-align: center; padding: 16px 8px; font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; text-decoration: none; }
.sticky-cta__call { background: var(--vio); color: var(--paper); }
.sticky-cta__est { background: var(--card); color: var(--ink); border-left: 1px solid var(--rule-strong); }
/* the generic a:hover would paint vio-deep text on the violet bar */
.sticky-cta__call:hover { background: var(--vio-deep); color: var(--paper); }
.sticky-cta__est:hover { background: var(--well); color: var(--ink); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1140px) {
  .roofline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock div:nth-child(2n) { border-right: 0; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--rule-strong); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; display: none; }
  .nav__links.open { display: flex; }
  .nav__links > li > a { display: block; padding: 12px 28px; }
  .nav__links .nav__call { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; border: 0; padding: 0 0 6px 14px; min-width: 0; background: none; }
  .nav__end { display: flex; }
  .hero__in { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { max-width: 20ch; }
  .gauge { max-width: 520px; }
  .split { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .path { grid-template-columns: 1fr; }
  .path__in { border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:nth-child(2n) { border-right: 0; }
  .footer-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--night-rule); }
}
@media (max-width: 700px) {
  .wrap, .nav, .hero__in { padding-left: 18px; padding-right: 18px; }
  .sec { padding: 50px 0; }
  .hero__in { padding: 48px 18px 54px; }
  .hero h1 { max-width: 100%; }
  .hero__sub { max-width: 100%; }
  .hero__stats { max-width: 100%; }
  .gauge { max-width: 100%; }
  .gauge__read, .gauge__foot { padding-left: 20px; padding-right: 20px; }
  .gauge__rows li { padding-left: 46px; padding-right: 20px; }
  .gauge__rows li::before { left: 18px; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { border-right: 0; border-bottom: 1px solid var(--night-rule); }
  .footer-grid > div:last-child { border-bottom: 0; }
  .sticky-cta { display: flex; }
  .roofline { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 18px; gap: 10px; }
  .roofline__item { padding: 14px 14px 16px; }
  .roofline__spec { flex-direction: column; gap: 2px; }
  .hero__roofline { padding-bottom: 40px; }
  /* phones: the art is a fixed masthead band at the top that fades into the
     night before the buttons, never a 9:16 crop zoomed over the whole hero */
  .hero__photo--art {
    bottom: auto; height: 440px;
    background:
      linear-gradient(180deg, rgba(29,27,39,.55) 0%, rgba(29,27,39,.78) 55%, rgba(29,27,39,1) 100%),
      linear-gradient(180deg, rgba(90,62,166,.22), rgba(90,62,166,.10)),
      url("/assets/hero-phone.webp") center 82% / cover no-repeat;
  }
}
@media (max-width: 560px) {
  /* the header keeps the mark, the name and the menu; the sticky bottom bar
     already carries Call now. */
  .nav__end .nav__call { display: none; }
  .nav { gap: 12px; }
}
@media (max-width: 480px) {
  .nav__logo { font-size: .93rem; }
  .nav__logo::before { width: 26px; height: 26px; }
  .hero__btns .btn { width: 100%; }
}
