/* ============================================================================
   th-pricing.css — Pricing page on the theme-lab shell ($th_lab_layout).
   Binds tokens.css only. Zero raw brand hex.
   ============================================================================ */

/* Bridge front-layout tokens so shared includes (advisor) inherit lab colors */
body.page-pricing{
    --th-bg:var(--bg);
    --th-bg-elevated:var(--bg-2);
    --th-bg-mid:var(--bg-2);
    --th-accent:var(--blue);
    --th-accent-soft:var(--blue-light);
    --th-accent-dim:var(--blue);
    --th-text:var(--white);
    --th-muted:var(--gray);
    --th-border:var(--gray-line);
    --th-border-soft:var(--gray-line);
    --th-card:var(--bg-card);
    --th-card-strong:var(--bg-2);
    --th-shadow:0 20px 48px color-mix(in srgb, var(--black) 45%, transparent);
    --th-shadow-sm:0 8px 24px color-mix(in srgb, var(--black) 30%, transparent);
    --th-radius:16px;
    --th-radius-lg:22px;
    --th-font-display:var(--font-display);
    --th-font-body:var(--font-body);
}

/* FA glyphs used by shared advisor include */
body.page-pricing i.fa{
    font-style:normal;font-family:inherit;speak:never;
}
body.page-pricing i.fa-check::before{content:"✓";color:var(--blue);font-weight:700}
body.page-pricing i.fa-times::before{content:"\00d7";font-weight:700;font-size:1.25rem;line-height:1}
body.page-pricing i.fa-comment-dots::before{content:"\25CF";color:var(--blue);font-size:.9rem}
body.page-pricing i.fa-robot::before{content:""}

/* Map front button classes used by shared includes → lab button look */
body.page-pricing .th-btn-primary,
body.page-pricing .th-btn-ghost{
    display:inline-flex;align-items:center;justify-content:center;
    border-radius:11px;text-decoration:none;border:1px solid transparent;
    font-family:var(--font-body);font-weight:700;letter-spacing:.4px;
    padding:12px 22px;line-height:1.2;cursor:pointer;
    transition:transform .25s var(--ease),box-shadow .25s var(--ease),
        border-color .25s var(--ease),background .25s var(--ease),color .25s var(--ease);
}
body.page-pricing .th-btn-primary{
    background:var(--white);color:var(--bg);
}
body.page-pricing .th-btn-primary:hover{box-shadow:0 12px 32px var(--blue-a20)}
body.page-pricing .th-btn-ghost{
    background:transparent;color:var(--blue);border-color:transparent;padding:12px 10px;
}
body.page-pricing .th-btn-ghost:hover{color:var(--blue-light)}
@media(hover:hover){
    body.page-pricing .th-btn-primary:hover{transform:translateY(-2px)}
}

/* ---- Masthead ---- */
.pricing-masthead{position:relative;overflow:hidden;background:var(--bg);
    border-bottom:1px solid var(--gray-line)}
.pricing-masthead-inner{position:relative;z-index:1;
    padding-top:clamp(64px,9vw,110px);padding-bottom:clamp(48px,7vw,84px)}
.pricing-masthead-inner .th-giant{max-width:16ch;margin:0}
.pricing-masthead-inner .lede{margin-top:1.4rem;max-width:54ch;color:var(--gray);
    font-size:clamp(1rem,1.3vw,1.14rem);font-weight:300;line-height:1.75}
.pricing-masthead-inner .lede strong{color:var(--white);font-weight:600}
.pricing-sync-meta{
    margin:1.4rem 0 0;font-family:var(--font-data);font-size:.68rem;
    letter-spacing:1.4px;text-transform:uppercase;color:var(--gray)}

/* ---- How we price ---- */
.pricing-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;margin:0 0 clamp(28px,4vw,40px)}
.pricing-path{
    display:flex;flex-direction:column;gap:.45rem;min-width:0;
    padding:clamp(18px,2.5vw,24px);text-decoration:none;
    background:var(--bg-2);border:1px solid var(--gray-line);border-radius:14px;
    transition:border-color .3s var(--ease),transform .45s var(--ease-spring)}
@media(hover:hover){
    .pricing-path:hover{border-color:var(--blue-a20);transform:translateY(-2px)}
}
.pricing-path:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.pricing-path-label{font-family:var(--font-display);font-weight:700;
    font-size:1.05rem;letter-spacing:-.2px;color:var(--white)}
.pricing-path-copy{font-size:.9rem;line-height:1.5;color:var(--gray)}
.pricing-moment{margin-top:0}
@media(max-width:860px){
    .pricing-paths{grid-template-columns:1fr}
}

/* ---- Plan cards (MSP + AI) ---- */
.pricing-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;align-items:stretch}
.pricing-plan-card{position:relative;display:flex;flex-direction:column;min-width:0;
    background:var(--bg-2);border:1px solid var(--gray-line);border-radius:16px;
    padding:28px 24px 26px;
    transition:transform .45s var(--ease-spring),border-color .3s var(--ease)}
@media(hover:hover){
    .pricing-plan-card:hover{transform:translateY(-3px);border-color:var(--blue-a20)}
}
.pricing-plan-card--featured{border-color:var(--blue-a20);padding-top:2.4rem;
    box-shadow:0 18px 40px var(--blue-a08)}
.pricing-popular-badge{
    position:absolute;top:.9rem;right:1rem;
    font-family:var(--font-data);font-size:.64rem;font-weight:700;
    letter-spacing:1.2px;text-transform:uppercase;
    color:var(--bg);background:var(--blue);
    padding:.35rem .65rem;border-radius:999px;line-height:1.2}
.pricing-plan-header{margin-bottom:.35rem;padding-bottom:.85rem;
    border-bottom:1px solid var(--gray-line)}
.pricing-plan-name{margin:0 0 .35rem;font-family:var(--font-display);font-weight:700;
    font-size:1.28rem;letter-spacing:-.2px;color:var(--white)}
.pricing-plan-price{margin:0 0 .45rem}
.pricing-price-amount{font-family:var(--font-data);font-size:1.85rem;font-weight:700;color:var(--blue)}
.pricing-price-unit{font-size:.92rem;color:var(--gray);font-weight:600}
.pricing-plan-tagline{margin:0;font-size:.9rem;line-height:1.5;color:var(--gray)}
.pricing-includes-label{font-family:var(--font-data);font-size:.66rem;font-weight:700;
    letter-spacing:1.4px;text-transform:uppercase;color:var(--gray);margin:.9rem 0 .5rem}
.pricing-plan-list{margin:0;padding:0;list-style:none;flex:1 1 auto;
    display:flex;flex-direction:column;gap:.45rem}
.pricing-plan-list li{position:relative;padding-left:1.25rem;font-size:.9rem;
    line-height:1.45;color:var(--white)}
.pricing-plan-list li::before{content:"";position:absolute;left:0;top:.52em;width:7px;height:7px;
    border-radius:50%;background:var(--blue-a20);border:1px solid var(--blue)}
.pricing-plan-foot{margin-top:1.25rem}
.pricing-plan-foot .btn{width:100%;justify-content:center}
.pricing-section-link{margin:1.35rem 0 0}
@media(max-width:1020px){.pricing-plan-grid{grid-template-columns:1fr}}
@media(min-width:721px) and (max-width:1020px){
    .pricing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .pricing-plan-card--featured{grid-column:1/-1}
}

/* ---- Jump nav — responsive category grid (no horizontal scrollbar) ---- */
.pricing-jump{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));
    gap:.5rem;
    position:sticky;top:72px;z-index:20;
    margin:1.25rem 0 0;padding:.7rem 0 .95rem;
    background:linear-gradient(180deg, var(--bg) 78%, transparent);
    overflow:visible}
.pricing-jump-link{
    display:flex;align-items:center;justify-content:space-between;gap:.65rem;
    min-width:0;width:100%;
    padding:.62rem .85rem;border:1px solid var(--gray-line);border-radius:12px;
    color:var(--white);font-family:var(--font-body);font-size:.78rem;font-weight:600;
    line-height:1.3;text-decoration:none;background:var(--bg-card);
    transition:border-color .25s var(--ease),color .25s var(--ease),background .25s var(--ease)}
.pricing-jump-label{
    min-width:0;flex:1 1 auto;line-height:1.3}
.pricing-jump-link:hover,
.pricing-jump-link:focus-visible{
    border-color:var(--blue);color:var(--blue);outline:none;
    background:var(--blue-a08)}
.pricing-jump-link:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.pricing-jump-count{
    flex:0 0 auto;
    font-family:var(--font-data);font-size:.64rem;color:var(--gray);
    background:var(--blue-a08);border-radius:999px;padding:.12rem .4rem;line-height:1.3}
@media(max-width:720px){
    .pricing-jump{
        grid-template-columns:1fr;
        gap:.4rem;
        position:static; /* tall list; sticky would eat the viewport */
        background:none;padding:.35rem 0 0}
    .pricing-jump-link{font-size:.8rem;padding:.58rem .8rem;border-radius:10px}
}

/* ---- Rate groups / rows ---- */
.pricing-group-head{
    display:flex;align-items:flex-start;justify-content:space-between;
    gap:1rem;margin-bottom:.35rem}
.pricing-group-head .kicker{margin-bottom:0}
.pricing-group-badge{
    flex-shrink:0;margin-top:.35rem;
    font-family:var(--font-data);font-size:.7rem;letter-spacing:1px;text-transform:uppercase;
    color:var(--gray);border:1px solid var(--gray-line);border-radius:999px;
    padding:.3rem .65rem;white-space:nowrap}
.pricing-rate-list{
    display:flex;flex-direction:column;gap:0;
    border:1px solid var(--gray-line);border-radius:16px;
    background:var(--bg-2);overflow:hidden}
.pricing-rate-row{
    display:grid;grid-template-columns:minmax(0,1.6fr) minmax(10rem,.9fr);
    gap:1rem 1.5rem;align-items:start;
    padding:clamp(16px,2.2vw,22px) clamp(16px,2.4vw,24px);
    border-bottom:1px solid var(--gray-line)}
.pricing-rate-row:last-child{border-bottom:0}
.pricing-rate-name{margin:0 0 .35rem;font-family:var(--font-display);font-weight:700;
    font-size:1.05rem;letter-spacing:-.15px;color:var(--white);line-height:1.3}
.pricing-rate-desc{margin:0 0 .55rem;font-size:.88rem;line-height:1.5;color:var(--gray)}
.pricing-type-badge{
    display:inline-block;font-family:var(--font-data);font-size:.64rem;font-weight:700;
    letter-spacing:1.1px;text-transform:uppercase;color:var(--gray);
    border:1px solid var(--gray-line);border-radius:999px;padding:.2rem .5rem}
.pricing-rate-meta{display:flex;flex-direction:column;align-items:flex-end;gap:.45rem;text-align:right}
.pricing-rate-price{font-family:var(--font-data);font-size:1.15rem;font-weight:700;color:var(--blue);
    white-space:nowrap}
.pricing-rate-qty{font-size:.78rem;font-weight:600;color:var(--gray)}
.pricing-rate-note{margin:0;font-size:.8rem;line-height:1.4;color:var(--blue);max-width:22ch}
.pricing-learn-btn{padding:8px 14px!important;min-height:40px;font-size:.72rem!important}
@media(max-width:720px){
    .pricing-group-head{flex-direction:column;align-items:flex-start}
    .pricing-rate-row{grid-template-columns:1fr;gap:.75rem}
    .pricing-rate-meta{align-items:flex-start;text-align:left}
}

/* ---- Bundles ---- */
.pricing-bundle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.pricing-bundle-card{
    display:flex;flex-direction:column;min-width:0;
    background:var(--bg-2);border:1px solid var(--gray-line);border-radius:16px;
    padding:clamp(20px,2.5vw,28px)}
.pricing-bundle-name{margin:0 0 .4rem;font-family:var(--font-display);font-weight:700;
    font-size:1.15rem;color:var(--white)}
.pricing-bundle-price{margin:0 0 .65rem;font-family:var(--font-data);font-size:1.45rem;
    font-weight:700;color:var(--blue)}
.pricing-bundle-desc{margin:0 0 .75rem;font-size:.9rem;line-height:1.5;color:var(--gray)}
.pricing-bundle-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.4rem}
.pricing-bundle-list li{position:relative;padding-left:1.15rem;font-size:.88rem;
    line-height:1.45;color:var(--white)}
.pricing-bundle-list li::before{content:"";position:absolute;left:0;top:.52em;width:6px;height:6px;
    border-radius:50%;background:var(--blue-a20);border:1px solid var(--blue)}
@media(max-width:1020px){.pricing-bundle-grid{grid-template-columns:1fr}}
@media(min-width:721px) and (max-width:1020px){
    .pricing-bundle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---- Hourly panel / fallback ---- */
.pricing-panel{
    max-width:52rem;background:var(--bg-2);border:1px solid var(--gray-line);
    border-radius:16px;padding:clamp(22px,3vw,32px)}
.pricing-panel p{margin:0 0 .9rem;color:var(--gray);line-height:1.7;font-size:.98rem}
.pricing-panel p:last-child{margin-bottom:0}
.pricing-panel strong{color:var(--white);font-weight:600}
.pricing-panel a:not(.btn){color:var(--blue);font-weight:600;text-decoration:none}
.pricing-panel a:not(.btn):hover{color:var(--blue-light)}

.pricing-labor-grid{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:.5rem}
.pricing-labor-card.pricing-panel{max-width:none;padding:clamp(18px,2.4vw,24px)}
.pricing-labor-role{
    display:block;margin:0 0 .45rem;font-size:.72rem;letter-spacing:.08em;
    text-transform:uppercase;color:var(--blue);font-weight:700}
.pricing-labor-price{margin:0 0 .25rem!important;font-family:var(--font-data);font-size:1.45rem;line-height:1.2}
.pricing-labor-name{margin:0 0 .55rem!important;font-size:.88rem;color:var(--white)!important}
.pricing-labor-blurb{margin:0!important;font-size:.86rem;line-height:1.5}
@media(max-width:1020px){.pricing-labor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pricing-labor-grid{grid-template-columns:1fr}}

/* ---- Service chips ---- */
.pricing-service-chips{display:flex;flex-wrap:wrap;gap:.55rem}
.pricing-service-chip{
    display:inline-flex;align-items:center;padding:.55rem .9rem;
    border:1px solid var(--gray-line);border-radius:999px;
    background:var(--bg-2);color:var(--white);text-decoration:none;
    font-size:.86rem;font-weight:600;line-height:1.2;
    transition:border-color .25s var(--ease),color .25s var(--ease)}
.pricing-service-chip:hover,
.pricing-service-chip:focus-visible{border-color:var(--blue);color:var(--blue);outline:none}
.pricing-service-chip:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---- Pricing advisor: Theme Lab modal widget ---- */
body.page-pricing i.fa-paper-plane::before{content:"↑";font-weight:700;color:inherit}

.th-advisor-modal-launcher-root{
    position:fixed;left:max(1rem,env(safe-area-inset-left,0px));
    bottom:max(1rem,env(safe-area-inset-bottom,0px));
    z-index:80;pointer-events:none}
@media(max-width:860px){
    .th-advisor-modal-launcher-root{
        bottom:calc(4.75rem + env(safe-area-inset-bottom,0px))}
}
body:has(.th-advisor-modal-launcher-root) .grecaptcha-badge{visibility:hidden!important}

.th-advisor-float-launcher{
    pointer-events:auto;display:inline-flex;align-items:center;gap:.65rem;
    border:1px solid var(--blue-a20);border-radius:999px;padding:.85rem 1.25rem;
    background:var(--blue-a12);color:var(--white);
    font:inherit;font-weight:600;font-size:.95rem;
    box-shadow:0 10px 28px color-mix(in srgb, var(--black) 40%, transparent);
    cursor:pointer;transition:transform .15s var(--ease),border-color .15s var(--ease)}
.th-advisor-float-launcher:hover{transform:translateY(-1px);border-color:var(--blue)}
.th-advisor-float-launcher:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.th-advisor-float-launcher-icon{display:inline-flex;align-items:center;justify-content:center;
    width:1.4rem;height:1.4rem;color:var(--blue)}
@media(max-width:520px){
    .th-advisor-float-launcher-label{display:none}
    .th-advisor-float-launcher{padding:.9rem}
}

.th-modal-advisor-panel{width:min(720px,100%)!important;height:min(88vh,900px)}
.th-modal-advisor-lead{
    margin:.65rem 0 0;max-width:48ch;color:var(--gray);
    font-size:.9rem;line-height:1.55;font-weight:400}
.th-modal-advisor-lead strong{color:var(--white);font-weight:600}
.th-modal-advisor-body{
    flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}

.th-service-advisor--modal{
    flex:1 1 auto;min-height:0;display:flex;flex-direction:column;width:100%;height:100%}
.th-service-advisor--modal .th-service-advisor-panel{
    flex:1 1 auto;min-height:0;max-height:none;border:0;border-radius:0;
    box-shadow:none;width:100%;
    display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
.th-service-advisor--modal .th-service-advisor-thread-wrap{
    flex:1 1 auto;overflow-y:auto;padding:1.1rem 1.25rem .5rem;min-height:160px;
    scrollbar-width:thin;scrollbar-color:var(--blue-a20) transparent}
.th-service-advisor--modal .th-service-advisor-thread{
    display:flex;flex-direction:column;gap:.85rem}
.th-service-advisor--modal .th-advisor-msg{
    max-width:92%;padding:.75rem 1rem;border-radius:14px;
    font-size:.93rem;line-height:1.55;color:var(--white)}
.th-service-advisor--modal .th-advisor-msg--user{
    align-self:flex-end;background:var(--blue-a12);border:1px solid var(--blue-a20)}
.th-service-advisor--modal .th-advisor-msg--assistant{
    align-self:flex-start;background:var(--bg-card);border:1px solid var(--gray-line)}
.th-service-advisor--modal .th-advisor-typing{color:var(--gray);font-style:italic}
.th-service-advisor--modal .th-service-advisor-starters{
    display:flex;flex-wrap:wrap;gap:.5rem;padding:.35rem 1.25rem .85rem}
.th-service-advisor--modal .th-service-advisor-starter{
    border:1px solid var(--gray-line);background:transparent;color:var(--white);
    border-radius:999px;padding:.45rem .9rem;font-size:.82rem;line-height:1.3;
    cursor:pointer;font:inherit;text-align:left;
    transition:border-color .2s var(--ease),background .2s var(--ease)}
.th-service-advisor--modal .th-service-advisor-starter:hover{
    border-color:var(--blue);background:var(--blue-a08)}
.th-service-advisor--modal .th-service-advisor-composer{
    display:flex;align-items:flex-end;gap:.5rem;padding:.75rem 1.25rem .55rem;
    border-top:1px solid var(--gray-line);
    background:color-mix(in srgb, var(--black) 18%, transparent)}
.th-service-advisor--modal .th-advisor-honeypot{
    position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.th-service-advisor--modal .th-service-advisor-input{
    flex:1;resize:none;min-height:44px;max-height:120px;
    border:1px solid var(--gray-line);border-radius:12px;
    background:var(--bg-2);color:var(--white);padding:.65rem .85rem;
    font:inherit;line-height:1.4}
.th-service-advisor--modal .th-service-advisor-input:focus{
    outline:none;border-color:var(--blue);box-shadow:0 0 0 2px var(--blue-a20)}
.th-service-advisor--modal .th-service-advisor-send{
    flex:0 0 44px;width:44px;height:44px;border-radius:12px;
    border:1px solid var(--blue);background:var(--blue-a12);color:var(--blue);cursor:pointer}
.th-service-advisor--modal .th-service-advisor-send:disabled{opacity:.5;cursor:not-allowed}
.th-service-advisor--modal .th-service-advisor-foot{
    padding:.45rem 1.25rem 1rem;display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}
.th-service-advisor--modal .th-service-advisor-disclaimer{
    color:var(--gray);font-size:.78rem;line-height:1.45;margin:0}
.th-service-advisor--modal .th-service-advisor-disclaimer a{color:var(--blue)}
.th-service-advisor--modal .th-service-advisor-cta-bar{
    display:flex;flex-wrap:wrap;gap:.5rem;width:100%}
.th-service-advisor--modal .th-advisor-inline-cta{
    display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem;padding-top:.85rem;
    border-top:1px solid var(--gray-line)}

body.page-pricing .th-service-advisor-dialog{
    border:1px solid var(--gray-line);border-radius:16px;padding:1.25rem;
    background:var(--bg-2);color:var(--white);max-width:min(440px,92vw)}
body.page-pricing .th-service-advisor-dialog::backdrop{
    background:color-mix(in srgb, var(--black) 65%, transparent)}
body.page-pricing .form-label{display:block;margin-bottom:.35rem;font-size:.85rem;color:var(--gray)}
body.page-pricing .form-control,
body.page-pricing .form-select{
    width:100%;padding:.65rem .75rem;border-radius:10px;border:1px solid var(--gray-line);
    background:var(--bg);color:var(--white);font:inherit}
body.page-pricing .form-control:focus,
body.page-pricing .form-select:focus{
    outline:2px solid var(--blue);outline-offset:1px}
body.page-pricing .mb-0{margin-bottom:0!important}
body.page-pricing .mb-2{margin-bottom:.5rem!important}
body.page-pricing .mb-3{margin-bottom:1rem!important}
body.page-pricing .mt-2{margin-top:.5rem!important}
body.page-pricing .small{font-size:.85rem}
body.page-pricing .d-flex{display:flex}
body.page-pricing .flex-wrap{flex-wrap:wrap}
body.page-pricing .gap-2{gap:.5rem}
body.page-pricing .visually-hidden{
    position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

body.page-pricing .th-advisor-tier-options{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}
body.page-pricing .th-advisor-tier-card{
    display:block;cursor:pointer;border:1px solid var(--gray-line);border-radius:12px;
    padding:.75rem;background:var(--bg)}
body.page-pricing .th-advisor-tier-card--priority{border-color:var(--blue-a20)}
body.page-pricing .th-advisor-tier-input{margin-right:.4rem}
body.page-pricing .th-advisor-tier-title{display:block;font-weight:700;color:var(--white)}
body.page-pricing .th-advisor-tier-price{display:block;font-family:var(--font-data);color:var(--blue);margin-top:.2rem}
body.page-pricing .th-advisor-tier-note{display:block;font-size:.78rem;color:var(--gray);margin-top:.15rem}
@media(max-width:520px){
    body.page-pricing .th-advisor-tier-options{grid-template-columns:1fr}
}
