/* Plans page: only what this page needs. v1's vocabulary (components.css) does the rest.
   The plan builder is a framed console: dials on the left, the plan writing itself on the right (sticky on wide screens). */

/* no JS: the builder cannot run, so the plain "Book a demo" strip takes its place */
html:not(.js) .builder, html:not(.js) .pbar { display: none; }
html.js .builder-nojs { display: none; }
.builder [hidden] { display: none !important; }
.builder-nojs { margin-bottom: 8px; }

/* ===== the console frame =============================================================================== */
#ad-builder { overflow: clip; }
.pb { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 34px; align-items: start; padding: 30px; position: relative; }
.pb__controls { display: grid; gap: 0; min-width: 0; }
.pb-skip { position: absolute; left: -9999px; top: 6px; z-index: 5; padding: 8px 14px; border-radius: 9px; background: var(--gold); color: #1a1200; font-weight: 600; font-size: 14px; }
.pb-skip:focus { left: 14px; }
.pb__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.pb__foot-r { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* a numbered dial group */
.bstep { display: grid; gap: 14px; padding: 26px 0; border-top: 1px solid var(--line); }
.bstep:first-child { padding-top: 0; border-top: 0; }
.bstep:last-child { padding-bottom: 0; }
.bstep__head { display: flex; gap: 14px; align-items: flex-start; }
.bstep__n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font: 700 13px var(--mono); color: var(--gold-text); background: rgba(255, 187, 46, .1); border: 1px solid rgba(255, 187, 46, .25); margin-top: 1px; }
.bstep__title { font: 700 19px/1.25 var(--display); letter-spacing: -.015em; }
.bstep__hint { font-size: 14.5px; color: var(--text-2); margin-top: 3px; }
.bstep__note { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--text-2); }
.bstep__note:has([data-undo][hidden]) { display: none; }
.bstep__sub { margin-top: 2px; }
.btn-text { background: none; border: 0; padding: 8px 4px; font: 600 14px var(--font); color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; }
.stepper-row__t .btn-text { justify-self: start; margin-left: -4px; }
.btn-text:hover { color: var(--text); }

/* starting points: radio cards */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { position: relative; display: block; cursor: pointer; border-radius: 16px; border: 1px solid var(--line); background: var(--card); padding: 16px 16px 16px 16px; transition: border-color .2s, background-color .2s, box-shadow .25s; }
.pick:hover { border-color: var(--line-2); }
.pick__in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pick:has(.pick__in:checked) { border-color: rgba(77, 124, 255, .65); background: linear-gradient(180deg, rgba(77, 124, 255, .16), var(--card)); box-shadow: 0 18px 50px -28px var(--glow-blue); }
.pick:has(.pick__in:checked)::after { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 42%, transparent 46%); }
.pick:has(.pick__in:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.pick__body { display: grid; gap: 5px; padding-right: 26px; }
.pick__t { font: 700 16.5px/1.25 var(--display); }
.pick__m { font: 500 12.5px var(--mono); color: var(--gold-text); }
.pick__d { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* team size: a range with a gradient fill */
.sizer { display: grid; gap: 4px; padding: 18px 20px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.sizer__read { display: flex; align-items: baseline; gap: 10px; }
.sizer__num { font: 800 44px/1 var(--display); letter-spacing: -.03em; background: linear-gradient(100deg, var(--blue-text), var(--gold-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sizer__unit { color: var(--text-2); font-size: 16px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; }
.range:focus { outline: 0; }
.range:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 4px; border-radius: 8px; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--gold)) 0 0 / calc(13px + var(--f, .3) * (100% - 26px)) 100% no-repeat, var(--line-2); }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 4px 14px -2px var(--glow-blue); transition: transform .15s; }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line-2); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.sizer__marks { position: relative; height: 22px; font: 500 12px var(--mono); color: var(--muted); }
.sizer__marks span { position: absolute; top: 0; left: calc(13px + var(--f) * (100% - 26px)); transform: translateX(-50%); }

/* number steppers */
.steppers { display: grid; gap: 10px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stepper-row__t { display: grid; gap: 2px; min-width: 0; }
.stepper-row__t > label, .stepper-row__t > span:first-child { font-weight: 600; font-size: 15px; }
.stepper-row__t .small { color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.stepper:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--glow-blue); outline: 2px solid var(--gold-text); outline-offset: 3px; }
.stepper__b { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--text-2); }
.stepper__b:hover { background: var(--card-2); color: var(--text); }
.stepper__b:focus-visible { outline-offset: -3px; }
.stepper__in { width: 76px; height: 44px; text-align: center; background: transparent; border: 0; border-inline: 1px solid var(--line); color: var(--text); font: 700 17px var(--mono); outline: 0; -moz-appearance: textfield; appearance: textfield; }
.stepper__in::-webkit-outer-spin-button, .stepper__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* areas + add-ons: check cards */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.opt--fixed { cursor: default; align-items: center; border-color: rgba(115, 191, 105, .4); background: rgba(115, 191, 105, .06); }
.opt--fixed:hover { border-color: rgba(115, 191, 105, .4); }
.opt--fixed .i { color: var(--green); width: 18px; height: 18px; margin-top: 0; }
.opt--fixed .badge { margin-left: auto; flex-shrink: 0; }
.agroups { display: grid; gap: 10px; }
.agroup { border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.agroup[open] { border-color: var(--line-2); }
.agroup summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font: 600 16px/1.3 var(--display); }
.agroup summary::-webkit-details-marker { display: none; }
.agroup summary::after { content: ""; margin-left: 4px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s; flex-shrink: 0; }
.agroup[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.agroup__t { flex: 1; min-width: 0; }
.agroup__c { font: 500 12px var(--mono); padding: 4px 10px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.agroup__c.has { color: var(--gold-text); border-color: rgba(255, 187, 46, .45); background: rgba(255, 187, 46, .1); }
.agroup .opts { padding: 0 14px 14px; }

/* the plan as it takes shape */
.pb__slip { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 20px; border: 1px solid rgba(77, 124, 255, .45); background: linear-gradient(180deg, rgba(77, 124, 255, .13), var(--card) 60%); box-shadow: 0 24px 60px -34px var(--glow-blue); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
.pb__slip:focus { outline: 0; }
.pb__slip:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.pb__slip > h3 { font-size: 20px; }
.slip { list-style: none; margin: 0; padding: 0; display: grid; }
.slip__row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 10px; border-radius: 9px; border-bottom: 1px dashed var(--line); transition: background-color .9s ease; }
.slip__row span { font-size: 14px; color: var(--text-2); }
.slip__row b { font: 600 13.5px/1.35 var(--mono); text-align: right; overflow-wrap: anywhere; }
.slip__row.is-lit, .slip__sub.is-lit { background: rgba(255, 187, 46, .18); transition-duration: .12s; }
.slip__sub { border-radius: 9px; transition: background-color .9s ease; }
.slip__sub ul { list-style: none; margin: 0; padding: 2px 10px 8px 22px; display: grid; gap: 3px; font-size: 13px; color: var(--muted); }
.slip__sub li { position: relative; }
.slip__sub li::before { content: ""; position: absolute; left: -12px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .7; }
.slip__quote { margin-top: 6px; border-bottom: 0; background: rgba(255, 187, 46, .1); border: 1px solid rgba(255, 187, 46, .3); padding: 11px 12px; }
.slip__quote b { color: var(--gold-text); font-family: var(--display); font-size: 14.5px; }
.pb__actions { display: grid; gap: 12px; }
.pb__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pb__hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pb__slip .btn-block { white-space: normal; height: auto; min-height: 52px; padding: 12px 18px; line-height: 1.25; text-align: center; }

/* phone + tablet bar */
.pbar { display: none; }
@media (max-width: 1000px) {
  .pbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 16px; border-radius: 16px; background: var(--nav-bg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border: 1px solid var(--line-2); box-shadow: var(--shadow); transform: translateY(140%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
  .pbar.is-on { transform: none; visibility: visible; }
  .pbar__sum { flex: 1; min-width: 0; display: grid; gap: 1px; background: none; border: 0; padding: 4px 0; text-align: left; }
  .pbar__t { font: 600 14px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pbar__s { font-size: 12.5px; color: var(--blue-text); font-weight: 600; }
  .pbar__go { flex-shrink: 0; }
}

/* ===== what every plan includes ======================================================================== */
.inc { margin-top: 22px; }
.inc .tile h3 { font-size: 21px; }
.inc .checks { gap: 10px; font-size: 15px; margin-top: 4px; }
.inc .checks a { color: var(--text); font-weight: 500; text-underline-offset: 3px; }
.inc .checks a:hover { text-decoration: underline; color: var(--blue-text); }
.inc .checks kbd { margin-left: 6px; }
.around-more { text-align: center; margin-top: 26px; }

/* ===== moving in / out ================================================================================= */
.move { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); }
.move + .move { margin-top: 22px; }
.move__top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.move__copy { display: grid; gap: 14px; justify-items: start; }
.move__copy h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.move__copy p { color: var(--text-2); }
.move__steps { margin: 0; grid-template-columns: 1fr 1fr; gap: 14px; }
.move__steps .step { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); grid-template-columns: 40px 1fr; }
.move__list { margin: 0; gap: 14px; font-size: 16px; }
.move__list b { font-weight: 600; color: var(--text); }
.move__fig { min-width: 0; width: 100%; max-width: 1017px; margin-inline: auto; }
#ad-export .move__fig { max-width: 1000px; }
.move__fig .pan img { width: 100%; max-width: var(--nw); height: auto; margin-inline: auto; }

/* ===== responsive ====================================================================================== */
@media (max-width: 1000px) {
  .pb { grid-template-columns: 1fr; gap: 30px; padding: 24px; }
  .pb__slip { position: static; max-height: none; overflow: visible; }
  .move__top { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .pb { padding: 16px; }
  .picks { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr; }
  .bstep { padding: 22px 0; }
  .move { padding: 22px; }
  .move__steps { grid-template-columns: 1fr; }
  .move__fig .pan img { width: var(--nw); max-width: none; }
  .console__bar .console__title { display: none; }
  .stepper-row { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .slip__row, .slip__sub, .pbar { transition: none; } }
html[data-motion="reduced"] .slip__row, html[data-motion="reduced"] .slip__sub, html[data-motion="reduced"] .pbar { transition: none; }

.cta-compact > div { flex: 1 1 420px; min-width: 0; }
