/* avouchapi.com/tools/rate-card (6 Nov 2026). Sits on tools.css (same tokens); transform + opacity motion only. */
@media (min-width: 901px) { .rc { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }   /* below 900 tools.css stacks .tool */
.rc-main { display: grid; gap: 16px; min-width: 0; }
.rc .field .lbl { font-weight: 600; font-size: 14.5px; }
.rc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .rc .grid2 { grid-template-columns: 1fr; } }
.rc .err { color: var(--hot); font-size: 13px; min-height: 0; }
.rc .err:empty { display: none; }
.rc .bad .inp { border-color: var(--hot); }

/* the @ in front of the handle */
.rc .pre { position: relative; }
.rc .pre span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rc .pre .inp { padding-left: 33px; }

/* selects, drawn to match the inputs */
.rc select.inp { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d5850' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.rc select.inp:invalid { color: var(--muted); }

/* the rate list */
.rates .rh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.rates .fx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rates ul { list-style: none; padding: 0; margin: 0; }
.rates li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.rates li:first-child { border-top: 0; }
.rates li b { display: block; font-weight: 650; font-size: 16.5px; }
.rates li span { color: var(--muted); font-size: 14px; }
.rates li strong { font-weight: 800; font-stretch: 108%; font-size: clamp(20px, 2.3vw, 27px); letter-spacing: -.015em; white-space: nowrap; font-variant-numeric: tabular-nums;
  opacity: .32; transition: opacity 220ms var(--ease-out); }
.rates.on li strong { opacity: 1; }
.rates .hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.rates .hint:empty { display: none; }
.rates .how { font-size: 13.5px; color: var(--muted); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rates .how b { color: var(--fg); font-weight: 600; }
.av { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--shell); }
.av p { font-weight: 600; font-size: 15px; max-width: 40ch; }
.av p em { font-style: normal; color: var(--hot); }
.av a { font-size: 14px; white-space: nowrap; text-decoration: none; border-radius: 999px; padding: 7px 12px; box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out); }
.av a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .av a:hover { background: var(--card); } }

/* the kit preview + download */
.rc-side { display: grid; gap: 14px; }
.rc-side .core { padding: 10px; }
.kit { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 14px; background: #f4f2ee; }
.dl .row { margin-top: 4px; }
.dl .btn { width: 100%; justify-content: center; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; cursor: pointer; margin: 2px 0 14px; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 7px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; display: grid; place-items: center;
  transition: transform 140ms var(--ease-out); }
.check input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg) scale(.6); opacity: 0;
  transition: opacity 140ms var(--ease-out), transform 180ms var(--ease-out); }
.check input:checked { background: var(--fg); border-color: var(--fg); }
.check input:checked::after { opacity: 1; transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:active { transform: scale(.97); }
.check small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl .status { margin-top: 10px; }

.tcard.wide { grid-column: 1 / -1; }
.tcard.wide .core { min-height: 0; }
.tcard .new { color: var(--hot); }

@media (min-width: 901px) { .rc-side { position: sticky; top: 86px; } }
@media (max-width: 900px) { .rc-side { max-width: 520px; width: 100%; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) {
  .rates li strong, .check input, .check input::after, .av a { transition: opacity 120ms linear; }
  .check input:active, .av a:active { transform: none; }
  .check input::after, .check input:checked::after { transform: translateY(-1px) rotate(-45deg); }
}
