/* Steel Fader: components. Built only from tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
.st {
  margin: 0;
  background: var(--st-slate);
  color: var(--st-ink);
  font-family: var(--st-sans);
  font-size: var(--st-text-body);
  line-height: var(--st-leading-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.st img, .st svg { max-width: 100%; display: block; }
.st a { color: var(--st-cobalt-lit); text-decoration: none; transition: color var(--st-speed); }
.st a:hover { color: var(--st-ink); }
.st-container { width: 100%; max-width: var(--st-container); margin: 0 auto; padding: 0 var(--st-gutter); }
.st-narrow { width: 100%; max-width: var(--st-narrow); margin: 0 auto; padding: 0 var(--st-gutter); }
.st-section { padding: var(--st-space-8) 0; position: relative; }
.st-section--deep { background: var(--st-slate-deep); }
.st-section--raised { background: var(--st-slate-raised); }
.st-rule { border: 0; border-top: 1px solid var(--st-line-soft); margin: 0; }

/* ---------- Top bar ---------- */
.st-bar {
  background: var(--st-slate-deep);
  box-shadow: var(--st-shadow-bar);
  position: relative;
  z-index: 2;
}
.st-bar::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 28px;
  background: var(--st-bar-fade);
  pointer-events: none;
}
.st-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-5); min-height: 64px; }
.st-brand { display: flex; align-items: center; gap: var(--st-space-3); color: var(--st-ink) !important; }
.st-brand__mark { width: 34px; height: 30px; flex-shrink: 0; }
.st-brand__name {
  font-family: var(--st-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}
.st-nav { display: flex; gap: var(--st-space-6); list-style: none; margin: 0; padding: 0; }
.st-nav a { color: var(--st-mist); font-size: 19px; }
.st-nav a:hover, .st-nav a[aria-current] { color: var(--st-ink); }

/* ---------- Type ---------- */
.st-hl {
  font-family: var(--st-display);
  font-weight: 500;
  font-size: var(--st-text-hero);
  line-height: var(--st-leading-display);
  letter-spacing: var(--st-tracking-display);
  margin: 0 0 var(--st-space-5);
  color: var(--st-ink);
}
.st-hl__fade { display: block; color: var(--st-mist); }
.st-hl__line { display: block; }
.st-h1 { font-family: var(--st-display); font-weight: 500; font-size: var(--st-text-h1); line-height: var(--st-leading-display); margin: 0 0 var(--st-space-4); }
.st-h2 { font-family: var(--st-display); font-weight: 400; font-size: var(--st-text-h2); line-height: 1.15; margin: 0 0 var(--st-space-4); color: var(--st-mist); }
.st-h2 strong { color: var(--st-ink); font-weight: 500; }
.st-h3 { font-family: var(--st-display); font-weight: 500; font-size: var(--st-text-h3); line-height: 1.2; margin: 0 0 var(--st-space-2); letter-spacing: .01em; }
.st-lead { font-size: var(--st-text-lead); color: var(--st-mist); max-width: 620px; margin: 0 0 var(--st-space-5); }
.st-body { color: var(--st-mist); margin: 0 0 var(--st-space-4); }
.st-kicker {
  font-family: var(--st-mono);
  font-size: var(--st-text-micro);
  letter-spacing: var(--st-tracking-label);
  text-transform: uppercase;
  color: var(--st-faint);
  margin: 0 0 var(--st-space-3);
}
.st-kicker--lit { color: var(--st-lime); }
.st-mono { font-family: var(--st-mono); font-size: var(--st-text-small); }

/* ---------- Buttons ---------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--st-space-2);
  font-family: var(--st-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1;
  padding: 14px 20px;
  border-radius: var(--st-radius);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: filter var(--st-speed), background var(--st-speed), color var(--st-speed);
}
.st-btn--primary { background: var(--st-gloss); color: var(--st-white) !important; box-shadow: var(--st-shadow-btn); border-color: var(--st-cobalt-deep); }
.st-btn--primary:hover { filter: brightness(1.12); }
.st-btn--ghost { background: transparent; color: var(--st-ink) !important; border-color: var(--st-line); }
.st-btn--ghost:hover { background: var(--st-slate-raised); }
.st-btn--block { width: 100%; }
.st-btn__icon { width: 14px; height: 14px; }
.st-actions { display: flex; flex-wrap: wrap; gap: var(--st-space-3); align-items: center; }

/* ---------- Hero ---------- */
.st-hero { padding: var(--st-space-7) 0 var(--st-space-8); }
.st-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--st-space-7); align-items: center; }

/* ---------- Carousel frame and app window ---------- */
.st-carousel { position: relative; }
.st-carousel__arrow {
  position: absolute; top: 50%;
  width: 44px; height: 44px;
  margin-top: -22px;
  border-radius: var(--st-radius-round);
  border: 2px solid rgba(238, 242, 245, .55);
  background: rgba(30, 38, 46, .45);
  color: var(--st-ink);
  display: grid; place-items: center;
  font-family: var(--st-display);
  font-size: 22px;
  z-index: 1;
}
.st-carousel__arrow--prev { left: -22px; }
.st-carousel__arrow--next { right: -22px; }
.st-carousel__dots { display: flex; gap: var(--st-space-2); justify-content: center; margin-top: var(--st-space-4); }
.st-carousel__dots span { width: 8px; height: 8px; border-radius: var(--st-radius-round); background: var(--st-line); }
.st-carousel__dots span:first-child { background: var(--st-ink); }

.st-window {
  background: var(--st-slate-well);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-panel);
  box-shadow: var(--st-shadow-panel);
  overflow: hidden;
  font-family: var(--st-mono);
  font-size: 11px;
  color: var(--st-mist);
}
.st-window__bar {
  display: flex; align-items: center; gap: var(--st-space-2);
  background: var(--st-slate-deep);
  padding: 7px 10px;
  border-bottom: 1px solid var(--st-line-soft);
}
.st-window__tool {
  min-width: 22px; height: 20px; padding: 0 6px;
  border: 1px solid var(--st-line);
  border-radius: 2px;
  display: grid; place-items: center;
  color: var(--st-ink);
}
.st-window__tool--on { background: var(--st-lime); color: var(--st-slate-deep); border-color: var(--st-lime); }
.st-window__clock { margin-left: auto; color: var(--st-lime); background: var(--st-slate-night); padding: 2px 8px; border-radius: 2px; }
.st-window__body { display: grid; grid-template-columns: 1fr 132px; min-height: 260px; }
.st-tracks { padding: var(--st-space-2); display: grid; gap: 6px; align-content: start; border-right: 1px solid var(--st-line-soft); }
.st-track { display: grid; grid-template-columns: 74px 1fr; gap: 6px; align-items: center; }
.st-track__name { color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-track__lane { height: 26px; background: var(--st-slate-raised); border-radius: 2px; position: relative; overflow: hidden; }
.st-track__lane svg { width: 100%; height: 100%; }
.st-track__lane::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--now, 62%);
  width: 1px; background: var(--st-ember);
}
.st-mixer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: var(--st-space-2); align-items: end; }
.st-strip { display: grid; gap: 4px; justify-items: center; }
.st-meter { width: 8px; height: 130px; background: var(--st-slate-night); border-radius: 1px; position: relative; overflow: hidden; }
.st-meter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: var(--lvl, 60%);
  background: var(--st-meter);
  background-size: 100% 130px;
  background-position: bottom;
}
.st-strip__id { color: var(--st-ink); }
.st-strip__btn { width: 18px; height: 12px; border-radius: 2px; background: var(--st-slate-raised); border: 1px solid var(--st-line); }
.st-strip__btn--on { background: var(--st-ember); border-color: var(--st-ember); }

/* ---------- News and feature rows ---------- */
.st-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-space-7); align-items: center; }
.st-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-space-6) var(--st-space-6); }
.st-feature { border-top: 1px solid var(--st-line); padding-top: var(--st-space-4); }
.st-feature__icon { width: 30px; height: 30px; color: var(--st-cobalt-lit); margin-bottom: var(--st-space-3); }
.st-card {
  background: var(--st-slate-raised);
  border: 1px solid var(--st-line-soft);
  border-radius: var(--st-radius-panel);
  padding: var(--st-space-5);
}
.st-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-space-5); }
a.st-card { display: block; color: var(--st-ink); transition: border-color var(--st-speed); }
a.st-card:hover { color: var(--st-ink); border-color: var(--st-cobalt); }
.st-card__meta { font-family: var(--st-mono); font-size: var(--st-text-micro); color: var(--st-faint); margin-bottom: var(--st-space-2); }
.st-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--st-mono);
  font-size: var(--st-text-micro);
  text-transform: uppercase;
  letter-spacing: var(--st-tracking-label);
  padding: 3px 8px;
  border-radius: var(--st-radius);
  background: var(--st-slate-deep);
  color: var(--st-mist);
  white-space: nowrap;
}
.st-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: var(--st-radius-round); background: var(--st-lime); }
.st-platforms { display: flex; flex-wrap: wrap; gap: var(--st-space-2); list-style: none; padding: 0; margin: 0 0 var(--st-space-5); }
.st-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--st-space-5); }
.st-stat__num { font-family: var(--st-display); font-size: 44px; font-weight: 500; line-height: 1; color: var(--st-ink); }
.st-stat__label { color: var(--st-mist); font-size: var(--st-text-small); }
.st-cta { text-align: center; }
.st-cta .st-lead { margin-left: auto; margin-right: auto; }
.st-cta .st-actions { justify-content: center; }

/* ---------- Pricing ---------- */
.st-page-head { padding: var(--st-space-8) 0 var(--st-space-6); text-align: center; }
.st-page-head .st-lead { margin-left: auto; margin-right: auto; }
.st-toggle { display: inline-flex; background: var(--st-slate-deep); border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 3px; gap: 3px; }
.st-toggle button {
  font: inherit; font-size: var(--st-text-small); font-weight: 600;
  border: 0; background: transparent; color: var(--st-mist);
  padding: 7px 14px; border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.st-toggle button[aria-pressed="true"] { background: var(--st-gloss); color: var(--st-white); box-shadow: var(--st-shadow-btn); }
.st-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-space-5); align-items: stretch; }
.st-plan {
  background: var(--st-slate-raised);
  border: 1px solid var(--st-line-soft);
  border-radius: var(--st-radius-panel);
  padding: var(--st-space-6) var(--st-space-5);
  display: flex; flex-direction: column;
}
.st-plan--lit { border-color: var(--st-cobalt); box-shadow: var(--st-shadow-panel), 0 0 0 1px var(--st-cobalt) inset; }
.st-plan__name { font-family: var(--st-display); font-size: 26px; font-weight: 500; margin: 0; }
.st-price { font-family: var(--st-display); font-size: 54px; font-weight: 500; line-height: 1; margin: var(--st-space-4) 0 var(--st-space-1); }
.st-price small { font-family: var(--st-sans); font-size: var(--st-text-small); color: var(--st-mist); font-weight: 400; }
.st-ticks { list-style: none; padding: 0; margin: var(--st-space-5) 0; display: grid; gap: var(--st-space-2); flex: 1; align-content: start; }
.st-plan > .st-badge { align-self: flex-start; }
.st-ticks li { padding-left: 24px; position: relative; color: var(--st-mist); }
.st-ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--st-lime); border-bottom: 2px solid var(--st-lime);
  transform: rotate(-45deg);
}
.st-faq { display: grid; gap: 0; }
.st-faq details { border-bottom: 1px solid var(--st-line-soft); padding: var(--st-space-4) 0; }
.st-faq summary { font-family: var(--st-display); font-size: 21px; font-weight: 500; cursor: pointer; list-style: none; }
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; float: right; color: var(--st-cobalt-lit); }
.st-faq details[open] summary::after { content: "\2212"; }
.st-faq p { color: var(--st-mist); margin: var(--st-space-3) 0 0; }

/* ---------- Article ---------- */
.st-article-head { padding: var(--st-space-8) 0 var(--st-space-5); }
.st-byline { display: flex; flex-wrap: wrap; gap: var(--st-space-3); align-items: center; color: var(--st-faint); font-family: var(--st-mono); font-size: var(--st-text-micro); text-transform: uppercase; letter-spacing: var(--st-tracking-label); }
.st-article { font-size: 18px; line-height: 1.7; color: var(--st-ink-soft); padding-bottom: var(--st-space-8); }
.st-article h2 { font-family: var(--st-display); font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--st-ink); margin: var(--st-space-7) 0 var(--st-space-3); }
.st-article > h2:first-child { margin-top: var(--st-space-5); }
.st-article p { margin: 0 0 var(--st-space-5); }
.st-article ul { padding-left: 22px; margin: 0 0 var(--st-space-5); }
.st-article li { margin-bottom: var(--st-space-2); }
.st-article code { font-family: var(--st-mono); font-size: 15px; background: var(--st-slate-well); padding: 2px 6px; border-radius: var(--st-radius); color: var(--st-ink); }
.st-article pre { font-family: var(--st-mono); font-size: 14px; line-height: 1.6; background: var(--st-slate-well); border: 1px solid var(--st-line-soft); border-radius: var(--st-radius-panel); padding: var(--st-space-4); overflow-x: auto; color: var(--st-ink); margin: 0 0 var(--st-space-5); }
.st-quote {
  margin: var(--st-space-6) 0;
  padding: 0 0 0 var(--st-space-5);
  border-left: 3px solid var(--st-cobalt);
  font-family: var(--st-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--st-ink);
}
.st-figure { margin: var(--st-space-6) 0; }
.st-figure figcaption { font-family: var(--st-mono); font-size: var(--st-text-micro); color: var(--st-faint); margin-top: var(--st-space-3); }

/* ---------- Forms ---------- */
.st-form { display: grid; gap: var(--st-space-4); }
.st-field { display: grid; gap: 6px; }
.st-label { font-weight: 600; font-size: var(--st-text-small); color: var(--st-ink); }
.st-input, .st-select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--st-ink);
  background: var(--st-slate-well);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 11px 12px;
  box-shadow: inset 0 2px 3px rgba(8, 12, 16, .35);
}
.st-input:focus, .st-select:focus { outline: 2px solid var(--st-cobalt); outline-offset: 1px; border-color: var(--st-cobalt); }
.st-hint { font-size: var(--st-text-small); color: var(--st-faint); }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--st-space-4); }
.st-check { display: flex; gap: var(--st-space-3); align-items: flex-start; color: var(--st-mist); font-size: var(--st-text-small); }
.st-check input { accent-color: var(--st-cobalt); margin-top: 3px; }
.st-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--st-space-2); }
.st-choice { position: relative; }
.st-choice input { position: absolute; opacity: 0; }
.st-choice span {
  display: block; text-align: center;
  padding: 10px 6px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-slate-raised);
  color: var(--st-mist);
  font-weight: 600; font-size: var(--st-text-small);
  cursor: pointer;
}
.st-choice input:checked + span { background: var(--st-cobalt-soft); border-color: var(--st-cobalt); color: var(--st-ink); }
.st-panel {
  background: var(--st-slate-raised);
  border: 1px solid var(--st-line-soft);
  border-radius: var(--st-radius-panel);
  padding: var(--st-space-6);
  box-shadow: var(--st-shadow-panel);
}

/* ---------- Footer ---------- */
.st-footer { background: var(--st-slate-deep); padding: var(--st-space-7) 0 var(--st-space-5); color: var(--st-mist); font-size: var(--st-text-small); }
.st-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--st-space-6); }
.st-footer h4 { font-family: var(--st-display); font-weight: 500; font-size: 17px; color: var(--st-ink); margin: 0 0 var(--st-space-3); letter-spacing: .02em; }
.st-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-footer a { color: var(--st-mist); }
.st-footer__fine:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.st-footer__fine { border-top: 1px solid var(--st-line-soft); margin-top: var(--st-space-6); padding-top: var(--st-space-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--st-space-3); font-family: var(--st-mono); font-size: var(--st-text-micro); color: var(--st-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .st-hero__grid, .st-split { grid-template-columns: 1fr; gap: var(--st-space-6); }
  .st-features, .st-cards, .st-plans { grid-template-columns: 1fr; }
  .st-stats { grid-template-columns: repeat(2, 1fr); }
  .st-footer__grid { grid-template-columns: 1fr 1fr; }
  .st-nav { gap: var(--st-space-4); }
  .st-nav li:not(.st-nav__keep) { display: none; }
}
@media (max-width: 560px) {
  .st-section { padding: var(--st-space-7) 0; }
  .st-window__body { grid-template-columns: 1fr; }
  .st-mixer { border-top: 1px solid var(--st-line-soft); grid-template-columns: repeat(4, 1fr); }
  .st-meter { height: 70px; }
  .st-meter::after { background-size: 100% 70px; }
  .st-tracks { border-right: 0; }
  .st-track { grid-template-columns: 62px 1fr; }
  .st-carousel__arrow { width: 36px; height: 36px; margin-top: -18px; font-size: 18px; }
  .st-carousel__arrow--prev { left: 6px; }
  .st-carousel__arrow--next { right: 6px; }
  .st-row, .st-choices { grid-template-columns: 1fr; }
  .st-footer__grid { grid-template-columns: 1fr; }
  .st-brand__name { font-size: 21px; }
  .st-panel { padding: var(--st-space-5); }
}
