/* The pricing page (pricing/index.html): two ways to run OpenSLMS, side by side. Open source on the left, Cloud with its calculator on the right. */
.pricing-intro { max-width: 880px; padding-block: 20px 30px; }
.pricing-intro>p { margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: #62676b; }

.paths { display: grid; grid-template-columns: minmax(0,5fr) auto minmax(0,7fr); gap: 22px; align-items: stretch; }
.path { display: flex; flex-direction: column; min-width: 0; padding: 26px 24px 24px; border-radius: 4px; }
.path-open { border: 1px dashed #cfd3d6; }
.path-cloud { border: 1px solid var(--line); }
.path-tag { color: #788187; font-size: 10px; letter-spacing: .08em; }
.path h2 { margin: 10px 0 0; font-size: 26px; letter-spacing: -.6px; }
.path-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 0; }
.path-price strong { font-size: 40px; font-weight: 500; letter-spacing: -1.5px; }
.path-price span { color: #69747c; font-size: 15px; }
.path-licence { display: flex; align-items: baseline; gap: 9px; margin: 12px 0 0; color: #38434b; font-size: 14px; line-height: 1.6; }
.path-copy { margin: 12px 0 20px; color: #69747c; font-size: 14px; line-height: 1.7; }
.path-cta { margin-top: auto; }

.path-or { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #8a959d; font-size: 11px; letter-spacing: .1em; }
.path-or::before, .path-or::after { content: ''; flex: 1; border-left: 1px solid var(--line); }

.plan-features { list-style: none; margin: 0; padding: 0; color: #4d575e; font-size: 14px; line-height: 1.55; }
.plan-features li { position: relative; padding-left: 22px; margin-bottom: 10px; }
/* A check drawn with two borders: the page stays free of SVGs. */
.plan-features li::before { content: ''; position: absolute; left: 3px; top: .3em; width: 5px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.path-open .plan-features { margin-bottom: 22px; }

.calculator { display: flex; flex: 1; flex-direction: column; margin-top: 18px; }
.modules { min-width: 0; margin: 0; padding: 0; border: 0; }
.modules legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; width: 100%; padding: 0 0 10px; color: #38434b; font-size: 14px; font-weight: 500; }
.modules legend span { color: #788187; font-size: 12px; font-weight: 400; }
.module { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.module:has(input:disabled) { cursor: default; }
.module input { appearance: none; position: relative; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid #a6adb2; border-radius: 3px; background: #fff; cursor: inherit; }
.module input:checked { background: var(--accent); border-color: var(--accent); }
.module input:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #3d1f0a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.module:hover input:not(:disabled):not(:checked) { border-color: #5c6064; }
.module input:focus-visible, .lights input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.module-copy { display: grid; gap: 4px; min-width: 0; }
.module-copy strong { font-size: 16px; font-weight: 500; }
.module-copy strong em { margin-left: 8px; color: #788187; font-size: 11px; font-style: normal; font-weight: 400; letter-spacing: .03em; }
.module-copy>span { color: #69747c; font-size: 14px; line-height: 1.55; }
.module-price { font-size: 16px; font-variant-numeric: tabular-nums; }

.lights { padding: 16px 0 20px; border-top: 1px solid var(--line); }
.lights-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lights-head label { color: #38434b; font-size: 14px; font-weight: 500; }
.lights-head output { font-size: 22px; font-weight: 500; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.lights input { --fill: 0%; appearance: none; display: block; width: 100%; height: 28px; margin: 8px 0 2px; background: transparent; cursor: pointer; }
.lights input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line) var(--fill)); }
.lights input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.lights input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.lights input::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; border: 1px solid #a6adb2; border-radius: 3px; background: #fff; }
.lights input::-moz-range-thumb { width: 20px; height: 20px; border: 1px solid #a6adb2; border-radius: 3px; background: #fff; }
/* Each mark sits where the slider reaches that value: (thousands - 1) / 50. */
.lights-scale { position: relative; height: 14px; color: #788187; font-size: 10px; font-variant-numeric: tabular-nums; }
.lights-scale span { position: absolute; left: var(--at); transform: translateX(-50%); white-space: nowrap; }
.lights-scale span:first-child { left: 0; transform: none; }
.lights-scale span:last-child { left: auto; right: 0; transform: none; }

.total { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 36px; align-items: end; margin: auto -24px -24px; padding: 20px 24px; color: #fff; border-radius: 0 0 3px 3px; background: var(--dusk); }
.total-line { display: grid; gap: 6px; margin: 0; }
.total-line .mono { color: #c9d3e6; font-size: 10px; letter-spacing: .08em; }
.total-line strong { font-size: 22px; font-weight: 500; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.total-main strong { font-size: 40px; letter-spacing: -1.5px; line-height: 1; }
.total-main small { margin-left: 4px; color: #c9d3e6; font-size: 15px; font-weight: 400; letter-spacing: 0; }

.sales { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-top: 18px; }
.sales-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; background: var(--accent-soft); border-radius: 4px; }
.sales h2 { margin: 0; font-size: 17px; letter-spacing: -.2px; }
.sales p { margin: 6px 0 0; color: #7a3510; font-size: 14px; line-height: 1.6; }

@media (max-width: 1100px) {
  .paths { grid-template-columns: minmax(0,1fr); }
  .path-or { flex-direction: row; }
  .path-or::before, .path-or::after { border-left: 0; border-top: 1px solid var(--line); }
  .sales { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
  .pricing-intro>p { font-size: 15px; }
  .path { padding: 22px 16px 20px; }
  .module { grid-template-columns: 20px minmax(0,1fr) auto; gap: 12px; }
  .total { grid-template-columns: minmax(0,1fr); gap: 16px; margin: auto -16px -20px; padding: 18px 16px; }
  .total-line:first-child { display: flex; justify-content: space-between; align-items: baseline; }
  .sales-row { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
}
