:root {
  --cream: #f3efe6;
  --paper: #fffdf8;
  --ink: #1f2420;
  --muted: #60665f;
  --green: #173f34;
  --green-2: #2c6755;
  --green-3: #d5e2da;
  --gold: #b39661;
  --line: #d8d1c4;
  --line-dark: #b8b0a2;
  --danger: #a0392e;
  --shadow: 0 16px 42px rgba(35, 43, 36, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(179, 150, 97, 0.13), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
summary,
label,
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: var(--green);
  text-underline-offset: 0.2em;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.45rem, 7vw, 5rem);
  max-width: 900px;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(31, 36, 32, 0.16);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-handle {
  color: var(--green-2);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.brand:hover .brand-name,
.footer-brand:hover .brand-name {
  text-decoration: underline;
  text-decoration-color: rgba(44, 103, 85, 0.35);
  text-underline-offset: 0.25rem;
}

.quiet-button,
.primary-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.quiet-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
}

.quiet-button {
  padding: 0.65rem 0.9rem;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--line-dark);
}

.quiet-button svg,
.primary-button svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.intro > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.eyebrow,
.step-label,
.result-kicker {
  margin-bottom: 0.65rem;
  color: var(--green-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  grid-template-areas: "form result";
  gap: 1.25rem;
  align-items: start;
}

.input-panel,
.result-card {
  border: 1px solid rgba(31, 36, 32, 0.13);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.input-panel {
  grid-area: form;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: var(--paper);
}

.result-card {
  grid-area: result;
  position: sticky;
  top: 1rem;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: var(--green);
  color: var(--paper);
}

.result-card::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -8rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 253, 248, 0.035), 0 0 0 6rem rgba(255, 253, 248, 0.025);
  pointer-events: none;
}

.result-card > * {
  position: relative;
  z-index: 1;
}

.result-kicker {
  color: #bcd2c7;
}

.result-lead {
  margin-bottom: 0.15rem;
  color: rgba(255, 253, 248, 0.74);
  font-size: 0.95rem;
}

.monthly-result {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 5.3rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.monthly-result span {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

.result-context {
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 0.9rem;
}

.result-divider {
  height: 1px;
  margin: 1.75rem 0;
  background: rgba(255, 253, 248, 0.2);
}

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

.result-summary div {
  min-width: 0;
}

.result-summary dt {
  margin-bottom: 0.25rem;
  color: rgba(255, 253, 248, 0.65);
  font-size: 0.78rem;
}

.result-summary dd {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.result-summary dd span {
  color: rgba(255, 253, 248, 0.65);
  font-size: 0.85em;
  font-weight: 500;
}

.result-summary dd strong {
  color: var(--paper);
}

.microcopy {
  color: rgba(255, 253, 248, 0.48);
  font-size: 0.68rem;
}

.gross-note {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 253, 248, 0.15);
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.76rem;
}

.result-follow {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 253, 248, 0.15);
}

.result-follow-title {
  margin-bottom: 0.16rem;
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 750;
}

.result-follow-copy {
  max-width: 36rem;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 0.74rem;
  line-height: 1.45;
}

.result-follow-button {
  width: fit-content;
  min-height: 2.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
}

.result-follow-button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.65rem;
}

.section-heading h2 {
  max-width: 470px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
}

.text-button {
  flex: 0 0 auto;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(44, 103, 85, 0.35);
  text-underline-offset: 0.25rem;
}

.field-grid {
  display: grid;
  gap: 1.1rem;
}

.primary-fields {
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.55fr);
  margin-bottom: 1.5rem;
}

.compact-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-group {
  min-width: 0;
}

.field-group > label,
.label-row label,
.custom-return label,
.strategy-fieldset legend {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 750;
}

.label-row,
.strategy-fieldset legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.info-button {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: help;
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.input-wrap {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(44, 103, 85, 0.13);
}

.input-wrap.has-error {
  border-color: var(--danger);
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.input-wrap input::-webkit-inner-spin-button,
.input-wrap input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.large-input {
  min-height: 4.15rem;
  padding-inline: 1rem;
}

.large-input input {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  font-weight: 500;
}

.input-suffix {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.field-help,
.field-error,
.assumption-note {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.field-error {
  min-height: 0;
  color: var(--danger);
}

.field-error:empty {
  display: none;
}

.assumptions {
  border-top: 1px solid var(--line);
}

.assumptions > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0 0;
  cursor: pointer;
  list-style: none;
}

.assumptions > summary::-webkit-details-marker,
.explanation-grid summary::-webkit-details-marker,
.methodology-details > summary::-webkit-details-marker {
  display: none;
}

.assumptions > summary strong {
  display: block;
  font-size: 1rem;
}

.assumptions > summary .step-label {
  display: block;
  margin-bottom: 0.1rem;
}

.summary-icon {
  width: 1.8rem;
  height: 1.8rem;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.summary-icon::before,
.summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 150ms ease;
}

.assumptions[open] .summary-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.assumptions-body {
  padding-top: 1.35rem;
}

.strategy-fieldset {
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.strategy-option {
  min-height: 4.55rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.strategy-option:hover {
  transform: translateY(-1px);
  border-color: var(--line-dark);
}

.strategy-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-3);
  box-shadow: inset 0 0 0 1px var(--green);
}

.strategy-option:has(input:focus-visible) {
  outline: 3px solid rgba(44, 103, 85, 0.25);
  outline-offset: 2px;
}

.strategy-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.strategy-name {
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.2;
}

.strategy-rate {
  color: var(--green);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.custom-option .strategy-rate {
  font-family: inherit;
  font-size: 0.7rem;
}

.custom-return {
  max-width: 320px;
  margin-top: 1rem;
}

.assumption-note {
  max-width: 620px;
  margin-top: 1rem;
}

.content-section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-bottom: 1px solid rgba(31, 36, 32, 0.14);
}

.section-copy {
  max-width: 690px;
  margin-bottom: clamp(2rem, 5vw, 3.3rem);
}

.section-copy > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(35, 43, 36, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

tbody th {
  font-size: 0.95rem;
}

tbody td:last-child {
  color: var(--green);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.highlight-row {
  background: var(--green-3);
}

.chart-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.chart-copy {
  margin-bottom: 0;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-legend i {
  width: 0.7rem;
  height: 0.7rem;
  display: inline-block;
  border-radius: 2px;
}

.legend-contributions {
  background: var(--gold);
}

.legend-growth {
  background: var(--green-2);
}

.chart-card {
  min-width: 0;
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(35, 43, 36, 0.06);
}

#wealth-chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-total-area {
  fill: rgba(44, 103, 85, 0.2);
}

.chart-contribution-area {
  fill: rgba(179, 150, 97, 0.42);
}

.chart-total-line,
.chart-contribution-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-total-line {
  stroke: var(--green);
  stroke-width: 3;
}

.chart-contribution-line {
  stroke: var(--gold);
  stroke-width: 2;
}

.chart-grid-line {
  stroke: #dfd9cf;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #72776f;
  font-size: 11px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.chart-focus line {
  stroke: rgba(31, 36, 32, 0.3);
  stroke-dasharray: 4 4;
}

#focus-total-dot {
  fill: var(--green);
}

#focus-contribution-dot {
  fill: var(--gold);
}

#chart-hit-area {
  cursor: crosshair;
  outline: none;
}

#chart-hit-area:focus-visible {
  stroke: var(--green-2);
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 150px;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  pointer-events: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.chart-final {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.92);
  text-align: right;
  box-shadow: 0 7px 20px rgba(35, 43, 36, 0.06);
}

.chart-final span,
.chart-final strong {
  display: block;
}

.chart-final span {
  color: var(--muted);
  font-size: 0.65rem;
}

.chart-final strong {
  color: var(--green);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

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

.explanation-grid details,
.methodology-details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.62);
}

.explanation-grid summary,
.methodology-details > summary {
  position: relative;
  padding: 1.15rem 3rem 1.15rem 1.15rem;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

.explanation-grid summary::after,
.methodology-details > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  color: var(--green-2);
  font-size: 1.25rem;
  font-weight: 400;
  transform: translateY(-50%);
}

.explanation-grid details[open] summary::after,
.methodology-details[open] > summary::after {
  content: "−";
}

.explanation-grid details p {
  margin: -0.2rem 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.methodology-details {
  margin-top: 0.8rem;
}

.methodology-content {
  max-width: 820px;
  padding: 0 1.15rem 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.methodology-content code {
  padding: 0.12rem 0.3rem;
  border-radius: 4px;
  background: rgba(23, 63, 52, 0.08);
  color: var(--green);
}

.methodology-content ul {
  padding-left: 1.2rem;
}

.methodology-content li + li {
  margin-top: 0.35rem;
}

.methodology-date {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.share-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: clamp(4rem, 8vw, 7rem) auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--green-3);
}

.share-section h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.share-section p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
}

.primary-button {
  flex: 0 0 auto;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  background: var(--green);
  color: var(--paper);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(31, 36, 32, 0.16);
}

footer p {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 700;
}

.floating-tooltip {
  max-width: 280px;
  position: fixed;
  z-index: 110;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.75rem;
  line-height: 1.45;
  pointer-events: none;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--danger);
  color: #fff;
  text-align: center;
}

button:focus-visible,
summary:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(44, 103, 85, 0.3);
  outline-offset: 3px;
}

@media (max-width: 940px) {
  .calculator-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "result"
      "form";
  }

  .result-card {
    position: relative;
    top: auto;
  }

  .chart-section {
    grid-template-columns: 1fr;
  }

  .chart-copy {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 0.76rem;
  }

  .brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.05rem;
  }

  .brand-handle {
    font-size: 0.62rem;
  }

  .quiet-button {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .intro {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .result-card,
  .input-panel {
    border-radius: 22px;
  }

  .result-card {
    padding: 1.4rem;
  }

  .monthly-result {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .result-divider {
    margin: 1.25rem 0;
  }

  .result-summary {
    gap: 1rem;
  }

  .result-follow-button {
    width: 100%;
  }

  .input-panel {
    padding: 1.25rem;
  }

  .section-heading {
    align-items: flex-end;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .primary-fields,
  .compact-fields {
    grid-template-columns: 1fr;
  }

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

  .custom-option {
    grid-column: span 2;
  }

  .strategy-option {
    min-height: 4.1rem;
  }

  .content-section {
    padding-block: 4.5rem;
  }

  th,
  td {
    min-width: 120px;
    padding: 0.9rem 0.85rem;
  }

  thead th {
    font-size: 0.65rem;
  }

  tbody th {
    min-width: 150px;
    font-size: 0.82rem;
  }

  tbody td:last-child {
    font-size: 1.15rem;
  }

  .chart-card {
    padding: 0.35rem;
  }

  .chart-final {
    top: 0.8rem;
    right: 0.8rem;
  }

  .explanation-grid {
    grid-template-columns: 1fr;
  }

  .share-section,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .quiet-button svg {
    display: none;
  }

  .result-summary {
    grid-template-columns: 1fr 1fr;
  }

  .result-summary dd {
    font-size: 1rem;
  }

  .chart-axis-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
