/* Echelon free tools (position size, drawdown): shared look on top of site.css. Pages add their own bits inline. */
.calc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 18px; margin-top: clamp(36px, calc(6 * var(--vh, 1vh)), 60px); align-items: start; }
.pane { position: relative; border-radius: 26px; padding: clamp(20px, 2.4vw, 30px); background: var(--glass), var(--panel); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(240, 243, 247, 0.05), 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.fld { margin-top: 22px; }
.fld:first-child { margin-top: 0; }
.fl { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fl small { font-size: 12.5px; font-weight: 500; color: var(--faint); }

/* capsule segmented controls with a sliding thumb */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 10px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.seg.sm { display: inline-grid; margin-top: 0; padding: 3px; }
.seg button { position: relative; z-index: 1; height: 42px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; cursor: pointer; transition: color 0.25s ease; }
.seg.sm button { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 600; }
.seg button[aria-pressed="true"] { color: #0e1013; }
.seg button small { display: block; margin-top: -3px; font-size: 10.5px; font-weight: 550; opacity: 0.7; }
.seg .th { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 50%, var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 6px 18px -8px rgba(185, 192, 203, 0.7); transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.seg.sm .th { top: 3px; bottom: 3px; }
.seg.inst button { height: 52px; }

.inp { position: relative; display: flex; align-items: center; margin-top: 10px; height: 56px; padding: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.2s ease, background 0.2s ease; }
.inp:focus-within { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1.5px var(--gold-2), 0 0 0 4px rgba(185, 192, 203, 0.1); }
.inp.bad { box-shadow: inset 0 0 0 1.5px var(--bad); }
.inp span { flex: none; font-size: 17px; font-weight: 600; color: var(--faint); }
.inp input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--ink); font: inherit; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; padding: 0 6px; }
.inp input::placeholder { color: var(--faint); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease; }
.chip:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.chip:active { transform: scale(0.96); }
.chip.on { color: var(--gold-3); box-shadow: inset 0 0 0 1px var(--gold-deep); background: rgba(185, 192, 203, 0.08); }
.hint { margin-top: 8px; font-size: 13px; color: var(--faint); }
.hint:empty { display: none; }
/* phones: the answer sits under the form, so a glass bar carries it while you type; it leaves once the answer shows */
.rbar { display: none; }
@media (max-width: 900px) {
  .rbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 8px 0 20px; border: 0; border-radius: 999px; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
    background: rgba(16, 17, 20, 0.9); -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(240, 243, 247, 0.08), 0 18px 40px -16px rgba(0, 0, 0, 0.95);
    transition: transform 0.45s var(--ease), opacity 0.3s ease; }
  .rbar.off { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
  .rbar b { font-size: 26px; font-weight: 750; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
  .rbar b em { font-style: normal; font-size: 15px; font-weight: 650; color: var(--ink-2); margin-left: 5px; letter-spacing: -0.01em; }
  .rbar span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--bad); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rbar span i { font-style: normal; color: var(--muted); margin-left: 4px; }
  .rbar small { flex: none; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: #0e1013; background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 50%, var(--gold)); }
}
@media (prefers-reduced-motion: reduce) { .rbar { transition: none; } }
.hint.bad { color: var(--bad); }

/* the answer */
.res { position: sticky; top: 96px; overflow: hidden; }
.res::before { content: ''; position: absolute; inset: -40% -20% auto 30%; height: 360px; background: radial-gradient(closest-side, rgba(185, 192, 203, 0.13), transparent); pointer-events: none; }
.r-k { position: relative; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.r-big { position: relative; display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.r-big b { font-size: clamp(72px, 9vw, 112px); font-weight: 750; letter-spacing: -0.06em; line-height: 0.95; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 35%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity 0.2s ease; }
.r-big span { font-size: 22px; font-weight: 650; color: var(--ink-2); letter-spacing: -0.02em; }
.r-big.none b { font-size: clamp(34px, 4vw, 44px); letter-spacing: -0.035em; line-height: 1.1; }
.r-say { position: relative; margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); min-height: 3.1em; }
.r-say b { color: var(--ink); }
.r-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border-radius: 18px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.r-grid div { padding: 14px 16px; background: var(--panel-2); }
.r-grid small { display: block; font-size: 12.5px; font-weight: 550; color: var(--faint); }
.r-grid b { display: block; margin-top: 3px; font-size: 19px; font-weight: 680; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.r-grid b i { font-style: normal; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.r-grid .dn { color: var(--bad); }
.r-grid .up { color: var(--good); }
.r-note { position: relative; display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); background: rgba(185, 192, 203, 0.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.r-note::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--gold-2); }
.r-acts { position: relative; display: flex; gap: 10px; margin-top: 18px; }
.r-acts .btn { flex: 1; }
.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0% { transform: translateY(6px); opacity: 0.4; } 100% { transform: none; opacity: 1; } }

/* specs + how-to + FAQ */
.sec { margin-top: clamp(64px, calc(10 * var(--vh, 1vh)), 110px); }
.sec h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.sec h2 .gt { font-size: 1.06em; }
.sec > p { margin-top: 14px; max-width: 62ch; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.spec { width: 100%; margin-top: 24px; border-collapse: separate; border-spacing: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; }
.spec th, .spec td { padding: 14px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.spec th { font-size: 12.5px; font-weight: 600; color: var(--faint); background: rgba(255, 255, 255, 0.025); }
.spec td:first-child b { display: block; font-weight: 700; }
.spec td:first-child small { color: var(--faint); font-size: 12.5px; }
.spec tr:last-child td { border-bottom: 0; }
.spec td { color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; counter-reset: st; }
.step { padding: 20px; border-radius: 20px; background: var(--glass), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.step::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #0e1013; background: linear-gradient(135deg, var(--gold-3), var(--gold)); }
.step b { display: block; margin-top: 14px; font-size: 16.5px; letter-spacing: -0.015em; }
.step p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.step code { font-family: inherit; font-weight: 650; color: var(--ink-2); }
.faq { margin-top: 22px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; cursor: pointer; font-size: 17px; font-weight: 620; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--muted); transition: transform 0.35s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 2px 20px; max-width: 68ch; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.end { margin-top: clamp(64px, calc(10 * var(--vh, 1vh)), 110px); padding: clamp(28px, 4vw, 48px); border-radius: 30px; text-align: center; background: radial-gradient(80% 120% at 50% -20%, rgba(185, 192, 203, 0.13), transparent 60%), var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.end h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.05; }
.end p { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.end .cta-line { justify-content: center; }
.risk-note { margin-top: 28px; font-size: 12.5px; line-height: 1.7; color: var(--faint); max-width: 92ch; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(22, 23, 26, 0.82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px rgba(0, 0, 0, 0.9); transition: transform 0.4s var(--ease), opacity 0.3s ease; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .res { position: relative; top: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .spec th, .spec td { padding: 12px 12px; font-size: 14px; }
  .spec .wide { display: none; }
  .r-grid b { font-size: 17px; }
  .faq summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .seg .th, .bump { transition: none; animation: none; } }
