/* TypeHands site: pricing calculator and activation page (loaded only where needed). */
/* ---------- pricing: device calculator ---------- */
.calc { display: grid; gap: 18px; margin-bottom: 20px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
.calc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.calc-label { display: grid; gap: 4px; }
.calc-label b { font-size: 18px; font-weight: 600; letter-spacing: -.015em; color: var(--fg); }
.calc-label span { font-size: 14.5px; color: var(--fg-2); }
.calc-ctl { display: flex; align-items: stretch; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.calc-ctl:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.calc-step { width: 48px; border: 0; background: transparent; color: var(--fg-2); font: 400 22px/1 var(--font); cursor: pointer; transition: color .15s, background .15s; }
.calc-step:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.calc-step:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.calc-ctl input { width: 104px; border: 0; border-inline: 1px solid var(--line); background: transparent; color: #fff; text-align: center; font: 600 20px var(--mono); font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; appearance: textfield; }
.calc-ctl input::-webkit-outer-spin-button, .calc-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-range { --fill: 0%; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, .1) var(--fill)); }
.calc-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.calc-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.calc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(109, 94, 252, .45), 0 4px 14px rgba(0, 0, 0, .5); }
.calc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(109, 94, 252, .45), 0 4px 14px rgba(0, 0, 0, .5); }
.calc-range:focus-visible { outline: none; }
.calc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(155, 140, 255, .7), 0 4px 14px rgba(0, 0, 0, .5); }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips button { min-height: 40px; padding: 0 16px; white-space: nowrap; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 500 13.5px var(--mono); font-variant-numeric: tabular-nums; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.calc-chips button:hover { color: var(--fg); border-color: var(--line-3); }
.calc-chips button.sel { color: #fff; background: var(--accent); border-color: var(--accent); }
.calc-chips button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.price-wrap { display: grid; gap: 8px; }
.price-for { min-height: 1.5em; font-size: 13.5px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.price b.bump { animation: bump .32s var(--ease); }
@keyframes bump { from { opacity: .35; transform: translateY(5px); } }

/* ---------- pricing: price steps for extra devices ---------- */
.tiers { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px 40px; align-items: start; margin-top: 24px; padding: clamp(22px, 3vw, 32px); border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
.tiers h3 { display: flex; align-items: center; gap: .6rem; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.tiers h3 .icon { flex: none; color: var(--accent-2); }
.tiers-copy > p { margin-top: .6rem; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.tiers-copy > p.ex-h { margin-top: 1.4rem; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.ex { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: .6rem; }
.ex div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.ex span { font-size: 13px; color: var(--fg-2); }
.ex b { font: 600 18px var(--mono); font-variant-numeric: tabular-nums; color: #fff; }
.tiers-table { overflow-x: auto; }
.tiers-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tiers-table th, .tiers-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; transition: background .2s; }
.tiers-table thead th { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.tiers-table tbody th { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiers-table td { color: var(--fg-2); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tiers-table td.incl { color: var(--ok); font-family: var(--font); }
.tiers-table tbody tr:last-child th, .tiers-table tbody tr:last-child td { border-bottom: 0; }
.tiers-table tr.on th, .tiers-table tr.on td { background: var(--accent-tint); }
.tiers-table tr.on th { box-shadow: inset 2px 0 0 var(--accent); }

@media (max-width: 900px) {
  .tiers { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .calc-row { align-items: stretch; }
  .calc-ctl { width: 100%; }
  .calc-ctl input { flex: 1; width: auto; }
  .calc-step { width: 56px; }
  .calc-chips button { min-height: 44px; padding: 0 14px; }
  .ex b { font-size: 15px; }
  .ex div { padding: 10px; }
}

/* ---------- activation page ---------- */
.act { width: 100%; display: grid; justify-items: center; gap: 1.1rem; padding: clamp(24px, 4vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: var(--glass); }
.act-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); transition: background .2s, border-color .2s, box-shadow .2s; }
.act-mark > * { display: none; }
.act-mark .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.act-spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--accent-tint); border-top-color: var(--accent); animation: act-spin .9s linear infinite; }
@keyframes act-spin { to { transform: rotate(360deg); } }
.act:not([data-tone]) .act-spin, .act[data-tone="busy"] .act-spin { display: block; }
.act[data-tone="ok"] .act-ok, .act[data-tone="bad"] .act-bad, .act[data-tone="info"] .act-info { display: block; }
.act[data-tone="ok"] .act-mark { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .1); color: var(--ok); box-shadow: 0 0 40px -10px rgba(74, 222, 128, .6); }
.act[data-tone="bad"] .act-mark { border-color: rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .1); color: var(--typo); box-shadow: 0 0 40px -10px rgba(255, 107, 107, .5); }
.act[data-tone="info"] .act-mark { border-color: rgba(155, 140, 255, .4); background: var(--accent-tint); color: var(--accent-text); }
.act-text h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; letter-spacing: -.025em; }
.act-text p { max-width: 58ch; margin: .55rem auto 0; color: var(--fg-2); }
.act-text p:empty { display: none; }
.act-actions:not(:has(> :not([hidden]))) { display: none; }
.act-key { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem .9rem; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(0, 0, 0, .3); }
.act-key > span { font-size: 13px; color: var(--fg-3); }
.act-key code { font-size: 15px; letter-spacing: .04em; color: var(--fg); overflow-wrap: anywhere; }
