/* Tol — DS-026 · TheLayoutLoft Parts Line
   Skin A: obsidian segmented switch + champagne odometer + emerald badge.
   All .tol- prefixed. */

.tol { display:inline-flex; align-items:center; gap:14px;
  font:600 14px/1 ui-sans-serif,system-ui,sans-serif; color:#C7CDDC; }

.tol-opt { cursor:pointer; user-select:none; transition:color .2s; }
.tol[data-tol="m"] .tol-opt[data-tol-opt="m"],
.tol[data-tol="y"] .tol-opt[data-tol-opt="y"] { color:#F8FAFC; font-weight:800; }
.tol-opt:hover { color:#F8FAFC; }

/* ---- segmented switch ---- */
.tol-switch {
  position:relative; width:56px; height:30px; border-radius:99px;
  border:1px solid rgba(255,255,255,.16); background:#12151E;
  cursor:pointer; padding:0; transition:background .3s;
}
.tol-switch::after {
  content:''; position:absolute; top:3px; left:3px; width:22px; height:22px;
  border-radius:50%; background:linear-gradient(180deg,#FDE68A,#FBBF24);
  box-shadow:0 2px 8px rgba(0,0,0,.4);
  transition:transform .38s cubic-bezier(.34,1.56,.64,1);
}
.tol[data-tol="y"] .tol-switch { background:#1B2B26; }
.tol[data-tol="y"] .tol-switch::after { transform:translateX(26px); background:linear-gradient(180deg,#6EE7B7,#34D399); }
.tol-switch:focus-visible { outline:2px solid #38BDF8; outline-offset:2px; }

/* ---- odometer price ---- */
.tol-price { display:inline-flex; align-items:baseline; gap:2px;
  color:#FDE68A; font:800 34px/1 ui-sans-serif,system-ui,sans-serif; }
.tol-cur { font-size:.6em; margin-right:2px; color:#FBBF24; }
.tol-per { font:600 13px/1 inherit; color:#565D72; margin-left:5px; }

.tol-digits { display:inline-flex; }
.tol-col { display:inline-block; height:1em; overflow:hidden; }
.tol-col i { display:block; font-style:normal; line-height:1; }

/* ---- save badge ---- */
.tol-badge {
  display:inline-block; margin-left:12px; padding:6px 11px; border-radius:99px;
  background:rgba(16,185,129,.14); color:#34D399; border:1px solid rgba(16,185,129,.4);
  font:800 11.5px/1 inherit; letter-spacing:.04em;
}
.tol-badge[hidden] { display:none; }
.tol-badge.tol-pop { animation:tol-pop .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes tol-pop {
  0% { transform:scale(.4); opacity:0; }
  60% { transform:scale(1.15); }
  100% { transform:scale(1); opacity:1; }
}

@media (prefers-reduced-motion:reduce) {
  .tol-switch::after { transition:none; }
  .tol-badge.tol-pop { animation:none; }
}

/* phone view: demo stage is designed ~900px wide — zoom the page down on small screens */
@media (max-width: 430px) { body { zoom: .40; } }
@media (min-width: 431px) and (max-width: 560px) { body { zoom: .52; } }
@media (min-width: 561px) and (max-width: 720px) { body { zoom: .65; } }
@media (min-width: 721px) and (max-width: 860px) { body { zoom: .78; } }
