/*
 * GER "How It Works" page — /how-it-works/
 * Adapted from the approved React design (getenergyrebates-how-it-works handoff).
 * Scoped to #ger-hiw. Reuses the site's theme header/footer (standalone header/footer removed).
 * Deviations from the handoff, per site rules:
 *   - CTAs are AMBER, not lime (No-Green rule / navy+Energy Blue+amber palette).
 *   - The search field is ZIP (not street address) and submits to /rebate-finder/ (ZIP-only intake).
 */
#ger-hiw{
  --navy:#0a1e3f;      /* matches the theme header */
  --ink:#07183f;
  --blue:#0078f8;      /* site Energy Blue */
  --line:#cfe0f5;
  --soft:#f2f7fe;
  --acc:#e8a020;       /* amber CTA */
  --acc-d:#c47c10;
  --f:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-family:var(--f); color:#061944; line-height:1.5;
  /* Break out of the theme's boxed container so the section bands render full width. */
  width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
}
html body #ger-hiw{overflow-x:clip}
#ger-hiw *,#ger-hiw *::before,#ger-hiw *::after{box-sizing:border-box}
#ger-hiw h1,#ger-hiw h2{margin:0}
#ger-hiw a{color:inherit;text-decoration:none}
#ger-hiw svg{stroke-width:1.5;stroke:currentColor;fill:none;stroke-linecap:round;stroke-linejoin:round}
#ger-hiw .hiw-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Amber CTA (replaces the design's lime) */
#ger-hiw .hiw-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 30px;border:0;border-radius:6px;background:var(--acc);color:#1a1204;font-size:15px;font-weight:800;cursor:pointer;font-family:var(--f)}
#ger-hiw .hiw-btn:hover,#ger-hiw .hiw-btn:focus-visible{background:var(--acc-d);color:#1a1204;outline:3px solid rgba(232,160,32,.28);outline-offset:2px}

/* Trust points */
#ger-hiw .hiw-trust{display:flex;gap:18px;margin-top:20px;flex-wrap:wrap}
#ger-hiw .hiw-trust span{display:inline-flex;align-items:flex-start;gap:8px;font-size:11.5px;line-height:1.35;max-width:170px}
#ger-hiw .hiw-trust span svg{flex:0 0 auto;width:15px;height:15px;margin-top:1px;color:var(--blue);border:1.5px solid var(--blue);border-radius:50%;padding:1px}
#ger-hiw .hiw-trust.inv{color:#fff;gap:20px}
#ger-hiw .hiw-trust.inv span{max-width:none;font-size:11px}
#ger-hiw .hiw-trust.inv span svg{color:#fff;border-color:#fff}

/* ── Hero ─────────────────────────────────────────────── */
#ger-hiw .hiw-hero{position:relative;border-bottom:1px solid #d8e3f0;overflow:hidden}
#ger-hiw .hiw-mapmotif{position:absolute;width:460px;height:100%;right:-120px;top:-20px;color:#dceafa;opacity:.55;transform:rotate(16deg);pointer-events:none}
#ger-hiw .hiw-mapmotif svg{width:360px;height:360px;stroke-width:1}
#ger-hiw .hiw-hero-shell{width:min(100% - 80px,1280px);margin:0 auto;display:grid;grid-template-columns:minmax(380px,.9fr) minmax(440px,1.25fr);align-items:center;gap:60px;padding:52px 0 44px;position:relative;z-index:1}
#ger-hiw .hiw-hero-copy{max-width:500px}
#ger-hiw .hiw-hero-copy h1{color:var(--ink);font-size:clamp(38px,4vw,56px);line-height:1.07;letter-spacing:-.03em;font-weight:800}
#ger-hiw .hiw-hero-copy h1 span{color:var(--blue);border-bottom:3px solid var(--blue);padding-bottom:8px}
#ger-hiw .hiw-hero-copy > p{max-width:510px;margin:20px 0 24px;font-size:16px;line-height:1.6}

/* Hero equation */
#ger-hiw .hiw-eq{display:grid;grid-template-columns:repeat(4,minmax(88px,1fr));align-items:start;max-width:670px;margin-left:auto;position:relative;z-index:1}
#ger-hiw .hiw-eq-w{display:flex;align-items:flex-start;position:relative}
#ger-hiw .hiw-eq-sym{color:var(--blue);font-size:25px;font-weight:700;margin:40px -3px 0}
#ger-hiw .hiw-eq-u{min-width:100px;text-align:center;flex:1}
#ger-hiw .hiw-eq-ic{width:88px;height:88px;margin:0 auto 16px;display:grid;place-items:center;border-radius:50%;color:var(--ink);background:#eff5fc;position:relative}
#ger-hiw .hiw-eq-ic svg{width:48px;height:48px}
#ger-hiw .hiw-eq-ic b{position:absolute;right:2px;bottom:8px;padding:3px 5px;border-radius:4px;background:var(--blue);color:#fff;font-size:10px}
#ger-hiw .hiw-eq-u > span{display:block;font-size:14px;line-height:1.35;font-weight:650}
#ger-hiw .hiw-eq-note{grid-column:1 / -1;text-align:center;margin:32px 0 0;font-size:12px}
#ger-hiw .hiw-eq-note strong{color:var(--blue)}

/* ── Timeline ─────────────────────────────────────────── */
#ger-hiw .hiw-tl{width:min(100% - 130px,1220px);margin:0 auto;position:relative;padding:8px 0}
#ger-hiw .hiw-tl-line{position:absolute;width:1px;background:#86b3f6;top:34px;bottom:40px;left:50%;transform:translateX(-50%)}
#ger-hiw .hiw-step{min-height:270px;display:grid;grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);align-items:stretch;position:relative}
#ger-hiw .hiw-cell{border-bottom:1px solid #d9e5f3;padding:34px 30px;display:flex;align-items:center}
#ger-hiw .hiw-step:last-child .hiw-cell{border-bottom:0}
#ger-hiw .hiw-cell.l{justify-content:flex-end}
#ger-hiw .hiw-cell.r{justify-content:flex-start}
#ger-hiw .hiw-num{display:flex;justify-content:center;align-items:flex-start;padding-top:30px;position:relative;z-index:2}
#ger-hiw .hiw-num::before,#ger-hiw .hiw-num::after{content:"";position:absolute;top:50px;width:26px;border-top:2px dotted #86b3f6}
#ger-hiw .hiw-num::before{right:calc(100% - 3px)}
#ger-hiw .hiw-num::after{left:calc(100% - 3px)}
#ger-hiw .hiw-num span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-size:14px;font-weight:800;box-shadow:0 0 0 6px #fff}
#ger-hiw .hiw-txt{width:100%;max-width:440px;align-self:flex-start;padding-top:10px}
#ger-hiw .hiw-txt h2{margin-bottom:12px;font-size:26px;line-height:1.05;letter-spacing:-.03em;color:var(--ink)}
#ger-hiw .hiw-txt p{margin:0;font-size:15px;line-height:1.55}
#ger-hiw .hiw-txt strong{display:block;margin-top:10px;font-size:14px;line-height:1.4}
#ger-hiw .hiw-bluenote{color:var(--blue)}

/* Step visuals */
#ger-hiw .hiw-vis{width:100%;max-width:440px;min-height:165px;color:#0759e3}
#ger-hiw .hiw-lib{display:flex;align-items:center;justify-content:center;gap:42px}
#ger-hiw .hiw-lib svg{width:84px;height:84px}
#ger-hiw .hiw-flow{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--blue)}
#ger-hiw .hiw-flow svg{width:70px;height:70px}
#ger-hiw .hiw-flow svg.sm{width:28px;height:28px}
#ger-hiw .hiw-flow svg.mut{color:#8090aa}
#ger-hiw .hiw-weight{display:grid;grid-template-columns:90px 1fr;gap:24px;align-items:center}
#ger-hiw .hiw-cem{position:relative;display:grid;place-items:center;color:var(--ink)}
#ger-hiw .hiw-cem svg{width:74px;height:74px}
#ger-hiw .hiw-cem b{background:var(--blue);color:#fff;border-radius:4px;padding:4px 8px;font-size:11px;margin-top:-10px}
#ger-hiw .hiw-wlist{display:grid;gap:6px;color:var(--ink)}
#ger-hiw .hiw-wlist span{display:grid;grid-template-columns:96px 1fr;align-items:center;gap:8px;font-size:12px}
#ger-hiw .hiw-wlist .bar{position:relative;height:14px}
#ger-hiw .hiw-wlist .bar::before{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:#cfe0f5;border-radius:2px}
#ger-hiw .hiw-wlist .bar i{position:absolute;top:3px;width:9px;height:9px;border-radius:50%;background:var(--blue)}
#ger-hiw .hiw-explain{width:100%;max-width:450px}
#ger-hiw .hiw-anat{border:1px solid #aac8f2;border-radius:7px;padding:15px;color:#07356f}
#ger-hiw .hiw-anat > div{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#ger-hiw .hiw-anat > div:first-child{padding-bottom:12px;border-bottom:1px solid #cdddf1}
#ger-hiw .hiw-anat > div:last-child{padding-top:12px}
#ger-hiw .hiw-anat b{font-size:10px;line-height:1.25;font-weight:700}
#ger-hiw .hiw-anat span{display:inline-flex;align-items:center;gap:5px;font-size:9.5px;line-height:1.25;color:#4b6287}
#ger-hiw .hiw-anat span svg{width:14px;height:14px;color:var(--blue)}
#ger-hiw .hiw-trans{display:grid;grid-template-columns:1fr 32px 1fr;align-items:center;margin-top:12px;color:var(--blue)}
#ger-hiw .hiw-trans article{min-height:118px;padding:14px;border:1px solid #b8c5d7;border-radius:6px;color:var(--ink)}
#ger-hiw .hiw-trans article.plain{border-color:#77aefb}
#ger-hiw .hiw-trans strong{font-size:10.5px}
#ger-hiw .hiw-trans p{margin:10px 0 0;font-size:10.5px;line-height:1.45}
#ger-hiw .hiw-trans > svg{width:30px;height:30px;justify-self:center}
#ger-hiw .hiw-choose{width:100%;max-width:455px;display:grid;grid-template-columns:repeat(4,1fr);gap:15px;color:var(--blue);text-align:center}
#ger-hiw .hiw-choose > div{display:grid;justify-items:center;gap:10px}
#ger-hiw .hiw-choose svg{width:50px;height:50px}
#ger-hiw .hiw-choose span{color:var(--ink);font-size:11.5px;line-height:1.25;font-weight:700}

/* ── Guardrails ───────────────────────────────────────── */
#ger-hiw .hiw-guard{width:min(100% - 74px,1320px);margin:8px auto 22px;padding:20px 24px;border:1px solid #cbdff8;border-radius:8px;background:#f5f9fe}
#ger-hiw .hiw-guard h2{margin-bottom:14px;text-align:center;font-size:21px;letter-spacing:-.02em;color:var(--ink)}
#ger-hiw .hiw-guard-grid{display:grid;grid-template-columns:repeat(4,1fr)}
#ger-hiw .hiw-guard-grid > div{min-height:48px;display:flex;align-items:center;gap:14px;padding:0 20px;border-left:1px solid #cdddf2}
#ger-hiw .hiw-guard-grid > div:first-child{border-left:0}
#ger-hiw .hiw-guard-grid svg{width:30px;height:30px;color:var(--blue);flex:0 0 auto}
#ger-hiw .hiw-guard-grid strong{font-size:11.5px;line-height:1.4;color:var(--ink)}

/* ── Search band (ZIP → rebate finder) ────────────────── */
#ger-hiw .hiw-search{background:var(--navy);color:#fff}
#ger-hiw .hiw-search-shell{width:min(100% - 100px,1280px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:40px;padding:40px 0}
#ger-hiw .hiw-search-copy h2{margin-bottom:18px;font-size:29px;line-height:1.08;letter-spacing:-.03em}
#ger-hiw .hiw-search-copy form{display:flex;gap:14px}
#ger-hiw .hiw-zip-field{width:min(420px,52vw);height:46px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #d9e3f0;border-radius:6px;background:#fff;color:#4b6287}
#ger-hiw .hiw-zip-field svg{width:20px;height:20px;flex:0 0 auto}
#ger-hiw .hiw-zip-field input{width:100%;height:100%;border:0;outline:none;color:var(--ink);background:transparent;font-size:15px;font-family:var(--f)}
#ger-hiw .hiw-search-copy form .hiw-btn{min-width:152px}
#ger-hiw .hiw-compass{width:145px;height:145px;flex:0 0 auto;background:url(../assets/getenergyrebates-compass.png) center/contain no-repeat}

/* ── In-page methodology strip ────────────────────────── */
#ger-hiw .hiw-foot{width:min(100% - 76px,1320px);margin:0 auto;min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#566783;font-size:11px;padding:14px 0}
#ger-hiw .hiw-foot div{display:flex;align-items:center;gap:8px}
#ger-hiw .hiw-foot svg{width:18px;height:18px;color:var(--blue)}
#ger-hiw .hiw-foot a{color:var(--blue);font-weight:600}

/* ── Responsive ───────────────────────────────────────── */
@media(max-width:1100px){
  #ger-hiw .hiw-hero-shell{width:min(100% - 60px,1000px);grid-template-columns:minmax(0,390px) minmax(0,1fr);gap:28px;padding:36px 0}
  #ger-hiw .hiw-eq-ic{width:76px;height:76px}
  #ger-hiw .hiw-eq-ic svg{width:42px;height:42px}
  #ger-hiw .hiw-eq-u > span{font-size:12px}
  #ger-hiw .hiw-tl{width:min(100% - 80px,1040px)}
  #ger-hiw .hiw-step{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);min-height:0}
  #ger-hiw .hiw-cell{padding:24px 22px}
  #ger-hiw .hiw-txt h2{font-size:22px}
  #ger-hiw .hiw-txt p{font-size:13.5px}
  #ger-hiw .hiw-search-shell{width:min(100% - 70px,1050px)}
}
@media(max-width:820px){
  #ger-hiw .hiw-hero-shell{grid-template-columns:1fr;gap:40px;padding:44px 0}
  #ger-hiw .hiw-hero-copy{max-width:650px}
  #ger-hiw .hiw-eq{width:100%;margin:0;max-width:560px}
  #ger-hiw .hiw-tl{width:min(100% - 32px,700px);padding-left:35px}
  #ger-hiw .hiw-tl-line{left:18px}
  #ger-hiw .hiw-step{height:auto;min-height:0;grid-template-columns:1fr;padding:26px 0 34px}
  #ger-hiw .hiw-cell{grid-column:1;padding:0;border-bottom:0;justify-content:flex-start}
  #ger-hiw .hiw-step.tleft .hiw-cell.l{order:1}
  #ger-hiw .hiw-step.tleft .hiw-cell.r{order:2}
  #ger-hiw .hiw-step.tright .hiw-cell.r{order:1}
  #ger-hiw .hiw-step.tright .hiw-cell.l{order:2}
  #ger-hiw .hiw-txt{max-width:none;padding:0;margin-bottom:22px}
  #ger-hiw .hiw-num{position:absolute;left:-37px;top:18px;padding:0}
  #ger-hiw .hiw-num::before,#ger-hiw .hiw-num::after{display:none}
  #ger-hiw .hiw-vis,#ger-hiw .hiw-explain,#ger-hiw .hiw-choose{max-width:520px}
  #ger-hiw .hiw-guard-grid{grid-template-columns:1fr 1fr;gap:18px 0}
  #ger-hiw .hiw-guard-grid > div:nth-child(3){border-left:0}
  #ger-hiw .hiw-search-shell{padding:34px 0}
}
@media(max-width:560px){
  #ger-hiw .hiw-hero-shell{width:calc(100% - 34px)}
  #ger-hiw .hiw-hero-copy h1{font-size:40px}
  #ger-hiw .hiw-hero-copy h1 br{display:none}
  #ger-hiw .hiw-btn{width:100%}
  #ger-hiw .hiw-trust{display:grid;gap:10px}
  #ger-hiw .hiw-trust span{max-width:none}
  #ger-hiw .hiw-eq{grid-template-columns:1fr 1fr;gap:26px 0;max-width:none}
  #ger-hiw .hiw-eq-sym{position:absolute;left:-6px;margin:34px 0 0}
  #ger-hiw .hiw-eq-u{min-width:0}
  #ger-hiw .hiw-eq-note{margin-top:8px}
  #ger-hiw .hiw-mapmotif{display:none}
  #ger-hiw .hiw-tl{width:calc(100% - 28px);padding-left:34px}
  #ger-hiw .hiw-txt h2{font-size:24px}
  #ger-hiw .hiw-txt p{font-size:14px}
  #ger-hiw .hiw-lib{justify-content:flex-start;gap:28px}
  #ger-hiw .hiw-trans{grid-template-columns:1fr;gap:8px}
  #ger-hiw .hiw-trans > svg{transform:rotate(90deg)}
  #ger-hiw .hiw-choose{grid-template-columns:1fr 1fr;gap:24px}
  #ger-hiw .hiw-guard{width:calc(100% - 28px);padding:18px}
  #ger-hiw .hiw-guard-grid{grid-template-columns:1fr}
  #ger-hiw .hiw-guard-grid > div{border-left:0;border-top:1px solid #cdddf2;padding:12px 0}
  #ger-hiw .hiw-guard-grid > div:first-child{border-top:0}
  #ger-hiw .hiw-search-shell{width:calc(100% - 34px);display:block;padding:30px 0}
  #ger-hiw .hiw-search-copy h2{font-size:26px}
  #ger-hiw .hiw-search-copy form{display:grid;gap:10px}
  #ger-hiw .hiw-zip-field{width:100%}
  #ger-hiw .hiw-compass{display:none}
  #ger-hiw .hiw-trust.inv{margin-top:16px}
  #ger-hiw .hiw-foot{width:calc(100% - 34px);display:grid;gap:6px;line-height:1.45}
}
@media(prefers-reduced-motion:reduce){html:has(#ger-hiw){scroll-behavior:auto}}
