:root {
  --ink: #13221d;
  --muted: #52645d;
  --paper: #f7f5ed;
  --surface: #ffffff;
  --line: #d9dfd9;
  --green: #0b6b4d;
  --green-dark: #064a37;
  --mint: #cceedd;
  --yellow: #f6cc62;
  --blue: #c9e2ee;
  --radius: 1.25rem;
  --shadow: 0 18px 55px rgba(19, 34, 29, 0.1);
}

* { 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.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.14em; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { left: 1rem; top: 1rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247,245,237,.95); border-bottom: 1px solid rgba(19,34,29,.08); backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 850; font-size: 1.08rem; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 2rem; height: 2rem; border-radius: .65rem; display: grid; place-items: center; background: var(--green); color: white; font-weight: 900; }
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav[hidden] { display: flex; }
.nav a { color: var(--ink); font-weight: 680; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: .7rem; background: white; color: var(--ink); padding: .6rem .8rem; font-weight: 750; }
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--green-dark); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--yellow); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(2.65rem, 7vw, 5.7rem); }
h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin: 0 0 .55rem; font-size: 1.35rem; }
.lead { max-width: 660px; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.15rem; border: 0; border-radius: .85rem; background: var(--green); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); }
.button--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.hero-visual { position: relative; min-height: 410px; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 5% 3%; border-radius: 44% 56% 50% 50%; background: var(--mint); transform: rotate(-5deg); }
.receipt { position: relative; width: min(360px, 85%); padding: 2rem; background: white; border-radius: 1rem; box-shadow: var(--shadow); transform: rotate(3deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 20px; background: linear-gradient(135deg, white 10px, transparent 0) 0 0/20px 20px repeat-x; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; }
.receipt-lines { display: grid; gap: .8rem; margin: 1.25rem 0; }
.receipt-line { display: flex; justify-content: space-between; color: var(--muted); }
.receipt-total { display: flex; justify-content: space-between; padding-top: 1rem; border-top: 1px dashed var(--muted); font-size: 1.25rem; font-weight: 900; }
.floating-note { position: absolute; right: 0; bottom: 2rem; width: 150px; padding: 1rem; border-radius: 1rem; background: var(--yellow); box-shadow: var(--shadow); font-weight: 850; transform: rotate(-5deg); }
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--white { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { display: flex; min-height: 280px; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 8px 25px rgba(19,34,29,.05); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 3rem; height: 3rem; display: grid; place-items: center; margin-bottom: 2.4rem; border-radius: .9rem; background: var(--mint); font-size: 1.45rem; font-weight: 900; }
.card:nth-child(2) .card-icon { background: var(--blue); }
.card:nth-child(3) .card-icon { background: #f8df9f; }
.card p { color: var(--muted); }
.card-link { margin-top: auto; color: var(--green-dark); font-weight: 820; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.principle-number { color: var(--green); font-weight: 900; }
.page-hero { padding: 4rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }
.breadcrumbs { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.breadcrumbs a { color: inherit; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 1.5rem; align-items: start; padding-bottom: 5rem; }
.calculator, .result-card, .content-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 30px rgba(19,34,29,.05); }
.calculator { padding: clamp(1.25rem, 3vw, 2rem); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 760; }
.field small { color: var(--muted); }
.field input { width: 100%; min-height: 50px; padding: .75rem .85rem; border: 1px solid #aebbb4; border-radius: .75rem; background: #fcfdfb; color: var(--ink); }
.field input:focus { border-color: var(--green); }
.form-actions { display: flex; gap: .75rem; margin-top: 1.5rem; }
.result-card { position: sticky; top: 94px; padding: 1.5rem; background: var(--green-dark); color: white; }
.result-card h2 { font-size: 1.55rem; letter-spacing: -.02em; }
.result-list { display: grid; gap: .1rem; }
.result-row { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.result-row--total { margin-top: .4rem; border: 0; font-size: 1.08rem; }
.result-note { margin: 1rem 0 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.content-narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.content-narrow h2 { margin-top: 2.5rem; font-size: 2rem; }
.content-narrow p, .content-narrow li { color: #35453f; }
.callout { margin: 2rem 0; padding: 1.25rem; border-left: 5px solid var(--yellow); border-radius: 0 .8rem .8rem 0; background: #fff8df; }
.site-footer { padding: 3rem 0; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.site-footer a { color: white; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.fineprint { color: #b8c5bf; font-size: .9rem; }

@media (max-width: 800px) {
  .hero-grid, .calculator-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .principles { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
  .hero-visual { min-height: 350px; }
  .result-card { position: static; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .menu-button { display: block; }
  .nav { position: absolute; top: 74px; left: 1rem; right: 1rem; display: grid; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; box-shadow: var(--shadow); }
  .nav[hidden] { display: none; }
  .field-grid { grid-template-columns: 1fr; }
  .receipt { width: 88%; padding: 1.35rem; }
  .floating-note { right: .2rem; bottom: .7rem; }
  h1 { font-size: clamp(2.55rem, 14vw, 4rem); }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
