:root {
  --paper: #f7f5f1;
  --ink: #20221f;
  --muted: #777973;
  --line: #d9d8d2;
  --card: #ffffff;
  --accent: #d9f24d;
  --accent-dark: #849918;
  --error: #bc5d42;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 83% 10%, #fff 0, transparent 24rem), var(--paper); }
.shell { max-width: 760px; margin: 0 auto; padding: 28px 28px 40px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.brand { color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.brand-muted { color: var(--muted); font-weight: 500; }
.brand-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent-dark); vertical-align: 2px; }
.live-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 11px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 0 4px rgba(132,153,24,.13); }
.intro { max-width: 570px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 12px; color: var(--accent-dark); font: 500 11px "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(48px, 9vw, 82px); line-height: .94; letter-spacing: -.075em; font-weight: 600; }
h1 em { color: #a6b931; font-style: normal; }
.lede { max-width: 390px; margin: 27px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 35px rgba(35, 37, 30, .045); }
.converter { position: relative; display: grid; grid-template-columns: 1fr 32px 1fr; align-items: end; gap: 15px; padding: 25px; }
.field-block label, .fee-input-wrap label { display: block; margin-bottom: 10px; color: var(--muted); font: 11px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.money-field { display: flex; align-items: center; height: 63px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.money-field:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(132,153,24,.12); }
.money-field input { width: 100%; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 23px "DM Mono", monospace; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { appearance: textfield; }
.output-field { background: #fafbf2; border-color: #dce3ad; }
.output-field input { color: #6f8115; }
select, .currency-suffix { height: 100%; padding: 0 14px; border: 0; border-left: 1px solid var(--line); outline: 0; background: transparent; color: var(--ink); font: 500 13px "DM Mono", monospace; cursor: pointer; }
.currency-suffix { display: flex; align-items: center; color: var(--muted); cursor: default; }
.swap { width: 32px; height: 32px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); font-size: 17px; cursor: pointer; transition: .2s; }
.swap:hover { background: var(--accent); color: var(--ink); transform: rotate(180deg); }
.rate-row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 1px; border-top: 1px solid var(--line); color: var(--muted); font: 12px "DM Mono", monospace; }
.rate-arrow { color: var(--accent-dark); font-size: 17px; }
.rate-row strong { color: var(--ink); font-weight: 500; }
.rate-date { color: #a4a59e; }
.fee-card { margin-top: 18px; padding: 25px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; }
h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.question-mark { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font: 13px "DM Mono", monospace; }
.helper { margin: 9px 0 23px; color: var(--muted); font-size: 13px; }
.fee-input-wrap { max-width: 330px; }
.fee-input-wrap .money-field { height: 53px; }
.fee-input-wrap .money-field input { font-size: 18px; }
.fee-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 19px; }
.fee-result div { padding: 16px; border-radius: 8px; background: var(--paper); }
.fee-result span { display: block; margin-bottom: 8px; color: var(--muted); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.fee-result strong { font: 500 21px "DM Mono", monospace; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 24px 2px 0; color: #999a93; font: 10px "DM Mono", monospace; }
footer a { color: var(--accent-dark); }
@media (max-width: 570px) { .shell { padding: 22px 17px 30px; } .converter { grid-template-columns: 1fr 32px 1fr; gap: 8px; padding: 17px; } .money-field input { padding: 0 10px; font-size: 17px; } select, .currency-suffix { padding: 0 7px; font-size: 11px; } .rate-row { flex-direction: column; gap: 7px; padding-top: 16px; } .fee-card { padding: 17px; } footer { flex-direction: column; gap: 7px; } }
@media (max-width: 390px) { .converter { grid-template-columns: 1fr; } .swap { justify-self: center; margin: -2px 0; transform: rotate(90deg); } .swap:hover { transform: rotate(270deg); } }
