:root {
  --bg: #f6faf9;
  --surface: #ffffff;
  --surface-strong: #eef8f5;
  --text: #10201d;
  --muted: #64736f;
  --line: #dce8e4;
  --green: #0b8f69;
  --green-dark: #06684d;
  --blue: #166bbd;
  --blue-soft: #e8f2ff;
  --amber: #bd7a0b;
  --red: #b83b39;
  --shadow: 0 24px 60px rgba(20, 65, 58, 0.12);
  --radius: 8px;
  --gauge-value: 64%;
  --hero-bg-opacity: 1;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(16, 32, 29, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 32, 29, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 7%, rgba(22, 107, 189, 0.13), transparent 28rem),
    radial-gradient(circle at 12% 34%, rgba(11, 143, 105, 0.1), transparent 24rem),
    linear-gradient(180deg, #edf8f5 0%, #f6fbfa 35%, #ffffff 100%);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(22, 107, 189, 0.45);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 251, 251, 0.86);
  border-bottom: 1px solid rgba(220, 232, 228, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(3.1rem, 7vw, 4.25rem);
  height: auto;
  flex: 0 0 auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-wordmark span:first-child {
  color: var(--blue);
}

.brand-wordmark span:last-child {
  color: #58ad32;
}

.brand-mark,
.icon-box,
.usage-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: #dff6ee;
  color: var(--green-dark);
}

.brand-mark svg,
.icon-box svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green-dark);
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  background: var(--text);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 5rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 calc((100vw - 100%) / -2);
  z-index: -1;
  opacity: var(--hero-bg-opacity);
  background:
    radial-gradient(circle at 82% 8%, rgba(22, 107, 189, 0.16), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(11, 143, 105, 0.12), transparent 24rem);
  pointer-events: none;
  transition: opacity 0.12s linear;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -4% auto auto;
  width: min(42vw, 30rem);
  height: min(42vw, 30rem);
  border: 1px solid rgba(11, 143, 105, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.subtitle {
  max-width: 50rem;
  margin-bottom: 0.75rem;
  color: #26443e;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 700;
}

.hero-explainer {
  max-width: 43rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(11, 143, 105, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #31534d;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(20, 65, 58, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 34px rgba(11, 143, 105, 0.24);
}

.button.secondary {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.hero-panel,
.calculator-card,
.results-card,
.advice-panel,
.disclaimer {
  border: 1px solid rgba(220, 232, 228, 0.94);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  padding: clamp(1.25rem, 4vw, 2rem);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.25rem auto;
  width: 5rem;
  height: 5rem;
  border: 1px solid rgba(22, 107, 189, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.panel-topline,
.card-header,
.advice-status {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.panel-topline {
  margin-bottom: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.35rem rgba(11, 143, 105, 0.13);
}

.hero-meter {
  height: 0.75rem;
  margin: 1.75rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f0ee;
}

.hero-meter span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-stats div {
  min-width: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.stat-label,
.muted-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-stats strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.45rem;
}

.hero-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.calculator-section,
.meaning-section,
.advice-section,
.about-section,
.privacy-section,
.faq-section {
  margin-inline: calc((100vw - 100%) / -2);
  padding: 4rem calc((100vw - 100%) / 2);
}

.calculator-section {
  position: relative;
  border-top: 1px solid rgba(220, 232, 228, 0.78);
  border-bottom: 1px solid rgba(220, 232, 228, 0.78);
  background:
    linear-gradient(135deg, rgba(232, 242, 255, 0.86), rgba(242, 251, 248, 0.92)),
    #f5faf9;
}

.meaning-section {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.advice-section {
  background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 100%);
}

.about-section {
  background:
    linear-gradient(135deg, rgba(232, 242, 255, 0.82), rgba(255, 255, 255, 0.96));
}

.privacy-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%);
}

.faq-section {
  background: #ffffff;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section-intro {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.calculator-layout {
  display: grid;
  gap: 1rem;
}

.calculator-card,
.results-card,
.advice-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.calculator-card {
  background: rgba(255, 255, 255, 0.96);
}

.results-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(73, 173, 218, 0.22), transparent 18rem),
    linear-gradient(145deg, #10201d 0%, #133a35 55%, #0d2c42 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(13, 44, 66, 0.24);
}

.results-card .card-header p,
.results-card .muted-label,
.results-card .interpretation {
  color: rgba(255, 255, 255, 0.76);
}

.results-card h3,
.results-card #difficultyLabel {
  color: #fff;
}

.results-card .icon-box {
  background: rgba(255, 255, 255, 0.13);
  color: #bcefe1;
}

.card-header {
  margin-bottom: 1.25rem;
}

.card-header p,
.toggle-row p,
.advice-status p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.icon-box.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label,
legend {
  color: #243d38;
  font-size: 0.92rem;
  font-weight: 800;
}

.money-input {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.money-input span {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 3rem;
  background: #eff7f4;
  color: var(--green-dark);
  font-weight: 900;
}

.money-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  outline: none;
}

.plain-input,
.unit-input {
  width: 100%;
  min-height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plain-input {
  padding: 0.7rem 0.8rem;
  color: var(--text);
}

.unit-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.unit-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0.7rem 0.8rem;
  outline: none;
}

.unit-input select {
  display: grid;
  align-self: stretch;
  width: 4.6rem;
  min-height: 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #eff7f4;
  color: var(--green-dark);
  font-weight: 900;
  padding: 0 0.45rem;
}

.unit-input .static-unit {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-width: 3.5rem;
  border-left: 1px solid var(--line);
  background: #eff7f4;
  color: var(--green-dark);
  font-weight: 900;
}

.optional-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.field-help,
.source-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.source-detail {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

select {
  min-height: 3.15rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0.7rem 0.8rem;
}

.detected-box {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #cfebe2;
  border-radius: var(--radius);
  background: #f2fbf8;
}

.link-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.country-notice {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.segmented-field {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}

.segmented-field legend {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
}

.segmented-field label {
  min-width: 0;
}

.segmented-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-field span {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.segmented-field input:checked + span {
  border-color: rgba(11, 143, 105, 0.35);
  background: #e7f7f1;
  color: var(--green-dark);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #f7faf9;
}

.switch {
  display: inline-flex;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  display: block;
  width: 3.2rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #ccd9d5;
  transition: background 0.2s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(1.45rem);
}

.advanced-profile {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.advanced-profile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  list-style: none;
}

.advanced-profile summary::-webkit-details-marker {
  display: none;
}

.advanced-profile summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e7f7f1;
  color: var(--green-dark);
  font-weight: 900;
}

.advanced-profile[open] summary::after {
  content: "-";
}

.advanced-profile summary span {
  display: grid;
  gap: 0.2rem;
}

.advanced-profile small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.advanced-grid {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}

.advanced-grid .form-field {
  margin-bottom: 0;
}

.appliance-panel {
  margin: 0 1rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.appliance-panel h4 {
  margin: 0 0 0.75rem;
  color: #243d38;
  font-size: 0.92rem;
}

.appliance-grid {
  display: grid;
  gap: 0.55rem;
}

.appliance-grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: #f7faf9;
  color: var(--muted);
  font-size: 0.86rem;
}

.appliance-grid input {
  width: 4rem;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.3rem 0.45rem;
  color: var(--text);
  font-weight: 800;
}

.price-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.price-summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.price-summary dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.price-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  text-align: right;
}

.result-grid {
  display: grid;
  gap: 0.75rem;
}

.allowance-gauge {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.allowance-gauge p {
  margin: 0.2rem 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  font-weight: 600;
}

.allowance-gauge strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
}

.gauge-ring {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #142d2a 68%, transparent 70%),
    conic-gradient(#73e3c1 var(--gauge-value), rgba(255, 255, 255, 0.14) 0);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.result-tile {
  min-width: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.result-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  font-weight: 800;
}

.result-tile strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: clamp(1.7rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.primary-result {
  background: linear-gradient(135deg, rgba(115, 227, 193, 0.22), rgba(91, 162, 232, 0.2));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.primary-result span,
.primary-result strong {
  color: #fff;
}

.interpretation {
  margin: 1.1rem 0 0;
  color: #314d47;
  font-weight: 700;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 5rem;
  margin-top: 1.25rem;
  border: 1px dashed #bed4ce;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #7a8b86;
  font-size: 0.85rem;
  font-weight: 800;
}

.before-faq {
  margin: 1rem 0 0;
}

.usage-grid {
  display: grid;
  gap: 1.25rem;
}

.usage-group {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.usage-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0.85rem;
}

.usage-group > h3 {
  margin: 0.2rem 0 0;
  color: #31534d;
  font-size: 0.92rem;
  text-transform: uppercase;
}

.usage-card {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(18, 65, 94, 0.08);
}

.usage-icon {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.usage-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.usage-icon.heat {
  background: #fff2df;
  color: var(--amber);
}

.usage-icon.water {
  background: var(--blue-soft);
  color: var(--blue);
}

.usage-card p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.usage-bar {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f0ed;
}

.usage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.usage-bar.high span {
  background: linear-gradient(90deg, var(--amber), var(--red));
}

.advice-panel {
  display: grid;
  gap: 1.2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 247, 0.98));
}

.pressure-map {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}

.profile-prompt {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #cfebe2;
  border-radius: var(--radius);
  background: #f2fbf8;
}

.profile-prompt span {
  color: #31534d;
  font-size: 0.86rem;
  font-weight: 750;
}

.pressure-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.pressure-summary div {
  min-width: 0;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.pressure-summary strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  line-height: 1;
}

#dailyGapKwh[data-state="negative"] {
  color: var(--red);
}

#dailyGapKwh[data-state="positive"] {
  color: var(--green-dark);
}

.pressure-bars {
  display: grid;
  gap: 0.65rem;
}

.pressure-row {
  display: grid;
  gap: 0.35rem;
}

.pressure-row-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: #314d47;
  font-size: 0.88rem;
  font-weight: 800;
}

.pressure-row-label strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.pressure-track {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2ece8;
}

.pressure-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.priority-title {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-panel,
.privacy-panel {
  max-width: 820px;
  padding: clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.about-panel p,
.privacy-panel p {
  color: #314d47;
  font-size: 1.02rem;
  font-weight: 600;
}

.about-panel p:last-child,
.privacy-panel p:last-child {
  margin-bottom: 0;
}

.about-links {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.about-links h3 {
  margin-bottom: 0.2rem;
}

.about-links a {
  display: inline-flex;
  width: fit-content;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.about-links a:hover {
  color: var(--green-dark);
  transform: translateX(3px);
}

.advice-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.advice-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.95rem;
  border-radius: var(--radius);
  background: #f7faf9;
  color: #253f39;
  font-weight: 700;
}

.advice-list li::before {
  display: none;
}

.advice-rank {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: #dff6ee;
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.advice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.advice-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 900;
}

.advice-meta span:nth-child(2) {
  background: #fff2df;
  color: var(--amber);
}

.advice-meta span:nth-child(3) {
  background: #eef8f5;
  color: var(--green-dark);
}

.advice-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.advice-card p {
  margin-bottom: 0.4rem;
  color: #314d47;
  font-weight: 700;
}

.advice-card small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

summary {
  cursor: pointer;
  padding: 1rem;
  color: var(--text);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.feedback-button,
.button,
.hero-panel,
.link-button,
.segmented-field span,
.advanced-profile,
.results-card,
.result-tile,
.ad-slot,
.usage-card,
.usage-icon,
.advice-list li,
details {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.feedback-button:hover,
.button:hover {
  transform: translateY(-2px);
}

.feedback-button:hover {
  background: #16342f;
  box-shadow: 0 12px 26px rgba(16, 32, 29, 0.18);
}

.button.primary:hover {
  background: var(--green-dark);
  box-shadow: 0 22px 42px rgba(11, 143, 105, 0.28);
}

.button.secondary:hover {
  border-color: rgba(11, 143, 105, 0.28);
  box-shadow: 0 14px 32px rgba(20, 65, 58, 0.1);
}

.hero-panel:hover,
.results-card:hover {
  transform: translateY(-3px);
}

.hero-panel:hover {
  box-shadow: 0 30px 70px rgba(20, 65, 58, 0.15);
}

.results-card:hover {
  box-shadow: 0 36px 86px rgba(13, 44, 66, 0.3);
}

.link-button:hover {
  color: var(--green-dark);
  transform: translateX(2px);
}

.segmented-field label:hover span {
  transform: translateY(-1px);
  border-color: rgba(11, 143, 105, 0.28);
}

.advanced-profile:hover {
  border-color: rgba(11, 143, 105, 0.24);
  box-shadow: 0 12px 28px rgba(20, 65, 58, 0.08);
}

.result-tile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.ad-slot:hover {
  border-color: rgba(11, 143, 105, 0.34);
  background: rgba(255, 255, 255, 0.9);
  color: #526761;
}

.usage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 107, 189, 0.2);
  box-shadow: 0 22px 52px rgba(18, 65, 94, 0.12);
}

.usage-card:hover .usage-icon {
  transform: scale(1.05);
}

.advice-list li:hover {
  transform: translateX(3px);
  background: #eef8f5;
}

details:hover {
  transform: translateY(-1px);
  border-color: rgba(11, 143, 105, 0.22);
  box-shadow: 0 14px 34px rgba(20, 65, 58, 0.08);
}

.disclaimer {
  margin: 2rem 0 4rem;
  padding: 1.25rem;
  background: #fbfdfc;
}

.disclaimer h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.disclaimer p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.modal-open {
  overflow: hidden;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 29, 0.58);
  backdrop-filter: blur(8px);
}

.project-modal-card {
  position: relative;
  width: min(100%, 620px);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(220, 232, 228, 0.94);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 80px rgba(4, 25, 22, 0.28);
}

.project-modal-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 7vw, 3rem);
}

.project-modal-card p {
  color: #314d47;
}

.project-modal-card p:last-child {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.58s ease,
    transform 0.58s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calculator-card.reveal,
.results-card.reveal,
.usage-card.reveal,
.advice-panel.reveal {
  transform: translateY(22px) scale(0.985);
}

.calculator-card.reveal.is-visible,
.results-card.reveal.is-visible,
.usage-card.reveal.is-visible,
.advice-panel.reveal.is-visible {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none !important;
  }
}

@media (min-width: 620px) {
  .site-nav {
    display: flex;
  }

  .detected-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advanced-grid,
  .appliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  }

  .calculator-layout {
    grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }

  .calculator-card,
  .results-card {
    min-height: 100%;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-result {
    grid-column: 1 / -1;
  }

  .advice-panel {
    grid-template-columns: 0.68fr 1fr;
    align-items: start;
  }

  .advice-status,
  .pressure-map {
    grid-column: 1;
  }

  .advice-panel > div:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 420px) {
  main {
    width: min(100% - 1rem, 1160px);
  }

  .site-header {
    padding-inline: 0.75rem;
  }

  .brand span:last-child {
    font-size: 0.95rem;
  }

  .feedback-button {
    padding-inline: 0.65rem;
    font-size: 0.8rem;
  }

  .hero-stats,
  .segmented-field {
    grid-template-columns: 1fr;
  }
}
