:root {
  --ink: #17221d;
  --muted: #68736d;
  --line: #d8ded8;
  --paper: #f7f7f2;
  --cream: #eff0e7;
  --mint: #d8f4cd;
  --lime: #c8f47f;
  --deep-green: #174c38;
  --soft-green: #e4f6dc;
  --coral: #c9563f;
  --white: #fffefb;
  --shadow: 0 18px 45px rgba(23, 34, 29, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header { width: min(1180px, calc(100% - 48px)); height: 78px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; color: var(--deep-green); background: var(--lime); border-radius: 8px 8px 8px 2px; font-size: .93rem; font-weight: 900; }
nav { display: flex; gap: 26px; font-size: .9rem; font-weight: 650; }
nav a { text-decoration: none; color: #4d5852; }
nav a:hover, .text-button:hover { color: var(--deep-green); }

.hero { width: min(1180px, calc(100% - 48px)); margin: 26px auto 94px; min-height: 484px; padding: 74px 7.5% 60px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; overflow: hidden; position: relative; color: #133425; background: var(--mint); border-radius: 28px; }
.hero:before { content: ""; position: absolute; width: 780px; height: 780px; left: -390px; bottom: -650px; border: 1px solid rgba(23, 76, 56, .17); border-radius: 50%; box-shadow: 0 0 0 64px rgba(23, 76, 56, .04), 0 0 0 129px rgba(23, 76, 56, .035); }
.hero-copy, .hero-art { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; font-size: .69rem; font-weight: 850; letter-spacing: .15em; color: var(--deep-green); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 570px; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.85rem, 5vw, 4.65rem); font-weight: 500; letter-spacing: -.07em; line-height: .98; }
h1 em { font-style: italic; font-weight: 500; }
.hero-text { max-width: 495px; margin-bottom: 29px; color: #426151; font-size: 1.02rem; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #f8fff7; background: var(--deep-green); }
.privacy-note { margin: 20px 0 0; color: #567363; font-size: .78rem; }
.privacy-note span { color: #489c6f; font-size: .95rem; vertical-align: -1px; }
.hero-art { min-height: 340px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(20, 70, 50, .16); border-radius: 50%; }
.orbit-one { width: 355px; height: 355px; }
.orbit-two { width: 470px; height: 470px; }
.receipt-card { width: min(278px, 78%); padding: 22px; color: var(--ink); background: var(--white); border-radius: 15px; box-shadow: 0 24px 40px rgba(20, 77, 54, .2); transform: rotate(5deg); }
.receipt-top, .receipt-line, .receipt-profit { display: flex; justify-content: space-between; gap: 12px; }
.receipt-top { color: #75817b; font-size: .59rem; font-weight: 750; letter-spacing: .09em; }
.receipt-top span:last-child { color: #317f57; }
.receipt-price { margin: 22px 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; letter-spacing: -.08em; }
.receipt-line { padding-bottom: 12px; border-bottom: 1px dashed #cbd2cc; color: #58635d; font-size: .77rem; }
.receipt-profit { padding-top: 13px; color: var(--deep-green); font-size: .72rem; font-weight: 850; letter-spacing: .025em; }
.floating-tag { position: absolute; right: 5%; bottom: 14%; padding: 8px 12px; background: var(--lime); border-radius: 7px; box-shadow: 0 7px 18px rgba(34, 91, 57, .15); font-size: .75rem; font-weight: 800; transform: rotate(-6deg); }

.calculator-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 108px; }
.section-heading { max-width: 605px; margin-bottom: 31px; }
h2 { margin-bottom: 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 4vw, 3.45rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.section-heading > p:last-child { max-width: 540px; color: var(--muted); }
.calculator-shell { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(320px, .85fr); align-items: start; gap: 22px; }
.calculator-form { padding: 29px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.form-topline, .saved-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-topline h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.025em; }
.text-button { padding: 0; border: 0; color: #66716b; background: transparent; font-size: .8rem; font-weight: 750; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.input-grid-featured { margin: 23px 0 29px; }
.field { display: grid; gap: 7px; color: #59645e; font-size: .78rem; font-weight: 650; }
.field-featured { color: #3c4942; font-size: .84rem; }
.input-wrap { height: 43px; display: flex; align-items: center; gap: 5px; padding: 0 12px; color: #809089; background: #fafbf8; border: 1px solid #d7dfd7; border-radius: 7px; transition: border .15s ease, box-shadow .15s ease; }
.field-featured .input-wrap { height: 49px; background: #fff; border-color: #b6c6b8; }
.input-wrap:focus-within { border-color: var(--deep-green); box-shadow: 0 0 0 3px rgba(23, 76, 56, .1); }
.input-wrap input { min-width: 0; width: 100%; padding: 0; color: var(--ink); outline: 0; border: 0; background: transparent; font-size: .91rem; font-variant-numeric: tabular-nums; }
.field-featured input { font-size: 1.05rem; font-weight: 750; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }
.suffix { gap: 2px; }
.suffix input { text-align: right; }
.field-group { padding: 22px 0 26px; border-top: 1px solid #e3e7e2; }
.group-label { margin-bottom: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 16px; font-size: .87rem; font-weight: 800; }
.group-label span:last-child { color: #87928b; font-size: .71rem; font-weight: 600; }
.fees-panel { border-top: 1px solid #e3e7e2; }
.fees-panel summary { padding: 20px 0; display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; }
.fees-panel summary::-webkit-details-marker { display: none; }
.fees-panel summary strong, .fees-panel summary small { display: block; }
.fees-panel summary strong { font-size: .87rem; }
.fees-panel summary small { margin-top: 2px; color: #87928b; font-size: .7rem; font-weight: 600; }
.chevron { font-size: 1.3rem; transition: transform .2s ease; }
details[open] .chevron { transform: rotate(180deg); }
.fees-panel .fees-grid { padding-bottom: 14px; }
.fee-note { margin: 4px 0 0; color: #89928c; font-size: .7rem; line-height: 1.5; }

.results-card { position: sticky; top: 18px; overflow: hidden; color: #ecf3ec; background: var(--deep-green); border-radius: 18px; box-shadow: var(--shadow); }
.result-header { padding: 30px 28px 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; background: linear-gradient(145deg, #215f46, #174c38); }
.result-label { margin-bottom: 5px; color: #b6d4bd; font-size: .64rem; font-weight: 850; letter-spacing: .12em; }
.profit-value { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 3rem; letter-spacing: -.075em; line-height: 1; font-variant-numeric: tabular-nums; }
.margin-badge { min-width: 73px; padding: 9px 6px 7px; color: #172d21; background: var(--lime); border-radius: 8px; text-align: center; font-size: 1.15rem; font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.margin-badge small { display: block; margin-top: 4px; font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.result-message { margin: 20px 27px 0; padding: 9px 11px; color: #d9ecd8; background: rgba(255,255,255,.08); border-radius: 6px; font-size: .76rem; }
.bar-chart { padding: 20px 28px; }
.bar-labels { display: flex; justify-content: space-between; margin-bottom: 6px; color: #c5d6c8; font-size: .71rem; }
.bar-labels span:last-child { font-variant-numeric: tabular-nums; }
.bar-track { height: 7px; overflow: hidden; margin-bottom: 13px; background: rgba(255,255,255,.13); border-radius: 100px; }
.bar-fill { width: 0%; height: 100%; border-radius: inherit; transition: width .25s ease; }
.revenue-fill { background: #edf7ed; }
.costs-fill { background: #f6b892; }
.profit-fill { background: var(--lime); }
.breakdown-list { margin: 0; padding: 2px 28px 18px; }
.breakdown-list > div { padding: 10px 0; display: flex; justify-content: space-between; gap: 18px; color: #c7d9ca; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .78rem; }
.breakdown-list dt, .breakdown-list dd { margin: 0; }
.breakdown-list dd { color: #f2f8f1; font-weight: 750; font-variant-numeric: tabular-nums; }
.breakdown-list .break-even { color: #e4f2e4; border: 0; font-weight: 750; }
.results-actions { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9px; padding: 4px 28px 14px; }
.button-dark { color: var(--ink); background: var(--lime); }
.button-quiet { color: #edf5ee; border-color: rgba(255,255,255,.4); background: transparent; }
.saved-status { min-height: 1.1em; margin: 0; padding: 0 28px 19px; color: #b7d1bd; font-size: .7rem; text-align: center; }

.saved-section { width: min(1180px, calc(100% - 48px)); margin: -65px auto 106px; padding: 28px; background: #e5eee5; border-radius: 16px; }
.saved-heading h2 { margin: 0; font-size: 2rem; }
.danger-button { color: #945043; }
.saved-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.saved-item { padding: 15px; display: grid; gap: 8px; background: #f9fcf8; border: 1px solid #d4dfd4; border-radius: 9px; }
.saved-item-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #6d7770; font-size: .7rem; }
.saved-item-profit { color: var(--deep-green); font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; letter-spacing: -.055em; line-height: 1; }
.saved-item-meta { color: #6c776f; font-size: .72rem; }
.saved-item-actions { display: flex; gap: 13px; margin-top: 3px; }
.saved-item-actions button { padding: 0; border: 0; color: var(--deep-green); background: transparent; font-size: .7rem; font-weight: 800; }
.saved-item-actions button:last-child { color: #a05244; }

.how-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto 100px; padding: 0 7.2%; display: grid; grid-template-columns: .82fr 1.18fr; gap: 9%; }
.how-section h2 { max-width: 390px; }
.benefits { display: grid; gap: 25px; }
.benefits article { display: grid; grid-template-columns: 45px 1fr; column-gap: 16px; }
.benefit-number { grid-row: span 2; padding-top: 3px; color: var(--deep-green); font-size: .72rem; font-weight: 850; }
.benefits h3 { margin-bottom: 6px; font-size: 1rem; letter-spacing: -.025em; }
.benefits p { margin: 0; color: var(--muted); font-size: .87rem; }
footer { width: min(1180px, calc(100% - 48px)); margin: auto; padding: 26px 0 33px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #77817b; border-top: 1px solid #d9ded9; font-size: .73rem; }
footer p { margin: 0; }

@media (max-width: 810px) {
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-art { min-height: 260px; }
  .calculator-shell, .how-section { grid-template-columns: 1fr; }
  .results-card { position: static; }
  .how-section { padding: 0; gap: 34px; }
  .saved-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header, .hero, .calculator-section, .saved-section, .how-section, footer { width: min(100% - 28px, 1180px); }
  .site-header { height: 64px; }
  nav { gap: 14px; font-size: .78rem; }
  .hero { margin-top: 13px; margin-bottom: 64px; padding: 42px 24px 30px; border-radius: 20px; }
  h1 { font-size: 3rem; }
  .hero-art { min-height: 220px; }
  .orbit-two { width: 360px; height: 360px; }
  .calculator-section { margin-bottom: 74px; }
  .calculator-form { padding: 20px; }
  .input-grid { grid-template-columns: 1fr; gap: 13px; }
  .fees-panel .fees-grid { grid-template-columns: repeat(2, 1fr); }
  .results-actions { grid-template-columns: 1fr; }
  .saved-section { margin-top: -38px; padding: 20px; }
  .saved-list { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
}
