/* =========================================================
   Marvel Marketing Pro — multi-page components
   Loaded after style.css
   ========================================================= */
.section--alt { background: var(--bg-alt); }
.seen .preloader { display: none; }
.text-gradient { padding-right: .04em; }
.lead a, .acc-item__body a, .notice a { color: var(--brand-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .lead a, :root[data-theme="dark"] .acc-item__body a, :root[data-theme="dark"] .notice a { color: var(--brand-300); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Page wipe (transition between pages) */
.page-wipe { position: fixed; inset: 0; z-index: 9990; background: linear-gradient(135deg, #0b1f4b, #2b549b); display: grid; place-items: center; transform: translateY(100%); pointer-events: none; }
.page-wipe img { width: min(240px, 60vw); opacity: 0; }
.seen .page-wipe { transform: none; animation: wipeFallback 0s 4s forwards; }
.seen .page-wipe img { opacity: 1; }
@keyframes wipeFallback { to { visibility: hidden; } }

/* Mega menus */
.mega--wide { width: 640px; grid-template-columns: repeat(2, 1fr); }
.mega__icon .ico { width: 20px; height: 20px; stroke: #fff; }
.mega__item--sm { align-items: center; padding: 10px 12px; }
.mega__item--sm .mega__icon { width: 34px; height: 34px; border-radius: 10px; }
.mega__all { grid-column: 1 / -1; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; color: var(--brand-600); background: var(--bg-alt); }
:root[data-theme="dark"] .mega__all { color: var(--brand-300); }

/* Offcanvas groups */
.offcanvas { overflow-y: auto; }
.offcanvas__nav { margin-bottom: 30px; }
.offcanvas__nav a, .oc-group__btn { font-size: 26px; padding: 8px 0; }
.oc-group__btn { display: flex; width: 100%; justify-content: space-between; align-items: center; font-family: var(--font-head); font-weight: 600; color: rgba(255,255,255,.85); }
.oc-group__btn span { font-size: 24px; transition: transform .3s; }
.oc-group.is-open .oc-group__btn span { transform: rotate(45deg); }
.oc-group__list { display: none; padding: 4px 0 10px 14px; border-left: 2px solid rgba(147,197,253,.4); }
.oc-group.is-open .oc-group__list { display: block; }
.offcanvas__nav .oc-group__list a { font-size: 17px; font-family: var(--font-body); font-weight: 500; padding: 7px 0; color: rgba(255,255,255,.75); }
.offcanvas__foot { display: grid; gap: 18px; }
.offcanvas__foot p { line-height: 1.9; }

/* Icons, chips, pill tag */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pill__new { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text-2); }
.chips .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-100); stroke: var(--brand-700); stroke-width: 3; }
:root[data-theme="dark"] .chips .ico { background: rgba(96,165,250,.18); stroke: var(--brand-300); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #16a34a; background: rgba(34,197,94,.12); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: blink2 1.4s infinite; }
@keyframes blink2 { 50% { opacity: .3; } }

/* Inbox mock (home hero) */
.inbox { position: relative; margin: 40px 10px 0; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.inbox__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: var(--font-head); }
.inbox__body { display: grid; grid-template-columns: 200px 1fr; min-height: 340px; }
.inbox__list { border-right: 1px solid var(--border); padding: 12px; background: var(--surface-2); }
.inbox__tabs { display: flex; gap: 6px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.inbox__tabs span { padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.inbox__tabs .is-on { background: var(--brand-600); color: #fff; }
.thread { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px; border-radius: 12px; font-size: 13px; border: 1px solid transparent; }
.thread.is-on { background: var(--surface); box-shadow: var(--shadow-sm); border-color: var(--border); }
.thread b { font-family: var(--font-head); }
.thread time { color: var(--muted); font-size: 11px; }
.thread p { grid-column: 1 / -1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { grid-column: 1 / -1; justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; background: var(--brand-100); color: var(--brand-700); }
.tag--green { background: rgba(34,197,94,.14); color: #16a34a; }
.tag--amber { background: rgba(245,179,1,.16); color: #a87800; }
:root[data-theme="dark"] .tag { background: rgba(96,165,250,.16); color: var(--brand-300); }
:root[data-theme="dark"] .tag--green { background: rgba(34,197,94,.16); color: #4ade80; }
:root[data-theme="dark"] .tag--amber { background: rgba(245,179,1,.16); color: #fbbf24; }
.chat { padding: 20px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.bubble--in { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.bubble--out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.bubble small { display: block; margin-top: 6px; font-size: 11px; opacity: .8; }
.booked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; background: rgba(34,197,94,.1); border: 1px dashed rgba(34,197,94,.5); color: var(--text); }
.booked .ico { color: #16a34a; }
.booked b { display: block; color: #16a34a; }
.float-card__icon .ico { width: 22px; height: 22px; stroke: #fff; }
.float-card__icon--soft { background: var(--brand-100); }
.float-card__icon--soft .ico { stroke: var(--brand-700); }
:root[data-theme="dark"] .float-card__icon--soft { background: rgba(96,165,250,.18); }
:root[data-theme="dark"] .float-card__icon--soft .ico { stroke: var(--brand-300); }
.hero__visual { min-height: 0; padding-bottom: 40px; }
.hero__visual .float-card--a { top: 0; right: -6px; }
.hero__visual .float-card--b { bottom: 10px; left: -24px; }
.hero__visual .rotating-badge { bottom: -30px; right: 20px; }

/* Marquee (constant auto-scroll) */
.marquee-wrap { position: relative; z-index: 2; padding-top: 30px; overflow: hidden; }
.marquee-label { text-align: center; font-weight: 600; color: var(--muted); margin-bottom: 18px; font-size: 15px; }
.stats--home { padding: 80px 0 0; }

/* Compare (without / with) */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.compare__col { padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.compare__col h3 { display: flex; align-items: center; gap: 12px; font-size: 21px; margin-bottom: 26px; }
.compare__col h3 .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; stroke-width: 2.6; }
.compare__col--bad h3 .ico { background: rgba(239,68,68,.12); color: #dc2626; }
.compare__col--good { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(43,84,155,.7); }
.compare__col--good h3 { color: #fff; }
.compare__col--good h3 .ico { background: rgba(255,255,255,.2); color: #fff; }
.compare__vs { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--surface); border: 1px solid var(--border); color: var(--brand-600); box-shadow: var(--shadow); }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 26px; margin: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.compare__col--good .timeline::before { background: rgba(255,255,255,.3); }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px var(--surface); }
.compare__col--good .timeline li::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.compare__col--bad .timeline li.is-end::before { background: #ef4444; }
.timeline time { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.compare__col--good .timeline time { color: rgba(255,255,255,.75); }
.timeline span { font-weight: 600; font-size: 17px; }
.compare__col--bad .is-end span { color: #dc2626; }

/* Process extras */
.process__intro { color: rgba(255,255,255,.75); max-width: 640px; margin-top: 18px; font-size: 18px; }
.process-step { width: 400px; display: flex; flex-direction: column; }
.process-step__num { font-size: 64px; margin-bottom: 20px; }
.process-step .process-step__small { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.62); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mini-tags li { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(147,197,253,.16); color: var(--brand-300); }
.lead-note { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 14px; display: grid; gap: 2px; color: rgba(255,255,255,.75); }
.lead-note small { color: var(--brand-300); font-weight: 700; }
.lead-note b { color: #fff; }
.followups { display: grid; gap: 10px; margin-top: 18px; }
.followups li { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; color: rgba(255,255,255,.72); }
.followups b { display: block; color: #fff; font-family: var(--font-head); }
.cal { margin-top: 18px; display: grid; gap: 8px; font-size: 14px; }
.cal small { color: var(--brand-300); font-weight: 700; }
.cal__row { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.15); }
.cal__row.is-booked { background: rgba(96,165,250,.18); border: 1px solid rgba(147,197,253,.35); color: #fff; }
.cal__row time { font-weight: 700; }

/* Services grid (home) */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc-feature { grid-column: span 2; grid-row: span 2; position: relative; display: flex; flex-direction: column; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(150deg, #0b1f4b 0%, #2b549b 60%, #3b82f6 100%); color: #fff; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s; }
.svc-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-feature__tag { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 700; }
.svc-feature h3 { color: #fff; font-size: 36px; margin: 22px 0 12px; }
.svc-feature p { color: rgba(255,255,255,.8); font-size: 17px; max-width: 420px; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.kanban div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 8px; align-content: start; min-height: 120px; }
.kanban small { font-weight: 700; color: var(--brand-300); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kanban i { display: block; height: 26px; border-radius: 8px; background: rgba(255,255,255,.18); }
.kanban div:last-child i { background: rgba(147,197,253,.45); }
.svc-feature__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.svc-feature__foot strong { font-family: var(--font-head); font-size: 40px; }
.svc-feature__foot small { font-size: 16px; opacity: .75; font-weight: 500; }
.svc-feature .work-card__arrow { border-color: rgba(255,255,255,.3); color: #fff; }
.svc-feature:hover .work-card__arrow { background: #fff; color: var(--brand-700); transform: rotate(45deg); }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-300); }
.svc-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 18px; transition: background-color .4s, color .4s, transform .4s var(--ease); }
:root[data-theme="dark"] .svc-card__icon { background: rgba(96,165,250,.12); color: var(--brand-300); }
.svc-card:hover .svc-card__icon { background: var(--grad); color: #fff; }
.svc-card h3 { font-size: 19px; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.svc-card__meta { margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 700; color: var(--brand-600); }
:root[data-theme="dark"] .svc-card__meta { color: var(--brand-300); }

/* Pricing extras */
.pricing__grid { align-items: stretch; }
.pricing__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }
.price { flex-wrap: wrap; }
.price__from { font-size: 16px; font-weight: 600; color: var(--muted); align-self: flex-end; margin-right: 6px; margin-bottom: 8px; }
.price-card--featured .price__from { color: rgba(255,255,255,.75); }
.price__val { font-size: 52px; }
.price__per { margin-left: 6px; }
.fine-print { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }
.price-card { display: flex; flex-direction: column; }
.price-card > .btn { margin-top: auto; }
.price-card--featured { padding: 42px 36px; }

/* Trades */
.trade-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trade { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.trade:hover { transform: translateX(6px); border-color: var(--brand-300); box-shadow: var(--shadow); }
.trade__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.trade b { display: block; font-family: var(--font-head); font-size: 18px; }
.trade small { color: var(--muted); font-size: 14px; line-height: 1.4; display: block; }
.trade__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); transition: all .4s var(--ease); }
.trade:hover .trade__go { background: var(--grad); color: #fff; border-color: transparent; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.trade-chips a, .trade-chips span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; transition: all .3s; }
.trade-chips a .ico { width: 20px; height: 20px; color: var(--brand-600); }
.trade-chips a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.trade-chips a:hover .ico { color: #fff; }
.trade-chips--plain { margin-top: 26px; }

/* Trust */
.trust__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.trust__badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 30px; padding: 18px 26px; border-radius: 20px; background: var(--grad); color: #fff; }
.trust__badge strong { font-family: var(--font-head); font-size: 48px; line-height: 1; }
.trust__badge span { max-width: 170px; line-height: 1.35; font-weight: 600; }
.mini-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .4s var(--ease), box-shadow .4s; }
.mini-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mini-card > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 16px; }
:root[data-theme="dark"] .mini-card > .ico { background: rgba(96,165,250,.12); color: var(--brand-300); }
.mini-card h3 { font-size: 19px; margin-bottom: 6px; }
.mini-card p { color: var(--muted); font-size: 15px; }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--text-2); }
.notice .ico { color: var(--brand-600); margin-top: 2px; }
.notice--warn { background: rgba(245,179,1,.08); border-color: rgba(245,179,1,.3); }
.notice--warn .ico { color: #b98500; }
:root[data-theme="dark"] .notice { background: rgba(96,165,250,.08); border-color: var(--border); }
:root[data-theme="dark"] .notice--warn { background: rgba(245,179,1,.07); border-color: rgba(245,179,1,.25); }
.split .notice { margin-top: 24px; }

/* Steps */
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: linear-gradient(90deg, var(--brand-300), var(--brand-600)); opacity: .5; }
.step { position: relative; padding: 0 6px; }
.step__dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; box-shadow: 0 0 0 8px var(--bg); margin-bottom: 22px; }
.section--alt .step__dot { box-shadow: 0 0 0 8px var(--bg-alt); }
.step__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 6px; }
:root[data-theme="dark"] .step__label { color: var(--brand-300); }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Inner page hero */
.page-hero { position: relative; padding: 170px 0 100px; overflow: hidden; }
.page-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.page-hero--solo .page-hero__inner { grid-template-columns: 1fr; max-width: 900px; }
.page-hero__title { font-size: clamp(34px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.03em; margin: 24px 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--brand-600); }
.crumbs [aria-current] { color: var(--brand-600); }
:root[data-theme="dark"] .crumbs [aria-current] { color: var(--brand-300); }
.page-hero .chips { margin-top: 30px; }

/* Spec card */
.spec-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.spec-card__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); font-family: var(--font-head); }
.spec-card__rows { margin: 0; padding: 8px 22px; }
.spec-card__rows div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.spec-card__rows div:last-child { border-bottom: 0; }
.spec-card__rows dt { color: var(--muted); font-size: 15px; }
.spec-card__rows dd { margin: 0; font-weight: 700; text-align: right; font-size: 15px; }
.spec-card__note { display: flex; align-items: center; gap: 10px; margin: 0 22px 20px; padding: 12px 14px; border-radius: 12px; background: rgba(34,197,94,.1); color: #15803d; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .spec-card__note { color: #4ade80; }
.spec-card__note .ico { width: 18px; height: 18px; stroke-width: 3; }
.pipe { list-style: none; margin: 0; padding: 18px 22px 22px; display: grid; gap: 10px; }
.pipe li { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.pipe__n { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 14px; }
.pipe__k { font-family: var(--font-head); font-weight: 600; }
.pipe__v { font-size: 13px; color: var(--muted); }
.quote-mock__form { margin: 18px 22px; padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 8px; }
.quote-mock__form b { font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }
.quote-mock__form span { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 14px; }
.quote-mock__form em { font-style: normal; text-align: center; padding: 11px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }

/* Generic grids & cards */
.grid { display: grid; gap: 24px; }
.grid--1 { grid-template-columns: 1fr; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-card { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { clip-path: circle(150% at 100% 0%); }
.feature-card__hit { position: absolute; inset: 0; z-index: 2; }
.feature-card__num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-size: 40px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--brand-100); transition: -webkit-text-stroke-color .5s; }
:root[data-theme="dark"] .feature-card__num { -webkit-text-stroke-color: var(--border); }
.feature-card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); margin-bottom: 22px; transition: all .5s var(--ease); }
:root[data-theme="dark"] .feature-card__icon { background: rgba(96,165,250,.12); color: var(--brand-300); }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; transition: color .5s; }
.feature-card p { color: var(--muted); transition: color .5s; }
.feature-card__meta { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--brand-600); transition: color .5s; }
.feature-card__link { margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--brand-600); transition: color .5s; }
:root[data-theme="dark"] .feature-card__meta, :root[data-theme="dark"] .feature-card__link { color: var(--brand-300); }
.feature-card:hover h3, .feature-card:hover .feature-card__link, .feature-card:hover .feature-card__meta { color: #fff; }
.feature-card:hover p { color: rgba(255,255,255,.85); }
.feature-card:hover .feature-card__icon { background: rgba(255,255,255,.16); color: #fff; }
.feature-card:hover .feature-card__num { -webkit-text-stroke-color: rgba(255,255,255,.35); }
.grid--1 .feature-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 22px 24px; }
.grid--1 .feature-card__icon { margin: 0; width: 50px; height: 50px; }
.grid--1 .feature-card h3 { margin: 0; flex: 1; }
.grid--1 .feature-card p { flex-basis: 100%; padding-left: 68px; margin-top: 4px; }
.grid--1 .feature-card__num { display: none; }

.problem-card { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); border-top: 4px solid #ef4444; transition: transform .4s var(--ease), box-shadow .4s; }
.problem-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.problem-card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(239,68,68,.1); color: #dc2626; margin-bottom: 18px; }
.problem-card__icon .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.problem-card h3 { font-size: 21px; margin-bottom: 8px; }
.problem-card p { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.data-table th, .data-table td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 15px; white-space: nowrap; }
.data-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--text); min-width: 180px; }
.data-table td { color: var(--text-2); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr { transition: background-color .3s; }
.data-table tbody tr:hover { background: var(--bg-alt); }
.table-compare thead th:first-child { background: var(--brand-800); }
.table-fit td { text-align: center; }
.table-fit thead th:not(:first-child) { text-align: center; }
.fit { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.fit--strong { background: var(--grad); color: #fff; }
.fit--works { background: var(--brand-100); color: var(--brand-700); }
.fit--weak { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
:root[data-theme="dark"] .fit--works { background: rgba(96,165,250,.16); color: var(--brand-300); }
.fit-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.fit-legend .fit { margin-left: 10px; }
.fit-legend .fit:first-child { margin-left: 0; }

/* FAQ / related / CTA */
.faq__cta { margin-top: 30px; }
.related { padding: 50px 0; border-top: 1px solid var(--border); }
.related__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.related__title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.related__links { display: flex; flex-wrap: wrap; gap: 10px; }
.related__links a { display: inline-flex; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 15px; transition: all .3s; }
.related__links a span { color: var(--brand-500); transition: transform .3s; }
.related__links a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.related__links a:hover span { color: #fff; transform: translate(2px, -2px); }
.cta-band { padding: 40px 0 0; }
.cta-band__box { grid-template-columns: 1.4fr .8fr; align-items: center; }
.cta-band__content p { color: rgba(255,255,255,.8); margin-top: 18px; font-size: 18px; }
.cta-band__actions { display: grid; gap: 22px; justify-items: start; }
.cta-band__phone { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 18px; }
.cta-band__phone .ico { width: 50px; height: 50px; padding: 13px; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.cta-band__phone small { display: block; font-size: 13px; font-weight: 500; opacity: .7; }

/* Split / highlight */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split--center { align-items: center; }
.split .lead + .lead { margin-top: 14px; }
.highlight-card { padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(150deg, #16336f, #2b549b 55%, #3b82f6); color: #fff; box-shadow: 0 30px 60px -30px rgba(43,84,155,.7); }
.highlight-card h3 { color: #fff; font-size: 26px; margin: 18px 0 10px; }
.highlight-card p { color: rgba(255,255,255,.8); margin-bottom: 26px; }
.highlight-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.15); }
.highlight-card .checklist li { color: #fff; }
.highlight-card .checklist li::before { background: rgba(255,255,255,.2); color: #fff; }
.highlight-card--light { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.highlight-card--light .checklist { margin: 0; }
.highlight-card--light .checklist li { color: var(--text-2); }
.highlight-card--light .checklist li::before { background: var(--brand-100); color: var(--brand-700); }
.crm-setup .checklist { margin: 30px 0 0; }

/* About story */
.story__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story__visual .about__card--main { aspect-ratio: 4 / 4.2; }
.story .lead + .lead { margin-top: 14px; }

/* Contact page */
.contact-page { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
a.contact-card:hover { border-color: var(--brand-300); transform: translateX(4px); }
.contact-card > .ico { width: 50px; height: 50px; padding: 13px; border-radius: 14px; background: var(--grad); color: #fff; }
.contact-card small { display: block; color: var(--muted); font-size: 13px; }
.contact-card b { font-family: var(--font-head); font-size: 17px; word-break: break-word; }
.contact-cards .highlight-card .checklist { margin: 16px 0 24px; }
.msg-form { padding: 38px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.msg-form h3 { font-size: 26px; }
.msg-form__sub { color: var(--muted); margin-top: -10px; }
.msg-form .field label { color: var(--text-2); }
.msg-form .field input, .msg-form .field select, .msg-form .field textarea { color: var(--text); background: var(--bg-alt); border-color: var(--border); }
.msg-form .field input:focus, .msg-form .field select:focus, .msg-form .field textarea:focus { border-color: var(--brand-500); background: var(--surface); box-shadow: 0 0 0 4px var(--ring); }
.msg-form .field select option { color: var(--text); background: var(--surface); }

/* Blog */
.soon { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
:root[data-theme="dark"] .soon { background: rgba(96,165,250,.12); color: var(--brand-300); }

/* Footer v2 */
.footer__top { grid-template-columns: 1.5fr 1fr 1fr .8fr; }
.footer__contact { display: grid; gap: 10px; margin: 22px 0 26px; }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--brand-300); }
.footer__contact a:hover, .footer__col a:hover { color: #fff; }
.footer__bottom p:last-child { max-width: 560px; }

/* Headings: balanced lines, no single orphan word */
.section-title, .page-hero__title, .hero__title, .hero__lead, .lead { text-wrap: balance; }
.section-head--center > div { max-width: 860px; }

/* Cursor: hidden until the mouse moves (no stray ring in the corner) */
.cursor { opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }

/* Process: compact cards so the pinned sideways scroll always fits the screen */
@media (min-width: 1141px) and (min-height: 700px) {
  .process__pin { height: 100vh; min-height: 0; padding: 96px 0 32px; justify-content: center; }
  .process__head { margin-bottom: 28px; }
  .process__head .section-title { font-size: clamp(30px, 3.2vw, 46px); }
  .process__intro { margin-top: 10px; font-size: 16px; }
  .process__track { align-items: stretch; }
  .process-step { width: 360px; padding: 26px; }
  .process-step__num { font-size: 44px; margin-bottom: 12px; }
  .process-step h3 { font-size: 22px; margin-bottom: 8px; }
  .process-step p { font-size: 15px; line-height: 1.55; }
  .process-step--cta h3 { font-size: 28px; }
  .mini-tags { margin-top: 12px; }
  .lead-note { padding: 10px 12px; font-size: 13px; margin-top: 10px; }
  .followups { gap: 6px; margin-top: 12px; }
  .followups li { padding: 8px 12px; font-size: 13px; }
  .cal { margin-top: 12px; gap: 6px; font-size: 13px; }
  .cal__row { padding: 7px 10px; }
  .process-step .process-step__small { margin-top: 12px; font-size: 13px; }
}
@media (min-width: 1141px) and (min-height: 700px) and (max-height: 840px) {
  .process__intro, .process-step .process-step__small { display: none; }
}
/* Wide but short screens: no pin, cards in a grid */
@media (min-width: 1141px) and (max-height: 699px) {
  .process__pin { min-height: 0; }
  .process__track { width: auto; max-width: 1240px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .process-step { width: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .page-hero__inner, .split, .trust__grid, .story__grid, .contact-grid, .cta-band__box { grid-template-columns: 1fr; }
  .page-hero__aside { max-width: 560px; width: 100%; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-feature { grid-column: span 2; grid-row: auto; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare__vs { justify-self: center; }
  .process-step { width: auto; }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .split { gap: 30px; }
  .mega--wide { width: 520px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 120px 0 64px; }
  .inbox { margin: 20px 0 0; }
  .inbox__body { grid-template-columns: 1fr; min-height: 0; }
  .inbox__list { display: none; }
  .chat { padding: 16px; }
  .hero__visual { padding: 30px 0 60px; }
  .hero__visual .float-card--a { top: 0; right: 0; padding: 10px 14px; }
  .hero__visual .float-card--b { bottom: 0; left: 0; padding: 10px 14px; }
  .hero__visual .rotating-badge { display: none; }
  .svc-grid, .grid--3, .grid--2, .trade-grid, .steps, .pricing__grid--2 { grid-template-columns: 1fr; }
  .svc-feature { grid-column: auto; padding: 28px 22px; }
  .svc-feature h3 { font-size: 30px; }
  .compare__col { padding: 26px 22px; }
  .stats--home { padding-top: 60px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 16px; }
  .stat + .stat::before { display: none; }
  .footer__top { grid-template-columns: 1fr; }
  .grid--1 .feature-card p { padding-left: 0; }
  .msg-form, .highlight-card { padding: 26px 20px; }
  .trade { padding: 16px; gap: 12px; }
  .trade__icon { width: 44px; height: 44px; }
  .trade__go { display: none; }
  .trade { grid-template-columns: auto 1fr; }
  .data-table { font-size: 14.5px; }
  /* stack tables as cards on phones (except the fit matrix, which scrolls) */
  .table-wrap:not(.table-fit) { border: 0; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .table-wrap:not(.table-fit) thead { display: none; }
  .table-wrap:not(.table-fit) .data-table, .table-wrap:not(.table-fit) tbody, .table-wrap:not(.table-fit) tr, .table-wrap:not(.table-fit) th, .table-wrap:not(.table-fit) td { display: block; width: 100%; }
  .table-wrap:not(.table-fit) tr { margin-bottom: 14px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
  .table-wrap:not(.table-fit) tbody th { background: var(--grad); color: #fff; padding: 14px 18px; border: 0; min-width: 0; }
  .table-wrap:not(.table-fit) td { padding: 12px 18px; border-bottom: 1px dashed var(--border); }
  .table-wrap:not(.table-fit) td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); margin-bottom: 2px; }
  .table-wrap:not(.table-fit) td[data-label=""]::before { display: none; }
  .table-wrap:not(.table-fit) tr td:last-child { border-bottom: 0; }
  .table-fit .data-table th, .table-fit .data-table td { padding: 14px; }
  .table-fit tbody th { min-width: 200px; }
  .related__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__box { padding: 34px 22px; }
  .spec-card__rows dd { font-size: 14px; }
  .price-card, .price-card--featured { padding: 34px 24px; }
}

/* ---------- Contact: Calendly booking embed ---------- */
#book { scroll-margin-top: 90px; }
.booking__frame { max-width: 1000px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(18,45,99,.35); }
.booking__frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.booking .fine-print { text-align: center; margin-top: 16px; }
.booking .fine-print a { color: var(--brand-700); text-decoration: underline; }
@media (max-width: 760px) { .booking__frame { border-radius: 16px; } .booking__frame iframe { height: 1000px; } }

/* ---------- SMS sub-pages: example text bubbles ---------- */
.sms-demo { display: grid; gap: 12px; max-width: 420px; }
.sms-demo__msg { padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--brand-50); color: var(--text); font-size: 15px; line-height: 1.5; }
.sms-demo__msg--out { justify-self: end; border-radius: 20px 20px 6px 20px; background: var(--grad); color: #fff; }
.sms-demo__meta { font-size: 12px; opacity: .65; margin-top: 4px; display: block; }
[data-theme="dark"] .booking__frame { border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .sms-demo__msg:not(.sms-demo__msg--out) { background: rgba(255,255,255,.07); color: #e7eefc; }

/* ---------- [NEED: ...] placeholders, highlighted for review ---------- */
mark.need { background: #fff4d6; color: #7a4b00; border: 1px dashed #e0a526; border-radius: 6px; padding: 1px 6px; font-size: .92em; }
[data-theme="dark"] mark.need { background: rgba(224,165,38,.15); color: #f5cf7a; }

/* ---------- Blog articles ---------- */
.post { position: relative; }
.post__hit { position: absolute; inset: 0; z-index: 2; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 30px); line-height: 1.25; color: var(--text); margin-top: 2em; scroll-margin-top: 100px; text-wrap: balance; }
.prose h3 { font-family: var(--font-head); font-size: 20px; color: var(--text); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--brand-600); }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { margin-top: 1.4em; }
.prose blockquote { border-left: 4px solid var(--brand-500); padding: 6px 0 6px 18px; color: var(--text); font-weight: 600; }
.toc { position: sticky; top: 110px; padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.toc strong { display: block; font-family: var(--font-head); margin-bottom: 12px; color: var(--text); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--brand-600); }
.toc .btn { margin-top: 20px; }
:root[data-theme="dark"] .prose a, :root[data-theme="dark"] .toc a:hover { color: var(--brand-400); }
@media (max-width: 1140px) { .article__grid { grid-template-columns: 1fr; } .toc { position: static; } }
@media (max-width: 760px) { .prose { font-size: 16px; } }

/* ---------- Home: CRM card pipeline ---------- */
.kanban small { display: flex; align-items: center; justify-content: space-between; }
.kanban small em { font-style: normal; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.kb { display: block; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 12px; line-height: 1.35; color: rgba(255,255,255,.8); }
.kb b { display: block; color: #fff; font-size: 13px; font-weight: 700; }
.kb--ok { background: rgba(147,197,253,.28); }

/* ---------- Pricing: ribbon above the card, never over the title ---------- */
.price-card__ribbon { top: 0; right: auto; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; box-shadow: var(--shadow-sm); }

/* ---------- Pricing: Run it yourself ---------- */
.diy { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: stretch; }
.diy__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.diy-plan { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.diy-plan__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.diy-plan__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.diy-plan__icon .ico { width: 22px; height: 22px; }
.diy-plan__tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.diy-plan h3 { font-size: 22px; }
.diy-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 18px; font-family: var(--font-head); }
.diy-plan__price strong { font-size: 44px; line-height: 1; color: var(--text); }
.diy-plan__price span { color: var(--muted); font-weight: 600; }
.diy-plan__list { display: grid; gap: 10px; margin-bottom: 26px; }
.diy-plan__list li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15px; }
.diy-plan__list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: var(--brand-100); color: var(--brand-700); }
.diy-plan > .btn { margin-top: auto; }
.diy-plan--accent { background: linear-gradient(160deg, #16336f 0%, #2b549b 55%, #3b82f6 100%); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(43,84,155,.7); }
.diy-plan--accent h3, .diy-plan--accent .diy-plan__price strong, .diy-plan--accent .diy-plan__list li { color: #fff; }
.diy-plan--accent .diy-plan__price span, .diy-plan--accent .diy-plan__tag { color: rgba(255,255,255,.75); }
.diy-plan--accent .diy-plan__icon { background: rgba(255,255,255,.14); color: #fff; }
.diy-plan--accent .diy-plan__list li::before { background: rgba(255,255,255,.2); color: #fff; }
.diy-setup { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--brand-300); }
.diy-setup h3 { font-size: 22px; }
.diy-setup > p { color: var(--muted); margin: 4px 0 18px; }
.diy-setup ul { display: grid; gap: 12px; }
.diy-setup li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.diy-setup__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.diy-setup__icon .ico { width: 18px; height: 18px; }
.diy-setup li b { display: block; color: var(--text); font-size: 15px; }
.diy-setup li small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.diy-setup__price { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--brand-700); white-space: nowrap; text-align: right; }
.diy-setup__price--free { padding: 4px 10px; border-radius: 999px; background: rgba(34,197,94,.12); color: #15803d; font-size: 13px; }

/* ---------- Pricing: marketing service cards ---------- */
.mkt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mkt-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.mkt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mkt-card--wide { grid-column: span 2; grid-row: span 1; }
.mkt-card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.mkt-card__icon .ico { width: 22px; height: 22px; }
.mkt-card h3 { font-size: 20px; }
.mkt-card__price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 12px; font-family: var(--font-head); }
.mkt-card__price strong { font-size: 34px; line-height: 1; color: var(--text); }
.mkt-card__price span { color: var(--muted); font-weight: 600; }
.mkt-card__from { font-size: 14px; }
.mkt-card__price--quote { font-size: 15px; font-weight: 700; color: var(--brand-700); padding: 6px 12px; border-radius: 999px; background: var(--brand-50); align-self: flex-start; }
.mkt-card p { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.mkt-card__link { margin-top: auto; font-weight: 700; color: var(--brand-700); font-size: 15px; }
.mkt-card__link:hover { text-decoration: underline; }
.mkt-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mkt-tiers li { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.mkt-tiers b { color: var(--text); }
.mkt-tiers span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mkt-tiers em { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--brand-700); margin-top: auto; }

@media (max-width: 1080px) {
  .diy { grid-template-columns: 1fr; }
  .mkt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .diy__plans, .mkt-grid, .mkt-tiers { grid-template-columns: 1fr; }
  .mkt-card--wide { grid-column: auto; }
  .diy-setup li { grid-template-columns: auto 1fr; }
  .diy-setup__price { grid-column: 2; text-align: left; }
}

/* dark mode for the new blocks */
[data-theme="dark"] .diy-plan__icon, [data-theme="dark"] .diy-setup__icon, [data-theme="dark"] .mkt-card__icon { background: rgba(96,165,250,.12); color: var(--brand-300); }
[data-theme="dark"] .diy-plan__list li::before { background: rgba(96,165,250,.18); color: var(--brand-300); }
[data-theme="dark"] .diy-setup__price, [data-theme="dark"] .mkt-card__link, [data-theme="dark"] .mkt-tiers em { color: var(--brand-300); }
[data-theme="dark"] .mkt-card__price--quote { background: rgba(96,165,250,.12); color: var(--brand-300); }
[data-theme="dark"] .diy-setup__price--free { background: rgba(34,197,94,.15); color: #4ade80; }
[data-theme="dark"] .diy-setup { border-color: rgba(96,165,250,.35); }

/* ---------- Home: fill the last row of the services grid ---------- */
.svc-more { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--grad); color: #fff; }
.svc-more h3 { color: #fff; font-size: 22px; }
.svc-more p { color: rgba(255,255,255,.82); margin-top: 6px; max-width: 520px; }
.svc-more .btn { flex-shrink: 0; }
@media (max-width: 1080px) { .svc-more { grid-column: auto; flex-direction: column; align-items: flex-start; } }
@media (max-width: 720px) { .svc-more { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 26px 22px; } }
[data-theme="dark"] .booking__frame, [data-theme="dark"] .booking__frame iframe { background: var(--surface); }

/* ---------- Home: integrations heading and logo strip ---------- */
.marquee-head { text-align: center; margin: 0 auto 26px; padding: 0 16px; }
.marquee-head .eyebrow { justify-content: center; }
.marquee-title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; margin-top: 10px; }
.marquee__logo { display: block; height: 42px; width: auto; }
/* SVG logos may be dark; the PNG logos supplied are already white */
.marquee__logo[src$=".svg"] { filter: brightness(0) invert(1); }
@media (max-width: 720px) { .marquee__logo { height: 30px; } }
/* tools still shown as text match the logo height */
.marquee__track span { font-size: clamp(20px, 2vw, 28px); }

.svc-feature__more { font-weight: 700; font-size: 16px; color: #fff; }
/* Make wordmark is heavier than the others; a little smaller keeps the strip even */
.marquee__logo[alt="Make"] { height: 34px; }
@media (max-width: 720px) { .marquee__logo[alt="Make"] { height: 24px; } }

/* Contact form: hidden field that only bots fill in */
.msg-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Blog: field guide index, post visuals and interactive figures
   ========================================================= */
.bx-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.bx-chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.bx-chip:hover { border-color: var(--brand-400); color: var(--brand-600); transform: translateY(-2px); }
.bx-chip.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(43,84,155,.7); }
:root[data-theme="dark"] .bx-chip:hover { color: #fff; }

.bx-tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
:root[data-theme="dark"] .bx-tag { background: rgba(96,165,250,.14); color: var(--brand-300); }
.bx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* Featured post */
.bx-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .6s var(--ease), box-shadow .6s; }
.bx-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bx-feature__media { display: block; border-radius: 22px; overflow: hidden; }
.bx-feature__body { padding: 10px 26px 10px 0; }
.bx-feature__label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.bx-feature__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; text-wrap: balance; }
.bx-feature__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.bx-feature:hover .bx-feature__title a { background-size: 100% 2px; }
.bx-feature__body p { margin: 16px 0 26px; color: var(--text-2); }
:root[data-theme="dark"] .bx-feature__label { color: var(--brand-400); }

/* Card art animations (stopwatch) */
.bx-art { display: block; width: 100%; height: auto; }
.bx-art__arc { transition: stroke-dashoffset 2.2s var(--ease); }
.bx-art.is-in .bx-art__arc { stroke-dashoffset: 8; }
.bx-art__b1, .bx-art__b2, .bx-art__b3 { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transform-box: fill-box; }
.bx-art.is-in .bx-art__b1 { opacity: 1; transform: none; transition-delay: .4s; }
.bx-art.is-in .bx-art__b2 { opacity: 1; transform: none; transition-delay: 1.1s; }
.bx-art.is-in .bx-art__b3 { opacity: 1; transform: none; transition-delay: 1.8s; }
.bx-feature:hover .bx-art__watch { animation: bxWobble .9s var(--ease); transform-box: fill-box; transform-origin: center; }
@keyframes bxWobble { 30% { rotate: -4deg; } 60% { rotate: 3deg; } }

/* Upcoming shelf */
.bx-shelf { margin-top: 80px; }
.bx-shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.bx-shelf__head p { color: var(--muted); }
.bx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bx-card { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border); display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), border-color .4s, background-color .4s; }
.bx-card:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--brand-400); background: var(--surface); }
.bx-card h3 { font-size: 18px; line-height: 1.35; }
.bx-card__art { height: 92px; border-radius: 14px; background: var(--grad-soft); display: grid; place-items: center; }
.bx-card__art svg { width: 110px; height: 74px; fill: none; stroke: var(--brand-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bx-card__art .fill { fill: var(--brand-300); fill-opacity: .45; }
.bx-card__art .fill-s { stroke: var(--brand-400); }
.bx-card:hover .bx-card__art svg { animation: bxDraw 1.2s var(--ease); }
@keyframes bxDraw { from { stroke-dasharray: 300; stroke-dashoffset: 300; } to { stroke-dasharray: 300; stroke-dashoffset: 0; } }
.bx-card__status { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.bx-card__status i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.6); animation: bxPulse 1.8s infinite; }
@keyframes bxPulse { 70% { box-shadow: 0 0 0 9px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }
:root[data-theme="dark"] .bx-card__art svg { stroke: var(--brand-300); }
.bx-empty { margin-top: 18px; color: var(--muted); font-weight: 600; }
[data-topic][hidden], .bx-empty[hidden] { display: none !important; }

/* Post hero phone */
.bx-hero .page-hero__aside { display: flex; justify-content: center; padding: 24px 0; }
.bx-phone { width: 320px; max-width: 100%; padding: 14px; border-radius: 48px; position: relative; isolation: isolate;
  background: linear-gradient(160deg, #60a5fa 0%, #3b82f6 45%, #3370b5 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), inset 0 0 0 11px #3b82f6, inset 0 0 0 13px #16336f, -4px 10px 0 #2b549b, -4px 12px 22px rgba(59,130,246,.35);
  transform: perspective(900px) rotateX(16deg) rotate(8deg); animation: bxPhoneFloat 6s ease-in-out infinite; }
.bx-phone::after { content: ""; position: absolute; right: -5px; top: 110px; width: 5px; height: 64px; border-radius: 0 5px 5px 0; background: #2b549b; }
.bx-phone__notch { position: absolute; top: 14px; left: 50%; width: 132px; height: 24px; margin-left: -66px; border-radius: 0 0 16px 16px; background: #0b1f4b; z-index: 2; }
@media (max-width: 520px) { .bx-phone { width: 260px; } }
@keyframes bxPhoneFloat { 0%, 100% { transform: perspective(900px) rotateX(16deg) rotate(8deg); } 50% { transform: perspective(900px) translateY(-8px) rotateX(16deg) rotate(8deg); } }
.bx-phone__top { display: flex; align-items: center; gap: 10px; padding: 40px 16px 14px; border-radius: 34px 34px 0 0; background: #f3f7fd; color: #0b1a33; }
.bx-phone__top small { display: block; font-size: 11px; color: #5d6e8c; }
.bx-phone__top strong { font-size: 14px; }
.bx-phone__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; }
.bx-phone__body { min-height: 380px; padding: 16px 14px 22px; border-radius: 0 0 34px 34px; background: linear-gradient(180deg, #fff 0%, #fff 72%, #bfdbfe 100%); display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.45; }
.bx-phone__call { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fef2f2; color: #b91c1c; font-size: 12px; font-weight: 700; }
.bx-phone__dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: bxPulseRed 1.4s infinite; }
@keyframes bxPulseRed { 50% { opacity: .3; } }
.bx-phone__msg { max-width: 84%; padding: 10px 13px; border-radius: 18px 18px 18px 6px; background: #eef2f8; color: #0b1a33; }
.bx-phone__msg--out { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--grad); color: #fff; }
.bx-phone__msg em { display: block; margin-top: 4px; font-style: normal; font-size: 10.5px; opacity: .75; }
.bx-phone__booked { align-self: center; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 13px; font-weight: 800; }
.bx-phone__booked .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; }
.bx-phone__msg, .bx-phone__booked { opacity: 0; animation: bxMsg 12s var(--ease) infinite; animation-delay: calc(var(--d) * 1.3s); }
@keyframes bxMsg { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 6%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* Lead clock */
.prose figure { margin: 2em 0; }
.bx-clock { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: center; padding: 30px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); }
.bx-clock__dial { position: relative; width: 220px; height: 220px; }
.bx-clock__dial svg { width: 100%; height: 100%; }
.bx-clock__track { fill: none; stroke: var(--border); stroke-width: 16; }
.bx-clock__fill { fill: none; stroke: #ef4444; stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease), stroke .6s; }
.bx-clock__read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.bx-clock__read b { font-family: var(--font-head); font-size: 38px; line-height: 1; color: var(--text); }
.bx-clock__read span { margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ef4444; transition: color .4s; }
.bx-clock__panel label { display: block; font-family: var(--font-head); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.bx-clock input[type="range"] { width: 100%; height: 8px; border-radius: 999px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, #ef4444, #f59e0b 50%, #93c5fd); cursor: pointer; }
.bx-clock input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-600); box-shadow: var(--shadow); }
.bx-clock input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-600); }
.bx-clock input[type="range"]:focus-visible { outline: 3px solid var(--ring); outline-offset: 6px; }
.bx-clock__ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.bx-clock__note { margin-top: 18px; min-height: 5.2em; color: var(--text); font-weight: 600; }
.bx-clock figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Stat trio */
.bx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bx-stat { padding: 22px; border-radius: var(--radius); background: var(--grad); color: #fff; position: relative; overflow: hidden; }
.bx-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.1); }
.bx-stat b { display: block; font-family: var(--font-head); font-size: 44px; line-height: 1; }
.bx-stat span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.5; }
.bx-stat small { display: block; margin-top: 12px; font-size: 12px; font-weight: 700; opacity: .75; letter-spacing: .04em; }

/* Leak map */
.bx-leaks { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.bx-leaks__pipe { width: 100%; height: auto; overflow: visible; }
.bx-leaks__line { stroke: var(--brand-100); stroke-width: 18; stroke-linecap: round; fill: none; }
.bx-leaks__flow { stroke: var(--brand-500); stroke-width: 4; stroke-linecap: round; fill: none; stroke-dasharray: 10 14; animation: bxFlow 1.6s linear infinite; }
@keyframes bxFlow { to { stroke-dashoffset: -48; } }
.bx-leaks__drop circle { fill: var(--surface); stroke: var(--brand-600); stroke-width: 3; transition: fill .3s; }
.bx-leaks__drop text { font: 800 14px var(--font-head); fill: var(--brand-700); transition: fill .3s; }
.bx-leaks__drop path { fill: var(--brand-300); opacity: .35; transform-box: fill-box; transform-origin: top; transition: opacity .3s, transform .5s var(--ease); }
.bx-leaks__drop.is-on circle { fill: #ef4444; stroke: #ef4444; }
.bx-leaks__drop.is-on text { fill: #fff; }
.bx-leaks__drop.is-on path { fill: #ef4444; opacity: 1; transform: translateY(6px) scale(1.15); }
:root[data-theme="dark"] .bx-leaks__line { stroke: #16336f; }
:root[data-theme="dark"] .bx-leaks__drop text { fill: var(--brand-300); }
.prose .bx-leaks__list { list-style: none; padding: 0; margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: leak; }
.prose .bx-leaks__list li { margin: 0; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; cursor: default; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.bx-leaks__list li b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
.bx-leaks__list li b::before { counter-increment: leak; content: counter(leak) ". "; color: var(--brand-600); }
.bx-leaks__list li.is-on { border-color: #ef4444; transform: translateY(-4px); box-shadow: var(--shadow); }

/* 5-minute timeline */
.prose .bx-timeline { list-style: none; padding: 0; position: relative; }
.bx-timeline::before { content: ""; position: absolute; left: 82px; top: 8px; bottom: 8px; width: 2px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease); }
.bx-timeline.is-in::before { transform: none; }
.prose .bx-timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 30px; margin: 0; padding: 12px 0; opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bx-timeline.is-in li { opacity: 1; transform: none; }
.bx-timeline li:nth-child(2) { transition-delay: .15s; } .bx-timeline li:nth-child(3) { transition-delay: .3s; } .bx-timeline li:nth-child(4) { transition-delay: .45s; } .bx-timeline li:nth-child(5) { transition-delay: .6s; } .bx-timeline li:nth-child(6) { transition-delay: .75s; }
.bx-timeline__t { font-family: var(--font-head); font-weight: 800; color: var(--brand-600); text-align: right; font-size: 15px; line-height: 1.4; }
.bx-timeline li > div { position: relative; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.bx-timeline li > div::before { content: ""; position: absolute; left: -24px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-500); }
.bx-timeline b { color: var(--text); }
.prose .bx-timeline p { margin: 4px 0 0; font-size: 15px; }
:root[data-theme="dark"] .bx-timeline__t { color: var(--brand-400); }

/* Checklist with progress ring */
.bx-check { display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; padding: 28px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid var(--border); }
.bx-check__ring { position: relative; width: 150px; height: 150px; }
.bx-check__ring svg { width: 100%; height: 100%; }
.bx-check__track { fill: none; stroke: rgba(51,112,181,.15); stroke-width: 12; }
.bx-check__fill { fill: none; stroke: var(--brand-600); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease), stroke .4s; }
.bx-check.is-done .bx-check__fill { stroke: #10b981; }
.bx-check__ring span { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--font-head); font-size: 18px; color: var(--muted); }
.bx-check__ring b { font-size: 40px; color: var(--text); }
.prose .bx-check ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prose .bx-check li { margin: 0; }
.bx-check label { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--text); transition: background-color .3s; }
.bx-check label:hover { background: rgba(255,255,255,.55); }
:root[data-theme="dark"] .bx-check label:hover { background: rgba(255,255,255,.05); }
.bx-check input { position: absolute; opacity: 0; pointer-events: none; }
.bx-check__box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--brand-400); display: grid; place-items: center; background: var(--surface); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.bx-check__box .ico { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.5; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .4s var(--ease); }
.bx-check input:checked + .bx-check__box { background: var(--brand-600); border-color: var(--brand-600); transform: scale(1.08); }
.bx-check input:checked + .bx-check__box .ico { opacity: 1; transform: none; }
.bx-check input:focus-visible + .bx-check__box { outline: 3px solid var(--ring); outline-offset: 2px; }
.prose .bx-check__msg { margin-top: 14px; font-weight: 700; color: var(--brand-700); }
:root[data-theme="dark"] .prose .bx-check__msg { color: var(--brand-300); }

/* Reading progress inside the table of contents */
.bx-toc .btn, .bx-toc .btn:hover { color: #fff; }
.bx-toc__bar { margin-top: 18px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bx-toc__bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }
.bx-toc a.is-current { color: var(--brand-600); font-weight: 700; }
:root[data-theme="dark"] .bx-toc a.is-current { color: var(--brand-400); }

@media (max-width: 1140px) {
  .bx-feature { grid-template-columns: 1fr; gap: 26px; }
  .bx-feature__body { padding: 0 10px 14px; }
  .bx-grid { grid-template-columns: repeat(2, 1fr); }
  .prose .bx-leaks__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .bx-grid, .bx-stats { grid-template-columns: 1fr; }
  .bx-clock, .bx-check { grid-template-columns: 1fr; justify-items: center; padding: 22px; }
  .bx-clock__panel, .bx-check__main { width: 100%; }
  .prose .bx-leaks__list { grid-template-columns: 1fr; }
  .bx-timeline::before { left: 66px; }
  .prose .bx-timeline li { grid-template-columns: 56px 1fr; gap: 24px; }
  .bx-timeline__t { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-phone__msg, .bx-phone__booked { animation: none; opacity: 1; }
  .bx-leaks__flow, .bx-card__status i, .bx-phone__dot, .bx-phone { animation: none; }
  .bx-timeline li, .bx-art__b1, .bx-art__b2, .bx-art__b3 { opacity: 1; transform: none; }
  .bx-timeline::before { transform: none; }
}

/* ---------- Blog: published post cards ---------- */
.bx-grid--posts { grid-template-columns: repeat(3, 1fr); }
.bx-pcard { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.bx-pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bx-pcard__media { display: block; padding: 12px 12px 0; }
.bx-pcard__media .bx-art { border-radius: 16px; }
.bx-pcard__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bx-pcard h3 { font-size: 19px; line-height: 1.3; }
.bx-pcard h3 a:hover { color: var(--brand-600); }
.bx-pcard p { font-size: 14.5px; color: var(--text-2); }
.bx-pcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--brand-600); }
.bx-pcard__more .arr { transition: transform .4s var(--ease); }
.bx-pcard:hover .bx-pcard__more .arr { transform: translateX(5px); }
:root[data-theme="dark"] .bx-pcard__more, :root[data-theme="dark"] .bx-pcard h3 a:hover { color: var(--brand-400); }

/* ---------- Blog: animated bars ---------- */
.bx-bars { padding: 24px 26px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 16px; }
.bx-bars__row { display: grid; grid-template-columns: 200px 1fr 96px; gap: 16px; align-items: center; }
.bx-bars__label { font-weight: 700; color: var(--text); font-size: 15px; }
.bx-bars__track { height: 18px; border-radius: 999px; background: var(--border); overflow: hidden; }
.bx-bars__track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.4s var(--ease); transition-delay: calc(var(--i) * .2s); }
.bx-bars.is-in .bx-bars__track i { width: var(--w); }
.bx-bars b { font-family: var(--font-head); font-size: 18px; color: var(--text); text-align: right; }
.bx-bars figcaption { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Blog: step flow ---------- */
.prose .bx-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; counter-reset: none; }
.prose .bx-flow li { position: relative; margin: 0; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s; transition-delay: calc(var(--i) * .14s); }
.bx-flow.is-in li { opacity: 1; transform: none; }
.prose .bx-flow li:hover { border-color: var(--brand-400); }
.bx-flow li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 30px; width: 8px; height: 8px; border-top: 2px solid var(--brand-400); border-right: 2px solid var(--brand-400); transform: rotate(45deg); z-index: 1; }
.bx-flow__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 15px var(--font-head); margin-bottom: 12px; }
.bx-flow b { display: block; color: var(--text); line-height: 1.3; }
.prose .bx-flow p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }

/* ---------- Blog: tabs ---------- */
.bx-tabs { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.bx-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.bx-tabs__tab { flex: 1; min-width: 120px; padding: 11px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background-color .3s, color .3s; }
.bx-tabs__tab:hover { color: var(--brand-600); }
.bx-tabs__tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(43,84,155,.8); }
.bx-tabs__panel { padding: 8px 26px 24px; animation: bxFade .5s var(--ease); }
.prose .bx-tabs__panel h3 { margin-top: 1em; }
@keyframes bxFade { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Blog: rejection reasons, roofing ways ---------- */
.bx-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.bx-reason { padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.bx-reason:hover, .bx-reason:focus { transform: translateY(-4px); border-color: #ef4444; box-shadow: var(--shadow); outline: none; }
.bx-reason .ico { width: 26px; height: 26px; fill: none; stroke: #ef4444; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.bx-reason b { color: var(--text); font-size: 15px; }
.bx-reason span { font-size: 14px; line-height: 1.5; }
.bx-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bx-way { position: relative; padding: 22px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; }
.bx-way:hover { transform: translateY(-5px); border-color: var(--brand-400); box-shadow: var(--shadow); }
.bx-way__n { position: absolute; right: 16px; top: 8px; font: 800 44px var(--font-head); color: var(--brand-100); line-height: 1; transition: color .4s; }
.bx-way:hover .bx-way__n { color: var(--brand-300); }
:root[data-theme="dark"] .bx-way__n { color: #16336f; }
.bx-way__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); }
.bx-way__ico .ico { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prose .bx-way h3 { margin-top: 14px; font-size: 18px; position: relative; }
.prose .bx-way p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.prose .bx-way ul { margin-top: 10px; font-size: 14.5px; }

/* ---------- Blog: LSA calculator ---------- */
.bx-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); }
.bx-calc__inputs { display: flex; flex-direction: column; gap: 10px; }
.bx-calc label { font-weight: 700; color: var(--text); font-family: var(--font-head); }
.bx-calc select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 15px var(--font-body); margin-bottom: 10px; }
.bx-calc input[type="range"] { width: 100%; appearance: none; -webkit-appearance: none; height: 8px; border-radius: 999px; background: var(--grad); cursor: pointer; }
.bx-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-600); box-shadow: var(--shadow); }
.bx-calc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--brand-600); }
.bx-calc__out { border-radius: 20px; background: var(--grad); color: #fff; padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.bx-calc__big { font-family: var(--font-head); font-size: 20px; }
.bx-calc__big b { font-size: 56px; line-height: 1; margin-right: 6px; }
.bx-calc__sub { opacity: .85; font-size: 14px; }
.bx-calc__dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bx-calc__dots i { width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: bxPop .4s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
@keyframes bxPop { from { transform: scale(0); opacity: 0; } }
.bx-calc figcaption { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Blog: hero panels ---------- */
.bx-panel { width: 380px; max-width: 100%; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.bx-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.bx-panel__head strong { font-family: var(--font-head); color: var(--text); flex: 1; }
.bx-panel__head .dots { display: flex; gap: 5px; }
.bx-panel__head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.bx-panel__head .live { font-size: 12px; font-weight: 800; color: #047857; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; }
.bx-reg, .bx-leadlist { list-style: none; margin: 0; padding: 16px; display: grid; gap: 10px; }
.bx-reg li, .bx-leadlist li, .bx-panel__foot, .bx-serp__card, .bx-serp__ads { animation: bxRise 9s var(--ease) infinite; animation-delay: calc(var(--d) * .6s); }
@keyframes bxRise { 0% { opacity: 0; transform: translateY(14px); } 8%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.bx-reg li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.bx-reg li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); }
.bx-reg .ico { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.bx-reg div { flex: 1; }
.bx-reg b { display: block; color: var(--text); }
.bx-reg small { color: var(--muted); font-size: 12.5px; }
.bx-reg em, .bx-leadlist em { font-style: normal; font-size: 12px; font-weight: 800; color: #047857; background: #ecfdf5; padding: 4px 10px; border-radius: 999px; }
.bx-panel__foot { display: flex; align-items: center; gap: 8px; margin: 0 16px 18px; padding: 12px 14px; border-radius: 14px; background: #ecfdf5; color: #047857; font-weight: 800; font-size: 14px; }
.bx-panel__foot .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; }
.bx-leadlist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border-left: 4px solid var(--brand-500); }
.bx-leadlist .src { grid-column: 1; font-size: 12px; font-weight: 700; color: var(--muted); }
.bx-leadlist b { grid-column: 1; color: var(--text); font-size: 14.5px; }
.bx-leadlist em { grid-column: 2; grid-row: 1 / 3; align-self: center; }
:root[data-theme="dark"] .bx-reg em, :root[data-theme="dark"] .bx-leadlist em, :root[data-theme="dark"] .bx-panel__foot, :root[data-theme="dark"] .bx-panel__head .live { background: rgba(16,185,129,.15); color: #6ee7b7; }

.bx-thermo { position: relative; width: 320px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border); }
.bx-thermo svg { width: 100%; height: 100%; }
.bx-thermo__ring { fill: none; stroke: var(--border); stroke-width: 2; }
.bx-thermo__track { fill: none; stroke: var(--border); stroke-width: 14; stroke-linecap: round; }
.bx-thermo__fill { fill: none; stroke-width: 14; stroke-linecap: round; stroke: #3b82f6; animation: bxThermo 8s ease-in-out infinite; }
@keyframes bxThermo { 0%, 100% { stroke-dasharray: 18 100; stroke: #3b82f6; } 50% { stroke-dasharray: 72 100; stroke: #f59e0b; } }
.bx-thermo__read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.bx-thermo__read small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bx-thermo__read b { font: 800 56px var(--font-head); color: var(--text); line-height: 1; }
.bx-thermo__seasons { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.bx-thermo__seasons i { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #fff7ed; color: #c2410c; }
.bx-thermo__seasons i + i { background: var(--brand-50); color: var(--brand-700); }

.bx-serp { width: 400px; max-width: 100%; padding: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.bx-serp__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; }
.bx-serp__bar .ico { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; }
.bx-serp__label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin: 4px 4px 0; }
.bx-serp__card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.bx-serp__badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #10b981; flex: none; }
.bx-serp__badge .ico { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; }
.bx-serp__card div { flex: 1; }
.bx-serp__card b { display: block; color: var(--text); font-size: 14.5px; }
.bx-serp__card small { font-size: 12px; color: var(--muted); }
.bx-serp__card small em { font-style: normal; font-weight: 800; color: var(--text); }
.bx-serp__call { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-50); }
.bx-serp__call .ico { width: 16px; height: 16px; fill: none; stroke: var(--brand-600); stroke-width: 2.2; }
.bx-serp__ads { display: grid; gap: 8px; padding: 6px 4px 0; opacity: .7; }
.bx-serp__ads i { display: block; height: 12px; border-radius: 999px; background: var(--border); }
.bx-serp__ads i + i { width: 70%; }

@media (max-width: 1140px) { .bx-grid--posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .bx-grid--posts, .bx-ways, .bx-calc { grid-template-columns: 1fr; }
  .bx-bars__row { grid-template-columns: 1fr auto; }
  .bx-bars__track { grid-column: 1 / -1; grid-row: 2; }
  .bx-flow li::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-reg li, .bx-leadlist li, .bx-panel__foot, .bx-serp__card, .bx-serp__ads, .bx-thermo__fill { animation: none; opacity: 1; }
  .prose .bx-flow li { opacity: 1; transform: none; }
  .bx-bars__track i { width: var(--w); transition: none; }
}
