/* "Add up your own stack" (/pricing#roi). Composes the site's tokens. */
.stk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(20px, 3vw, 40px); align-items: start; margin-top: 28px; }
.stk-inputs { display: grid; gap: 22px; min-width: 0; }
.stk fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.stk legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.stk-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stk-roster legend { grid-column: 1 / -1; }
.stk label { font-weight: 600; font-size: 14.5px; }
.stk input, .stk select { font: 400 16px var(--sans); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stk-roster input { display: block; width: 100%; margin-top: 6px; }
.stk input:focus, .stk select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }

.stk-rows { display: grid; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.stk-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 112px; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--rule); transition: background .2s; }
.stk-row:first-child { border-top: 0; }
.stk-row.on { background: color-mix(in srgb, var(--sage) 40%, var(--white)); }
.stk-row strong { display: block; }
.stk-row small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.stk-row.on small { color: var(--green-2); }
.stk-money { position: relative; display: block; }
.stk-money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.stk-money input { width: 100%; padding-left: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.stk-row select { width: 100%; }

.stk-result { position: sticky; top: calc(var(--header) + 20px); background: var(--night); color: var(--night-ink); border-radius: 18px; padding: clamp(22px, 2.6vw, 30px); display: grid; gap: 4px; box-shadow: 0 50px 100px -60px rgba(15, 30, 46, .6); }
.stk-result p { margin: 0; }
.stk-k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.stk-k + .stk-v { margin-top: 4px; }
.stk-sub + .stk-k { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--night-line); }
.stk-v { font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stk-sub { color: var(--night-muted); font-size: 15px; line-height: 1.5; }
.stk-sub + .stk-sub { margin-top: 8px; }
.stk .stk-inline { width: 3.6em; padding: 2px 6px; border-radius: 6px; font-size: 15px; text-align: center; background: var(--night-2); color: var(--night-ink); border-color: var(--night-line); }
.stk .stk-inline-wide { width: 6.2em; }
.stk-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--night); background: var(--mint); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.stk-result .button { margin-top: 22px; justify-self: start; background: var(--mint); color: var(--night); border-color: var(--mint); }
.stk-fine { font-size: 13px; color: var(--muted); margin-top: 12px !important; }
.stk-result .stk-fine { color: var(--night-muted); }

/* On one column the result sits below the rows, so a running total stays in view while they are filled in. */
.stk-bar { display: none; }
@media (max-width: 900px) {
  .stk { grid-template-columns: minmax(0, 1fr); }
  .stk-result { position: relative; top: 0; }
  .stk-bar { display: block; position: sticky; bottom: 12px; z-index: 2; margin: 0; justify-self: center; background: var(--night); color: var(--night-ink); border-radius: 999px; padding: 10px 18px; font-size: 14.5px; font-variant-numeric: tabular-nums; box-shadow: 0 20px 40px -20px rgba(15, 30, 46, .6); }
  .stk-bar span { font-weight: 700; color: var(--mint); }
}
@media (max-width: 520px) {
  .stk-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stk-row label { grid-column: 1 / -1; }
  .stk-roster { grid-template-columns: minmax(0, 1fr); }
}
