:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --ink: #263b31;
  --muted: #697369;
  --line: #e0e5dc;
  --green: #294536;
  --lime: #d0edb5;
  --cost: #adb9a8;
  --shop: #d5c8ab;
  --card: #8b9f9a;
  --profit: #72935c;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #71925d;
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
button {
  transition:
    background-color 120ms ease-out,
    scale 120ms ease-out;
}
button:not(:disabled):active {
  scale: 0.96;
}
[hidden] {
  display: none !important;
}
.page {
  max-width: 1056px;
  padding: 0 40px;
  margin: 0 auto;
}
.topbar {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.7px;
  min-height: 44px;
}
.brand-mark {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: 9px;
  color: var(--lime);
  margin-right: 10px;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.brand-dot {
  color: #79965f;
}
.topbar-note {
  font-size: 12px;
  color: var(--muted);
}
main {
  padding-top: 47px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #65775f;
  margin-bottom: 15px;
}
h1 {
  font-size: 47px;
  line-height: 1.12;
  letter-spacing: -2px;
  font-weight: 570;
}
h1 span {
  color: #78906b;
}
.intro {
  position: relative;
  margin-bottom: 36px;
}
.intro-copy {
  position: absolute;
  right: 0;
  bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.calculator {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px #00000006,
    0 3px 5px -2px #28382a08,
    0 12px 35px -15px #28382a16;
  overflow: hidden;
}
.inputs-panel {
  padding: 29px 32px 25px;
  border-right: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  min-height: 35px;
}
h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  min-height: 44px;
  min-width: 44px;
  margin-right: -10px;
  border-radius: 6px;
}
.reset:hover {
  background: #f2f4ef;
  color: var(--ink);
}
.field,
.processor {
  margin-bottom: 22px;
}
label,
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0;
  float: left;
  width: 100%;
}
.processor-inputs {
  display: flex;
  gap: 10px;
  align-items: center;
  clear: both;
}
.processor-inputs .input-wrap {
  flex: 1;
  min-width: 0;
}
.plus {
  font-size: 16px;
  color: #869080;
}
.input-wrap {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #dce2d7;
  border-radius: 8px;
  background: #fcfdfb;
  transition:
    border-color 120ms ease-out,
    box-shadow 120ms ease-out;
}
.input-wrap:focus-within {
  border-color: #6b8a59;
  box-shadow: 0 0 0 3px #72935c1c;
}
.input-wrap:has(input[aria-invalid="true"]) {
  border-color: #b34d37;
}
.input-wrap > span {
  color: #7b8577;
  font-size: 15px;
  flex: none;
}
input {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.suffix input {
  padding-right: 5px;
}
.hint {
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.goal-label {
  float: right;
  font-size: 8px;
  letter-spacing: 1px;
  color: #6a8558;
  line-height: 16px;
}
.margin-field {
  margin-bottom: 0;
}
.margin-field .input-wrap {
  background: #f4f8ef;
  border-color: #c6d5bb;
}
.input-footnote {
  font-size: 10px;
  color: #75806e;
  margin-top: 24px;
  line-height: 1.5;
}
.input-footnote span {
  margin-right: 5px;
  font-size: 15px;
}
.error {
  font-size: 12px;
  line-height: 1.6;
  color: #a23b29;
  background: #fff3ee;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}
.results-panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.price-card {
  border-radius: 12px;
  background: var(--green);
  color: #f7fbf3;
  padding: 26px 26px 21px;
}
.price-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.price-topline h2 {
  font-weight: 450;
  color: #e4eddd;
  font-size: 13px;
}
.unit-tag {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #c1d2b7;
}
.price-line {
  margin-top: 19px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  flex-wrap: wrap;
}
.price-line #price {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -2.5px;
  line-height: 1.12;
  font-weight: 500;
}
.currency {
  font-size: 10px;
  color: #c6d4bf;
}
.price-note {
  color: #c6d4bf;
  font-size: 10px;
  line-height: 1.6;
  min-height: 32px;
  margin-top: 10px;
}
.profit-summary {
  border-top: 1px solid #ffffff20;
  margin-top: 16px;
  padding-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  flex-wrap: wrap;
}
.profit-summary strong {
  font-weight: 600;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.margin-badge {
  font-size: 9px;
  color: #e0f1cf;
  background: #ffffff0d;
  box-shadow: 0 0 0 1px #ffffff13;
  border-radius: 5px;
  padding: 5px 7px;
  font-variant-numeric: tabular-nums;
}
.copy-button {
  width: 100%;
  min-height: 44px;
  margin-top: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: var(--lime);
  color: #2b422b;
  box-shadow: 0 1px 2px #00000012;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
}
.copy-button:hover {
  background: #dff4ca;
}
.breakdown {
  padding: 25px 18px 10px;
}
.breakdown-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.breakdown-title h2 {
  font-size: 12px;
}
.breakdown-title > span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.allocation {
  display: flex;
  height: 9px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 17px;
  gap: 3px;
}
.allocation span {
  min-width: 0;
}
.cost-color {
  background: var(--cost);
}
.shop-color {
  background: var(--shop);
}
.card-color {
  background: var(--card);
}
.profit-color {
  background: var(--profit);
}
dl {
  margin: 15px 0 0;
}
dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 11px;
}
dt {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5d695c;
}
.swatch {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
  flex: none;
}
dt span {
  font-size: 9px;
  color: #7c8576;
}
dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 550;
}
.profit-row {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 15px;
}
.profit-row dt,
.profit-row dd {
  color: #48643a;
  font-weight: 650;
}
.breakdown-note {
  font-size: 9px;
  color: #7b8474;
  margin-top: 7px;
}
.how-it-works {
  margin: 20px 0 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
summary {
  min-height: 49px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: #5c6b56;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  font-size: 19px;
  font-weight: 300;
}
details[open] summary > span {
  rotate: 45deg;
}
.explanation {
  max-width: 730px;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}
.explanation p + p {
  margin-top: 8px;
}
.explanation strong {
  font-weight: 550;
  color: #46553e;
}
footer {
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7b8475;
  font-size: 10px;
  line-height: 1.6;
}
@media (min-width: 1300px) {
  .page {
    max-width: 1100px;
  }
  .topbar {
    height: 120px;
  }
  main {
    padding-top: 55px;
  }
  .intro {
    margin-bottom: 44px;
  }
  .calculator {
    grid-template-columns: 1fr 1.13fr;
  }
  .inputs-panel {
    padding: 30px 38px;
  }
  .field,
  .processor {
    margin-bottom: 24px;
  }
  .margin-field {
    margin-bottom: 0;
  }
  .price-card {
    padding: 29px 30px 25px;
  }
  .breakdown {
    padding: 29px 24px 14px;
  }
  .price-line {
    margin-top: 24px;
  }
  .price-note {
    margin-top: 13px;
  }
  .profit-summary {
    margin-top: 21px;
  }
  .copy-button {
    margin-top: 23px;
  }
}
@media (max-width: 760px) {
  .page {
    padding: 0 22px;
    max-width: 580px;
  }
  .topbar {
    height: 83px;
  }
  .topbar-note {
    display: none;
  }
  main {
    padding-top: 33px;
  }
  h1 {
    font-size: 39px;
    letter-spacing: -1.7px;
  }
  .intro-copy {
    position: static;
    margin-top: 17px;
    font-size: 13px;
  }
  .intro {
    margin-bottom: 27px;
  }
  .calculator {
    grid-template-columns: 1fr;
  }
  .inputs-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 22px;
  }
  .field,
  .processor {
    margin-bottom: 20px;
  }
  .margin-field {
    margin-bottom: 0;
  }
  .input-footnote {
    margin-top: 18px;
  }
  .results-panel {
    padding: 12px;
  }
  .price-card {
    padding: 24px;
  }
  .price-line #price {
    font-size: 58px;
  }
  .price-note {
    min-height: 0;
  }
  .breakdown {
    padding: 24px 12px 15px;
  }
  .profit-summary {
    font-size: 12px;
  }
  .margin-badge {
    font-size: 10px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
    padding-top: 19px;
  }
  dl > div {
    font-size: 12px;
  }
  .hint {
    font-size: 12px;
  }
  .breakdown-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  button:not(:disabled):active {
    scale: 1;
  }
}
