:root {
  --glow-green: #4fae6c;
  --glow-amber: #e8b34d;
  --glow-dark-green: #1f6b3f;
}

/* Override Pico's default primary so every button/link matches the dark
   green used in the hero gradient mesh background. Matches the specificity
   of Pico's own ":root:not([data-theme=dark])" rule so this actually wins. */
:root:not([data-theme="dark"]) {
  --pico-primary: var(--glow-dark-green);
  --pico-primary-background: var(--glow-dark-green);
  --pico-primary-border: var(--glow-dark-green);
  --pico-primary-hover: #18512f;
  --pico-primary-hover-background: #18512f;
  --pico-primary-hover-border: #18512f;
  --pico-primary-focus: rgba(31, 107, 63, 0.5);
  --pico-primary-inverse: #fff;
}

/* Breadcrumb trail (hub/article/blogpost/simplepage/stub pages): smaller
   and muted so it reads as secondary navigation, not body text. 0.8125rem
   keeps it legible on mobile (13px against Pico's 16px mobile base) while
   staying clearly de-emphasized; scales proportionally at wider viewports
   via Pico's own responsive root font-size. */
nav[aria-label="breadcrumb"] {
  font-size: 0.8125rem;
  color: var(--pico-muted-color);
}

nav[aria-label="breadcrumb"] a {
  color: var(--pico-muted-color);
}

/* Animated gradient mesh background, used behind the hero on every page */
.gradient-mesh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--pico-border-radius);
}

.gradient-mesh::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 25%, rgba(79, 174, 108, 0.55), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(232, 179, 77, 0.4), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(31, 107, 63, 0.55), transparent 50%);
  background-color: #112318;
  filter: blur(40px);
  animation: meshDrift 18s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3%, -2%) scale(1.08); }
  100% { transform: translate(-3%, 2%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-mesh::before { animation: none; }
}

.hero {
  padding: 3.5rem 2rem;
  color: #fff;
}

.hero h1,
.hero p {
  color: #fff;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--glow-green);
  background: rgba(79, 174, 108, 0.15);
  border: 1px solid rgba(79, 174, 108, 0.4);
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.25rem;
  max-width: none;
}

.hero h1 {
  background: linear-gradient(90deg, #fff 20%, var(--glow-green) 60%, var(--glow-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 1.25rem;
  padding-bottom: 0.15em;
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 800;
}

.hero-content p {
  max-width: 540px;
  margin: 0;
  font-size: 1.1rem;
}

.hero-path-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-chip:hover {
  background: rgba(79, 174, 108, 0.25);
  border-color: var(--glow-green);
  transform: translateY(-2px);
  color: #fff;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-cta a[role="button"] {
  font-weight: 700;
}

.hero-cta-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-cta-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 120px;
  padding-right: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 2rem;
}

.hero-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-stat-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.6rem;
}

.hero-stats strong {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--glow-green), var(--glow-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
  max-width: 130px;
  line-height: 1.3;
}

.hero-visual {
  border-radius: var(--pico-border-radius);
  overflow: hidden;
  box-shadow: 0 25px 70px -20px rgba(79, 174, 108, 0.55);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-visual:hover img {
  transform: scale(1.04);
}

/* Homepage hero product visual: a static illustrative panel showing a real
   client-timeline shape (Strategy/Design/Technical/Construction phases,
   milestone list) rather than a photo. Sits inside .hero-visual, which
   already provides the card radius/shadow. */
.product-preview {
  background: rgba(255, 255, 255, 0.05);
  min-height: 420px;
}

.product-bar {
  display: flex;
  gap: 5px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.product-body {
  padding: 1.3rem 1.4rem 1.6rem;
}

.product-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1rem;
}

.stage-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.stage-row .stage {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
  color: rgba(255, 255, 255, 0.55);
}

.stage-row .stage.done {
  color: var(--glow-green);
}

.stage-row .stage.active {
  color: var(--glow-amber);
}

.stage-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.stage-fill {
  height: 100%;
  width: 62%;
  background: linear-gradient(90deg, var(--glow-green), var(--glow-amber));
}

.milestone {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: #fff;
}

.milestone:first-of-type {
  border-top: none;
}

.milestone .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.milestone .dot-done {
  background: var(--glow-green);
}

.milestone .dot-pending {
  background: var(--glow-amber);
}

.milestone .m-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.milestone .m-title {
  font-weight: 600;
}

.milestone .m-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.74rem;
}

.milestone .badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  background: rgba(79, 174, 108, 0.18);
  color: var(--glow-green);
  font-weight: 600;
  white-space: nowrap;
}

/* Planning Your Build hero visual: a phone-shaped illustrative mockup of
   the consumer app's Home screen (project name/phase, a personal greeting,
   a "needs your attention" card, and the bottom nav), deliberately a phone
   frame rather than the homepage's desktop timeline card - this is the
   view a homeowner would actually recognize day to day. Overrides
   .hero-visual's own photo-oriented styling (no clip/shadow on the outer
   box; the phone frame carries its own). */
.hero-visual.consumer-preview {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.phone-frame {
  width: 240px;
  background: #112318;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 25px 70px -20px rgba(79, 174, 108, 0.55);
}

.phone-notch {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 0 auto 8px;
}

.phone-screen {
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem 1rem 0.7rem;
  color: #1c1b18;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.phone-project {
  font-size: 0.78rem;
  font-weight: 700;
}

.phone-phase {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--glow-dark-green);
  background: rgba(79, 174, 108, 0.14);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* .phone-screen prefix on the text-color rules below is deliberate, not
   decorative - the sitewide ".hero p { color: #fff }" rule (white text for
   the dark hero background) otherwise wins over these on specificity alone
   (0,1,1 beats 0,1,0), since these are technically still <p> tags inside
   .hero. Without it, "Welcome back, Jane" renders invisible (white text on
   the phone's white screen) and the attention label barely visible (white
   on pale amber) - confirmed via a real screenshot, not just reasoning
   about it. */
.phone-screen .phone-greeting {
  color: #1c1b18;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.phone-attention {
  background: rgba(232, 179, 77, 0.14);
  border: 1px solid rgba(232, 179, 77, 0.4);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 1.2rem;
}

.phone-screen .phone-attention-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a6a1f;
  margin: 0 0 0.5rem;
}

.phone-attention-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.phone-chevron {
  color: var(--glow-amber);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.phone-nav {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ececec;
  padding-top: 0.7rem;
}

.phone-nav-item {
  font-size: 0.5rem;
  color: #9a9890;
  font-weight: 600;
  white-space: nowrap;
}

.phone-nav-item.active {
  color: var(--glow-dark-green);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p { margin: 0 auto; }
  .hero-path-chips,
  .hero-cta,
  .hero-stats { justify-content: center; }
  .hero h1 { font-size: 2.3rem; }
  .hero-visual img { min-height: 260px; }
}

#paths .grid > article img,
.systems-grid article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
  margin-bottom: 1rem;
}

.systems-grid article img {
  height: 160px;
}

#paths .grid > article header {
  font-weight: 700;
  background: transparent;
  border-bottom: none;
  padding-bottom: 0.25rem;
}

#paths .grid > article {
  display: flex;
  flex-direction: column;
}

#paths .grid > article a[role="button"] {
  margin-top: auto;
}

.systems-grid article,
.benefits-grid article {
  text-align: center;
}

/* Pale green wash on the homepage's 3 pitch cards, matching the consumer
   app's --color-pane-detail token exactly (LowEnergyBuildConsumerServer's
   styles.css) rather than a similar green picked independently. */
.benefits-grid article {
  background-color: #f0f7f3;
}

.systems-grid article,
.benefits-grid article {
  display: flex;
  flex-direction: column;
}

.systems-grid article p,
.benefits-grid article p {
  flex-grow: 1;
}

.systems-grid article a[role="button"],
.benefits-grid article a[role="button"] {
  margin-top: 1rem;
}

/* How It Works: numbered step cards */
.steps-grid article {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-grid article p {
  flex-grow: 1;
}

.steps-grid article a[role="button"] {
  margin-top: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--glow-dark-green);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

#how-it-works-cta {
  text-align: center;
}

#how-it-works-cta p {
  max-width: 640px;
  margin: 0 auto;
}

#how-it-works-cta .hero-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

#see-for-yourself {
  text-align: center;
}

#see-for-yourself p {
  max-width: 640px;
  margin: 0 auto;
}

#see-for-yourself .hero-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

#app-value p {
  max-width: 640px;
}

#home-cta {
  text-align: center;
}

#home-cta p {
  max-width: 640px;
  margin: 0 auto;
}

#home-cta .hero-cta {
  justify-content: center;
  margin-top: 1.5rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
}

/* Hub pages (e.g. New Build Hub) */
.hub-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  text-align: left;
}

.hub-hero-visual {
  order: -1;
  border-radius: var(--pico-border-radius);
  overflow: hidden;
  box-shadow: 0 25px 70px -20px rgba(79, 174, 108, 0.55);
}

.hub-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hub-hero h1,
.hub-hero p {
  color: #fff;
}

.hub-hero p {
  max-width: 480px;
  margin: 0;
}

@media (max-width: 900px) {
  .hub-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  .hub-hero-visual img { aspect-ratio: 16 / 10; }
  .hub-hero p { margin: 0 auto; }
}

.scenario-grid article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
  margin-bottom: 1rem;
}

.scenario-grid article h3 {
  margin-bottom: 0.3rem;
}

.scenario-grid article p {
  font-style: italic;
  color: var(--pico-muted-color);
}

/* Latest Insights */
.insights-grid article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
  margin-bottom: 1rem;
}

.insights-grid article h3 {
  margin-bottom: 0.3rem;
}

.insight-date {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  margin-bottom: 0.3rem;
}

.insights-search {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.insights-search input {
  margin-bottom: 0;
}

.insights-search button {
  width: auto;
  white-space: nowrap;
  margin-bottom: 0;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.4rem 0.8rem;
  border-radius: var(--pico-border-radius);
  text-decoration: none;
}

.pagination a[aria-current="page"] {
  background: var(--pico-primary-background);
  color: var(--pico-primary-inverse);
}

/* Article / sub-spoke pages */
.article article > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--pico-border-radius);
  margin-bottom: 1.5rem;
}

.persona-card {
  background: var(--pico-card-background-color);
  border-left: 4px solid var(--pico-primary);
  border-radius: var(--pico-border-radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.architect-value {
  color: var(--pico-primary);
}

.next-steps {
  margin-top: 2rem;
  border-top: 1px solid var(--pico-muted-border-color);
  padding-top: 1.5rem;
}

.full-post-link {
  text-align: center;
  margin-top: 2rem;
}

/* Full blog post pages */
.blog-post article h2 {
  margin-top: 2rem;
}

.blog-post article h3 {
  margin-top: 1.5rem;
}

.coming-soon {
  text-align: center;
  padding: 2rem 1rem;
}

/* Dynamic card motion: lift + glow on hover, applied to every card grid */
.grid > article {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid > article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -16px rgba(79, 174, 108, 0.45);
}

.grid > article img {
  transition: transform 0.4s ease;
}

.grid > article:hover img {
  transform: scale(1.04);
}

/* ---------------------------------------------------------------------
   Primary nav: deliberately minimal -- just the brand, one toggle link
   (Home Owners / Architects, depending which thread you're in), and the
   Try the Demo CTA. Always a single row, at every viewport width - no
   hamburger/collapse mechanism at all. The CTA drops off entirely on
   mobile (see the max-width: 900px block below) - Try the Demo is already
   the hero's primary CTA on every page that matters, so the header copy
   doesn't need to repeat it once space is tight.
   ------------------------------------------------------------------- */

/* Sticky, content-width header (not full-bleed) -- matches <main class=
   "container">'s max-width instead of spanning the viewport, and stays
   visible on scroll. The border gives it a visible edge against the page
   at rest, not just an on-scroll shadow (deliberately no scroll-triggered
   JS to add one, matching the site's near-zero-JS approach). */
/* body > header, not a bare "header" selector: <header> is also used
   semantically inside each hub-path card (planning-your-build.html/
   home.html, {{PathLabel}} e.g. "Path 1: New Builds"). An unscoped
   "header {}" rule made every one of those sticky too - each one pinned
   itself to top:0 with the same z-index as the real page header while
   scrolling past it, and being transparent (see the existing #paths .grid
   > article header rule), whatever was scrolling underneath showed
   through. Confirmed via a real screenshot plus getComputedStyle on the
   card header itself, not just reasoning about it. */
body > header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--pico-background-color);
  border-bottom: 1px solid var(--pico-muted-border-color);
}

/* So a #hash-linked section (see _layout.html's load-time scrollIntoView
   fix) lands with its heading clear of the sticky header above, not tucked
   underneath it. ~99px measured header height + a little breathing room. */
main.container section[id] {
  scroll-margin-top: 6rem;
}

/* Left-justify the whole nav (overriding Pico's default space-between
   between the brand and the links), never wrap to a second line, and let
   the links block grow to fill the row so the CTA can sit at the far
   right below. */
header nav {
  justify-content: flex-start;
  flex-wrap: nowrap;
}

header nav .nav-links {
  display: flex !important;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

/* The right-justified CTA ("Try the Demo") -- the toggle link stays
   packed to the left, right after the brand. white-space:nowrap matters
   here specifically: without it, a narrow viewport wraps the button label
   onto two lines instead of shrinking the row, which is worse than either
   fitting cleanly or (if truly out of room) a small horizontal overflow. */
header nav .nav-cta {
  margin-left: auto;
}

header nav .nav-cta a {
  white-space: nowrap;
}

/* The consumer/architect toggle link ("Home Owners Click Here" /
   "Architects Click Here"): a distinct outlined pill so it reads as its
   own clickable fork point, not just a plain text link. */
header nav .nav-consumer-link a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--glow-dark-green);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Mobile: drop the Try the Demo CTA from the header entirely (it's
   already the primary CTA in every page's hero) so the header stays down
   to brand + one toggle link - comfortably fits without needing the
   aggressive shrinking an always-present CTA used to require. */
@media (max-width: 900px) {
  header nav .nav-cta {
    display: none;
  }
}

/* Narrow phones: a little extra breathing room so the wordmark and toggle
   link sit comfortably together now that the CTA is gone. */
@media (max-width: 480px) {
  header.container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  header nav .brand-word-suffix {
    display: none;
  }

  header nav .nav-consumer-link a {
    padding: 0.32rem 0.7rem;
    font-size: 0.8rem;
  }
}

/* ---------------------------------------------------------------------
   Cost Calculator: question-step card, choice list, and the CSS-only
   cost-range bar visual (no charting library, matching the site's
   near-zero-JS approach - the bar is just two divs sized server-side).
   ------------------------------------------------------------------- */
.calculator-card {
  max-width: 640px;
  margin: 2rem auto;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  padding: 2rem;
}

.cost-range-bar {
  margin-bottom: 1.75rem;
}

.cost-range-track {
  position: relative;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--pico-muted-border-color);
  overflow: hidden;
}

.cost-range-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--glow-green), var(--glow-dark-green));
  transition: left 0.3s ease, width 0.3s ease;
}

.cost-range-labels {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--pico-muted-color);
}

.cost-range-labels strong {
  color: var(--pico-color);
  font-size: 1rem;
}

.calculator-category {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--glow-dark-green);
  margin: 0 0 0.25rem;
}

.calculator-card h2 {
  margin-top: 0;
}

.calculator-help {
  color: var(--pico-muted-color);
  font-size: 0.9rem;
}

.calculator-choices {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calculator-choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--pico-border-radius);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.calculator-choice:hover {
  border-color: var(--glow-green);
}

.calculator-choice:has(input:checked) {
  border-color: var(--glow-dark-green);
  background: rgba(79, 174, 108, 0.08);
}

.calculator-choice input {
  margin: 0;
}

.calculator-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calculator-actions button {
  margin: 0;
  width: auto; /* overrides Pico's default full-width button, which otherwise
                  wins as this flex item's basis and pushes its sibling out
                  of the row entirely */
}

.calculator-actions button[type="submit"]:not(.calculator-back) {
  flex: 2;
}

.calculator-back {
  flex: 1;
}

.calculator-result-gate h2,
.calculator-breakdown {
  text-align: center;
}

.calculator-breakdown h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--glow-dark-green), var(--glow-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.5rem 0;
}

.calculator-disclaimer {
  color: var(--pico-muted-color);
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.calculator-breakdown .hero-cta {
  justify-content: center;
}
