:root {
  color-scheme: light;
  --ink: #13231f;
  --muted: #65736e;
  --line: #dce5df;
  --paper: #f7faf7;
  --card: #ffffff;
  --accent: #2f7d57;
  --accent-deep: #216244;
  --mint: #cde9d9;
  --mint-deep: #4a9a70;
  --yellow: #f6d77a;
  --blue: #9cc6e8;
  --shadow: 0 7px 22px rgba(30, 57, 46, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.section-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { width: min(1120px, calc(100% - 40px)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: white; font-size: 11px; letter-spacing: -0.08em; }
.site-nav, .site-footer nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 13px; }
.site-nav a:hover, .site-footer a:hover, .inline-link:hover { color: var(--accent-deep); }
.language-link { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--ink); font-weight: 700; }

.hero { padding: 42px 0 30px; max-width: 900px; }
.eyebrow, .card-kicker { color: var(--accent-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-size: clamp(31px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -0.055em; }
h2 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; letter-spacing: -0.045em; }
.hero-copy { max-width: 640px; margin-bottom: 17px; color: var(--muted); font-size: 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12px; }
.trust-row span + span::before { content: '·'; margin-right: 16px; color: #a3b0aa; }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: 18px; align-items: start; }
.calculator-card, .results-card, .content-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.calculator-card, .results-card { padding: 26px; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 26px; }
.card-kicker { margin-bottom: 8px; }
.platform-controls { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; margin-bottom: 10px; }
.select-field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.select-field select { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 0 34px 0 12px; background: #fbfdfb; color: var(--ink); outline: 0; }
.select-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.13); }
.preset-meta { margin-bottom: 22px; padding: 11px 13px; border: 1px solid #e2ebe5; border-radius: 9px; background: #f7faf8; }
.preset-meta-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-size: 12px; }
.preset-meta-date { color: var(--muted); font-size: 11px; font-weight: 500; margin-left: auto; }
.preset-meta > a { display: inline-block; margin-top: 7px; color: var(--accent-deep); font-size: 11px; font-weight: 800; }
.preset-meta p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.text-button, .icon-button { border: 0; background: transparent; color: var(--accent-deep); font-size: 13px; font-weight: 750; padding: 4px 0; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 20px; }
.icon-button:hover { border-color: var(--accent); color: var(--accent-deep); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.input-with-suffix { position: relative; display: block; }
.input-with-suffix input { width: 100%; min-height: 43px; border: 1px solid var(--line); border-radius: 8px; padding: 0 31px 0 12px; background: #fbfdfb; color: var(--ink); outline: 0; }
.input-with-suffix input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 125, 87, 0.13); }
.input-with-suffix em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-style: normal; font-size: 12px; }
.target-row { display: flex; align-items: end; gap: 18px; margin-top: 19px; padding-top: 20px; border-top: 1px solid var(--line); }
.compact-field { width: 145px; flex: 0 0 145px; }
.field-help, .form-note { color: var(--muted); font-size: 12px; }
.field-help { margin: 0 0 11px; }
.primary-button { width: 100%; margin-top: 23px; min-height: 48px; border: 0; border-radius: 8px; background: var(--ink); color: white; font-weight: 800; }
.primary-button:hover { background: var(--accent-deep); }
.form-note { margin: 13px 0 0; text-align: center; }

.results-card { color: var(--ink); border-top: 3px solid var(--accent); }
.results-card .card-kicker { color: var(--accent-deep); }
.results-card .icon-button { color: var(--ink); }
.profit-panel { padding: 22px; border: 1px solid #cfe5d7; border-radius: 12px; background: #eff8f2; }
.result-label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.profit-panel strong { display: block; margin: 6px 0 5px; color: var(--ink); font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.06em; line-height: 1; }
.profit-status { color: var(--accent-deep); font-size: 13px; }
.metric-list { margin: 20px 0 23px; }
.metric-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.metric-row strong { color: var(--ink); font-size: 15px; }
.breakdown-title { margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 800; }
.breakdown-bar { display: flex; overflow: hidden; height: 11px; border-radius: 99px; background: #e6eee9; }
.breakdown-bar span { min-width: 2px; transition: width 180ms ease; }
.bar-product { background: var(--mint); }.bar-fees { background: var(--yellow); }.bar-shipping { background: var(--blue); }.bar-profit { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }.dot { width: 7px; height: 7px; border-radius: 50%; }.product-dot { background: var(--mint); }.fees-dot { background: var(--yellow); }.shipping-dot { background: var(--blue); }.profit-dot { background: var(--accent); }
.share-message { min-height: 21px; margin: 16px 0 0; color: var(--accent-deep); font-size: 12px; }

.content-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 55px; }
.content-card { padding: 25px 27px; box-shadow: none; }
.content-card p { color: var(--muted); font-size: 14px; }.accent-card { background: #eff6f1; border-color: #d5e5da; }.inline-link { display: inline-block; color: var(--accent-deep); font-size: 13px; font-weight: 800; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.article-shell { max-width: 780px; padding: 44px 0 64px; }
.article-shell .eyebrow { margin-bottom: 12px; }
.article-shell h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(31px, 3.5vw, 46px); line-height: 1.1; letter-spacing: -0.055em; }
.article-shell h2 { margin-top: 34px; margin-bottom: 10px; font-size: 20px; line-height: 1.3; }
.article-shell p, .article-shell li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.article-shell p { margin-bottom: 14px; }
.article-shell li { margin: 6px 0; }
.article-shell ul { margin: 0; padding-left: 20px; }
.article-shell strong { color: var(--ink); }
.article-shell .inline-link { margin-top: 8px; }
.formula { overflow-x: auto; margin: 14px 0 0; padding: 14px 16px; border: 1px solid #d5e5da; border-radius: 9px; background: #eff6f1; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; }

@media (max-width: 800px) {
  .site-header { min-height: 68px; }.site-nav { gap: 12px; }.site-nav a:not(.language-link) { display: none; }
  .hero { padding-top: 45px; }.calculator-layout, .content-grid { grid-template-columns: 1fr; }.calculator-card, .results-card, .content-card { padding: 23px; }
}

@media (max-width: 480px) {
  .section-shell, .site-header { width: min(100% - 28px, 1120px); }.field-grid { grid-template-columns: 1fr; }.platform-controls { grid-template-columns: 1fr; }.target-row { align-items: start; flex-direction: column; gap: 7px; }.compact-field { width: 100%; }.field-help { margin: 0; }.site-footer { align-items: start; flex-direction: column; }.site-footer nav { gap: 14px; }
}
