/* Enterprise License Plan page (/pricing/license): one plan, sized with a slider.
   Site tokens from global.css; glass, buttons, lists and hero from pricing.css. */
.lic-plan { position: relative; display: grid; gap: clamp(26px, 3.4vw, 40px); padding: clamp(20px, 3.6vw, 48px); }
.lic-plan::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
    background: radial-gradient(120% 80% at 85% 0%, rgba(var(--ep-energy), 0.08), transparent 60%);
}

.lic-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.lic-head h2 { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
.lic-billed { margin-top: 8px; color: var(--text-secondary); font-size: 0.95rem; }
.lic-availability {
    display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
    border: 1px solid var(--border-subtle); border-radius: 999px;
    color: var(--text-secondary); font-size: 0.82rem; line-height: 1.35;
}
.lic-availability span { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--ep-energy)); box-shadow: 0 0 10px rgba(var(--ep-energy), 0.7); }

/* Size on the left, price on the right. */
.lic-config { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.lic-size { display: grid; align-content: center; gap: 14px; min-width: 0; }
.lic-label { color: var(--text-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.lic-people { display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.lic-people [data-people] { font-size: clamp(3rem, 7vw, 5rem); font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.lic-people-word { color: var(--text-secondary); font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; }

.lic-slider { --lic-step: 46px; --lic-gap: clamp(10px, 1.6vw, 18px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--lic-gap); margin-top: 6px; }
.lic-step {
    display: inline-flex; align-items: center; justify-content: center; width: var(--lic-step); height: var(--lic-step); padding: 0;
    border: 1px solid var(--border-strong); border-radius: 50%; background: var(--ep-glass-fill); color: var(--text-primary);
    cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ep-ease);
}
.lic-step svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.lic-step:active { transform: scale(0.94); }
@media (hover: hover) {
    .lic-step:hover { background: var(--button-bg); color: var(--button-text); border-color: var(--button-bg); }
}

/* The range: a thin track, filled up to the thumb, and a large thumb that is easy to hold. */
.lic-range { position: relative; --lic-fill: 0%; }
.lic-range input {
    display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer;
    -webkit-appearance: none; appearance: none; touch-action: pan-y; -webkit-tap-highlight-color: transparent;
}
.lic-range input:focus { outline: none; }
.lic-range input::-webkit-slider-runnable-track {
    height: 6px; border-radius: 999px;
    background: linear-gradient(90deg, var(--text-primary) 0 var(--lic-fill), var(--border-strong) var(--lic-fill) 100%);
}
.lic-range input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--border-strong); }
.lic-range input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--text-primary); }
.lic-range input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
    background: var(--button-bg); border: 4px solid var(--page-bg);
    box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 22px rgba(var(--ep-energy), 0.35);
    transition: transform 0.2s var(--ep-ease), box-shadow 0.2s ease;
}
.lic-range input::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: var(--button-bg); border: 4px solid var(--page-bg);
    box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px rgba(0, 0, 0, 0.22), 0 0 22px rgba(var(--ep-energy), 0.35);
    transition: transform 0.2s var(--ep-ease), box-shadow 0.2s ease;
}
.lic-range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.lic-range input:active::-moz-range-thumb { transform: scale(1.12); }
.lic-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 7px var(--focus-ring); }
.lic-range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--border-strong), 0 0 0 7px var(--focus-ring); }

/* Labels under the slider, each at its place on the thumb's travel. */
.lic-scale { position: relative; height: 22px; margin: 0 calc(var(--lic-step, 46px) + clamp(10px, 1.6vw, 18px)); }
.lic-scale span {
    position: absolute; top: 0; left: calc(14px + (100% - 28px) * var(--at) / 100%);
    transform: translateX(-50%); color: var(--text-muted); font-size: 0.78rem; font-weight: 600;
    font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; transition: color 0.2s ease;
}
.lic-scale span:hover { color: var(--text-primary); }
.lic-scale span:first-child { transform: none; left: 0; }
.lic-scale span:last-child { transform: none; left: auto; right: 0; }

.lic-summary {
    display: grid; align-content: center; gap: 10px; padding: clamp(20px, 2.6vw, 30px);
    border: 1px solid var(--border-subtle); border-radius: 4px; background: rgba(var(--ep-energy), 0.035);
}
.lic-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-height: 2.6em; }
.lic-total strong { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.lic-total span { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.lic-plan.is-more .lic-total strong { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; }
.lic-per { color: var(--text-secondary); font-size: 0.95rem; }
.lic-contacts { color: var(--text-primary); font-size: 0.95rem; font-weight: 600; }
.lic-start { margin-top: 10px; }
.lic-note { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }

/* What every company gets, and what lights up from 200 people. */
.lic-included {
    display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px);
    padding-top: clamp(22px, 3vw, 32px); border-top: 1px solid var(--border-subtle);
}
.lic-included > div { min-width: 0; }
.lic-extras {
    align-self: start; padding: 18px 20px; border: 1px solid var(--border-subtle); border-radius: 4px;
    opacity: 0.5; transition: opacity 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
}
.lic-extras li { transform: translateX(-4px); color: var(--text-secondary); transition: transform 0.45s var(--ep-ease), color 0.45s ease; }
.lic-extras li:nth-child(2) { transition-delay: 0.06s; }
.lic-extras li:nth-child(3) { transition-delay: 0.12s; }
.lic-extras .ep-tick { opacity: 0.45; transition: opacity 0.45s ease; }
.lic-extras.is-on {
    opacity: 1; border-color: rgba(var(--ep-energy), 0.42); background: rgba(var(--ep-energy), 0.05);
    box-shadow: 0 14px 44px rgba(var(--ep-energy), 0.12);
}
.lic-extras.is-on li { transform: none; color: var(--text-primary); }
.lic-extras.is-on .ep-tick { opacity: 1; }

.lic-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lic-support-hours { margin-top: 20px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.lic-notes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 40px);
    margin-top: 20px; padding: clamp(22px, 3vw, 32px);
}
.lic-notes > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lic-notes h3 { font-size: 1rem; font-weight: 600; }
.lic-notes p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.lic-notes b { color: var(--text-primary); font-weight: 700; }

/* Contract terms */
.lic-terms-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.lic-terms-head { display: grid; gap: 10px; }
.lic-terms-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; }
.lic-terms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.lic-terms li { display: grid; gap: 5px; align-content: start; min-width: 0; padding: 18px 0; border-top: 1px solid var(--border-subtle); }
.lic-terms li b { font-weight: 600; }
.lic-terms li span { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.5; }

@media (max-width: 980px) {
    .lic-config, .lic-included { grid-template-columns: minmax(0, 1fr); }
    .lic-terms-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .lic-notes, .lic-terms { grid-template-columns: minmax(0, 1fr); }
    .lic-head { align-items: flex-start; }
    .lic-slider, .lic-scale { --lic-step: 44px; }
    .lic-scale span:nth-child(3) { display: none; }
    .lic-start { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .lic-step, .lic-extras, .lic-extras li, .lic-extras .ep-tick, .lic-scale span { transition: none; }
    .lic-range input::-webkit-slider-thumb { transition: none; }
    .lic-range input::-moz-range-thumb { transition: none; }
    .lic-range input:active::-webkit-slider-thumb { transform: none; }
    .lic-range input:active::-moz-range-thumb { transform: none; }
}
