/* powerpilot.green — one stylesheet, built on the tokens below. */

:root {
  --ink: #0f1d2b;
  --ink-soft: #46576a;
  --paper: #ffffff;
  --paper-warm: #f6f4ee;
  --rule: #e2e0d8;
  --brand: #17694a;
  --brand-dark: #0f4f37;
  --brand-tint: #e5f2ec;
  --sun: #f2a516;
  --sun-tint: #fdf3dc;
  --error: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 29, 43, .06), 0 8px 24px rgba(15, 29, 43, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  /* Motion: see "Motion" in the README before adding any animation. */
  --dur-quick: .15s;
  --dur: .3s;
  --dur-slow: .45s;
  --ease-out: cubic-bezier(.2, .7, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.6, .5, 1);
  --shadow-lift: 0 2px 4px rgba(15, 29, 43, .06), 0 16px 32px rgba(15, 29, 43, .12);
  --panel: #0f1d2b;
  --panel-lit: #2b5a87;
  --panel-glint: #4f86bd;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 1.8em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.page { padding-top: 32px; padding-bottom: 64px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 1.15rem var(--sans); }
.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a[aria-current="page"], .nav a:hover { color: var(--brand); }
/* Section menus: open on hover or keyboard focus. */
.nav__group { position: relative; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 20px 0; }
.nav__chev { transition: transform var(--dur) var(--ease-out); }
.nav__menu { position: absolute; top: 100%; left: -20px; width: 340px; padding: 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity var(--dur-quick), translate var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
.nav__group:is(:hover, :focus-within) .nav__menu { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.nav__group:is(:hover, :focus-within) .nav__chev { transform: rotate(180deg); }
.nav .nav__menu ul { display: grid; gap: 2px; }
.nav__menu ul a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; }
.nav__menu ul a:hover, .nav__menu ul a:focus-visible { background: var(--paper-warm); color: var(--ink); }
.nav__menu strong { font-size: .95rem; }
.nav__menu span { font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.nav .nav__all { display: block; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--rule); color: var(--brand); font-weight: 700; font-size: .9rem; }
@media (prefers-reduced-motion: reduce) { .nav__menu, .nav__chev { transition: none; } }
/* Phone menu (static/js/nav.js): a full-height panel under the header. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out), background var(--dur-quick); }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 65px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--paper); padding: 8px 0 32px; animation: m-rise var(--dur) var(--ease-out); }
.mobile-menu[hidden] { display: none; }
.menu-open, .menu-open body { overflow: hidden; }
.mobile-menu__group { border-bottom: 1px solid var(--rule); }
.mobile-menu__group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 600 1.25rem var(--serif); }
.mobile-menu__group summary::-webkit-details-marker { display: none; }
.mobile-menu__group summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); rotate: 45deg; translate: 0 -3px; transition: rotate var(--dur) var(--ease-out); }
.mobile-menu__group[open] summary::after { rotate: 225deg; translate: 0 3px; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu__group ul { padding-bottom: 12px; }
.mobile-menu__group a { display: grid; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mobile-menu__group a:active, .mobile-menu__group a:hover { background: var(--paper-warm); }
.mobile-menu__group span { color: var(--ink-soft); font-size: .9rem; }
.mobile-menu .mobile-menu__all { display: block; color: var(--brand); font-weight: 700; }
.mobile-menu__all span { color: inherit; }
.mobile-menu__links { padding: 12px 0 24px !important; }
.mobile-menu__links a { display: block; padding: 10px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .mobile-menu { animation: none; } .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after, .mobile-menu__group summary::after { transition: none; } }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }
@media (max-width: 860px) { .menu-btn { display: grid; } .nav { display: none; } .masthead .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: var(--radius); background: var(--brand); color: #fff;
  font: 700 1rem var(--sans); padding: 14px 22px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--small { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn--ghost:hover { background: var(--paper-warm); color: var(--ink); }

/* Hero with form */
.hero { background: linear-gradient(180deg, var(--paper-warm), var(--paper)); border-bottom: 1px solid var(--rule); }
.hero__inner { display: grid; gap: 32px; padding-top: 28px; padding-bottom: 40px; }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1fr 420px; align-items: start; padding-top: 40px; padding-bottom: 56px; } }
.hero__art { max-width: 420px; margin-top: 28px; }
.hero__art .art { box-shadow: var(--shadow); border-radius: 14px; }
@media (max-width: 959px) { .hero__art { display: none; } }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0; }
.standfirst { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2317694a' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-soft); }

/* Lead form */
.lead-form { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; scroll-margin-top: 80px; }
.lead-form__heading { font-size: 1.3rem; margin: 0 0 14px; }
.lead-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field input:not([type=checkbox]), .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px;
  border: 1px solid #c9c7be; border-radius: 8px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand-tint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field--check { display: flex; align-items: center; gap: 8px; }
.field--check label { margin: 0; font-weight: 500; }
.field__error { color: var(--error); font-size: .85rem; margin: 4px 0 0; }
.lead-form__status { color: var(--error); font-weight: 600; }
.lead-form__legal { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }

/* Images */
.hero-image { margin: 0 0 32px; border-radius: 14px; overflow: hidden; background: var(--paper-warm); }
.hero-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-image--placeholder figcaption { font-size: .8rem; color: var(--ink-soft); padding: 8px 12px; }

/* Prose */
.prose { max-width: 72ch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.prose th { background: var(--paper-warm); }
.meta { color: var(--ink-soft); font-size: .9rem; }

/* Guide layout: article + sticky form */
.guide { display: grid; gap: 40px; }
@media (min-width: 960px) { .guide { grid-template-columns: minmax(0, 1fr) 380px; } .guide__aside .lead-form { position: sticky; top: 88px; } }

/* Skeleton pages */
.pending { border: 2px dashed var(--sun); background: var(--sun-tint); border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.pending__flag { font-weight: 700; margin: 0; }
.pending__brief { margin: 12px 0 0; font-size: .9rem; }
.pending__brief dt { font-weight: 700; margin-top: 8px; }
.pending__brief dd { margin: 0; }

/* Steps */
.steps { margin-top: 48px; }
.steps__list { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }
.steps__list li { counter-increment: step; background: var(--paper-warm); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; }
.steps__list li::before { content: counter(step); font: 600 1.6rem var(--serif); color: var(--brand); }
.steps__list span { color: var(--ink-soft); font-size: .95rem; }

/* Cards */
.section { margin-top: 48px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section__head h2 { margin-bottom: 0; }
.cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { display: grid; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.card .art { margin: -8px -8px 6px; width: calc(100% + 16px); }
.card strong { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; }
.card span:last-child { color: var(--ink-soft); font-size: .92rem; }
.card__kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }

/* FAQs */
.faqs { margin-top: 48px; max-width: 72ch; }
.faqs details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faqs summary { font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; translate: 0 -50%; border-radius: 50%; background: var(--brand-tint) linear-gradient(var(--brand), var(--brand)) center / 10px 2px no-repeat; transition: background-color var(--dur); }
.faqs summary::before { content: ""; position: absolute; right: 14px; top: 50%; width: 2px; height: 10px; translate: 0 -50%; background: var(--brand); z-index: 1; transition: transform var(--dur) var(--ease-out); }
.faqs details[open] summary::before { transform: scaleY(0); }
.faqs summary:hover::after { background-color: #d3e9de; }
.faqs--home { margin: 0; max-width: none; border-top: 1px solid var(--rule); }
.faqs--home details { padding: 20px 0; }
.faqs--home summary { font-size: 1.05rem; }
.faqs__answer { margin-top: 8px; color: var(--ink-soft); }
.related { margin-top: 48px; }
.sources { margin-top: 40px; }
.sources ul { font-size: .9rem; columns: 2 280px; column-gap: 32px; padding-left: 18px; margin: 12px 0 0; }

/* The writer's byline box, from daedalus-site.yaml author. */
.author { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-warm); }
.author__mark { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; }
.author p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.author .author__name { color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.author__name span { font-weight: 400; color: var(--ink-soft); margin-left: 8px; }
.hero__meta a { color: inherit; }

/* "More on" links at the foot of a page: three plain cards. */
.next { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .next { grid-template-columns: repeat(3, 1fr); } }
.next a { position: relative; display: grid; gap: 6px; align-content: start; height: 100%; padding: 24px 64px 24px 24px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; transition: border-color var(--dur), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.next strong { font: 600 1.2rem/1.2 var(--serif); }
.next span { color: var(--ink-soft); font-size: .95rem; }
.next .next__go { position: absolute; right: 20px; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); transition: background var(--dur), color var(--dur), translate var(--dur) var(--ease-out); }
.next a:is(:hover, :focus-visible) { border-color: var(--brand); box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--ink); }
.next a:is(:hover, :focus-visible) .next__go { background: var(--brand); color: #fff; translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .next a, .next .next__go { transition: none; } .next a:hover { transform: none; } }

/* Home page. One section pattern (.hs): a header (kicker, heading, short
   intro) then the content, on alternating white and warm backgrounds. */
.hs { padding: 64px 0; }
.hs--warm { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.hs--warm + .hs--warm { border-top: 0; }
@media (min-width: 960px) { .hs { padding: 96px 0; } }
.hs__head { max-width: 640px; margin-bottom: 36px; }
.hs__head h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.hs__head p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.hs__head .kicker { color: var(--brand); font-size: .75rem; }
.hs__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hs__head--split h2 { margin-bottom: 0; }
.hs__more { font-weight: 700; text-decoration: none; white-space: nowrap; }
.hs__more span { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.hs__more:hover span { transform: translateX(4px); }
.hs__split { display: grid; gap: 8px 64px; }
@media (min-width: 960px) { .hs__split { grid-template-columns: 1fr 1.6fr; } .hs__split .hs__head { position: sticky; top: 96px; align-self: start; } }
.hs .calc__toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.calc__toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
.calc { margin: 0; }
.hs + .closing { margin-top: 0; }

/* Hub "in brief": short sections side by side, in the article type style. */
.brief { display: grid; gap: 8px 56px; }
@media (min-width: 860px) { .brief { grid-template-columns: repeat(2, 1fr); } }
.brief h3 { font-size: 1.35rem; margin: 0 0 .5em; }
.brief .prose { max-width: none; padding: 24px 0; border-top: 1px solid var(--rule); }
.brief p { margin: 0 0 .8em; }
.hero--home .facts { margin-top: 8px; }

/* Home hero: the photo, a little more of it showing, with the proof row along the bottom. */
.hero--home::before { filter: grayscale(.75) sepia(.2) hue-rotate(60deg) brightness(.7) contrast(1.05); }
.hero--home::after { background: linear-gradient(100deg, rgba(8, 28, 20, .9) 0%, rgba(8, 28, 20, .72) 50%, rgba(8, 28, 20, .45) 100%); }
.hero--home .hero__inner { padding-top: 48px; padding-bottom: 40px; }
@media (min-width: 960px) { .hero--home .hero__inner { align-items: center; padding-top: 72px; padding-bottom: 56px; } .hero--home h1 { font-size: clamp(2.6rem, 4.6vw, 3.6rem); } }
.hero--home .standfirst { font-size: 1.2rem; margin: 0 0 24px; }
.hero__link { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.hero__link:hover { color: #fff; border-color: var(--sun); }
.proof { list-style: none; margin: 0; padding: 20px 0 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
@media (min-width: 860px) { .proof { grid-template-columns: repeat(4, 1fr); padding-bottom: 36px; } }
.proof li { display: grid; gap: 2px; padding-left: 32px; position: relative; }
.proof li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f1d2b' stroke-width='2'/%3E%3C/svg%3E") center/13px no-repeat; }
.proof strong { color: #fff; font-size: .95rem; }
.proof span { color: #b9cdc4; font-size: .85rem; }

/* Home how-it-works: numbered steps joined by a line, no boxes. */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: how; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.how li { counter-increment: how; position: relative; display: grid; gap: 6px; padding-top: 64px; }
.how li::before { content: counter(how); position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 1.2rem var(--serif); }
@media (min-width: 760px) { .how li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 60px; right: -24px; border-top: 2px dashed var(--rule); } }
.how strong { font-size: 1.1rem; }
.how span { color: var(--ink-soft); }

/* Green-washed photo: a muted, green-tinted picture that comes to full colour
   when its link is hovered or focused. Set the picture with --img. */
.wash { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0d1f18; }
.wash::before, .wash::after { content: ""; position: absolute; inset: 0; transition: filter var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out), transform 1.2s var(--ease-out); }
.wash::before { background: var(--img, none) center / cover no-repeat; filter: grayscale(.7) sepia(.25) hue-rotate(60deg) brightness(.85) contrast(1.05); }
.wash::after { background: rgba(23, 105, 74, .22); }
a:is(:hover, :focus-visible) > .wash::before { filter: grayscale(0) sepia(0) hue-rotate(0deg) brightness(1) saturate(1.15) contrast(1.05); transform: scale(1.04); }
a:is(:hover, :focus-visible) > .wash::after { opacity: 0; }

/* Commercial topics: text beside a photo, the photo switching sides each row. */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.feature { display: grid; overflow: hidden; border-radius: 16px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.feature__media { position: relative; z-index: 0; min-height: 200px; }
.feature__copy { display: grid; gap: 8px; align-content: center; padding: 28px; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1fr 1.25fr; min-height: 260px; }
  .feature__copy { padding: 40px 48px; }
  .features li:nth-child(even) .feature__media { order: -1; }
}
.feature__kind, .tile__kind { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.feature__kind { color: var(--brand); }
.feature strong { font: 600 clamp(1.4rem, 2.4vw, 1.9rem)/1.15 var(--serif); }
.feature__text { color: var(--ink-soft); font-size: 1.05rem; }
.feature__go { margin-top: 8px; font-weight: 700; color: var(--brand); }
.feature__go span { display: inline-block; transition: transform var(--dur) var(--ease-out); }
.feature:is(:hover, :focus-visible) { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: var(--ink); }
.feature:is(:hover, :focus-visible) .feature__go span { transform: translateX(5px); }

/* Home solar topics: a 2×2 grid of photo tiles, the words over the picture. */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 6px; align-content: end; min-height: 280px; padding: 28px 88px 28px 28px; border-radius: 16px; color: #fff; text-decoration: none; transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 28, 20, .9) 0%, rgba(8, 28, 20, .5) 45%, rgba(8, 28, 20, 0) 80%); pointer-events: none; }
.tile__kind { color: var(--sun); }
.tile strong { font: 600 clamp(1.4rem, 2.4vw, 1.75rem)/1.15 var(--serif); }
.tile__text { color: #d6e4dd; }
.tile__go { position: absolute; right: 24px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .5); font-size: 1.2rem; transition: background var(--dur) var(--ease-out), translate var(--dur) var(--ease-out), border-color var(--dur); }
.tile:is(:hover, :focus-visible) { box-shadow: var(--shadow-lift); transform: translateY(-2px); color: #fff; }
.tile:is(:hover, :focus-visible) .tile__go { background: var(--sun); border-color: var(--sun); color: var(--ink); translate: 4px 0; }
@media (prefers-reduced-motion: reduce) { .wash::before, .wash::after, .feature, .tile, .tile__go, .feature__go span, .hs__more span { transition: none; } a:hover > .wash::before { transform: none; } .feature:hover, .tile:hover { transform: none; } }
.sources li { break-inside: avoid; margin-bottom: 4px; }

/* Footer */
.footer { background: var(--ink); color: #cdd6df; margin-top: 64px; }
.closing + .footer, main:has(> .closing:last-child) + .footer { margin-top: 0; }
.footer__inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer .logo { color: #fff; }
.footer__note { font-size: .9rem; }
.footer__heading { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; margin: 0 0 10px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer a { color: #cdd6df; text-decoration: none; }
.footer a:hover { color: #fff; }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; z-index: 20; font-size: .92rem; }
.consent[hidden] { display: none; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* Pre-filled answers, read back with a pencil to edit */
.field__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 8px 9px 12px;
  background: var(--brand-tint); border-radius: 8px; font-weight: 600; }
.field__summary[hidden], .field__control[hidden] { display: none; }
.field--check .field__control { display: flex; align-items: center; gap: 8px; }
.field--prefilled.field--check { display: block; }
.field__edit { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 6px;
  background: transparent; color: var(--brand); cursor: pointer; }
.field__edit:hover { background: var(--paper); }

/* Quote wizard */
.wizard { max-width: 760px; margin: 0 auto; scroll-margin-top: 80px; }
.wizard__progress { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 28px; counter-reset: none; }
.wizard__progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft);
  padding-top: 10px; border-top: 4px solid var(--rule); transition: border-color .3s, color .3s; }
.wizard__progress span { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--paper-warm); font-size: .8rem; transition: background .3s, color .3s; }
.wizard__progress li[aria-current], .wizard__progress li.is-done { border-color: var(--brand); color: var(--ink); }
.wizard__progress li[aria-current] span, .wizard__progress li.is-done span { background: var(--brand); color: #fff; }
@media (max-width: 520px) { .wizard__progress li { font-size: 0; gap: 0; } .wizard__progress span { font-size: .8rem; } }
.step[hidden] { display: none !important; }
.wizard[data-current="1"] .wizard__form,
.wizard:not([data-ready])[data-current="2"] .step[data-step="1"],
.wizard:not([data-ready]) .wizard__actions [data-back],
.wizard:not([data-ready]) [data-next] { display: none; }
.step [data-step-title] { outline: none; }
.step h1 { margin-top: .1em; }
.step h2 { margin: 0 0 4px; }
.wizard__form { padding: 28px; }
.wizard__form .step + .step { margin-top: 32px; }
.wizard[data-ready] .wizard__form .step + .step { margin-top: 0; }
.wizard__variant { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__variant legend { padding: 0; }
.wizard__hint { color: var(--ink-soft); margin: 0 0 18px; }
.wizard__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.wizard__actions .btn:last-child { margin-left: auto; min-width: 160px; }

/* Business or home cards */
.choices { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: grid; gap: 4px; padding: 20px 20px 22px; border: 2px solid var(--rule); border-radius: 16px;
  background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.choice strong { font: 600 1.35rem var(--serif); }
.choice span { color: var(--ink-soft); font-size: .95rem; }
.choice .art { margin-bottom: 8px; }
.choice__tick { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/16px no-repeat;
  transform: scale(0); transition: transform var(--dur) var(--ease-spring); }
.choice.is-active { border-color: var(--brand); background: var(--brand-tint); }
.choice.is-active .choice__tick { transform: scale(1); }
.wizard.is-choosing .choice { transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.wizard.is-choosing .choice:not(.is-active) { opacity: .35; transform: scale(.97); }
.wizard.is-choosing .choice.is-active { transform: scale(1.03); }

/* ==========================================================================
   Motion kit. The one place animation is defined; see "Motion" in the README.
   ========================================================================== */

/* Lift: cards and anything clickable that is bigger than a button. */
.m-lift { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur), border-color var(--dur); }
.m-lift:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow-lift); color: var(--ink); }

/* Rise: content arriving (a wizard step, an opened dialog). */
.m-rise { animation: m-rise var(--dur-slow) var(--ease-out) both; }
@keyframes m-rise { from { opacity: 0; transform: translateY(12px); } }

/* Pop: a small confirmation mark appearing. */
.m-pop { animation: m-pop var(--dur-slow) var(--ease-spring) both; animation-delay: .1s; }
@keyframes m-pop { from { transform: scale(0); } }

/* Reveal: below-the-fold items that rise in as they scroll into view
   (static/js/motion.js). Stagger siblings with style="--i: n". */
[data-reveal] { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 5) * 70ms); }
[data-reveal].is-waiting { opacity: 0; transform: translateY(16px); }

/* Sun art: the illustrations in partials/art.html. The rays turn only while
   the card is hovered or active, and stop where they are. Hovering the art or its .m-lift parent, or marking the parent
   .is-active, raises the sun and lights the panels and windows. */
.art { display: block; width: 100%; height: auto; border-radius: 10px; background: linear-gradient(180deg, var(--sun-tint), var(--paper-warm)); }
.art__sun circle { fill: var(--sun); }
.art__rays path { stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.art__rays { transform-box: fill-box; transform-origin: center; animation: art-rays 14s linear infinite paused; }
:is(.art:hover, .m-lift:hover, .is-active) .art__rays { animation-play-state: running; }
.art__sun { transition: transform var(--dur-slow) var(--ease-out); }
.art__body { fill: var(--brand-dark); }
.art__roof { fill: var(--brand); }
.art__door { fill: #d9d4c7; }
.art__lines { stroke: var(--brand-dark); stroke-width: 1; fill: none; }
.art__windows rect { fill: var(--sun-tint); opacity: .9; transition: fill var(--dur-slow); }
.art__panels path { fill: var(--panel); stroke: #6b8fb5; stroke-width: .8; transition: fill var(--dur-slow); }
.art__legs { stroke: var(--ink-soft); stroke-width: 1.5; }
.art__unit { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.art__charge rect { fill: var(--brand); opacity: .2; }
.art__charge rect:first-child { opacity: 1; }
.art__cable { stroke: var(--sun); stroke-width: 2.5; stroke-dasharray: 3 4; fill: none; }
.art__ground { stroke: var(--rule); stroke-width: 2; }
.art--live .art__sun { animation: art-float 6s ease-in-out infinite; }
:is(.art:hover, .m-lift:hover, .is-active) .art__sun { transform: translateY(-3px); }
:is(.art:hover, .m-lift:hover, .is-active) .art__panels path { fill: var(--panel-lit); animation: art-glint 1.2s ease-in-out infinite alternate; }
:is(.art:hover, .m-lift:hover, .is-active) .art__windows rect { fill: var(--sun); }
:is(.art:hover, .m-lift:hover, .is-active) .art__charge rect { animation: art-charge 1.6s var(--ease-out) infinite; }
:is(.art:hover, .m-lift:hover, .is-active) .art__charge rect:nth-child(2) { animation-delay: .25s; }
:is(.art:hover, .m-lift:hover, .is-active) .art__charge rect:nth-child(3) { animation-delay: .5s; }
:is(.art:hover, .m-lift:hover, .is-active) .art__cable { animation: art-flow .6s linear infinite; }
@keyframes art-rays { to { transform: rotate(360deg); } }
@keyframes art-float { 50% { transform: translateY(-3px); } }
@keyframes art-glint { to { fill: var(--panel-glint); } }
@keyframes art-charge { 0% { opacity: .2; } 30%, 100% { opacity: 1; } }
@keyframes art-flow { to { stroke-dashoffset: -7; } }

/* Everything above switches off for visitors who ask for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal].is-waiting { opacity: 1; transform: none; }
}

/* Confirmation dialog */
.done { border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 28px; max-width: min(440px, calc(100vw - 32px)); text-align: center; color: var(--ink); }
.done::backdrop { background: rgba(15, 29, 43, .45); }
.done[open] { animation: m-rise var(--dur-slow) var(--ease-out); }
.done__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.done h2 { margin: 14px 0 8px; font-size: 1.5rem; }
.done p { color: var(--ink-soft); margin: 0 0 20px; }

/* ==========================================================================
   Long-form lead pages (pages/landing.html)
   ========================================================================== */

/* Hero: key facts and calls to action under the introduction */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; max-width: 620px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts__item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; }
.facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font: 600 1.05rem/1.25 var(--serif); color: var(--ink); }
.facts dd a { color: inherit; text-decoration-color: var(--rule); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__ctas .btn--ghost { background: var(--paper); }

/* Hero over the page's photo: greyscale, darkened and tinted green so the
   white text and the form always read clearly. */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; background: #0d1f18; color: #fff; border-bottom: 0; }
.hero--photo::before, .hero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero--photo::before { background: var(--hero-img) center / cover no-repeat; filter: grayscale(1) brightness(.55) contrast(1.05); transform: scale(1.02); }
.hero--photo::after { background: linear-gradient(100deg, rgba(8, 28, 20, .88) 0%, rgba(8, 28, 20, .7) 55%, rgba(8, 28, 20, .45) 100%), rgba(23, 105, 74, .12); }
.hero--photo h1 { color: #fff; }
.hero--photo .kicker { color: var(--sun); }
.hero--photo .standfirst { color: #d6e4dd; }
.hero--photo .ticks li { color: #fff; }
.hero__meta { font-size: .9rem; color: var(--ink-soft); margin: 0; }
.hero--photo .hero__meta { color: #c9d8d1; }
.hero--photo .crumbs ol, .hero--photo .crumbs a { color: #c9d8d1; }
.hero--photo .crumbs li + li::before { color: #6f8a7f; }
.hero--photo .facts__item { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.hero--photo .facts dt { color: #b9cdc4; }
.hero--photo .facts dd { color: #fff; }
.hero--photo .facts dd a { text-decoration: none; }
.hero--photo .facts__item:has(a):hover { border-color: rgba(255, 255, 255, .4); }
.hero--photo .hero__ctas .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero--photo .hero__ctas .btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.hero--photo .lead-form { color: var(--ink); }
@media (min-width: 960px) { .hero--photo .hero__inner { padding-top: 56px; padding-bottom: 72px; } }

/* What PowerPilot is */
.role { background: var(--brand-tint); border-bottom: 1px solid #cfe5da; }
.role__inner { display: grid; gap: 10px; padding-top: 16px; padding-bottom: 16px; align-items: center; }
@media (min-width: 960px) { .role__inner { grid-template-columns: 1fr auto; gap: 28px; } }
.role__lead { margin: 0; font-size: .98rem; }
.role__checks { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; font-size: .88rem; font-weight: 600; color: var(--brand-dark); }
.role__checks li::before { content: "✓"; margin-right: 6px; color: var(--brand); }

/* Table of contents + body */
.doc { display: grid; gap: 32px; }
@media (min-width: 960px) { .doc { grid-template-columns: 230px minmax(0, 1fr); gap: 48px; } }
.doc__toc-inner { border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; font-size: .9rem; }
.doc__toc-title { font-weight: 700; margin: 0 0 8px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc__toc ol a { display: block; padding: 5px 0 5px 10px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; line-height: 1.35;
  transition: color var(--dur-quick), border-color var(--dur-quick); }
.doc__toc ol a:hover, .doc__toc ol a[aria-current] { color: var(--brand-dark); border-left-color: var(--brand); }
.doc__toc .btn { display: none; }
@media (min-width: 960px) {
  .doc__toc-inner { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; border: 0; padding: 0; }
  .doc__toc .btn { display: block; margin-top: 18px; }
}
@media (max-width: 959px) { .doc__toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 16px; } }
.doc__body { min-width: 0; }
.doc .prose { max-width: none; }
.doc .prose > p, .doc .prose > ul, .doc .prose > ol:not(.process), .doc .prose > h3 { max-width: 70ch; }
.doc__section { margin: 0 0 8px; padding: 8px 0 24px; scroll-margin-top: 80px; }
.doc__section:nth-of-type(even) { background: var(--paper-warm); border-radius: 18px; padding: 8px 28px 28px; margin: 24px -28px 32px; }
@media (max-width: 719px) { .doc__section:nth-of-type(even) { margin-left: -16px; margin-right: -16px; padding: 4px 16px 24px; border-radius: 0; } }
.doc__section > h2 { scroll-margin-top: 80px; margin-top: 1.2em; }
.doc .faqs { max-width: none; }

/* Tables inside copy */
.prose table { display: table; border: 1px solid var(--rule); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--paper); }
.prose th { background: var(--brand-tint); color: var(--brand-dark); font-size: .85rem; }
.prose tbody tr:nth-child(even) td { background: #fbfaf7; }
.prose tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 719px) { .prose table { display: block; overflow-x: auto; } }
.prose td:first-child { font-weight: 600; }

/* Content blocks Daedalus can write into body_html */
.callout { border-left: 4px solid var(--brand); background: var(--brand-tint); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 1.4em 0; max-width: 70ch; }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout__title { font-weight: 700; display: block; margin-bottom: 4px; }
.callout--warn { border-color: var(--sun); background: var(--sun-tint); }
.callout--example { border: 1px solid var(--rule); border-left: 4px solid var(--sun); background: var(--paper); }
.callout--example dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 10px 0; font-variant-numeric: tabular-nums; }
.callout--example dt { color: var(--ink-soft); } .callout--example dd { margin: 0; text-align: right; font-weight: 600; }
.callout--example dd.total { color: var(--brand-dark); font-size: 1.1rem; }
.compare { display: grid; gap: 14px; margin: 1.4em 0; }
@media (min-width: 720px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; background: var(--paper); }
.compare h3 { margin: 0 0 8px; font-size: 1.05rem; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.compare li { padding-left: 26px; position: relative; }
.compare li::before { position: absolute; left: 0; top: .1em; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.compare__good li::before { content: "✓"; background: var(--brand-tint); color: var(--brand); }
.compare__bad li::before { content: "!"; background: var(--sun-tint); color: #9a6200; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 1em 0; }
.chips li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; font-size: .9rem; font-weight: 500; }
.process { list-style: none; counter-reset: process; padding: 0; margin: 1.4em 0; display: grid; gap: 12px; }
.process > li { counter-increment: process; position: relative; padding: 14px 18px 14px 62px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.process > li::before { content: counter(process); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 1rem var(--serif); }
.process h3 { margin: 0 0 4px; font-size: 1.08rem; scroll-margin-top: 80px; }
.process p { margin: 0 0 6px; }
.process__you { font-size: .92rem; color: var(--ink-soft); }
.process__you strong { color: var(--brand-dark); }

/* In-page images */
.figure { margin: 1.6em 0; }
.figure img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; }
.figure--todo figcaption { display: grid; gap: 6px; border: 2px dashed var(--sun); background: var(--sun-tint); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
.figure--todo code { font-size: .78rem; word-break: break-all; }

/* System diagram */
.flow { margin: 1.6em 0; padding: 20px; border-radius: 16px; background: linear-gradient(180deg, var(--sun-tint), var(--paper-warm)); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 720px) { .flow__steps { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.flow__node { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; background: var(--paper); border-radius: 12px; padding: 14px 10px; box-shadow: var(--shadow); }
.flow__node svg { width: 48px; height: 48px; }
.flow__node strong { font-size: .95rem; }
.flow__node span { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.flow__node + .flow__node::before { content: ""; position: absolute; left: 50%; top: -22px; height: 22px; border-left: 3px dashed var(--sun); }
@media (min-width: 720px) { .flow__node + .flow__node::before { left: -18px; top: 50%; width: 18px; height: 0; border-left: 0; border-top: 3px dashed var(--sun); } }
.flow__sun { fill: var(--sun); }
.flow__panel { fill: var(--panel); }
.flow__grid { stroke: #6b8fb5; stroke-width: 1.2; fill: none; }
.flow__box { fill: var(--brand-tint); stroke: var(--brand-dark); stroke-width: 2; }
.flow__wave { stroke: var(--brand); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.flow__extra { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: .9rem; }
.flow__extra svg { width: 24px; height: 24px; flex: none; fill: var(--paper); stroke: var(--brand-dark); stroke-width: 1.6; }
.flow figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }

/* Savings calculator */
.calc { margin: 1.8em 0; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); padding: 24px; scroll-margin-top: 80px; }
.calc__head h3 { margin: 4px 0 6px; font-size: 1.4rem; }
.calc__head p:last-child { color: var(--ink-soft); margin: 0 0 16px; }
.calc__form { display: grid; gap: 4px 16px; }
@media (min-width: 640px) { .calc__form { grid-template-columns: 1fr 1fr; } }
.calc__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (min-width: 720px) { .calc__results { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.calc__stat { background: var(--paper-warm); border-radius: 12px; padding: 12px 14px; }
.calc__stat span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.calc__stat strong { display: block; font: 600 1.2rem/1.25 var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums; }
.calc__stat--lead { background: var(--brand); color: #fff; } .calc__stat--lead span { color: #cfe5da; }
.calc__stat--green { background: var(--brand-tint); }
.calc__note { font-size: .9rem; color: var(--ink-soft); margin: 12px 0 0; min-height: 1.4em; }
.calc__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.calc__cta span { font-size: .9rem; color: var(--ink-soft); }
.calc__assumptions { margin-top: 16px; font-size: .88rem; border-top: 1px solid var(--rule); padding-top: 12px; }
.calc__assumptions summary { cursor: pointer; font-weight: 700; color: var(--brand-dark); }
.calc__assumptions ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-soft); display: grid; gap: 6px; }

/* Mid-page quote form */
.cta-inline { display: grid; gap: 18px; margin: 2em 0; padding: 24px; border-radius: 18px; background: var(--brand-dark); color: #fff; }
.cta-inline h3 { margin: 4px 0 6px; font-size: 1.35rem; color: #fff; }
.cta-inline p { margin: 0; color: #cfe5da; }
.cta-inline .kicker { color: var(--sun); }
.lead-form--inline { padding: 18px; box-shadow: none; color: var(--ink); }
.lead-form--inline .lead-form__fields { display: grid; gap: 0 12px; }
@media (min-width: 720px) { .lead-form--inline .lead-form__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lead-form--inline .lead-form__legal { display: none; }

/* Closing conversion band */
.closing { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--brand-dark), #0b3a29); color: #e7f1ec; margin-top: 56px; }
.closing__inner { position: relative; z-index: 1; display: grid; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 960px) { .closing__inner { grid-template-columns: 1fr 400px; align-items: center; } }
.closing__copy h2 { color: #fff; margin: 6px 0 18px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.closing .kicker { color: var(--sun); }
.closing__steps { list-style: none; counter-reset: closing; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.closing__steps li { counter-increment: closing; padding-left: 44px; position: relative; color: #cfe5da; }
.closing__steps li::before { content: counter(closing); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.closing__steps strong { display: block; color: #fff; }
.closing__how { font-size: .88rem; color: #b5cfc3; max-width: 60ch; }
.closing__how a { color: #fff; }
.closing__art { position: absolute; right: -40px; bottom: -30px; width: 360px; opacity: .12; pointer-events: none; }
.closing__art .art { background: none; }
@media (max-width: 959px) { .closing__art { display: none; } }

/* Sticky call to action (phones only; desktop has the table of contents button) */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 15; display: flex; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--shadow-lift);
  animation: m-rise var(--dur) var(--ease-out); }
.sticky-cta:hover { color: #fff; background: var(--brand-dark); }
.sticky-cta[hidden] { display: none; }
@media (min-width: 960px) { .sticky-cta { display: none !important; } }
.closing__form .lead-form { color: var(--ink); }
