@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #242336;
  --paper: #f7f5ef;
  --lime: #e3ff7d;
  --lilac: #cfc1f0;
  --muted: #767480;
  --line: #dcdad4;
  --peach: #ff9c75;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #8362bc;
  outline-offset: 5px;
}
input:focus,
select:focus {
  outline: 2px solid #8b73b6;
  outline-offset: 2px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
input,
select {
  min-width: 0;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.wrap {
  width: min(1312px, calc(100% - 112px));
  margin-inline: auto;
}
.nav {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -1.6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--peach);
  border-radius: 50%;
  align-self: flex-end;
  margin-bottom: 8px;
}
.nav nav {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}
.nav nav a {
  text-decoration: none;
}
.nav nav a:hover {
  text-decoration: underline;
  text-underline-offset: 7px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 52px;
  padding: 16px 26px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button span {
  font-size: 21px;
  line-height: 1;
}
.dark {
  background: var(--ink);
  color: var(--paper);
}
.lime {
  background: var(--lime);
  color: var(--ink);
}
.nav-cta {
  min-height: 46px;
  font-size: 13px;
}
.menu-btn {
  display: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.hero {
  width: calc(100% - 48px);
  max-width: 1560px;
  margin: auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 32px;
  min-height: 680px;
  padding: 58px 48px 50px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}
.eyebrow,
.micro {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.hero .eyebrow {
  color: var(--lime);
  margin-bottom: 30px;
}
.hero h1 {
  font-size: clamp(74px, 7.4vw, 112px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -5.5px;
}
.hero h1 em {
  color: var(--lime);
  font-style: normal;
}
.hero-description {
  font-size: 17px;
  line-height: 1.6;
  color: #ccc9d9;
  margin: 29px 0;
}
.hero-foot {
  font-size: 10px;
  color: #c1bdcd;
  margin-top: 47px;
  letter-spacing: 0.8px;
}
.hero-art {
  position: relative;
  min-height: 560px;
}
.receipt {
  position: absolute;
  left: 23%;
  top: 16px;
  width: 330px;
  padding: 32px 27px 24px;
  background: var(--lilac);
  color: var(--ink);
  border-radius: 18px;
  transform: rotate(8deg);
  box-shadow: 14px 14px 0 #171624;
}
.receipt hr {
  border: 0;
  border-top: 1px solid #a99bcb;
  margin: 20px 0 32px;
}
.receipt-device {
  font-size: 20px;
  font-weight: 700;
}
.receipt p:not(.micro) {
  font-size: 13px;
  color: #58516c;
  margin-top: 8px;
}
.receipt strong {
  font-size: 57px;
  letter-spacing: -2px;
  display: block;
  margin-top: 40px;
  line-height: 1;
}
.receipt p.small {
  font-size: 10px;
}
.receipt .micro {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.sun {
  width: 118px;
  position: absolute;
  top: 4px;
  right: 9%;
  transform: rotate(10deg);
}
.sticker {
  position: absolute;
  top: 310px;
  left: 4%;
  transform: rotate(-12deg);
  background: var(--lime);
  color: var(--ink);
  padding: 20px 25px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.mini-card {
  position: absolute;
  bottom: 1px;
  right: 9%;
  background: #363348;
  border-radius: 18px;
  padding: 21px 25px;
  min-width: 295px;
}
.mini-card .micro {
  font-size: 9px;
  color: #cbc6da;
}
.mini-card strong {
  display: block;
  font-size: 21px;
  margin-top: 8px;
}
.ticker {
  width: calc(100% - 48px);
  max-width: 1560px;
  margin: 24px auto 0;
  border-radius: 32px;
  background: var(--lime);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.ticker b {
  font-size: 26px;
  font-weight: 400;
}
.section {
  padding-top: 110px;
}
.muted {
  color: var(--muted);
}
h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  letter-spacing: -1.8px;
  font-weight: 700;
  line-height: 1.15;
}
.section > .eyebrow {
  margin-bottom: 26px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 36px;
}
.section-heading p {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 7px;
}
.studio {
  display: grid;
  grid-template-columns: 1.62fr 1fr;
  gap: 26px;
}
.input-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 30px 30px;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 38px;
  padding: 2px;
}
.tabs button {
  white-space: nowrap;
  background: transparent;
  color: var(--muted);
  border-radius: 25px;
  padding: 13px 24px;
  font-size: 13px;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
}
.fields label,
.utility-search label {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
input,
select {
  height: 56px;
  border: 1px solid transparent;
  background: var(--paper);
  padding: 0 16px;
  border-radius: 10px;
  width: 100%;
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
}
.unit-input {
  position: relative;
  display: flex;
  align-items: center;
}
.unit-input input {
  padding-right: 82px;
}
.unit-input > span {
  position: absolute;
  right: 16px;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 22px;
}
.rate-help {
  font-size: 12px;
  line-height: 1.7;
  margin: 24px 0 18px;
  color: var(--muted);
}
.rate-help a {
  text-underline-offset: 3px;
}
.submit {
  width: 100%;
  justify-content: center;
  gap: 18px;
}
.result-card {
  background: var(--lilac);
  border-radius: 24px;
  padding: 34px;
  align-self: stretch;
}
.result-card .amount {
  font-size: clamp(45px, 5vw, 76px);
  font-weight: 600;
  letter-spacing: -3px;
  margin: 49px 0 7px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.result-card > p:not(.eyebrow) {
  color: #58516c;
  font-size: 14px;
}
.result-card hr {
  border: 0;
  border-top: 1px solid #aea1cd;
  margin: 32px 0;
}
.result-card dl {
  margin: 0 0 45px;
}
.result-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}
.result-card dt {
  font-size: 13px;
  color: #58516c;
}
.result-card dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.result-card > strong {
  font-size: 15px;
}
.result-card p.small {
  font-size: 11px;
  margin-top: 16px;
  line-height: 1.6;
}
.small {
  font-size: 12px;
  line-height: 1.7;
}
details {
  font-size: 12px;
  line-height: 1.7;
}
details p {
  margin: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details summary {
  margin-top: 16px;
}
.text-button {
  padding: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.result-card .text-button {
  margin-top: 20px;
}
.result-card #share-status {
  display: block;
  margin-top: 8px;
}
.error {
  font-size: 13px;
  color: #a63242;
  margin-top: 16px;
}
.error:empty {
  display: none;
}
.panel-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}
.home-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 30px;
  gap: 8px;
  align-items: end;
  margin: 16px 0;
}
.home-row label {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
}
.home-row input {
  height: 46px;
  margin-top: 7px;
  padding: 0 10px;
  font-size: 13px;
}
.home-row button {
  height: 46px;
  background: none;
  font-size: 24px;
}
.compact {
  margin-top: 30px;
}
.section-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 18px;
}
.utility-search {
  display: flex;
  gap: 24px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-top: 30px;
  align-items: end;
}
.utility-search label:first-child {
  width: 25%;
  min-width: 170px;
}
.utility-search .grow {
  flex: 1;
}
.utility-search input,
.utility-search select {
  height: 45px;
}
.utility-search .button {
  min-height: 48px;
}
.utility-results {
  margin: 25px 0;
}
.utility-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 12px 0;
  overflow: hidden;
}
.utility-card-head {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.utility-card h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.utility-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-top: 7px;
}
.utility-card button {
  flex-shrink: 0;
}
.plans {
  border-top: 1px solid var(--line);
  padding: 0 22px 22px;
}
.plan {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.plan:last-child {
  border: 0;
}
.plan h4 {
  font-size: 14px;
  margin: 0 0 10px;
}
.plan dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 7px;
  font-size: 12px;
  margin: 0;
}
.plan dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.plan dt {
  color: var(--muted);
}
.pill {
  font-size: 10px;
  display: inline-block;
  border-radius: 12px;
  background: #f1ede5;
  padding: 5px 9px;
  margin-bottom: 12px;
}
.data-note {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 20px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.guide {
  min-height: 205px;
  text-align: left;
  border-radius: 20px;
  padding: 25px;
  position: relative;
  transition: transform 0.2s;
}
.guide:hover {
  transform: translateY(-5px);
}
.guide h3 {
  font-size: 26px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-top: 22px;
}
.lilac {
  background: #e8e4f2;
}
.sage {
  background: #eaf0d6;
}
.peach {
  background: #f8e2d5;
}
footer {
  margin-top: 90px;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 0 23px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.footer-inner p {
  font-size: 14px;
  color: #d4cfdf;
}
.footer-inner > div {
  display: flex;
  gap: 20px;
}
.footer-note {
  font-size: 10px;
  color: #b2adbe;
  margin-top: 23px;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 30;
  background: var(--lime);
  padding: 20px;
}
.skip:focus {
  top: 0;
}
.mobile-only {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .hero {
    padding-inline: 72px;
  }
  .hero-art {
    max-width: 610px;
  }
  .hero h1 {
    font-size: 114px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .nav nav {
    gap: 18px;
  }
  .hero {
    padding: 42px 32px;
  }
  .hero h1 {
    font-size: 87px;
  }
  .receipt {
    left: 12%;
    width: 285px;
  }
  .sun {
    right: 0;
  }
  .sticker {
    left: 0;
  }
  .mini-card {
    right: 0;
    min-width: 260px;
  }
  .fields {
    gap: 22px 18px;
  }
  .input-card {
    padding: 22px;
  }
  .tabs button {
    padding: 12px 15px;
  }
  .result-card {
    padding: 26px;
  }
  .utility-search {
    gap: 18px;
  }
  .guide h3 {
    font-size: 22px;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav {
    height: 80px;
  }
  .brand {
    font-size: 26px;
  }
  .nav nav {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .menu-btn {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .nav.open nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    z-index: 10;
    background: white;
    border-radius: 18px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
  }
  .hero {
    width: calc(100% - 24px);
    padding: 34px 24px;
    border-radius: 25px;
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: clamp(70px, 14vw, 100px);
    letter-spacing: -4px;
    line-height: 1.03;
  }
  .hero .eyebrow {
    font-size: 9px;
    margin-bottom: 24px;
  }
  .hero-description {
    font-size: 15px;
    margin: 24px 0;
  }
  .hero-foot {
    margin-top: 24px;
    font-size: 9px;
  }
  .hero-art {
    height: 430px;
    min-height: 0;
    margin-top: 35px;
    max-width: 440px;
    width: 100%;
    justify-self: center;
  }
  .receipt {
    left: calc(50% - 132px);
    top: 20px;
    width: 264px;
    padding: 24px;
  }
  .receipt strong {
    font-size: 49px;
    margin-top: 25px;
  }
  .receipt hr {
    margin: 18px 0 24px;
  }
  .receipt-device {
    font-size: 17px;
  }
  .sun {
    width: 83px;
    right: 1%;
    top: 5px;
  }
  .sticker {
    font-size: 9px;
    top: 251px;
    padding: 17px 20px;
    left: 0;
  }
  .mini-card {
    display: none;
  }
  .ticker {
    width: calc(100% - 24px);
    margin-top: 12px;
    min-height: 50px;
    gap: 12px;
    border-radius: 25px;
    font-size: 9px;
    letter-spacing: 0;
  }
  .ticker b {
    font-size: 20px;
  }
  .ticker span:nth-of-type(2),
  .ticker b:nth-of-type(2) {
    display: none;
  }
  .section {
    padding-top: 70px;
  }
  .section > .eyebrow {
    font-size: 10px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .section-heading {
    display: block;
    margin-bottom: 26px;
  }
  .section-heading p {
    margin-top: 12px;
  }
  .studio {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .input-card {
    padding: 18px;
  }
  .tabs {
    margin-bottom: 26px;
    gap: 2px;
  }
  .tabs button {
    padding: 12px;
    font-size: 11px;
    flex: 1;
  }
  .result-card {
    padding: 27px;
  }
  .result-card .amount {
    font-size: 68px;
    margin-top: 32px;
  }
  .result-card dl {
    margin-bottom: 30px;
  }
  .fields {
    gap: 23px;
    grid-template-columns: 1fr 1fr;
  }
  .fields label {
    font-size: 9px;
  }
  .fields label:first-child {
    grid-column: 1/-1;
  }
  .fields input,
  .fields select {
    font-size: 15px;
  }
  .fields label:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .fields .unit-input input {
    padding-right: 65px;
  }
  .unit-input > span {
    font-size: 11px;
  }
  .section-description {
    font-size: 14px;
  }
  .utility-search {
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .utility-search label:first-child {
    width: 100%;
    min-width: 0;
  }
  .utility-search .button {
    justify-content: center;
  }
  .utility-card-head {
    padding: 18px;
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .utility-card-head button {
    align-self: start;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }
  .guide {
    min-height: 170px;
  }
  .guide h3 {
    font-size: 25px;
  }
  .footer-inner {
    align-items: start;
    flex-direction: column;
    gap: 23px;
  }
  .footer-inner > div {
    gap: 25px;
  }
  .footer-note {
    line-height: 1.7;
  }
  .mobile-only {
    display: block;
  }
  .home-row {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 24px;
    gap: 5px;
  }
  .home-row input {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
/* Keep narrow viewports and enlarged browser text usable. */
.hero-copy,
.hero-art {
  min-width: 0;
}
.studio > * {
  min-width: 0;
}
.tabs {
  max-width: 100%;
}
@media (max-width: 400px) {
  .hero {
    padding: 30px 20px;
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: clamp(44px, 16vw, 64px);
    letter-spacing: -3px;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero .button {
    max-width: 100%;
    padding-inline: 20px;
    font-size: 13px;
  }
  .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .fields label {
    grid-column: 1/-1;
  }
  .tabs button {
    padding: 12px 9px;
    font-size: 10px;
  }
  .ticker {
    gap: 5px;
    font-size: 8px;
  }
  .ticker b {
    font-size: 16px;
  }
  .home-row {
    grid-template-columns: minmax(0, 1fr) 65px 65px 22px;
  }
  .result-card .amount {
    font-size: clamp(40px, 16vw, 64px);
  }
  .plan dl {
    grid-template-columns: 1fr;
  }
  .plan dt {
    margin-top: 6px;
  }
  .footer-inner > div {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 24px;
  }
}

.guide {
  text-decoration: none;
  display: block;
}
.reading {
  max-width: 760px;
  padding-top: 60px;
}
.reading > .eyebrow {
  margin-top: 40px;
}
.reading h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 20px 0;
}
.reading h2 {
  font-size: 28px;
  margin: 35px 0 20px;
}
.reading h3 {
  font-size: 23px;
  margin: 36px 0 15px;
}
.reading p,
.reading li {
  line-height: 1.85;
  font-size: 17px;
  margin: 18px 0;
}
.reading p.small {
  font-size: 12px;
}
.reading hr {
  margin-top: 45px;
  border: 0;
  border-top: 1px solid var(--line);
}
.reading .button {
  margin-top: 25px;
}

/* Remove repeated decorative arrow marks; keep clear text labels. */
.ticker {
  justify-content: space-around;
}
.button {
  justify-content: center;
}
@media (max-width: 800px) {
  .ticker span:nth-of-type(2) {
    display: block;
  }
  .ticker {
    font-size: 8px;
  }
}
/* Keep decorative sticker clear of the example tariff details. */
.sticker {
  top: auto;
  bottom: 10px;
  left: 0;
  transform: rotate(-8deg);
}
@media (max-width: 800px) {
  .hero-art {
    height: 470px;
  }
  .sticker {
    top: auto;
    bottom: 4px;
    left: 10px;
  }
}
.quick-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-block: 18px;
}
.quick-tools a {
  border: 1px solid #d7d5cd;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: inherit;
}
.quick-tools a:hover {
  background: #e0fa89;
}
.quick-tools span {
  opacity: 0.5;
  margin-right: 7px;
}
.section-description,
.lab-intro {
  max-width: 720px;
  line-height: 1.65;
}
.privacy-badge {
  border: 1px solid #d7d5cd;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 12px;
}
.bill-inputs,
.bill-analysis,
.replacement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-block: 28px;
}
.bill-inputs fieldset {
  min-width: 0;
  border: 1px solid #d7d5cd;
  border-radius: 20px;
  padding: 24px;
}
.bill-inputs legend {
  font-weight: 800;
  font-size: 21px;
  padding: 0 10px;
}
.lab-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.bill-breakdown,
.bill-change,
.replacement-result {
  border-radius: 24px;
  padding: 32px;
  background: #fffef9;
}
.bill-change {
  background: #e3ddf7;
}
.replacement-result {
  background: #e4ebd9;
}
.bill-analysis h3,
.replacement-result h3 {
  font-size: 42px;
  letter-spacing: -2px;
  margin: 16px 0;
}
.factor,
.bill-metrics > div,
.replacement-result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ccc;
  padding: 17px 0;
  font-size: 14px;
}
.bill-metrics dd,
.replacement-result dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}
.next-step,
.bill-change details {
  line-height: 1.7;
  font-size: 14px;
}
.bill-change summary {
  cursor: pointer;
  font-weight: 700;
}
.print-row {
  padding-bottom: 15px;
}
.bill-inputs input {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 760px) {
  .quick-tools {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .quick-tools a {
    padding: 12px;
    font-size: 12px;
  }
  .bill-inputs,
  .bill-analysis,
  .replacement-grid {
    grid-template-columns: 1fr;
  }
  .bill-inputs fieldset,
  .bill-breakdown,
  .bill-change,
  .replacement-result {
    padding: 20px;
  }
  .bill-analysis h3,
  .replacement-result h3 {
    font-size: 34px;
  }
  .lab-controls .button {
    width: 100%;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}
@media print {
  .nav,
  .hero,
  .ticker,
  .quick-tools,
  #utilities,
  #guides,
  footer,
  .lab-controls,
  .button,
  .skip {
    display: none !important;
  }
  body {
    background: white;
    color: #111;
  }
  .section {
    padding: 20px 0 !important;
  }
  .wrap {
    width: 100%;
    max-width: none;
  }
  .bill-change,
  .replacement-result {
    background: white;
    border: 1px solid #ccc;
  }
  details {
    display: none;
  }
}

@media (max-width: 400px) {
  .bill-inputs .fields {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
  .bill-inputs .fields label {
    grid-column: auto;
  }
  .bill-inputs .fields label:last-child {
    grid-column: 1/-1;
  }
  .bill-inputs input {
    padding-inline: 10px;
  }
  .bill-inputs legend {
    font-size: 19px;
  }
}
@media print {
  .bill-inputs,
  .bill-analysis,
  .replacement-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bill-inputs .fields {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .bill-inputs .fields label {
    grid-column: auto;
  }
  .bill-analysis > div,
  .replacement-result {
    break-inside: avoid;
  }
  .bill-inputs input {
    height: 30px;
  }
  .tabs,
  #share,
  #share-status,
  .rate-help {
    display: none !important;
  }
}

.bill-analysis h3,
.replacement-result h3,
.factor strong,
.bill-metrics dd,
.replacement-result dd {
  overflow-wrap: anywhere;
  min-width: 0;
}
.bill-analysis > div,
.replacement-grid > *,
.factor > span,
.bill-metrics dt {
  min-width: 0;
}
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  html {
    scroll-behavior: auto;
  }
  body {
    font-size: 11px;
  }
  main:before {
    content: "BillMellow — Your energy cost summary";
    display: block;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 16px;
  }
  .section {
    padding: 0 !important;
    break-inside: auto;
  }
  .section + .section {
    break-before: page;
  }
  .section > .eyebrow {
    margin-bottom: 10px;
  }
  .section h2 {
    font-size: 25px;
    letter-spacing: -0.6px;
  }
  .section-heading {
    display: block;
    margin-bottom: 12px;
  }
  .section-heading p,
  .section-description {
    margin-top: 7px;
    font-size: 12px;
  }
  .privacy-badge {
    display: none;
  }
  .lab-intro {
    font-size: 11px;
    line-height: 1.5;
  }
  .studio {
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    margin-top: 15px;
  }
  .input-card {
    padding: 14px;
    border: 1px solid #ccc;
  }
  .fields,
  .bill-inputs .fields {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .fields label,
  .bill-inputs .fields label {
    grid-column: auto;
    font-size: 8px;
    gap: 5px;
  }
  .fields label:first-child {
    grid-column: 1/-1;
  }
  .bill-inputs .fields label:first-child {
    grid-column: auto;
  }
  .fields input,
  .fields select,
  .bill-inputs input {
    height: 30px;
    font-size: 12px;
  }
  .hint,
  .small,
  .panel-intro {
    font-size: 10px;
    line-height: 1.45;
  }
  .hint {
    margin-top: 10px;
  }
  .result-card {
    padding: 18px;
    background: white;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .result-card .amount {
    font-size: 38px;
    letter-spacing: -1px;
    margin: 22px 0 7px;
  }
  .result-card hr {
    margin: 18px 0;
  }
  .result-card dl {
    margin-bottom: 18px;
  }
  .result-card dl > div {
    margin: 16px 0;
  }
  .result-card dd {
    font-size: 15px;
  }
  .bill-inputs,
  .bill-analysis,
  .replacement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
  }
  .bill-inputs fieldset {
    padding: 12px;
  }
  .bill-inputs legend {
    font-size: 15px;
  }
  .bill-breakdown,
  .bill-change,
  .replacement-result {
    padding: 16px;
  }
  .bill-analysis h3,
  .replacement-result h3 {
    font-size: 29px;
    letter-spacing: -1px;
    margin: 10px 0;
  }
  .factor,
  .bill-metrics > div,
  .replacement-result dl > div {
    font-size: 10px;
    gap: 9px;
    padding: 10px 0;
  }
  .next-step {
    font-size: 10px;
    line-height: 1.5;
  }
  .bill-analysis > div,
  .replacement-result {
    break-inside: avoid;
  }
  .bill-inputs + * {
    margin-top: 0;
  }
  #bill-message {
    display: none;
  }
}

.replacement-result dl > div dt,
.bill-metrics dt {
  flex: 1;
  min-width: 0;
}
.replacement-result dd,
.bill-metrics dd {
  flex: 0 0 auto;
  max-width: 58%;
  overflow-wrap: normal;
}
.factor strong {
  flex-shrink: 0;
  white-space: nowrap;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.explain-grid article {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
}
.explain-grid h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.explain-grid p {
  font-size: 14px;
  line-height: 1.85;
  margin: 18px 0;
}
.explain-grid a {
  font-size: 13px;
  text-underline-offset: 4px;
}
.faq-title {
  margin-top: 60px;
}
.faq-list {
  margin-top: 25px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list summary {
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}
.faq-list p {
  max-width: 850px;
  font-size: 15px;
  line-height: 1.8;
}
.source-line {
  margin-top: 28px;
}
.breadcrumbs {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--muted);
}
.reading h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 38px 0 18px;
}
.reading li {
  line-height: 1.85;
  margin: 12px 0;
}
@media (max-width: 800px) {
  .explain-grid {
    grid-template-columns: 1fr;
  }
  .explain-grid article {
    padding: 22px;
  }
  .faq-title {
    margin-top: 40px;
  }
  .faq-list summary {
    font-size: 16px;
  }
  .reading h2 {
    font-size: 24px;
  }
}
@media print {
  #how-it-works {
    display: none !important;
  }
}

.utility-card-head {
  cursor: pointer;
}
.utility-name {
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: 1.4;
}
.utility-name:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.utility-name:disabled {
  cursor: wait;
}
.plans {
  scroll-margin-top: 24px;
}

.tariff-name {
  background: none;
  padding: 0;
  text-align: left;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.plan {
  cursor: pointer;
}
.tariff-view {
  display: flex;
  margin-top: 18px;
  font-size: 12px;
  min-height: 42px;
}
.tariff-dialog {
  width: min(1000px, calc(100% - 32px));
  max-height: 90vh;
  border: 0;
  padding: 40px;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
.tariff-dialog::backdrop {
  background: #171426b8;
}
.tariff-dialog h2 {
  font-size: 32px;
  margin: 15px 40px 15px 0;
}
.tariff-dialog h3 {
  margin: 26px 0 14px;
  font-size: 22px;
}
.tariff-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  font-size: 32px;
  min-width: 44px;
  min-height: 44px;
}
.tariff-notice {
  line-height: 1.7;
  margin: 16px 0 22px;
  font-size: 14px;
}
.tariff-metadata > div {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.tariff-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.tariff-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.tariff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  font-size: 12px;
}
.tariff-table caption {
  text-align: left;
  padding: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.tariff-table th,
.tariff-table td {
  padding: 14px 10px;
  text-align: left;
  border-top: 1px solid var(--line);
}
.tariff-table input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
  cursor: pointer;
}
.tariff-dialog form > .small {
  margin: 15px 0;
}
.tariff-dialog details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 15px 0;
}
.tariff-dialog > div > a {
  display: inline-block;
  font-size: 13px;
  margin-top: 18px;
}
.tariff-schedule > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.tariff-schedule dd {
  margin: 0;
}
.selected-tariff {
  padding: 16px;
  background: #eaf0d6;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 20px;
}
@media (max-width: 600px) {
  .tariff-dialog {
    padding: 24px 18px;
  }
  .tariff-dialog h2 {
    font-size: 26px;
  }
  .tariff-metadata > div {
    grid-template-columns: 1fr;
  }
  .tariff-dialog form > .button {
    width: 100%;
  }
  .tariff-schedule > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
@media print {
  .tariff-dialog {
    display: none !important;
  }
}

.comparison-global {
  max-width: 760px;
  margin: 28px 0 15px;
}
.comparison-global label:first-child {
  grid-column: auto;
}
.comparison-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.comparison-plans fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.comparison-plans legend {
  font-size: 21px;
  font-weight: 800;
  padding: 0 10px;
}
.comparison-plans .fields label:first-child {
  grid-column: 1/-1;
}
.comparison-source {
  padding: 14px;
  background: #eeeae1;
  border-radius: 10px;
  margin-top: 18px;
  overflow-wrap: anywhere;
}
.comparison-credits {
  margin-top: 22px;
}
.comparison-credits p {
  margin: 12px 0;
}
.comparison-credits .fields {
  margin-top: 14px;
}
.comparison-result {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-top: 28px;
}
.comparison-outcome {
  background: var(--lime);
  padding: 28px;
  border-radius: 24px;
}
.comparison-outcome h3 {
  font-size: 52px;
  letter-spacing: -2px;
  margin: 22px 0 5px;
  overflow-wrap: anywhere;
}
.comparison-outcome > p {
  line-height: 1.6;
}
.comparison-outcome dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #bdcf77;
  font-size: 13px;
}
.comparison-outcome dt {
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison-outcome dd {
  margin: 0;
  text-align: right;
  max-width: 60%;
  flex-shrink: 0;
}
.comparison-sensitivity {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border-radius: 24px;
}
.comparison-sensitivity h3 {
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.comparison-table-wrap {
  overflow: auto;
  margin: 18px 0;
}
.comparison-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 370px;
}
.comparison-table-wrap caption {
  text-align: left;
  font-size: 11px;
  margin-bottom: 12px;
}
.comparison-table-wrap th,
.comparison-table-wrap td {
  padding: 13px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.selected-usage {
  background: #f0f5de;
  font-weight: 700;
}
.comparison-assumptions {
  margin: 20px 0;
}
.tariff-destination {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 18px 0;
}
.tariff-destination select {
  display: block;
  margin-top: 9px;
  max-width: 360px;
  background: white;
  border: 1px solid var(--line);
}
@media (max-width: 800px) {
  .comparison-plans,
  .comparison-result {
    grid-template-columns: 1fr;
  }
  .comparison-plans fieldset,
  .comparison-outcome,
  .comparison-sensitivity {
    padding: 20px;
  }
  .comparison-outcome h3 {
    font-size: 44px;
  }
  .comparison-global label:first-child {
    grid-column: auto;
  }
}
@media (max-width: 400px) {
  .comparison-global {
    grid-template-columns: 1fr;
  }
  .comparison-global label {
    grid-column: 1/-1 !important;
  }
}
@media print {
  #compare-plans {
    break-before: page;
  }
  .comparison-plans,
  .comparison-result {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-plans fieldset {
    padding: 12px;
  }
  .comparison-outcome,
  .comparison-sensitivity {
    background: white;
    padding: 16px;
    border: 1px solid #ccc;
  }
  .comparison-credits,
  .comparison-source,
  #use-bill-kwh,
  #download-comparison,
  #comparison-message {
    display: none;
  }
  .comparison-outcome h3 {
    font-size: 28px;
  }
  .comparison-outcome dl > div {
    font-size: 10px;
  }
  .comparison-table-wrap table {
    min-width: 0;
    font-size: 9px;
  }
  .comparison-table-wrap th,
  .comparison-table-wrap td {
    padding: 7px 4px;
  }
  .comparison-result {
    break-inside: avoid;
  }
}
@media (min-width: 801px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.comparison-print-summary {
  display: none;
}
@media print {
  .comparison-print-summary {
    display: block;
    grid-column: 1/-1;
    font-size: 10px;
    line-height: 1.5;
  }
}
.ad-placement {
  margin: 48px auto;
  max-width: 1100px;
  padding: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}
.ad-placement > p {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #666;
}
.ad-placement ins {
  min-height: 100px;
}
