/* =========================================================
   Landing page, quote wizard, website audit & chat widget.
   Colours come from the theme variables in style.css / theme_css().
   ========================================================= */
[hidden] { display: none !important; }

/* ---------- Landing hero ---------- */
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 160px 0 120px; background: radial-gradient(ellipse at 20% 0%, var(--dark-2) 0%, var(--dark) 62%); }
.lp-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.lp-hero h1 .text-gradient-anim { display: inline; }
.lp-sub { color: var(--on-dark); font-size: 1.12rem; max-width: 560px; }
.lp-bullets { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.lp-bullets li { display: flex; gap: .6rem; align-items: flex-start; color: var(--on-dark-2); font-weight: 500; }
.lp-bullets i { color: var(--accent); font-size: 1.1rem; margin-top: .1rem; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.lp-trust strong { display: block; font-family: var(--ff-head); font-size: 1.6rem; line-height: 1.1; color: #fff; }
.lp-trust strong i { color: #fbbf24; font-size: 1rem; margin-left: .2rem; vertical-align: .15em; }
.lp-trust small { color: var(--on-dark); font-size: .8rem; }
.landing-page .counter-band { margin-top: -50px; }

/* ---------- Quote wizard ---------- */
.wizard-card { position: relative; background: #fff; color: var(--text); border-radius: 26px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.wizard-offer { background: var(--grad-cta); color: #fff; font-weight: 700; font-size: .85rem; padding: .6rem 1.4rem; text-align: center; }
.wizard-head { padding: 1.6rem 1.8rem 0; }
.wizard-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.wizard-head p { color: var(--muted); font-size: .88rem; margin: .2rem 0 1rem; }
.wizard-progress { height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.wizard-progress span { display: block; height: 100%; background: var(--grad-cta); border-radius: 6px; transition: width .4s ease; }
.wizard-steps-label { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: .5rem 0 0; font-size: .75rem; font-weight: 700; color: var(--muted); }
.wizard-steps-label li.active { color: var(--accent-dark); }
.wizard-steps-label li.done { color: var(--primary); }
.quote-wizard { padding: 1.2rem 1.8rem 1.8rem; }
.wizard-step { display: none; border: 0; padding: 0; margin: 0; min-width: 0; animation: stepIn .35s ease; }
.wizard-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.wizard-step legend { font-family: var(--ff-head); font-size: 1.05rem; font-weight: 700; margin-bottom: .9rem; float: none; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice-card { position: relative; cursor: pointer; margin: 0; }
.choice-card input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card > span { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .85rem .9rem; border: 1.5px solid var(--border); border-radius: 14px; transition: .2s; background: #fff; }
.choice-card i { font-size: 1.3rem; color: var(--primary); margin-bottom: .2rem; }
.choice-card strong { font-size: .9rem; line-height: 1.25; }
.choice-card small { color: var(--muted); font-size: .74rem; line-height: 1.35; }
.choice-card:hover > span { border-color: rgba(var(--primary-rgb), .45); transform: translateY(-2px); }
.choice-card input:checked + span { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.choice-card input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.wizard-label { font-weight: 700; font-size: .85rem; margin: .4rem 0 .5rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .6rem; }
.chip { position: relative; cursor: pointer; margin: 0; }
.chip span { display: inline-block; padding: .45rem .95rem; border-radius: 30px; border: 1.5px solid var(--border); font-size: .85rem; font-weight: 600; transition: .2s; }
.chip:hover span { border-color: rgba(var(--primary-rgb), .45); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-error { color: #dc2626; font-size: .82rem; font-weight: 600; min-height: 1.2em; margin-top: .4rem; }
.wizard-back { flex-shrink: 0; width: 52px; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-size: 1.1rem; }
.wizard-back:hover { border-color: var(--primary); color: var(--primary); }
.wizard-privacy { text-align: center; color: var(--muted); font-size: .78rem; margin: .8rem 0 0; }
.wizard-success { text-align: center; padding: 1rem 0 .4rem; animation: stepIn .4s ease; }
.ws-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 2.3rem; color: #fff; background: #22c55e; box-shadow: 0 0 0 10px rgba(34, 197, 94, .15); }
.wizard-success h3 { font-weight: 800; }
.wizard-success p { color: var(--muted); }
.ws-next { list-style: none; padding: 0; margin: 1rem auto 1.4rem; display: grid; gap: .5rem; max-width: 280px; text-align: left; font-weight: 600; font-size: .9rem; }
.ws-next i { color: var(--primary); margin-right: .4rem; }

/* ---------- Benefits & packages ---------- */
.lp-benefit { height: 100%; padding: 2rem 1.8rem; border-radius: 24px; background: #fff; border: 1px solid var(--border); transition: .35s; }
.lp-benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.lb-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; color: var(--primary); background: rgba(var(--primary-rgb), .08); margin-bottom: 1.2rem; transition: .35s; }
.lp-benefit:hover .lb-icon { background: var(--grad); color: #fff; transform: rotate(-6deg); }
.lp-benefit h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.lp-benefit p { color: var(--muted); margin: 0; font-size: .95rem; }
.lp-package { position: relative; height: 100%; display: flex; flex-direction: column; padding: 2.2rem 1.9rem; border-radius: 28px; background: #fff; border: 1px solid var(--border); transition: .35s; }
.lp-package:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.lp-package.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-cta) border-box; box-shadow: 0 30px 60px -25px rgba(var(--accent-rgb), .55); }
.lp-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-cta); color: #fff; font-size: .75rem; font-weight: 800; padding: .35rem 1rem; border-radius: 30px; white-space: nowrap; }
.lp-package h3 { font-size: 1.4rem; font-weight: 800; margin: 0; }
.lp-pk-sub { color: var(--muted); font-size: .9rem; margin: .2rem 0 1.2rem; }
.lp-price { padding: 1rem 0 1.2rem; border-bottom: 1px dashed var(--border); margin-bottom: 1.2rem; }
.lp-price small { display: block; color: var(--muted); font-size: .8rem; }
.lp-price strong { font-family: var(--ff-head); font-size: 2.1rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.lp-price .lp-price-custom { font-size: 1.6rem; }
.lp-package ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.lp-package li { display: flex; gap: .55rem; font-size: .93rem; }
.lp-package li i { color: var(--primary); }

/* ---------- Free audit ---------- */
.lp-audit h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
.lp-audit-lead { color: var(--on-dark) !important; }
.lp-audit-lead strong { color: #fff; }
.lp-audit-points { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; color: var(--on-dark-2); font-weight: 500; font-size: .92rem; }
.lp-audit-points i { color: var(--accent); margin-right: .4rem; }
.audit-form .float-field input { background: rgba(255, 255, 255, .96); border-color: transparent; }
.audit-form .float-field .err { color: #fca5a5; }
.audit-panel { background: #fff; color: var(--text); border-radius: 28px; padding: 2rem; min-height: 420px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.audit-empty, .audit-loading { text-align: center; padding: 3rem 1rem; }
.audit-empty h3, .audit-loading h3 { font-size: 1.25rem; margin: 1.2rem 0 .4rem; }
.audit-empty p { color: var(--muted); margin: 0; }
.audit-gauge-demo { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.audit-gauge-demo span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ff-head); font-size: 2.2rem; font-weight: 800; color: var(--muted); }
.audit-gauge-demo svg, .ar-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.audit-gauge-demo circle, .ar-gauge circle { fill: none; stroke: var(--soft); stroke-width: 10; }
.audit-gauge-demo circle.val { stroke: var(--border); stroke-dasharray: 327; stroke-linecap: round; }
.audit-spinner { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 6px solid var(--soft); border-top-color: var(--accent); animation: spinS .9s linear infinite; }
.audit-steps { list-style: none; padding: 0; margin: 1.4rem auto 0; max-width: 280px; text-align: left; display: grid; gap: .55rem; }
.audit-steps li { color: var(--muted); font-size: .92rem; padding-left: 1.8rem; position: relative; }
.audit-steps li::before { content: "\F28A"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--border); }
.audit-steps li.active { color: var(--text); font-weight: 600; }
.audit-steps li.active::before { content: "\F130"; color: var(--accent); animation: spinS 1s linear infinite; }
.audit-steps li.done::before { content: "\F26A"; color: #22c55e; }
.ar-head { display: flex; gap: 1.4rem; align-items: center; padding-bottom: 1.4rem; border-bottom: 1px solid var(--border); margin-bottom: 1.2rem; }
.ar-gauge { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.ar-gauge circle.val { stroke-dasharray: 327; stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2, .8, .2, 1); }
.ar-gauge.good circle.val { stroke: #22c55e; } .ar-gauge.mid circle.val { stroke: #f59e0b; } .ar-gauge.bad circle.val { stroke: #ef4444; }
.ar-gauge > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ar-gauge strong { font-family: var(--ff-head); font-size: 2.3rem; font-weight: 800; }
.ar-gauge small { color: var(--muted); font-size: .8rem; }
.ar-grade { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .7rem; border-radius: 20px; }
.ar-grade.good { background: #dcfce7; color: #15803d; } .ar-grade.mid { background: #fef3c7; color: #b45309; } .ar-grade.bad { background: #fee2e2; color: #b91c1c; }
.ar-meta h3 { font-size: 1.15rem; margin: .4rem 0 .6rem; word-break: break-all; }
.ar-stats { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font-size: .82rem; color: var(--muted); }
.ar-stats .ok { color: #15803d; } .ar-stats .warn { color: #b45309; } .ar-stats .bad { color: #b91c1c; }
.ar-checks { list-style: none; padding: 0 .3rem 0 0; margin: 0; display: grid; gap: .55rem; max-height: 440px; overflow-y: auto; }
.ar-checks li { display: flex; gap: .8rem; padding: .8rem 1rem; border-radius: 14px; background: var(--soft); }
.ar-checks li > i { font-size: 1.15rem; margin-top: .1rem; }
.ar-checks li.pass > i { color: #22c55e; } .ar-checks li.warn > i { color: #f59e0b; } .ar-checks li.fail > i { color: #ef4444; }
.ar-checks strong { display: block; font-size: .92rem; }
.ar-checks span { display: block; color: var(--muted); font-size: .84rem; }
.ar-checks em { display: block; font-style: normal; font-size: .82rem; color: var(--text); margin-top: .25rem; }
.ar-checks em::before { content: "💡 "; }
.ar-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-radius: 18px; background: rgba(var(--accent-rgb), .08); border: 1px solid rgba(var(--accent-rgb), .25); }
.ar-cta strong { display: block; font-family: var(--ff-head); }
.ar-cta span { color: var(--muted); font-size: .88rem; }

/* ---------- Mobile sticky bar ---------- */
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1045; display: flex; background: #fff; box-shadow: 0 -8px 30px rgba(var(--dark-rgb), .15); padding: .5rem; gap: .5rem; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); }
.lp-sticky a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .75rem .4rem; border-radius: 12px; font-weight: 700; font-size: .9rem; color: var(--primary); background: var(--soft); }
.lp-sticky a.wa { color: #fff; background: #25d366; }
.lp-sticky a.go { color: #fff; background: var(--grad-cta); }

/* =========================================================
   Chat widget
   ========================================================= */
.back-top { bottom: 96px; }
.chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 1050; font-family: var(--ff-body); line-height: 1.5; }
.chatbot button { font-family: inherit; cursor: pointer; }
.cb-launcher { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; padding: 0; color: #fff; font-size: 1.6rem; background: var(--grad); box-shadow: 0 14px 30px -8px rgba(var(--primary-rgb), .7); transition: transform .3s; display: grid; place-items: center; }
.cb-launcher:hover { transform: scale(1.07); }
.cb-launcher i { position: absolute; line-height: 1; transition: opacity .3s, transform .3s; }
.cb-ic-close { opacity: 0; transform: rotate(-90deg); font-size: 1.3rem; }
.chatbot.open .cb-ic-open { opacity: 0; transform: rotate(90deg); }
.chatbot.open .cb-ic-close { opacity: 1; transform: none; }
.cb-dot { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; }
.chatbot.open .cb-dot { display: none; }

.cb-teaser { position: absolute; right: 0; bottom: 76px; width: 250px; background: #fff; color: var(--text); padding: .9rem 2rem .9rem 1rem; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; cursor: pointer; animation: stepIn .4s ease; }
.cb-teaser-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); padding: 0 .2rem; }

.cb-panel { position: absolute; right: 0; bottom: 78px; width: 380px; height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -15px rgba(var(--dark-rgb), .45); border: 1px solid var(--border); opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; transition: opacity .25s, transform .25s; }
.chatbot.open .cb-panel { opacity: 1; transform: none; }

.cb-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; color: #fff; background: radial-gradient(ellipse at top left, var(--dark-2), var(--dark)); flex-shrink: 0; }
.cb-avatar { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad-cta); flex-shrink: 0; }
.cb-title { flex: 1; min-width: 0; line-height: 1.25; }
.cb-title strong { display: block; font-family: var(--ff-head); font-size: 1rem; color: #fff; }
.cb-title small { display: block; color: var(--on-dark); font-size: .74rem; }
.cb-online { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: .25rem; vertical-align: middle; }
.cb-head button { width: 34px; height: 34px; border-radius: 10px; border: 0; padding: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; }
.cb-head button:hover { background: rgba(255, 255, 255, .22); }

.cb-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--soft); overscroll-behavior: contain; }
.cb-msg { max-width: 86%; padding: .65rem .95rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; animation: stepIn .25s ease; }
.cb-msg.bot { align-self: flex-start; background: #fff; color: var(--text); border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(var(--dark-rgb), .06); }
.cb-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.cb-msg a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cb-msg.me a { color: #fff; }
.cb-typing { display: flex; gap: 4px; padding: .9rem 1rem; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite ease-in-out; }
.cb-typing span:nth-child(2) { animation-delay: .15s; } .cb-typing span:nth-child(3) { animation-delay: .3s; }

.cb-lead { align-self: stretch; display: grid; gap: .45rem; padding: .9rem; border-radius: 16px; background: #fff; border: 1.5px dashed rgba(var(--accent-rgb), .55); margin: 0; }
.cb-lead strong { font-size: .88rem; color: var(--text); }
.cb-lead strong i { color: var(--accent); margin-right: .25rem; }
.cb-lead input { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: .5rem .75rem; font-size: .88rem; outline: none; background: #fff; color: var(--text); }
.cb-lead input:focus { border-color: var(--primary); }
.cb-lead button { border: 0; border-radius: 10px; padding: .6rem; font-weight: 700; color: #fff; background: var(--grad-cta); }
.cb-lead.done { opacity: .55; }
.cb-lead.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.cb-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem .8rem .1rem; background: var(--soft); border-top: 1px solid var(--border); flex-shrink: 0; }
.cb-quick:empty { display: none; }
.cb-quick button { border: 1.5px solid rgba(var(--primary-rgb), .35); background: #fff; color: var(--primary); border-radius: 30px; padding: .3rem .8rem; font-size: .8rem; font-weight: 600; transition: .2s; margin-bottom: .45rem; }
.cb-quick button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.cb-input { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--border); background: #fff; margin: 0; flex-shrink: 0; }
.cb-input input { flex: 1; min-width: 0; border: 1.5px solid var(--border); border-radius: 30px; padding: .6rem 1rem; outline: none; font-size: .92rem; color: var(--text); background: #fff; }
.cb-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.cb-input button { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; padding: 0; color: #fff; background: var(--grad-cta); display: grid; place-items: center; font-size: 1.05rem; }
.cb-foot { text-align: center; font-size: .7rem; color: var(--muted); padding: 0 0 .5rem; background: #fff; flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .lp-hero { padding: 130px 0 100px; }
  .landing-page .site-footer { padding-bottom: 70px; }
  .landing-page .float-actions, .landing-page .back-top, .landing-page .chatbot { bottom: 84px; }
  .landing-page .back-top { bottom: 158px; }
}
@media (max-width: 575.98px) {
  .choice-card small { display: none; }
  .quote-wizard { padding: 1rem 1.2rem 1.4rem; }
  .wizard-head { padding: 1.3rem 1.2rem 0; }
  .lp-audit-points { grid-template-columns: 1fr; }
  .audit-panel { padding: 1.3rem; }
  .ar-head { flex-direction: column; text-align: center; }
  .ar-stats { justify-content: center; }
  .chatbot { right: 14px; bottom: 16px; }
  .back-top { bottom: 86px; right: 14px; }
  .cb-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .chatbot.open .cb-launcher { display: none; }
  .cb-teaser { width: 220px; }
}
