.panel-dark .kicker,
.panel-dark .fine { color: rgba(243, 241, 234, 0.62); }

.factor {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(243, 241, 234, 0.16);
}

.factor span { color: rgba(243, 241, 234, 0.78); }

.factor strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.factor-orange strong { color: var(--orange); }
.factor-blue strong { color: #8eb0ff; }
.factor-green strong { color: var(--green); }

.intro {
  max-width: 62ch;
  margin: -8px 0 28px;
  color: var(--muted);
}

.escada-section { padding: 28px 0 12px; }

.terms.panel {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.terms h3 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.terms-band {
  background: var(--dark);
  color: #f3f1ea;
  padding: 64px 0;
}

.terms h2 {
  max-width: none;
  margin-bottom: 22px;
  color: inherit;
  font-size: clamp(28px, 3vw, 36px);
}

.terms ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(243, 241, 234, 0.18);
}

.terms li { padding-right: 24px; }

.terms li + li {
  padding-left: 24px;
  border-left: 1px solid rgba(243, 241, 234, 0.18);
}

.terms h3 { color: inherit; }

.terms p { margin: 0; color: rgba(243, 241, 234, 0.72); }

.tier {
  padding-bottom: 18px;
  border-top: 4px solid var(--line);
  box-shadow: none;
}

.tier-orange { border-top-color: var(--orange); }
.tier-blue { border-top-color: var(--blue); }

.tier-green {
  border-top-color: var(--green);
  background: var(--dark);
  color: #f3f1ea;
}

.tier-green h3 { color: inherit; }

.tier-green li {
  color: rgba(243, 241, 234, 0.72);
  border-top-color: rgba(243, 241, 234, 0.16);
}

.tier ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.tier li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.tier li strong {
  flex: none;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.tier li span {
  text-align: right;
}

.tier-orange li strong { color: var(--orange); }
.tier-blue li strong { color: var(--blue); }
.tier-green li strong { color: var(--green); }

.pay-steps .day {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pay-steps .day-orange { color: var(--orange); }
.pay-steps .day-blue { color: var(--blue); }
.pay-steps .day-green { color: var(--green); }

.intro.paths-lead { margin: 36px 0 18px; }

.paths { margin-top: 0; align-items: stretch; }

.panel-card {
  background: var(--card);
  box-shadow: var(--shadow);
}

.rules {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.rules li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.panel-dark .rules li { border-top-color: rgba(243, 241, 234, 0.16); }

.cta p + p { margin-top: 10px; }
.cta .more { color: #f7f8ff; }

.version {
  display: flex;
  align-items: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.version a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.version a[aria-current="page"] {
  background: var(--dark);
  color: #f3f1ea;
}

@media (min-width: 961px) {
  .header-actions {
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .header-actions .btn {
    width: 167px;
    height: 46px;
    padding: 0 8px;
  }

  .header-actions .version {
    width: 220px;
    height: 46px;
    min-height: 46px;
  }

  .header-actions .version a {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0 8px;
  }
}

.header-actions .btn { white-space: nowrap; }

@media (min-width: 1240px) and (max-width: 1360px) {
  .nav-links { gap: 20px; }

  .header-actions .btn {
    width: 156px;
    font-size: 13px;
  }

  .header-actions .version { width: 188px; }

  .version a {
    font-size: 14px;
    padding: 0 6px;
  }
}

.version { flex-shrink: 0; }

.version a { white-space: nowrap; }

@media (max-width: 1239px) and (min-width: 961px) {
  .site-header {
    flex-wrap: nowrap;
    min-height: 84px;
    padding-bottom: 0;
  }

  .header-actions {
    flex: 0 1 auto;
    justify-content: flex-end;
  }
}

.long .section { padding: 56px 0; }
.hero-solo { grid-template-columns: minmax(0, 720px); }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
}

.skip:focus { top: 12px; }

.rise { margin-top: 22px; }
.rise p { max-width: 68ch; margin: 0 0 12px; }

.premium {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding: 28px;
  border-radius: 28px;
  background: var(--dark);
  color: #f3f1ea;
}

.premium em {
  font-style: normal;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--orange);
}

.premium p { margin: 6px 0 0; color: rgba(243, 241, 234, 0.76); }

.footer-note {
  flex-basis: 100%;
  margin: 0;
  color: rgba(243, 241, 234, 0.72);
  font-size: 14px;
}

.toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  max-width: 100%;
  margin-left: -10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.toc a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .toc a:hover {
    background: var(--orange);
    color: var(--dark);
  }
}

.prose p,
.prose li { max-width: 68ch; }

.prose ol,
.prose ul { margin: 0; padding-left: 1.2em; }

.prose li { margin: 8px 0; }

.deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.deck-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.deck li {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.deck .deck-k {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--orange);
}

.deck strong,
.deck b { display: block; margin-bottom: 6px; }
.deck b { font-size: 18px; }
.deck p,
.deck em { color: var(--muted); }
.deck p:empty { display: none; }
.deck em { font-style: normal; }

.hold { margin: 18px 0 0; max-width: 68ch; color: var(--muted); }

.prose h3 { margin: 22px 0 8px; font-size: 22px; }

.blank strong { display: block; margin-bottom: 6px; }
.blank p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 8px; }

.sheet {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 16px;
}

.sheet th,
.sheet td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.sheet th { color: var(--muted); font-size: 13px; }

.blank {
  margin-top: 16px;
  padding: 22px;
  border: 1.5px dashed rgba(27, 36, 33, 0.28);
  border-radius: 22px;
}

.blank ul { margin: 0; padding-left: 1.2em; }

.defs { margin: 0; }
.defs dt { font-weight: 800; }
.defs dd { margin: 0 0 12px; color: var(--muted); }

.factor-pick .tier {
  width: 100%;
  margin: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.factor-pick .tier:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.factor-pick .tier-orange.is-on { box-shadow: 0 0 0 3px var(--orange); }
.factor-pick .tier-blue.is-on { box-shadow: 0 0 0 3px var(--blue); }
.factor-pick .tier-green.is-on { box-shadow: 0 0 0 3px var(--green); }

@media (hover: hover) and (pointer: fine) {
  .factor-pick .tier:hover { transform: translateY(-6px); }

  .factor-pick .tier-orange:hover {
    box-shadow: 0 18px 32px rgba(224, 135, 0, 0.28);
  }

  .factor-pick .tier-blue:hover {
    box-shadow: 0 18px 32px rgba(44, 91, 205, 0.24);
  }

  .factor-pick .tier-green:hover {
    box-shadow: 0 18px 32px rgba(6, 154, 102, 0.32);
  }

  .factor-pick .tier-orange.is-on:hover {
    box-shadow: 0 0 0 3px var(--orange), 0 18px 32px rgba(224, 135, 0, 0.28);
  }

  .factor-pick .tier-blue.is-on:hover {
    box-shadow: 0 0 0 3px var(--blue), 0 18px 32px rgba(44, 91, 205, 0.24);
  }

  .factor-pick .tier-green.is-on:hover {
    box-shadow: 0 0 0 3px var(--green), 0 18px 32px rgba(6, 154, 102, 0.32);
  }
}

.rise .rise-note {
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease, max-height 320ms ease;
}

.rise .rise-note.is-on {
  max-height: 9rem;
  margin-bottom: 12px;
  opacity: 1;
  transform: none;
}

.rise-note[data-note="select"].is-on strong { color: var(--orange); }
.rise-note[data-note="prime"].is-on strong { color: var(--blue); }
.rise-note[data-note="black"].is-on strong { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  .factor-pick .tier,
  .rise-note,
  .toc a { transition: none; }
  .factor-pick .tier:hover { transform: none; }
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: 64px;
    padding-bottom: 8px;
  }

  .header-actions {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .btn { min-height: 36px; }

  .terms ul,
  .toc,
  .deck,
  .deck-4,
  .premium { grid-template-columns: 1fr; }

  .terms li,
  .terms li + li {
    padding: 18px 0 0;
    border-left: 0;
  }

  .terms li + li { border-top: 1px solid rgba(243, 241, 234, 0.18); }

  .factor { align-items: flex-start; flex-direction: column; gap: 4px; }
}
