/*
Theme Name: KeyXplore
Theme URI: https://keyxplore.com/
Author: KeyXplore
Description: KeyXplore child theme for Astra (with Astra Pro) — software, integrations and AI.
Template: astra
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: keyxplore
*/

:root {
	--ink: #0B1220;
	--ink-2: #111A2E;
	--ink-3: #1A2540;
	--text: #1B2333;
	--muted: #5B6578;
	--muted-dark: #A3AEC4;
	--line: #E3E8F0;
	--line-dark: rgba(255, 255, 255, .1);
	--bg: #FFFFFF;
	--bg-alt: #F5F7FB;
	--indigo: #5B6CFF;
	--teal: #19C3B2;
	--grad: linear-gradient(120deg, #6E7CFF 0%, #19C3B2 100%);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
	--shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 40px rgba(16, 24, 40, .1);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Plus Jakarta Sans", var(--font);
	--header-h: 72px;
	--gutter: 24px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 600 .8rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--indigo); margin-bottom: 1.1em; }
.eyebrow a { color: inherit; }
.kx-icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent; font: 600 .97rem/1.2 var(--font); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .kx-icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .kx-icon { transform: translateX(2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(91, 108, 255, .35); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(91, 108, 255, .45); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-sm { padding: .6em 1.1em; font-size: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; white-space: nowrap; flex: none; }

/* Astra layout: its content wrapper is a flex row, but the templates are stacked full-bleed sections. */
body.ast-page-builder-template .site-content > .ast-container { display: block; width: 100%; max-width: none; padding: 0; }

/* Line the header and footer up with the page's 1200px .container on every screen size. */
#masthead .site-primary-header-wrap.ast-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
#ast-desktop-header .ast-primary-header-bar { padding-left: 0 !important; padding-right: 0 !important; }
@media (min-width: 922px) and (max-width: 1120px) {
	#masthead .main-header-menu .menu-link { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
	#masthead .ast-header-button-1 .ast-custom-button { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
}
#ast-mobile-header .ast-primary-header-bar.site-primary-header-wrap { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
#ast-mobile-header .site-header-section > * { margin-left: 0; margin-right: 0; }
.site-footer .site-primary-footer-wrap, .site-footer .site-below-footer-wrap { padding-left: 0; padding-right: 0; }
.site-footer .ast-builder-footer-grid-columns { width: 100%; max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }

/* Astra adds width classes to posts in the blog loop and unsets .entry-content's max-width. */
.post-grid > .post-card { width: auto; max-width: none; margin: 0; padding: 0; float: none; }
.section .prose-narrow { max-width: 780px; }

/* Header (rendered by the Astra header builder) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 700 1.25rem/1 var(--font-display); letter-spacing: -.02em; }
.brand:hover, .brand:focus { color: #fff; text-decoration: none; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 34px; height: 34px; }
.custom-logo { max-height: 44px; width: auto; }
#masthead .ast-builder-html-element p { margin: 0; }
#masthead .main-header-menu .menu-link { font-weight: 500; }
#masthead .ast-header-button-1 .ast-custom-button, #ast-mobile-popup .ast-header-button-1 .ast-custom-button { background: var(--grad); border: 0; border-radius: 999px; box-shadow: 0 8px 24px rgba(91, 108, 255, .35); font-weight: 600; }
#masthead .ast-header-button-1 .ast-custom-button:hover { box-shadow: 0 10px 30px rgba(91, 108, 255, .45); }
#ast-mobile-header .menu-toggle, #ast-mobile-header .menu-toggle:hover, #ast-mobile-header .menu-toggle:focus { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .22) !important; }
#ast-mobile-header .menu-toggle .ast-mobile-svg { fill: currentColor; }
#ast-mobile-popup .menu-item, #ast-mobile-popup .menu-link { border-color: var(--line-dark) !important; }


/* Hero */
.hero, .page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--muted-dark); }
.hero { padding: calc(var(--header-h) + 72px) 0 96px; }
.hero h1, .page-hero h1 { color: #fff; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(91, 108, 255, .35), transparent 60%); filter: blur(10px); }
.hero-glow::after { content: ""; position: absolute; width: 520px; height: 520px; left: -380px; top: 380px; background: radial-gradient(circle, rgba(25, 195, 178, .22), transparent 60%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--teal); }
.lead { font-size: 1.18rem; color: var(--muted-dark); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; font-size: .93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .kx-icon { color: var(--teal); }

.system-map { width: 100%; overflow: visible; }
.system-map .flow { stroke: rgba(140, 160, 255, .45); stroke-width: 1.5; fill: none; stroke-dasharray: 5 7; animation: flow 3s linear infinite; }
.system-map .node rect { fill: var(--ink-2); stroke: rgba(255, 255, 255, .14); }
.system-map .node circle { fill: var(--teal); }
.system-map .node text { fill: #DCE3F2; font: 500 13px var(--font); }
.system-map .hub rect { filter: drop-shadow(0 12px 30px rgba(91, 108, 255, .45)); }
.system-map .hub-title { fill: #fff; font: 700 16px var(--font-display); }
.system-map .hub-sub { fill: rgba(255, 255, 255, .85); font: 500 11.5px var(--font); }
.system-map .node { animation: float 6s ease-in-out infinite; }
.system-map .node:nth-of-type(2n) { animation-delay: -3s; }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes float { 50% { translate: 0 -5px; } }

.page-hero { padding: calc(var(--header-h) + 72px) 0 80px; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16em; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero-post h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* Sections */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--muted-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card { display: flex; flex-direction: column; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #CBD3FF; }
.service-card p { color: var(--muted); font-size: .97rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .93rem; color: var(--indigo); }
.icon-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, rgba(91, 108, 255, .12), rgba(25, 195, 178, .12)); color: var(--indigo); margin-bottom: 22px; }
.icon-badge .kx-icon { width: 24px; height: 24px; }
.icon-badge-lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-badge-lg .kx-icon { width: 28px; height: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-top { align-items: start; }
.check-list { list-style: none; display: grid; gap: 12px; margin: 8px 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .kx-icon { color: var(--teal); margin-top: .2em; }
.card .check-list { margin-bottom: 0; }
.card-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--font); font-weight: 600; margin-bottom: 18px; }
.lead-dark { font-size: 1.15rem; color: var(--ink); font-weight: 500; }

/* Phone mockup */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone-wrap::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--grad); opacity: .16; filter: blur(30px); }
.phone { position: relative; width: 290px; padding: 22px 18px; border-radius: 38px; background: var(--ink); border: 8px solid #1E2943; box-shadow: var(--shadow-lg), 0 30px 60px rgba(11, 18, 32, .25); color: #fff; font-size: .85rem; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 18px; }
.pill { font-size: .72rem; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--muted-dark); font-weight: 500; }
.phone-balance { padding: 16px; border-radius: 16px; background: var(--grad); margin-bottom: 16px; }
.phone-balance small { display: block; opacity: .85; }
.phone-balance strong { font: 800 1.7rem/1.2 var(--font-display); }
.phone-bars { display: flex; align-items: end; gap: 8px; height: 70px; margin-bottom: 16px; padding: 0 4px; }
.phone-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(140, 160, 255, .35); }
.phone-bars i:nth-child(4) { background: var(--teal); }
.phone-list { list-style: none; display: grid; gap: 8px; }
.phone-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.phone-list b { margin-left: auto; font-weight: 600; }
.phone-list .in { color: var(--teal); }
.phone-list .out { color: #E3E8F5; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.d1 { background: #F7B955; } .d2 { background: var(--teal); } .d3 { background: #FF7A7A; } .d4 { background: #8C9BFF; }

/* Products */
.section-head-row > div { max-width: 680px; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-card { display: flex; flex-direction: column; }
.product-card > p { color: var(--muted); }
.product-card .check-list { margin-bottom: 28px; }
.product-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.product-head h2, .product-head h3 { margin: 0 0 4px; }
.product-head h3 { font-size: 1.4rem; }
.product-tagline { margin: 0; color: var(--muted); font-size: .95rem; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 6px 18px rgba(16, 24, 40, .16); flex: none; }
.app-icon-lg { width: 76px; height: 76px; border-radius: 19px; }
.product-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.product-pricing { font-size: .93rem; color: var(--muted); padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(91, 108, 255, .06); border: 1px dashed rgba(91, 108, 255, .3); margin-bottom: 24px; }
.btn-play { background: #000; color: #fff; border-radius: 12px; padding: .55em 1.1em .55em .9em; gap: .7em; }
.btn-play:hover { background: #1a1a1a; }
.btn-play svg { width: 24px; height: 24px; }
.btn-play span { display: grid; line-height: 1.1; font-size: 1.05rem; font-weight: 600; }
.btn-play small { font-size: .62rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.split-reverse > :first-child { order: 2; }
.subnav img { width: 20px; height: 20px; border-radius: 5px; }

.phone-canopy { background: #0F1A14; border-color: #1F2D24; }
.phone-wrap-canopy::before { background: linear-gradient(120deg, #E8A93A, #3E7D52); }
.phone-canopy .pill { background: rgba(232, 169, 58, .15); color: #E8A93A; }
.canopy-field { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); margin-bottom: 10px; }
.canopy-field small { display: block; color: #9DB3A5; font-size: .72rem; }
.canopy-field strong { font: 700 1.15rem/1.3 var(--font-display); }
.canopy-field em { display: block; font-style: normal; color: #C9D6CD; font-size: .78rem; }
.canopy-field:first-of-type { border: 1px solid rgba(232, 169, 58, .5); }
.canopy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.canopy-gps strong { font-size: .9rem; }
.phone-canopy .phone-list { margin-top: 4px; }
.canopy-save { display: block; margin-top: 12px; padding: 11px; border-radius: 12px; text-align: center; font-weight: 600; background: #E8A93A; color: #0F1A14; }

/* App showcase */
.product-head h3 a { color: var(--ink); }
.app-hero .product-head { margin-bottom: 28px; }
.app-name { margin: 0; color: #fff; font: 700 1.3rem/1.2 var(--font-display); }
.app-hero .product-tagline { color: var(--muted-dark); }
.app-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.app-hero .hero-actions { align-items: center; }
.app-hero .btn-play { background: #fff; color: #000; }
.app-hero .btn-play:hover { background: #EEF1F7; }
.app-canopy-survey .hero-glow { background: radial-gradient(circle, rgba(232, 169, 58, .28), transparent 60%); }
.phone-shot { position: relative; width: 300px; border-radius: 36px; padding: 8px; background: #1E2943; box-shadow: var(--shadow-lg), 0 30px 60px rgba(11, 18, 32, .3); }
.phone-shot img { border-radius: 28px; width: 100%; }
.screens { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - 1152px) / 2)) 24px; scroll-padding-inline: max(var(--gutter), calc((100vw - 1152px) / 2)); scrollbar-width: thin; }
.screen { flex: none; width: 240px; margin: 0; scroll-snap-align: start; }
.screen img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.screen figcaption { margin-top: 12px; font-weight: 600; font-size: .93rem; color: var(--ink); text-align: center; }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.group-card ul { padding-left: 1.1em; display: grid; gap: 8px; color: var(--muted); font-size: .95rem; }
.group-card li::marker { color: var(--teal); }
.privacy-list { list-style: none; display: grid; gap: 14px; }
.privacy-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ink-2); border: 1px solid var(--line-dark); }
.privacy-list .kx-icon { color: var(--teal); margin-top: .15em; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; }
.plan h3 { font-size: 1.1rem; color: var(--muted); }
.plan-price { font: 800 2.4rem/1.1 var(--font-display); color: var(--ink); margin-bottom: 16px; }
.plan-price small { font: 500 .95rem var(--font); color: var(--muted); }
.plan-price-text { font-size: 1.4rem; }
.plan p:last-child { color: var(--muted); margin: 0; }
.plan-featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.app-note { margin-top: 28px; font-size: .9rem; color: var(--muted); max-width: 52em; }
.cta-inner a:not(.btn) { color: var(--teal); }
.cta-inner .product-head { margin: 0; }
.cta-inner .product-head h2 { margin-bottom: 6px; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 28px 24px 24px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--grad); }
.step-num { display: block; font: 800 .95rem/1 var(--font-display); color: var(--indigo); margin-bottom: 14px; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 30px 26px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line-dark); }
.feature > .kx-icon { width: 28px; height: 28px; color: var(--teal); margin-bottom: 20px; }
.feature p { margin: 0; font-size: .97rem; }
.feature-grid-light .feature { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.feature-grid-light .feature p { color: var(--muted); }
.feature-grid-light .feature > .kx-icon { color: var(--indigo); }

/* Offerings */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .subnav { top: calc(var(--header-h) + 32px); }
.subnav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--text); font-weight: 500; font-size: .93rem; }
.subnav a:first-child { margin-left: -14px; }
.subnav a:hover { background: var(--bg-alt); text-decoration: none; }
.subnav .kx-icon { color: var(--indigo); width: 18px; height: 18px; }
.offering h2 { margin-top: 4px; }

/* About */
.prose { font-size: 1.05rem; }
.prose p { color: var(--muted); }
.stack-list { list-style: none; display: grid; gap: 14px; }
.stack-list li { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--indigo); }
.stack-list li:nth-child(2) { border-left-color: #3A9DE0; }
.stack-list li:nth-child(3) { border-left-color: var(--teal); }
.stack-list strong { font-family: var(--font-display); color: var(--ink); }
.stack-list span { color: var(--muted); font-size: .97rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact-info h2, .form-card h2 { font-size: 1.6rem; }
.contact-item { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; color: var(--ink); font-weight: 600; }
.contact-item:hover { text-decoration: none; }
.contact-item .icon-badge { margin: 0; }
.contact-item small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.contact-info h3 { margin-top: 40px; }
.mini-steps { padding-left: 1.2em; color: var(--muted); display: grid; gap: 8px; }
.form-card { padding: 40px; }
.form-card .srfm-form-container { padding: 0 !important; background: none !important; }
.form-card input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .form-card textarea { width: 100%; padding: 12px 14px !important; border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; background: var(--bg-alt) !important; font: 400 1rem/1.5 var(--font) !important; color: var(--text) !important; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--indigo) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(91, 108, 255, .14) !important; }
.form-card textarea { min-height: 140px; }
.form-card label { font-weight: 600; font-size: .93rem; color: var(--ink); }
.form-card .srfm-submit-button,.form-card button[type="submit"] { border-radius: 999px !important; background: var(--grad) !important; border: 0 !important; font-weight: 600 !important; padding: 14px 28px !important; }

/* CTA band */
.cta-band { padding: 0 0 104px; }
.section-alt + .cta-band, .section-dark + .cta-band, .section + .cta-band { padding-top: 0; }
.section-dark + .cta-band { padding-top: 104px; }
.cta-inner { width: calc(100% - 2 * var(--gutter)); max-width: 1152px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 56px; border-radius: 24px; background: var(--ink); color: var(--muted-dark); position: relative; overflow: hidden; }
.cta-inner::before { content: ""; position: absolute; inset: auto -120px -200px auto; width: 480px; height: 480px; background: radial-gradient(circle, rgba(91, 108, 255, .4), transparent 60%); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-inner p { margin: 0; max-width: 34em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex: none; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* Home page blog section */
.blog-subhead { font-size: 1.05rem; margin: 0 0 20px; }
.post-grid + .blog-subhead { margin-top: 56px; }
.blog-more { display: flex; justify-content: center; margin-top: 56px; }
.popular-list { list-style: none; counter-reset: popular; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.popular-list li { counter-increment: popular; position: relative; padding: 2px 0 2px 52px; }
.popular-list li::before { content: counter(popular); position: absolute; left: 0; top: 0; font: 800 2rem/1 var(--font-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.popular-list a { display: block; color: var(--ink); font: 700 1rem/1.35 var(--font-display); }
.popular-list time { display: block; margin-top: 6px; color: var(--muted); font-size: .86rem; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.thumb-fallback { display: block; height: 100%; background: var(--grad); opacity: .85; }
.post-body { padding: 24px 26px 28px; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: .96rem; margin: 0; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; max-width: 560px; margin: 0 auto; }
.empty-state p { color: var(--muted); }
.post-feature { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; color: var(--muted); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .wp-block-table { margin-left: 0; margin-right: 0; overflow-x: auto; }
.entry-content table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--ink); font-weight: 600; }
.entry-content td { color: var(--muted); }
.rrm-cta:not(:empty) { margin-top: 48px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--indigo); color: var(--ink); font-size: 1.1rem; }
.post-navigation { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 24px; font-weight: 600; }

/* Footer (Astra footer builder; columns come from the [kx_footer_*] shortcodes) */
.site-footer { background: var(--ink); color: var(--muted-dark); font-size: .95rem; }
.site-footer a { color: var(--muted-dark); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.kx-footer-col h3, .site-footer .widget-title { color: #fff; font: 600 .8rem/1 var(--font); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 18px; }
.kx-footer-col h3 + .footer-links { margin-bottom: 28px; }
.footer-brand p { margin-top: 18px; max-width: 26em; }
.footer-links { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; margin: 0; }
.site-footer .ast-footer-copyright p, .site-footer .ast-builder-html-element p { margin: 0; }

/*
 * Depth and parallax. assets/js/main.js only sets the variables below, so with reduced motion
 * or no JS they stay 0 and everything sits in its normal place. These use the `translate`
 * property, so they stack with the `transform` used by the scroll-in reveal.
 *   --hs       pixels scrolled past the top of the hero
 *   --mx --my  pointer position over the hero, -1 to 1
 *   --p        section's distance from the middle of the screen, -1.5 to 1.5 (0 = centred)
 *   --rx --ry  card tilt in degrees
 */
.hero-grid { inset: -18% 0; translate: calc(var(--mx, 0) * -8px) calc(var(--hs, 0) * .42px + var(--my, 0) * -8px); will-change: translate; }
.hero-glow { translate: calc(var(--mx, 0) * -26px) calc(var(--hs, 0) * .26px + var(--my, 0) * -26px); will-change: translate; }
.page-hero .container { translate: 0 calc(var(--hs, 0) * .14px); }
.hero-copy { translate: calc(var(--mx, 0) * 6px) calc(var(--hs, 0) * .14px + var(--my, 0) * 6px); }
.hero-visual { translate: calc(var(--mx, 0) * 20px) calc(var(--hs, 0) * -.09px + var(--my, 0) * 20px); transform: perspective(1100px) rotateY(calc(var(--mx, 0) * 7deg)) rotateX(calc(var(--my, 0) * -7deg)); }

.section { position: relative; overflow: clip; }
.section > * { position: relative; z-index: 1; }
.section::before, .section::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; will-change: translate; }
.section::before { width: 620px; height: 620px; left: -220px; top: 4%; background: radial-gradient(circle, rgba(91, 108, 255, .11), transparent 66%); translate: 0 calc(var(--p, 0) * 190px); }
.section::after { width: 460px; height: 460px; right: -150px; bottom: 2%; background: radial-gradient(circle, rgba(25, 195, 178, .12), transparent 66%); translate: 0 calc(var(--p, 0) * -110px); }
.section-alt::before { left: auto; right: -220px; }
.section-alt::after { right: auto; left: -150px; }
.section-dark::before { background: radial-gradient(circle, rgba(91, 108, 255, .3), transparent 66%); }
.section-dark::after { background: radial-gradient(circle, rgba(25, 195, 178, .2), transparent 66%); }
.section:has(.entry-content)::before, .section:has(.entry-content)::after { display: none; }
.cta-inner::before { translate: 0 calc(var(--p, 0) * 70px); }
.phone-wrap::before { translate: 0 calc(var(--p, 0) * 46px); }

/* Cards lift apart by a few pixels while scrolling and line up exactly once their section is centred. */
@media (min-width: 1081px) {
	:is(.card-grid, .feature-grid, .group-grid, .post-grid, .plan-grid, .steps) > :nth-child(odd) { translate: 0 calc(var(--p, 0) * 6px); }
	:is(.card-grid, .feature-grid, .group-grid, .post-grid, .plan-grid, .steps) > :nth-child(even) { translate: 0 calc(var(--p, 0) * -6px); }
}

.js .kx-tilt, .js .reveal.is-visible.kx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(10px); transition: transform .12s ease-out, box-shadow .2s; transition-delay: 0s; box-shadow: var(--shadow-lg); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card-grid .reveal:nth-child(2), .feature-grid .reveal:nth-child(2), .steps .reveal:nth-child(2), .post-grid .reveal:nth-child(2) { transition-delay: .08s; }
.card-grid .reveal:nth-child(3), .feature-grid .reveal:nth-child(3), .steps .reveal:nth-child(3), .post-grid .reveal:nth-child(3) { transition-delay: .16s; }
.card-grid .reveal:nth-child(4), .feature-grid .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Responsive */
@media (max-width: 1080px) {
	.card-grid, .feature-grid, .steps, .group-grid { grid-template-columns: repeat(2, 1fr); }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { max-width: 520px; }
	.hero-copy, .hero-visual { translate: none; }
}

@media (max-width: 860px) {
	.split, .contact-grid, .feature-grid-3, .product-grid { grid-template-columns: 1fr; gap: 40px; }
	.split-reverse > :first-child { order: 0; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.popular-list { grid-template-columns: 1fr; }
	.cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
	.section { padding: 80px 0; }
	.cta-band { padding-bottom: 80px; }
	.section-dark + .cta-band { padding-top: 80px; }
}

@media (max-width: 782px) {
	.admin-bar .subnav { top: calc(var(--header-h) + 46px); }
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.hero { padding: calc(var(--header-h) + 48px) 0 64px; }
	.page-hero { padding: calc(var(--header-h) + 48px) 0 56px; }
	.card-grid, .feature-grid, .steps, .post-grid, .group-grid, .plan-grid { grid-template-columns: 1fr; }
	.phone-shot { width: 260px; }
	.screen { width: 200px; }
	.cta-inner .product-head { flex-direction: column; align-items: flex-start; }
	.card, .form-card { padding: 24px; }
	.section { padding: 64px 0; }
	.section-head { margin-bottom: 36px; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
	.hero-actions .btn, .cta-actions, .cta-actions .btn { width: 100%; justify-content: center; }
	.cta-inner { padding: 32px 22px; }
	.cta-actions .btn-ghost { font-size: .88rem; }
	.phone { width: 260px; }
	.phone-wrap::before { width: 280px; height: 280px; }
}
