/*
 * Home Page 4 — Problem-first (front-page-4.php). Loaded only by that template.
 * Colours come from the theme tokens (style.css / components.css), which dark.css flips under
 * html[data-theme="dark"]; the few fixed tints have their dark versions at the end of this file.
 */

.h4-wrap { max-width: 1280px; position: relative; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.h4-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 10px; font-family: var(--font-body, inherit); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: background .2s, transform .2s, box-shadow .2s, border-color .2s; }
.h4-btn i { font-size: 13px; }
.h4-btn--primary { background: #10b981; color: #fff; box-shadow: 0 10px 24px -10px rgba(16,185,129,.7); }
.h4-btn--primary:hover { background: #059669; color: #fff; transform: translateY(-1px); }
.h4-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.h4-btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.h4-btn--light { background: #fff; color: #3b1f8f; }
.h4-btn--light:hover { background: #f1ecff; color: #3b1f8f; transform: translateY(-1px); }
.h4-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ta-primary); text-decoration: none; }
.h4-link i { font-size: 11px; transition: transform .2s; }
.h4-link:hover { color: var(--ta-primary-dark); }
.h4-link:hover i, a:hover > .h4-link i { transform: translateX(3px); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.h4-hero { background: linear-gradient(135deg, #0c1a3d 0%, #1e4496 62%, #142d6b 100%); position: relative; overflow: hidden; padding: 72px 0 48px; color: #fff; }
.h4-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 40%, rgba(16,185,129,.16) 0, transparent 50%), radial-gradient(circle at 88% 12%, rgba(99,140,255,.22) 0, transparent 50%); }
.h4-pain { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.h4-pain span { position: relative; font-size: 13px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 13px; }
.h4-pain span::after { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; border-radius: 2px; background: #f87171; transform: scaleX(0); transform-origin: left center; animation: h4Strike .5s ease-out forwards; }
.h4-pain span:nth-child(1)::after { animation-delay: .5s; }
.h4-pain span:nth-child(2)::after { animation-delay: .9s; }
.h4-pain span:nth-child(3)::after { animation-delay: 1.3s; }
@keyframes h4Strike { to { transform: scaleX(1); } }
.h4-hero h1 { font-family: var(--font-head); font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #fff; margin: 0 0 18px; text-wrap: balance; }
.h4-ai h2, .h4-contact-text h2, .h4-panel h3 { text-wrap: balance; }
.h4-hero h1 span { color: #34d399; }
.h4-lead { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.78); max-width: 580px; margin: 0 0 26px; }
.h4-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.h4-watch { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: rgba(255,255,255,.82); text-decoration: none; margin-bottom: 18px; }
.h4-watch:hover { color: #fff; text-decoration: underline; }
.h4-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: rgba(255,255,255,.72); }
.h4-ticks i { color: #34d399; font-size: 11px; margin-right: 4px; }

.h4-stage { position: relative; padding: 18px 0 30px; }
.h4-frame { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.h4-frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef2f7; border-bottom: 1px solid #dde3ec; }
.h4-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #f87171; }
.h4-frame-bar i:nth-child(2) { background: #fbbf24; }
.h4-frame-bar i:nth-child(3) { background: #34d399; }
.h4-frame-bar span { margin-left: 10px; flex: 1; max-width: 260px; font-size: 11px; color: #64748b; background: #fff; border-radius: 6px; padding: 2px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h4-frame img { display: block; width: 100%; height: auto; }

.h4-toast { position: absolute; display: flex; align-items: center; gap: 10px; min-width: 230px; max-width: 280px; padding: 11px 14px; border-radius: 12px; background: var(--ta-card, #fff); color: var(--ta-heading); border: 1px solid var(--ta-border); box-shadow: 0 16px 40px -12px rgba(2,8,23,.45); opacity: 0; transform: translateY(10px); animation: h4ToastIn .5s ease-out forwards, h4Float 6s ease-in-out 1.5s infinite; }
.h4-toast b { display: block; font-size: 13px; font-weight: 700; color: var(--ta-heading); line-height: 1.3; }
.h4-toast small { display: block; font-size: 11.5px; color: var(--ta-muted); line-height: 1.35; }
.h4-toast--1 { left: -22px; top: 22%; animation-delay: .8s, 1.6s; }
.h4-toast--2 { right: -18px; top: 52%; animation-delay: 1.4s, 2.4s; }
.h4-toast--3 { left: 10%; bottom: 0; animation-delay: 2s, 3.2s; }
.h4-toast-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
@keyframes h4ToastIn { to { opacity: 1; transform: translateY(0); } }
@keyframes h4Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.h4-outcomes { margin-top: 52px; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 16px; overflow: hidden; }
.h4-out { padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.1); }
.h4-out:last-child { border-right: 0; }
.h4-out-ico { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: rgba(52,211,153,.14); color: #34d399; font-size: 15px; margin-bottom: 10px; }
.h4-out b { display: block; font-size: 14.5px; color: #fff; margin-bottom: 4px; }
.h4-out span:last-child { display: block; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.66); }

/* ── Tints shared by icons ───────────────────────────────────────────── */
.is-green  { background: #ecfdf5; color: #059669; }
.is-blue   { background: #eef2fb; color: #1e4496; }
.is-violet { background: #f5f3ff; color: #7c3aed; }
.is-amber  { background: #fffbeb; color: #d97706; }
.is-red    { background: #fef2f2; color: #dc2626; }
.is-teal   { background: #f0fdfa; color: #0d9488; }

/* ── Customer proof ──────────────────────────────────────────────────── */
.h4-proof { padding: 72px 0; background: var(--ta-page); border-bottom: 1px solid var(--ta-border); }
.h4-ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 32px; }
.h4-rating { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--ta-border); border-radius: 12px; background: var(--ta-card); text-decoration: none; }
.h4-rating b { font-size: 20px; color: var(--ta-heading); }
.h4-rating b i { color: #f59e0b; font-size: 14px; }
.h4-rating span { font-size: 13px; font-weight: 600; color: var(--ta-heading); }
.h4-rating small { display: block; font-weight: 400; color: var(--ta-muted); }
.h4-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; margin-bottom: 36px; }
.h4-logos img { height: 38px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.h4-logos img:hover { filter: none; opacity: 1; }
.h4-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.h4-quote { margin: 0; padding: 26px; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-card); box-shadow: var(--ta-shadow-card); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.h4-quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ta-heading); }
.h4-quote blockquote::before { content: '\201C'; display: block; font-size: 40px; line-height: .8; color: var(--ta-primary); opacity: .5; }
.h4-quote figcaption { display: flex; align-items: center; gap: 12px; }
.h4-quote-av { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ta-primary-light); color: var(--ta-primary); font-weight: 700; }
.h4-quote figcaption b { display: block; font-size: 14px; color: var(--ta-heading); }
.h4-quote figcaption small { display: block; font-size: 12.5px; color: var(--ta-muted); }

/* ── Module explorer ─────────────────────────────────────────────────── */
.h4-mx { padding: 80px 0; background: var(--ta-page); border-bottom: 1px solid var(--ta-border); }
.h4-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 28px; }
.h4-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 999px; border: 1px solid var(--ta-border); background: var(--ta-card); color: var(--ta-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.h4-tab i { font-size: 13px; color: var(--ta-primary); }
.h4-tab:hover { border-color: var(--ta-primary); color: var(--ta-primary); }
.h4-tab[aria-selected="true"] { background: var(--ta-primary); border-color: var(--ta-primary); color: #fff; }
.h4-tab[aria-selected="true"] i { color: #fff; }
.h4-tab:focus-visible { outline: 3px solid rgba(30,68,150,.35); outline-offset: 2px; }
/* Without JavaScript every panel shows, one under another; home4.js hides all but the chosen one */
.h4-panel { display: grid; grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; padding: 40px; border: 1px solid var(--ta-border); border-radius: 20px; background: var(--ta-card); box-shadow: var(--ta-shadow-card); }
.h4-panel + .h4-panel { margin-top: 24px; }
.h4-panels.is-tabbed .h4-panel + .h4-panel { margin-top: 0; }
.h4-panel[hidden] { display: none; }
.h4-panels.is-tabbed .h4-panel { animation: h4Fade .35s ease-out; }
@keyframes h4Fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h4-panel-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ta-accent); margin-bottom: 8px; }
.h4-panel h3 { font-family: var(--font-head); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--ta-heading); margin: 0 0 10px; }
.h4-panel p { font-size: 15px; line-height: 1.7; color: var(--ta-body); margin: 0 0 18px; }
.h4-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; }
.h4-flow span { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 8px; background: var(--ta-primary-light); color: var(--ta-primary); }
.h4-flow i { font-size: 9px; color: var(--ta-muted); }
.h4-bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.h4-bullets li { display: flex; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ta-body); }
.h4-bullets li i { flex: 0 0 auto; margin-top: 4px; font-size: 10px; color: var(--ta-accent); }
.h4-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--ta-border); background: #fff; box-shadow: 0 18px 44px -18px rgba(15,23,42,.35); }
.h4-shot img { display: block; width: 100%; height: auto; }

/* ── Automations ─────────────────────────────────────────────────────── */
.h4-auto { padding: 80px 0; background: var(--ta-surface); border-bottom: 1px solid var(--ta-border); }
.h4-auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h4-auto-card { padding: 26px; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-card); box-shadow: var(--ta-shadow-card); transition: transform .2s, box-shadow .2s; }
.h4-auto-card:hover { transform: translateY(-3px); box-shadow: var(--ta-shadow-lift); }
.h4-auto-ico, .h4-conn-ico, .h4-partner-ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.h4-auto-card h3, .h4-conn-card h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ta-heading); margin: 0 0 8px; }
.h4-auto-card p, .h4-conn-card p { font-size: 14px; line-height: 1.65; color: var(--ta-body); margin: 0; }

/* ── AI Concierge ────────────────────────────────────────────────────── */
.h4-ai { padding: 88px 0; color: #fff; background: linear-gradient(135deg, #1b1340 0%, #33208a 55%, #1e4496 100%); position: relative; overflow: hidden; }
.h4-ai::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 30%, rgba(167,139,250,.25) 0, transparent 50%); }
.h4-ai-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); margin-bottom: 16px; }
.h4-ai h2 { font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: #fff; margin: 0 0 16px; }
.h4-ai-lead { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.8); margin: 0 0 18px; }
.h4-ai-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.h4-ai-list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.88); }
.h4-ai-list i { margin-top: 5px; font-size: 11px; color: #a7f3d0; }
.h4-ai-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.h4-ai-langs span { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13.5px; }
.h4-ai-langs small { font-size: 12.5px; color: rgba(255,255,255,.65); }
.h4-chat { max-width: 480px; margin: 0 auto; border-radius: 18px; overflow: hidden; background: var(--ta-card, #fff); border: 1px solid var(--ta-border); box-shadow: 0 30px 70px rgba(0,0,0,.4); color: var(--ta-heading); }
.h4-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; color: #fff; background: linear-gradient(90deg, #1e4496, #0f766e); }
.h4-chat-head b { display: block; font-size: 14px; }
.h4-chat-head small { display: block; font-size: 11.5px; opacity: .8; }
.h4-chat-av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; }
.h4-chat-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.h4-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.h4-msg.is-me { align-self: flex-end; background: #6d28d9; color: #fff; border-bottom-right-radius: 4px; }
.h4-msg.is-ai { align-self: flex-start; background: var(--ta-surface); color: var(--ta-heading); border: 1px solid var(--ta-border); border-bottom-left-radius: 4px; }
.h4-msg-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.h4-msg-acts span { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: var(--ta-primary-light); color: var(--ta-primary); }
.h4-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 18px; padding: 10px 12px 10px 14px; border: 1px solid var(--ta-border); border-radius: 12px; font-size: 13px; color: var(--ta-muted); }
.h4-chat-input i { width: 26px; height: 26px; border-radius: 50%; background: #1e4496; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

/* ── Connected ───────────────────────────────────────────────────────── */
.h4-conn { padding: 80px 0; background: var(--ta-surface); border-bottom: 1px solid var(--ta-border); }
.h4-conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h4-conn-card { display: flex; flex-direction: column; gap: 0; padding: 26px; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-card); box-shadow: var(--ta-shadow-card); text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.h4-conn-card:hover { transform: translateY(-3px); box-shadow: var(--ta-shadow-lift); }
.h4-conn-card p { flex: 1; margin-bottom: 16px; }
.h4-stores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.h4-store { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12.5px; font-weight: 600; text-decoration: none; }
.h4-store:hover { background: #1e293b; color: #fff; }
.h4-int { margin-top: 36px; padding: 28px; border: 1px dashed var(--ta-border); border-radius: 16px; text-align: center; background: var(--ta-card); }
.h4-int-title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ta-muted); margin: 0 0 14px; }
.h4-int-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.h4-int-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ta-border); background: var(--ta-surface); font-size: 13.5px; font-weight: 600; color: var(--ta-heading); }
.h4-int-chips i { color: var(--ta-primary); }
.h4-int-move { margin: 18px 0 0; font-size: 14px; color: var(--ta-body); }
.h4-int-move i { color: var(--ta-accent); margin-right: 6px; }

/* ── Partners ────────────────────────────────────────────────────────── */
.h4-partners { padding: 0 0 72px; background: var(--ta-surface); }
.h4-partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.h4-partner { display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--ta-border); border-radius: 16px; background: var(--ta-card); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.h4-partner:hover { border-color: var(--ta-primary); box-shadow: var(--ta-shadow-lift); }
.h4-partner-ico { flex: 0 0 44px; margin: 0; }
.h4-partner-txt { flex: 1; }
.h4-partner-txt b { display: block; font-size: 15px; color: var(--ta-heading); margin-bottom: 3px; }
.h4-partner-txt span { display: block; font-size: 13px; line-height: 1.5; color: var(--ta-body); }
.h4-partner-go { color: var(--ta-primary); font-size: 13px; }

/* ── Talk to us ──────────────────────────────────────────────────────── */
.h4-contact { padding: 72px 0; background: var(--ta-page); }
.h4-contact-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 44px 48px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #0c1a3d, #1e4496); box-shadow: 0 24px 60px -24px rgba(12,26,61,.6); }
.h4-contact-text h2 { font-family: var(--font-head); font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; color: #fff; margin: 0 0 12px; }
.h4-contact-text p { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.75); margin: 0 0 22px; }
.h4-contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h4-contact-tiles a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: background .2s; }
.h4-contact-tiles a:hover { background: rgba(255,255,255,.13); color: #fff; }
.h4-contact-tiles i { font-size: 17px; color: #fbbf24; width: 20px; text-align: center; }
.h4-contact-tiles b { display: block; font-size: 14px; }
.h4-contact-tiles small { display: block; font-size: 12.5px; color: rgba(255,255,255,.65); word-break: break-word; }

.h4-contact-tiles .fa-whatsapp { color: #25d366; font-size: 20px; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .h4-toast--1 { left: -6px; }
  .h4-toast--2 { right: -6px; }
}
@media (max-width: 991.98px) {
  .h4-hero { padding: 48px 0 36px; }
  .h4-stage { max-width: 620px; margin: 0 auto; }
  .h4-outcomes { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .h4-out { border-bottom: 1px solid rgba(255,255,255,.1); }
  .h4-out:nth-child(2n) { border-right: 0; }
  .h4-out:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .h4-panel { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
  .h4-shot { order: -1; }
  .h4-auto-grid, .h4-conn-grid { grid-template-columns: repeat(2, 1fr); }
  .h4-partner-grid { grid-template-columns: 1fr; }
  .h4-contact-in { grid-template-columns: 1fr; padding: 32px 28px; }
}
@media (max-width: 767.98px) {
  .h4-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -12px 22px; padding: 2px 12px 6px; }
  .h4-tabs::-webkit-scrollbar { display: none; }
  .h4-toast { min-width: 0; max-width: 220px; padding: 8px 10px; }
  .h4-toast small { display: none; }
  .h4-toast-ico { flex-basis: 28px; width: 28px; height: 28px; font-size: 12px; }
  .h4-toast--1 { left: -4px; top: 10%; }
  .h4-toast--2 { right: -4px; top: auto; bottom: 34%; }
  .h4-toast--3 { display: none; }
}
@media (max-width: 575.98px) {
  .h4-ctas .h4-btn { flex: 1 1 100%; justify-content: center; }
  .h4-outcomes { grid-template-columns: 1fr; }
  .h4-out { border-right: 0; }
  .h4-out:last-child { grid-column: auto; }
  .h4-bullets { grid-template-columns: 1fr; }
  .h4-auto-grid, .h4-conn-grid { grid-template-columns: 1fr; }
  .h4-contact-tiles { grid-template-columns: 1fr; }
  .h4-panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .h4-pain span::after { animation: none; transform: scaleX(1); }
  .h4-toast { animation: none; opacity: 1; transform: none; }
  .h4-panels.is-tabbed .h4-panel { animation: none; }
}

/* ── Dark mode: the fixed tints and white backgrounds ────────────────── */
html[data-theme="dark"] .is-green  { background: rgba(16,185,129,.16); color: #6ee7b7; }
html[data-theme="dark"] .is-blue   { background: rgba(82,116,212,.18); color: #a5b8f0; }
html[data-theme="dark"] .is-violet { background: rgba(139,92,246,.18); color: #c4b5fd; }
html[data-theme="dark"] .is-amber  { background: rgba(245,158,11,.16); color: #fcd34d; }
html[data-theme="dark"] .is-red    { background: rgba(220,38,38,.16); color: #fca5a5; }
html[data-theme="dark"] .is-teal   { background: rgba(20,184,166,.16); color: #5eead4; }
html[data-theme="dark"] .h4-hero { background: linear-gradient(135deg, #070f24 0%, #142f6e 62%, #0d1f4d 100%); }
html[data-theme="dark"] .h4-frame { background: #0f1729; }
html[data-theme="dark"] .h4-frame-bar { background: #16203a; border-bottom-color: #233049; }
html[data-theme="dark"] .h4-frame-bar span { background: #0f1729; color: #93a1ba; }
html[data-theme="dark"] .h4-shot { background: #0f1729; }
html[data-theme="dark"] .h4-tab[aria-selected="true"] { color: #fff; }
html[data-theme="dark"] .h4-store { background: #e8eefa; color: #0b1120; }
html[data-theme="dark"] .h4-store:hover { background: #fff; color: #0b1120; }
html[data-theme="dark"] .h4-btn--light { background: #ede9fe; }
html[data-theme="dark"] .h4-ai { background: linear-gradient(135deg, #120c2c 0%, #251766 55%, #142f6e 100%); }
html[data-theme="dark"] .h4-contact-in { background: linear-gradient(135deg, #0a1430, #1a3a82); border: 1px solid #233049; }
html[data-theme="dark"] .h4-msg.is-me { background: #7c3aed; }
html[data-theme="dark"] .h4-chat-input i { background: #5274d4; }
