:root {
  --ink: #16213c;
  --muted: #5d6880;
  --line: #dfe5ee;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --blue: #1e5fb9;
  --blue-dark: #174a8e;
  --blue-soft: #eaf2ff;
  --navy: #26366f;
  --teal: #087a73;
  --teal-soft: #e4f7f3;
  --amber: #9a5b00;
  --amber-soft: #fff4d8;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --shadow: 0 18px 50px rgba(26, 45, 83, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: radial-gradient(circle at 50% -15%, #dfeaff 0, transparent 38rem), var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  border-radius: .6rem;
}
.skip-link:focus { top: 1rem; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(213, 221, 234, .9);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(100% - 2rem, 920px);
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  box-shadow: 0 6px 18px rgba(30, 95, 185, .25);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.brand small { color: var(--blue); font-size: .72rem; font-weight: 700; }
.partners { display: flex; align-items: center; gap: .7rem; }
.partners img { width: auto; height: 24px; max-width: 92px; object-fit: contain; }
.partners img:last-child { height: 29px; }
.partners span { width: 1px; height: 22px; background: var(--line); }

main {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  min-height: calc(100vh - 170px);
  padding: clamp(2.5rem, 7vw, 5rem) 0 4rem;
}
.hero { text-align: center; }
.eyebrow, .step-kicker {
  margin: 0 0 .7rem;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 7vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.lede {
  max-width: 620px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}
.scenario-note {
  display: flex;
  gap: 1rem;
  max-width: 650px;
  margin: 0 auto 1.25rem;
  padding: 1.1rem 1.2rem;
  text-align: left;
  border: 1px solid #bdd2f3;
  border-radius: 16px;
  background: rgba(234, 242, 255, .7);
}
.scenario-note p { margin: .25rem 0 0; color: #43526c; }
.scenario-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-family: Georgia, serif;
  font-weight: 700;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.4rem;
  margin: 0 0 1.8rem;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
  list-style: none;
}
.trust-list li::before { content: "✓"; margin-right: .42rem; color: var(--teal); font-weight: 900; }
.prototype-label { margin: .9rem 0 0; color: var(--muted); font-size: .76rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 8px 22px rgba(30,95,185,.22); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue-dark); border-color: #b9c8df; background: white; }
.button-large { min-height: 56px; padding-inline: 1.5rem; font-size: 1.04rem; }
.text-button { padding: 0; border: 0; color: var(--blue-dark); background: transparent; font-weight: 800; }

.calculator {
  max-width: 720px;
  margin: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.progress-wrap { margin-bottom: 1.75rem; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; font-weight: 750; }
.progress-track { height: 6px; margin-top: .75rem; overflow: hidden; border-radius: 10px; background: #e6ebf2; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #3ba9cd); transition: width .25s ease; }
.section-heading { margin-bottom: 1.6rem; }
.section-heading h2 { margin-bottom: .35rem; font-size: clamp(1.7rem, 5vw, 2.3rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading h2:focus { outline: 0; }
.section-heading p { margin: 0; color: var(--muted); }

fieldset { margin: 0 0 1.4rem; padding: 0; border: 0; }
legend, .field-block > label { display: block; margin-bottom: .65rem; color: var(--ink); font-size: .94rem; font-weight: 800; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  padding: .35rem;
  border-radius: 13px;
  background: #edf1f6;
}
.segmented.three { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: .55rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #4f5d72;
  font-size: .83rem;
  font-weight: 750;
}
.segmented input:checked + span { color: var(--blue-dark); border-color: #b8ccec; background: white; box-shadow: 0 2px 7px rgba(27,51,91,.08); }
.segmented input:focus-visible + span, .choice-card input:focus-visible + span, .mini-options input:focus-visible + span { outline: 3px solid #ffbf47; outline-offset: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.quick-card {
  min-height: 82px;
  padding: .8rem;
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: white;
}
.quick-card span, .quick-card strong { display: block; }
.quick-card .quick-name { margin-bottom: .25rem; color: var(--muted); font-size: .73rem; }
.quick-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.field-block { margin-bottom: 1.4rem; }
.input-with-unit { position: relative; }
.input-with-unit input, select {
  width: 100%;
  min-height: 50px;
  padding: .72rem 3.2rem .72rem .9rem;
  border: 1.5px solid #bbc5d4;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-weight: 750;
}
.text-input {
  width: 100%;
  min-height: 50px;
  padding: .72rem .9rem;
  border: 1.5px solid #bbc5d4;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-weight: 750;
}
select { padding-right: 2.5rem; }
.input-with-unit span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 750; }
.help, .error { margin: .45rem 0 0; font-size: .78rem; }
.help { color: var(--muted); }
.error { color: var(--danger); font-weight: 750; }
input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-soft); }
.equivalent { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -.3rem 0 1.2rem; padding: .9rem 1rem; border-radius: 12px; color: #165c56; background: var(--teal-soft); }
.equivalent span { font-size: .78rem; font-weight: 700; }
.equivalent strong { text-align: right; }
.help-details { margin: 0 0 1.4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.help-details.compact { margin-top: -.7rem; }
.help-details summary, .rule-details summary { color: var(--blue-dark); font-size: .84rem; font-weight: 800; cursor: pointer; }
.help-details p, .rule-details p { margin: .65rem 0 0; color: var(--muted); font-size: .82rem; }
.step > .button-primary { width: 100%; }

.choice-stack { display: grid; gap: .7rem; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  padding: .8rem 1rem .8rem 3.15rem;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: white;
}
.choice-card > span::before { content: ""; position: absolute; left: 1.05rem; width: 18px; height: 18px; border: 2px solid #a5b0c0; border-radius: 50%; }
.choice-card input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-card input:checked + span::before { border: 5px solid var(--blue); background: white; }
.choice-card small { margin-top: .15rem; color: var(--muted); }

.guidance { margin: .2rem 0 1.5rem; padding: 1rem; border: 1px solid #b9d9d4; border-radius: 16px; background: #f5fbfa; }
.guidance-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.guidance-head > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: var(--teal); font-weight: 900; }
.guidance-head h3, .guidance-head p { margin: 0; }
.guidance-head h3 { font-size: 1rem; }
.guidance-head p { color: var(--muted); font-size: .75rem; }
.guide-question { margin-bottom: 1rem; padding-top: 1rem; border-top: 1px solid #d5e9e6; }
.guide-question legend { font-size: .86rem; }
.mini-options.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-help { margin: .6rem 0 0; color: var(--muted); font-size: .76rem; }
.term-wrap { position: relative; display: inline-flex; vertical-align: baseline; }
.term-help { padding: 0 .12rem; border: 0; border-bottom: 1px dotted currentColor; color: var(--blue-dark); background: transparent; font: inherit; font-weight: 900; cursor: help; }
.term-help:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; border-radius: 3px; }
.term-popover {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + .55rem);
  width: min(230px, calc(100vw - 2rem));
  padding: .65rem .75rem;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, .2rem);
  border-radius: 9px;
  color: white;
  background: var(--navy);
  box-shadow: 0 8px 22px rgba(15,35,72,.22);
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.term-popover::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--navy); transform: translateX(-50%); }
.term-wrap:hover .term-popover, .term-wrap:focus-within .term-popover, .term-wrap.open .term-popover { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.mini-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.mini-options.three { grid-template-columns: repeat(3, 1fr); }
.mini-options label { position: relative; }
.mini-options input { position: absolute; opacity: 0; }
.mini-options span { display: grid; min-height: 42px; place-items: center; padding: .45rem; text-align: center; border: 1px solid #b7cbc8; border-radius: 10px; color: #315d59; background: white; font-size: .75rem; font-weight: 750; }
.mini-options input:checked + span { color: white; border-color: var(--teal); background: var(--teal); }
.rule-details { margin-top: .7rem; }
.criteria-box { margin: 0 0 .8rem; padding: .75rem .85rem; border-radius: 10px; color: #315d59; background: white; font-size: .76rem; }
.criteria-box p { margin: 0; }
.criteria-box ul { margin: .45rem 0; padding-left: 1.1rem; }
.criteria-box li + li { margin-top: .3rem; }
.guidance-result { margin-top: .75rem; padding: .85rem; border-radius: 10px; color: #194e49; background: #dff3f0; font-size: .84rem; font-weight: 700; }
.zf-fieldset { padding-top: .2rem; }

.mail-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: -1rem 0 1.2rem; border-radius: 15px; color: var(--blue-dark); background: var(--blue-soft); font-size: 1.45rem; font-weight: 900; }
.button-quiet { width: 100%; margin-top: .45rem; color: var(--muted); border-color: transparent; background: transparent; box-shadow: none; }
.button-quiet:hover { color: var(--blue-dark); background: var(--blue-soft); }

.result-context { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 1.5rem; padding: .8rem 1rem; border-left: 4px solid var(--blue); border-radius: 0 12px 12px 0; background: var(--blue-soft); }
.result-context > div { display: flex; flex-direction: column; }
.context-label { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.context-pill { align-self: center; padding: .35rem .55rem; border-radius: 999px; color: var(--blue-dark); background: white; font-size: .72rem; font-weight: 800; }
.result-heading { margin-bottom: 1rem; }
.result-shell { display: grid; gap: 1rem; }
.result-main { padding: 1.25rem; border: 1px solid #cbd9ed; border-radius: 16px; background: linear-gradient(145deg, #f6f9ff, white); }
.result-main h3 { margin-bottom: .5rem; font-size: 1.08rem; line-height: 1.35; }
.amount { display: block; margin: .3rem 0 .15rem; color: var(--navy); font-size: clamp(2.2rem, 8vw, 3.7rem); line-height: 1; letter-spacing: -.05em; }
.scope { margin: .45rem 0 0; color: var(--muted); font-size: .78rem; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.comparison > div { padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; }
.comparison span, .comparison strong { display: block; }
.comparison span { color: var(--muted); font-size: .72rem; }
.comparison strong { margin-top: .15rem; font-size: 1.1rem; }
.assumption { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-radius: 12px; color: #3f4d64; background: #f0f3f7; font-size: .8rem; }
.assumption button { padding: 0; border: 0; color: var(--blue); background: transparent; font-weight: 800; }
.scenario-grid { display: grid; gap: .75rem; }
.scenario-card { padding: 1.15rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.scenario-card h3 { margin-bottom: .85rem; color: var(--blue-dark); font-size: 1.05rem; }
.scenario-card .placeholder { color: var(--navy); font-size: 2rem; font-weight: 900; }
.result-metric { display: grid; gap: .15rem; padding: .85rem 0; }
.result-metric > span { color: var(--muted); font-size: .76rem; font-weight: 750; }
.result-metric strong { color: var(--navy); font-size: clamp(1.2rem, 4vw, 1.55rem); line-height: 1.15; }
.result-metric-primary { padding: 1rem; border-radius: 12px; background: var(--blue-soft); }
.result-metric-primary > span { color: var(--blue-dark); font-size: .8rem; }
.result-metric-primary strong { font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: -.035em; }
.metric-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15em .32em; }
.metric-amount { color: inherit; font: inherit; letter-spacing: inherit; }
.metric-join { color: #7b8799; font-size: .5em; font-weight: 750; letter-spacing: 0; }
.metric-period { margin: .35rem 0 0; color: var(--muted); font-size: .75rem; font-weight: 700; }
.result-totals { display: grid; margin-top: .85rem; border-top: 1px solid var(--line); }
.result-totals .result-metric + .result-metric { border-top: 1px solid var(--line); }
.result-metric-reference strong { color: #56647a; }
.tariff-comparison { margin-top: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.tariff-comparison-heading { margin-bottom: .75rem; color: #46536a; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.comparison-row + .comparison-row { margin-top: .8rem; }
.comparison-label { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .3rem; font-size: .75rem; }
.comparison-label span { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-weight: 750; }
.comparison-label strong { color: var(--navy); font-size: .82rem; }
.comparison-dot { width: .55rem; height: .55rem; border-radius: 3px; }
.comparison-dot.reference, .comparison-fill.reference { background: #6b8fc8; }
.comparison-dot.current, .comparison-fill.current { background: #d96852; }
.comparison-track { height: 12px; overflow: hidden; border-radius: 999px; background: #e4e9f0; }
.comparison-fill { display: block; min-width: 8%; height: 100%; border-radius: inherit; transition: width .7s ease; }
.tariff-comparison p { margin: .65rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.4; }
.benefit-scope { padding: 1rem; border: 1px solid #cbd9ed; border-radius: 14px; background: linear-gradient(145deg, #f7faff, white); }
.benefit-scope-heading h3 { margin: .12rem 0 .3rem; font-size: 1.08rem; }
.benefit-scope-heading p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.composition-card { background: linear-gradient(145deg, #f8fbff, white); }
.composition-bar { display: flex; height: 24px; margin: 1rem 0 .35rem; overflow: hidden; border: 1px solid #d2dbe8; border-radius: 7px; background: #eef1f5; }
.composition-segment { display: block; min-width: 2px; height: 100%; }
.composition-segment.gas, .component-dot.gas, .composition-range-track .gas { background: #2f72b8; }
.composition-segment.retained, .component-dot.retained, .composition-range-track .retained { background: #54a9d6; }
.composition-segment.transport, .component-dot.transport, .composition-range-track .transport { background: #6f7f96; }
.composition-segment.distribution, .component-dot.distribution, .composition-range-track .distribution { background: #253b66; }
.composition-segment.uncertain { background-image: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)), repeating-linear-gradient(135deg, transparent 0 7px, rgba(255,255,255,.18) 7px 12px); }
.composition-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.composition-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .45rem; padding: .65rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.component-dot { display: inline-block; flex: 0 0 auto; width: .62rem; height: .62rem; margin-top: .15rem; border-radius: 3px; }
.composition-item > span { color: #38465c; font-size: .7rem; font-weight: 800; line-height: 1.25; }
.composition-item small { display: block; margin-top: .12rem; color: var(--muted); font-size: .59rem; font-weight: 650; line-height: 1.25; }
.composition-item > strong { text-align: right; color: var(--navy); font-size: .76rem; line-height: 1.2; }
.composition-item > strong small { font-size: .64rem; }
.coverage-heading { margin-top: 1.15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.coverage-heading.compact { margin-top: .85rem; padding-top: .75rem; }
.coverage-heading h4 { margin: .12rem 0 .3rem; color: var(--navy); font-size: .92rem; line-height: 1.3; }
.coverage-heading p { margin: 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.benefit-reach { display: grid; gap: .65rem; margin: 0 0 .8rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.benefit-reach-row > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; margin-bottom: .3rem; }
.benefit-reach-row > div:first-child strong { color: var(--navy); font-size: .78rem; }
.benefit-reach-row > div:first-child span { color: var(--muted); font-size: .62rem; font-weight: 800; text-transform: uppercase; }
.benefit-reach-track { position: relative; display: flex; height: 13px; overflow: hidden; border-radius: 5px; background: #e4e9f0; }
.reach-component { position: relative; display: block; min-width: 1px; height: 100%; overflow: hidden; border-right: 1px solid rgba(255,255,255,.85); }
.reach-component:last-child { border-right: 0; }
.reach-component-fill { position: absolute; inset: 0 auto 0 0; display: block; }
.reach-component-fill.sef-certain { background: #308f83; }
.reach-component-fill.sef-uncertain { background: repeating-linear-gradient(135deg, #8bc8c0 0 5px, #c4e5e1 5px 10px); }
.reach-component-fill.zf { width: 100%; background: repeating-linear-gradient(135deg, #dd6b57 0 8px, #ed8b78 8px 16px); }
.benefit-reach-row p { margin: .35rem 0 0; color: #526078; font-size: .65rem; line-height: 1.4; }
.benefit-reach-key { display: flex; flex-wrap: wrap; gap: .35rem .75rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.benefit-reach-key span { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .58rem; }
.benefit-reach-key i { width: .55rem; height: .55rem; border-radius: 2px; }
.reach-key-base { background: #308f83; }
.reach-key-uncertain { background: repeating-linear-gradient(135deg, #8bc8c0 0 3px, #c4e5e1 3px 6px); }
.reach-key-zf { background: #dd6b57; }
.benefit-reach-remainder { margin: -.15rem 0 0; padding-top: .55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .61rem; line-height: 1.4; }
.composition-warning { display: grid; gap: .2rem; margin-top: .8rem; padding: .75rem .8rem; border-radius: 10px; color: #5f4a22; background: #fff8e7; }
.composition-warning strong { font-size: .7rem; }
.composition-warning span { font-size: .65rem; line-height: 1.4; }
.composition-edit { margin-top: .7rem; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: .72rem; font-weight: 850; }
.composition-ranges { margin-top: 0; }
.composition-range-note { margin: .65rem 0 0; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.mail-status { margin-bottom: 1rem; padding: .75rem .9rem; border: 1px solid #b9d9d4; border-radius: 11px; color: #285c57; background: #eff9f7; font-size: .78rem; font-weight: 750; }
.status-badge { display: inline-flex; margin-top: .45rem; padding: .28rem .5rem; border-radius: 999px; color: var(--amber); background: var(--amber-soft); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.method-note { margin: .75rem 0; padding: .7rem .8rem; border-radius: 10px; color: #40516e; background: #f4f7fb; font-size: .75rem; line-height: 1.5; }
.notice { padding: .9rem 1rem; border: 1px solid #efd48a; border-radius: 12px; color: #704806; background: #fff9e9; font-size: .8rem; }
.orientation-note { margin-bottom: .75rem; padding: .85rem 1rem; border: 1px solid #d8e1ec; border-radius: 12px; color: #40516e; background: #f5f8fc; font-size: .8rem; line-height: 1.55; }
.everyday-card { padding: 1rem; border: 1px solid #cbd9ed; border-radius: 14px; background: #f7faff; }
.everyday-heading h3 { margin: .15rem 0 .25rem; font-size: 1.08rem; }
.everyday-heading p { margin-bottom: .9rem; color: var(--muted); font-size: .82rem; }
.equivalence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.equivalence-grid > div { display: grid; align-content: start; min-width: 0; padding: .8rem .55rem; text-align: center; border: 1px solid var(--line); border-radius: 11px; background: white; }
.equivalence-icon { font-size: 1.35rem; }
.equivalence-grid strong { margin: .25rem 0 .1rem; color: var(--navy); font-size: 1rem; line-height: 1.15; }
.equivalence-grid div > span:last-child { color: var(--muted); font-size: .68rem; line-height: 1.25; }
.equivalence-source { margin: .75rem 0 0; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.result-details { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.result-details summary { padding: .95rem 1rem; color: var(--blue-dark); font-weight: 850; cursor: pointer; }
.detail-body { padding: 0 1rem 1rem; }
.detail-body h4 { margin: 1rem 0 .35rem; }
.detail-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .82rem; }
.detail-list li + li { margin-top: .25rem; }
.invoice-table-wrap { margin-top: .65rem; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.invoice-table th, .invoice-table td { padding: .55rem; border-bottom: 1px solid var(--line); text-align: right; }
.invoice-table th:first-child { text-align: left; }
.invoice-table thead th { color: var(--muted); background: #f5f7fa; font-weight: 800; }
.invoice-table tbody th { color: var(--ink); font-weight: 500; }
.invoice-table tfoot th, .invoice-table tfoot td { border-bottom: 0; color: var(--ink); font-weight: 900; }
.scenario-unavailable .notice { margin: .75rem 0; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.2rem; }
.button-whatsapp { color: white; background: #25d366; text-decoration: none; box-shadow: 0 8px 18px rgba(37, 211, 102, .22); }
.button-whatsapp:hover { color: white; background: #20ba59; box-shadow: 0 10px 22px rgba(37, 211, 102, .28); }
.reading-card, .petition-card { display: flex; gap: .9rem; margin-top: 1rem; padding: 1.1rem; border-radius: 15px; }
.reading-card { border: 1px solid #d6c480; background: #fffaf0; }
.petition-card { color: white; background: linear-gradient(135deg, var(--navy), #17244d); box-shadow: 0 12px 28px rgba(22,33,60,.17); }
.action-card-icon { display: grid; flex: 0 0 auto; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: var(--blue); font-family: Georgia, serif; font-weight: 900; }
.petition-card .action-card-icon { color: #17244d; background: white; font-family: inherit; }
.action-eyebrow { display: block; margin-bottom: .2rem; color: var(--amber); font-size: .66rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.petition-card .action-eyebrow { color: #b9d6ff; }
.reading-card h3, .petition-card h3 { margin-bottom: .45rem; font-size: 1.05rem; line-height: 1.28; }
.petition-card p { margin-bottom: .8rem; color: #dbe5f6; font-size: .78rem; }
.action-link { color: var(--blue-dark); font-size: .82rem; font-weight: 850; }
.button-petition { min-height: 42px; padding: .65rem .9rem; color: var(--navy); background: white; text-decoration: none; box-shadow: none; }
.button-petition:hover { background: #edf3ff; }

footer { width: min(100% - 2rem, 920px); margin: 0 auto 2rem; padding-top: 1.2rem; text-align: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
footer p { margin-bottom: .3rem; }
.noscript { position: fixed; inset: auto 1rem 1rem; z-index: 30; padding: 1rem; border-radius: 12px; color: white; background: var(--danger); }

@media (max-width: 620px) {
  .partners img { max-width: 70px; height: 19px; }
  .partners img:last-child { height: 23px; }
  main { width: min(100% - 1rem, 760px); padding-top: 1.8rem; }
  .calculator { padding: 1rem; border-radius: 16px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 60px; display: flex; align-items: center; justify-content: space-between; }
  .quick-card .quick-name { margin: 0; }
  .segmented { grid-template-columns: 1fr; }
  .segmented.three { grid-template-columns: repeat(3, 1fr); }
  .mini-options.three { grid-template-columns: 1fr; }
  .equivalence-grid { grid-template-columns: 1fr; }
  .equivalence-grid > div { grid-template-columns: auto 1fr; align-items: center; column-gap: .7rem; text-align: left; }
  .equivalence-icon { grid-row: 1 / span 2; }
  .equivalence-grid strong { margin: 0; }
  .result-actions { grid-template-columns: 1fr; }
  .composition-legend { grid-template-columns: 1fr; }
  .comparison-label { align-items: flex-start; }
  .result-context { align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .partners img:first-child { max-width: 62px; }
  .partners img:last-child { max-width: 32px; }
  .segmented.three span { padding-inline: .25rem; font-size: .75rem; }
  .comparison { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
