:root { font-family: system-ui, sans-serif; color: #172f2a; background: #edf4ef; line-height: 1.5; }
* { box-sizing: border-box; }
main { max-width: 62rem; margin: auto; padding: clamp(1rem, 5vw, 4rem); }
header { margin-bottom: 2rem; }
.brand { font-weight: 750; color: #16624d; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -.05em; margin: .4em 0; }
.layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
form, section { padding: clamp(1rem, 4vw, 2rem); border-radius: 1rem; }
form { background: white; }
label, input { display: block; width: 100%; }
label { font-weight: 650; margin-top: .85rem; }
label:first-child { margin-top: 0; }
input { font: inherit; margin-top: .25rem; padding: .55rem; border: 1px solid #728b80; border-radius: .4rem; }
section { background: #173a30; color: white; }
section p { margin-bottom: 0; }
output { display: block; font-size: clamp(1.25rem, 5vw, 2rem); font-weight: 750; overflow-wrap: anywhere; }
#profit { font-size: clamp(2rem, 7vw, 3.25rem); color: #c6f5cf; }
#error { color: #9d2028; margin-bottom: 0; }
footer { margin-top: 1.5rem; font-size: .9rem; }
.languages { display: flex; justify-content: flex-end; gap: .5rem; }
.languages a { color: #16624d; padding: .25rem .55rem; border-radius: .4rem; font-weight: 700; }
.languages a[aria-current="true"] { background: #16624d; color: white; text-decoration: none; }
