/* Visual refinement for the public landing and the payment dialog.
   The workspace (#appShell) is deliberately left out. Remove the <link> to revert. */

/* Browser surfaces */
::selection{background:rgba(90,192,191,.32);color:#fff}
html:has(#appShell[hidden]){scrollbar-color:#2c4a5c #01001f;caret-color:var(--accent-light)}
:is(a,button,select,input,summary):not(#appShell *):focus-visible{outline:2px solid var(--accent-light);outline-offset:3px}

/* Type: open the over-tight tracking that was fusing words together */
.hero h1{letter-spacing:-.035em;word-spacing:.05em;line-height:1.1;text-wrap:balance;max-width:1040px;margin-inline:auto;font-size:clamp(42px,5vw,72px)}
.lx-section h2,.final-cta h2{letter-spacing:-.03em;word-spacing:.04em;line-height:1.16;text-wrap:balance}
.lx-section h3,#prezzi h3{letter-spacing:-.015em;word-spacing:.03em;text-wrap:balance}
.hero p,.lx-section :is(p,li,label,dd),#prezzi :is(p,li),.final-cta p{letter-spacing:0;word-spacing:normal;text-wrap:pretty}
.lx-amount,.lx-funnel b,.lx-metrics b,.lx-calc-panel output,.pricing-price{font-variant-numeric:tabular-nums}

/* Type: a 12px floor for everything that was set at 8-11px */
.section-eyebrow,.lx-section .section-eyebrow{font-size:12px;letter-spacing:.1em}
.lx-tile-label,.lx-scene>small,.lx-mobile-scene>small,.lx-study small,.lx-demo-empty>span{font-size:12px;letter-spacing:.08em}
.lx-caption,.lx-screen .lx-window .lx-caption{font-size:12px!important}
.lx-window,.lx-chat-input,.lx-text-link,.lx-task,.lx-task small,.lx-amount small,.lx-metrics span,.lx-study span,
.lx-streak small,.lx-streak>span,.lx-week>*,.lx-match-list>div,.lx-match-list small,.lx-result p,.lx-result dt,.lx-result dd,
.lx-funnel span,.lx-level,.lx-team-row,.lx-chips span,#lx-finder-form label,#prezzi .lx-plan-badge{font-size:12px}
.lx-week>*{width:30px;height:32px}
.lx-step:not(.lx-active){opacity:.62}

/* Surfaces: decorative grid and coloured halos give way to neutral depth */
.hero:before{display:none}
.btn-primary:not(#appShell *),.btn-primary:not(#appShell *):hover{box-shadow:0 1px 2px rgba(0,0,0,.3),0 10px 22px -12px rgba(0,0,0,.7)}
.product-preview{box-shadow:0 40px 80px -30px rgba(0,0,0,.75);border-color:var(--border-hover)}
.product-preview .preview-dot{box-shadow:none}
.lx-mascot img{filter:none}
#prezzi .pricing-card.featured{box-shadow:0 30px 70px -32px rgba(0,0,0,.8)}
.nav-links a.bizlee-affiliates-link,.nav-links a.bizlee-affiliates-link:hover{box-shadow:none}

/* Bento: close the hole left in the third column */
@media(min-width:1001px){
  .lx-tile:has(.lx-streak){grid-column:span 2}
  .lx-finder{grid-column:1/-1}
}

/* Header: logo and language selector were touching on phones */
@media(max-width:700px){
  .nav-inner{gap:10px}
  .nav-inner .logo{flex:none}
  .nav-right{margin-left:auto;gap:8px;min-width:0}
  .nav-right .btn-ghost{padding-inline:4px}
  .nav-inner select{max-width:98px}
}

/* Payment dialog: separate the decision from the exits */
#bizleePaymentOverlay{background:rgba(1,0,31,.92)}
#bizleePaymentOverlay .payment-card{box-shadow:0 30px 70px -30px rgba(0,0,0,.85)}
#bizleePaymentOverlay label{display:block;margin-top:20px;font-weight:600;color:#eaf1fa}
#bizleePaymentOverlay select{margin-top:8px}
#bizleePaymentOverlay .bizlee-legal-links{font-size:13px;margin:12px 0 4px}
#bizleePaymentOverlay #bizleePaymentStatus:empty{display:none}
#bizleePaymentOverlay #bizleePaymentCheckout{margin-top:16px}
#bizleePaymentOverlay #bizleePaymentBack{margin-top:14px;padding-top:0}
#bizleePaymentOverlay #bizleePaymentLogout{margin-top:0;font-size:13px;font-weight:500;color:#9eafc6}
#bizleePaymentOverlay :is(h3:focus){outline:none}

/* Subtle landing grid, drawn on the fixed background layer behind all sections. */
.bg-mesh::after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(125,222,221,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(125,222,221,.02) 1px,transparent 1px);background-size:56px 56px;background-position:center top}
.hero{background:radial-gradient(ellipse at 50% 85%,rgba(90,192,191,.12),transparent 65%)}
.final-cta{background-color:transparent}

/* Hard-idea subtitle and jargon definitions. */
.not-for-beginners{margin:6px 0 0;color:#efc27a;font-size:13px;font-weight:600}
::highlight(bizlee-term){text-decoration:underline dotted #7ddedd 1px;text-underline-offset:3px}
#bizleeGlossaryTip{position:fixed;z-index:2147483000;max-width:min(280px,calc(100vw - 16px));padding:9px 12px;border:1px solid rgba(125,222,221,.45);border-radius:9px;background:#0e1c30;color:#eaf1fa;font-size:13px;line-height:1.45;pointer-events:none;box-shadow:0 8px 24px rgba(0,0,0,.45)}
#bizleeGlossaryTip[hidden]{display:none}

/* Registration/checkout modal: shorter, rounder, close stays reachable. */
#modalOverlay{align-items:flex-start}
#modalOverlay .modal{display:flex;flex-direction:column;padding:22px 26px 26px;border-radius:26px;max-height:calc(100dvh - 32px);overflow-y:auto}
#modalOverlay .modal-close{position:sticky;top:0;align-self:flex-end;margin:0 -6px -30px 0;z-index:3;background:var(--bg-solid)}

/* Close buttons: perfect circle with a drawn, centred X (the "×" glyph sits off-centre in most fonts). */
.modal-close,.profile-upgrade-close{box-sizing:border-box;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;flex:0 0 40px;aspect-ratio:1;padding:0!important;border-radius:50%!important;border:1px solid var(--border,rgba(255,255,255,.14))!important;background:rgba(255,255,255,.05);color:var(--text-muted,#aebbd3);font-size:0!important;line-height:0!important;display:grid!important;place-items:center;cursor:pointer;transition:transform .2s cubic-bezier(.2,1.4,.4,1),border-color .15s,color .15s,background .15s}
.modal-close::before,.modal-close::after,.profile-upgrade-close::before,.profile-upgrade-close::after{content:"";position:absolute;left:50%;top:50%;width:16px;height:2px;border-radius:2px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
.modal-close::after,.profile-upgrade-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.modal-close:hover,.profile-upgrade-close:hover{color:var(--accent,#ff6fb5);border-color:var(--accent,#ff6fb5)!important;transform:rotate(90deg)}
.modal-close:active,.profile-upgrade-close:active{transform:rotate(90deg) scale(.92)}
#modalOverlay .modal-close{background:var(--bg-solid,#0d1a33)}
.profile-upgrade-close{right:16px;top:14px}
.mac-download-choices a.mac-recommended{border-color:#5ac0bf!important;box-shadow:0 0 0 2px rgba(90,192,191,.35),0 6px 18px rgba(90,192,191,.18)}.mac-recommended-tag{display:inline-block;align-self:flex-start;margin-bottom:6px;padding:3px 9px;border-radius:999px;background:#5ac0bf;color:#05202a;font:800 11px/1.3 Inter,system-ui,sans-serif;font-style:normal;letter-spacing:.02em}
