/* Lorne & Vale, lornevale.com: the options (build.py loads this stylesheet only on the pages that show them: the
   pricing page's #options and its configurator, the channels page's plans, the terms of sale's article 4.8). It
   builds on site.css: its tokens, .btn, .section-head, the calculator's range (.calc__range). Breakpoints follow
   site.css: 1068px and 734px. */

/* ---------- The pricing page: the options, after the plans ---------- */

.optsec { margin-top: clamp(80px, 10vw, 136px); scroll-margin-top: calc(var(--nav-h) + 16px); }
.optsec__builder { margin-top: clamp(64px, 8vw, 112px); }
.optsec__title {
  font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.028em;
}

/* What every option brings beyond its channel: Lorne & Vale does the work */
.optvalue { margin-bottom: 24px; padding: 26px clamp(22px, 3vw, 34px) 28px; border-radius: var(--radius); background: var(--mist); }
.optvalue__title { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.optvalue__list { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.optvalue__item { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.optvalue__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--paper); color: var(--blue); }
.optvalue__icon svg { width: 20px; height: 20px; }
.optvalue__item b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.optvalue__item b + span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 1068px) { .optvalue__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 734px) { .optvalue__list { grid-template-columns: minmax(0, 1fr); } }

/* One card per option, then Business with all of them */
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin-inline: auto; }
.opts--1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
.opt {
  display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--paper); box-shadow: 0 0 0 1px var(--hair);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.bg-mist .opt { box-shadow: none; }
.opt__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: center; }
.opt__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(0, 113, 227, .10), rgba(94, 92, 230, .12)); color: var(--blue);
}
.opt__icon svg { width: 24px; height: 24px; }
.opt__name { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.022em; }
.opt__tag { margin-top: 16px; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
.opt__price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.opt__amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.opt__unit { font-size: 15px; color: var(--ink-2); }
.opt__in {
  align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2;
  color: var(--link); background: rgba(0, 113, 227, .08);
}
.opt__in svg { width: 16px; height: 16px; }
.opt__pitch { margin-top: 18px; font-size: 16px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.opt__body { flex: 1 0 auto; }
.opt__points { margin-top: 18px; display: grid; gap: 10px; }
.opt__points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.4; }
.opt__points svg { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.opt__vol { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e5e5ea; display: grid; gap: 12px; }
.opt__vol dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.opt__vol dd { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }
.opt__fine { margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.opt__req {
  margin-top: 12px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start;
  font-size: 13px; line-height: 1.4; color: var(--ink-2);
}
.opt__req svg { width: 16px; height: 16px; margin-top: 1px; color: var(--blue); }

/* Business: every option, on a night panel under the cards */
.optall {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding: clamp(30px, 4vw, 48px); border-radius: var(--radius);
  background: var(--night); color: var(--on-night);
  --accent-grad: linear-gradient(92deg, #2997ff 0%, #8e8cf5 100%); --focus: #2997ff;
}
.optall__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--link-night); }
.optall__title { margin-top: 8px; font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.optall__text { margin-top: 14px; font-size: 17px; line-height: 1.45; color: var(--on-night-2); text-wrap: pretty; }
.optall__side { display: grid; justify-items: start; }
.optall__price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.optall__amount { font-family: var(--font-display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.optall__unit { font-size: 15px; color: var(--on-night-2); }
.optall__worth {
  margin-top: 12px; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start;
  font-size: 15px; font-weight: 500; line-height: 1.4;
}
.optall__worth svg { width: 18px; height: 18px; margin-top: 1px; color: var(--link-night); }
.optall .btn { margin-top: 22px; width: 100%; }

@media (max-width: 1068px) {
  .opts, .opts--2 { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; gap: 16px; }
  .optall { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* ---------- The configurator: a plan, the channels, a volume, and what it comes to ---------- */

.optb {
  max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  border-radius: var(--radius); overflow: hidden; background: var(--paper);
  box-shadow: 0 0 0 1px var(--hair), 0 30px 60px rgba(15, 15, 30, .07);
}
.optb__controls { display: grid; gap: 30px; align-content: start; padding: clamp(26px, 3.4vw, 40px); }
.optb__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.optb__legend {
  display: block; margin-bottom: 12px; padding: 0; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2);
}

/* what the script hides stays hidden, whatever display its class gives it */
.optb [hidden] { display: none !important; }

/* the plan, as a segmented control of two radios */
.optb__segs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: var(--mist); }
.optb__seg {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 10px; border-radius: 12px;
  cursor: pointer; transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.optb__seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.optb__seg-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.optb__seg-price { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.optb__seg:has(input:checked) { background: var(--paper); box-shadow: 0 2px 10px rgba(0, 0, 0, .10); }
.optb__seg:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

/* the channels, as switches */
.optb__opts { display: grid; gap: 8px; }
.optb__opt {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; background: var(--mist); cursor: pointer;
}
.optb__opt input { position: absolute; left: 16px; top: 50%; width: 46px; height: 28px; margin: -14px 0 0; opacity: 0; cursor: pointer; }
.optb__opt input:disabled { cursor: default; }
.optb__track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #c7c7cc; transition: background-color .25s var(--ease); }
.optb__track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .22); transition: transform .25s var(--ease);
}
.optb__opt:has(input:checked) .optb__track { background: var(--blue); }
.optb__opt:has(input:checked) .optb__track::after { transform: translateX(18px); }
.optb__opt:has(input:disabled) { cursor: default; }
.optb__opt:has(input:disabled) .optb__track { background: rgba(0, 113, 227, .45); }
.optb__opt:has(input:focus-visible) .optb__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.optb__opt-text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; min-width: 0; }
.optb__opt-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.optb__opt-price { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.optb__opt:has(input:disabled) .optb__opt-price { font-weight: 600; color: var(--blue); }
.optb__hint { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

/* the volume: the calculator's slider, on a light ground */
.optb .calc__label { color: var(--ink); }
.optb .calc__out { color: var(--blue); }
.optb .calc__range::-webkit-slider-runnable-track { background: linear-gradient(90deg, #0071e3 0, #5e5ce6 var(--p), #e5e5ea var(--p)); }
.optb .calc__range::-webkit-slider-thumb { box-shadow: 0 1px 6px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04); }
.optb .calc__range::-moz-range-track { background: #e5e5ea; }
.optb .calc__range::-moz-range-progress { background: linear-gradient(90deg, #0071e3, #5e5ce6); }
.optb .calc__range::-moz-range-thumb { box-shadow: 0 1px 6px rgba(0, 0, 0, .22); }
.optb .calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus), 0 1px 6px rgba(0, 0, 0, .22); }

/* what it comes to, on night */
.optb__result {
  display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3.4vw, 40px);
  background: var(--night); color: var(--on-night);
  --accent-grad: linear-gradient(92deg, #2997ff 0%, #8e8cf5 100%); --focus: #2997ff;
}
.optb__k { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--on-night-2); }
.optb__total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.optb__amount { font-family: var(--font-display); font-size: clamp(48px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.optb__unit { font-size: 15px; color: var(--on-night-2); }
.optb__lines { display: grid; }
.optb__lines li {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--night-line);
  font-size: 15px; color: var(--on-night-2);
}
.optb__lines li span:last-child { color: var(--on-night); font-variant-numeric: tabular-nums; white-space: nowrap; }
.optb__say { font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.optb__say strong { font-weight: 700; color: #fff; }
.optb__say--cheaper, .optb__say--more {
  padding: 14px 16px; border-radius: 14px; background: rgba(41, 151, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(41, 151, 255, .32);
}
.optb__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 6px; }
.optb__actions .btn { width: 100%; }
.optb__actions .btn--ghost { color: var(--link-night); box-shadow: inset 0 0 0 1px var(--link-night); }
.optb__actions .btn--ghost:hover { background: #2997ff; color: #fff; }
.optb__founding {
  display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start;
  font-size: 13px; line-height: 1.4; color: var(--on-night-2);
}
.optb__founding svg { width: 16px; height: 16px; margin-top: 1px; color: var(--link-night); }
.optb__note { font-size: 13px; line-height: 1.4; color: var(--on-night-2); }

@media (max-width: 1068px) {
  .optb { grid-template-columns: minmax(0, 1fr); max-width: 600px; }
}
@media (max-width: 380px) {
  .optb__opt { grid-template-columns: 46px minmax(0, 1fr); padding: 12px; gap: 12px; }
  .optb__opt input { left: 12px; }
}

/* ---------- The plan cards: Team lists the options, Business includes them ---------- */

.plan__all {
  margin-top: 16px; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start;
  padding: 14px 16px; border-radius: 16px; font-size: 14px; line-height: 1.45;
  background: linear-gradient(160deg, rgba(0, 113, 227, .08), rgba(94, 92, 230, .08));
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .22);
}
.plan__all svg { width: 18px; height: 18px; color: var(--blue); margin-top: 1px; }
.plan__all strong { font-weight: 600; color: var(--ink); }
.plan__list .plan__opt a { white-space: nowrap; }

/* ---------- The channels page: the line's option, in the night section that shows it ---------- */

.ch-opt {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.35;
  color: var(--on-night); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--night-line);
  text-align: left;
}
.ch-opt svg { flex: none; width: 16px; height: 16px; color: var(--link-night); }

/* ---------- The terms of sale: article 4.8's table ---------- */

.optterms { margin-top: 6px; margin-bottom: 18px; }
.optterms__table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; line-height: 1.4; color: #424245; }
.optterms__table th, .optterms__table td { padding: 12px 10px; border-bottom: 1px solid #e5e5ea; text-align: left; vertical-align: top; }
.optterms__table th:first-child, .optterms__table td:first-child { padding-left: 0; }
.optterms__table thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.optterms__table tbody th { font-weight: 600; color: var(--ink); }
