/*
Theme Name: Kraftrs
Theme URI: https://kraftrs.com
Author: Kraftrs
Author URI: https://kraftrs.com
Description: AI-native tech studio block theme for Indian D2C brands.
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
Version: 2.6.0
Text Domain: kraftrs
*/

/* =====================================================================
   KRAFTRS DESIGN SYSTEM v3
   A premium dark, amber-accented system. Built around elevation,
   consistent rhythm, one card system, and tasteful motion.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
	/* Surfaces — true elevation ladder */
	--kf-base:        #060300;   /* page background */
	--kf-base-2:      #0A0703;   /* alternating section */
	--kf-panel:       #0F0B06;   /* raised panel */
	--kf-card:        #15100A;   /* card resting */
	--kf-card-2:      #1C160E;   /* card hover / featured */
	--kf-dark-shade:  #0D0701;

	/* Brand */
	--kf-accent:       #e69e2c;
	--kf-accent-light: #FDD5A5;
	--kf-accent-dark:  #764203;
	--kf-secondary:    #CBA704;

	/* Text */
	--kf-white:          #FFFFFD;
	--kf-foreground:     #F4EFEA;
	--kf-foreground-alt: #D8D0C6;
	--kf-meta:           #9A8F82;

	/* Lines & glow */
	--kf-border:        rgba(255, 255, 255, 0.08);
	--kf-border-strong: rgba(255, 255, 255, 0.14);
	--kf-border-amber:  rgba(230, 158, 44, 0.35);
	--kf-glow:          rgba(230, 158, 44, 0.16);
	--kf-glow-soft:     rgba(230, 158, 44, 0.07);

	/* Type */
	--kf-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Radii */
	--kf-radius-sm: 12px;
	--kf-radius-md: 18px;
	--kf-radius-lg: 24px;
	--kf-radius-xl: 60px;

	/* Shadow */
	--kf-shadow:       0 4px 24px rgba(0, 0, 0, 0.35);
	--kf-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.55);
	--kf-shadow-amber: 0 18px 50px rgba(230, 158, 44, 0.18);

	/* Motion */
	--kf-transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	--kf-ease:       cubic-bezier(0.22, 1, 0.36, 1);

	/* Rhythm */
	--kf-section-y: clamp(3rem, 5vw, 5rem);
	--kf-gutter:    clamp(1.25rem, 4vw, 2.5rem);
	--kf-wide:      1240px;
	--kf-read:      760px;

	/* Legacy aliases (kept for existing pattern markup) */
	--kf-bg-alt: var(--kf-card);
}

/* ---------------------------------------------------------------------
   2. BASE / RESET
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--kf-font);
	background-color: var(--kf-base);
	color: var(--kf-foreground);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.7;
	margin: 0;
	overflow-x: hidden;
}

::selection { background: var(--kf-accent); color: var(--kf-base); }

img { max-width: 100%; height: auto; }

/* Subtle global grain/vignette for depth, never flat */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(230, 158, 44, 0.06), transparent 60%),
		radial-gradient(900px 500px at 100% 110%, rgba(203, 167, 4, 0.04), transparent 60%);
}
.wp-site-blocks { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .wp-block-heading {
	font-family: var(--kf-font);
	color: var(--kf-white);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

/*
 * TYPE SCALE — Inter, 16px base, modular 1.25 ratio
 * body h1/h2 specificity (0,1,1) beats WP global-styles (0,0,1)
 * Display  : 36–48px  (hero only, set inline in hero pattern)
 * H1       : 28–36px  (page / section hero)
 * H2       : 22–28px  (section heading)
 * H3       : 17–20px  (card title)
 * H4       : 14–16px  (label heading)
 * Body     : 15px
 * Small    : 13px
 */
body h1, body .wp-block-heading:where(h1) { font-size: clamp(1.5rem, 0.9rem + 2.2vw, 2rem);   font-weight: 800; }
body h2, body .wp-block-heading:where(h2) { font-size: clamp(1.25rem, 0.9rem + 1.2vw, 1.625rem); font-weight: 800; }
body h3, body .wp-block-heading:where(h3) { font-size: clamp(1rem,    0.9rem + 0.4vw, 1.175rem); font-weight: 700; }
body h4, body .wp-block-heading:where(h4) { font-size: clamp(0.875rem, 0.85rem + 0.15vw, 0.975rem); font-weight: 600; }
body h5 { font-size: 0.875rem; font-weight: 600; }

/* Base body — 15px */
p {
	color: var(--kf-foreground-alt);
	line-height: 1.72;
	font-size: 0.9375rem;
}
.has-text-align-center { text-wrap: balance; }

a { color: var(--kf-accent); text-decoration: none; transition: color 0.25s var(--kf-ease); }
a:hover { color: var(--kf-accent-light); }

/* Display gradient text utility */
.kf-text-gradient {
	background: linear-gradient(100deg, var(--kf-white) 0%, var(--kf-accent-light) 55%, var(--kf-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}
.kf-text-amber { color: var(--kf-accent) !important; }

/* Lead — slightly larger than body, used under hero headings */
.kf-lead { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.125rem); color: var(--kf-foreground); line-height: 1.7; }

/* Card / box text — 14px inside constrained containers */
.kf-card p, .kf-card li,
.wp-block-group.kf-card p { font-size: 0.875rem; line-height: 1.65; }
.kf-card h3 { font-size: 1.0625rem; line-height: 1.25; }
.kf-card h4 { font-size: 0.9375rem; }

/* Meta / label sizes */
.kf-stat-label  { font-size: 0.8125rem !important; line-height: 1.5; }
.kf-eyebrow     { font-size: 0.75rem !important; }
.kf-footer-list a { font-size: 0.875rem; }

/* ---------------------------------------------------------------------
   4. LAYOUT HELPERS
   --------------------------------------------------------------------- */
.wp-site-blocks { padding: 0; }

.alignfull {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Section rhythm + relative context for ambient glow */
.kf-section {
	padding-top: var(--kf-section-y);
	padding-bottom: var(--kf-section-y);
	padding-left: var(--kf-gutter);
	padding-right: var(--kf-gutter);
	position: relative;
}
.kf-section-dark { background-color: var(--kf-base-2); }
.kf-section-panel { background-color: var(--kf-panel); }

/* Ambient amber wash behind a section */
.kf-ambient { position: relative; overflow: hidden; }
.kf-ambient::before {
	content: '';
	position: absolute;
	top: -30%;
	left: 50%;
	transform: translateX(-50%);
	width: min(900px, 90%);
	height: 600px;
	background: radial-gradient(circle, var(--kf-glow) 0%, transparent 65%);
	pointer-events: none;
	z-index: 0;
}
.kf-ambient > * { position: relative; z-index: 1; }

/* kf-hero-glow is an alias for kf-ambient — keeps legacy patterns working */
.kf-hero-glow { position: relative; overflow: hidden; }
.kf-hero-glow::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(80% 60% at 50% 0%, rgba(230,158,44,0.12) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}
.kf-hero-glow > * { position: relative; z-index: 1; }

/* Image slot — swappable media frame */
.kf-img-slot {
	position: relative;
	overflow: hidden;
	border-radius: var(--kf-radius-lg, 16px);
	border: 1px solid rgba(230,158,44,0.14);
	background: linear-gradient(160deg, #1a130a, #060300);
}
.kf-img-slot__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.kf-img-slot--hero {
	aspect-ratio: 16 / 6;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Hairline divider with amber glow center */
.kf-glow-line {
	background: linear-gradient(90deg, transparent, var(--kf-border-amber), transparent);
	height: 1px;
	width: 100%;
	border: 0;
}

/* ---------------------------------------------------------------------
   5. EYEBROW LABEL — used on every section
   --------------------------------------------------------------------- */
.kf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--kf-accent);
	margin: 0 0 1rem;
}
.kf-eyebrow::before { display: none; content: none; }
.kf-eyebrow.is-centered { justify-content: center; }

/* Pill badge */
.kf-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--kf-glow-soft);
	border: 1px solid var(--kf-border-amber);
	border-radius: 60px;
	padding: 0.4rem 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--kf-accent);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.kf-badge .kf-dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--kf-accent);
	box-shadow: 0 0 0 0 rgba(230,158,44,0.6);
	animation: kf-ping 2s infinite;
}

/* ---------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------- */
.wp-block-button__link, .wp-element-button, .kf-btn {
	font-family: var(--kf-font) !important;
	font-weight: 600;
	font-size: 0.98rem;
	border-radius: var(--kf-radius-xl) !important;
	padding: 0.85rem 1.9rem;
	transition: var(--kf-transition);
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 1;
}

/* Primary — amber fill */
.wp-block-button:not(.is-style-outline):not(.is-style-kraftrs-ghost) .wp-block-button__link,
.kf-btn.kf-btn--primary {
	background: var(--kf-accent) !important;
	color: #1a1205 !important;
	border: none;
	box-shadow: 0 6px 22px rgba(230, 158, 44, 0.22);
}
.wp-block-button:not(.is-style-outline):not(.is-style-kraftrs-ghost) .wp-block-button__link:hover,
.kf-btn.kf-btn--primary:hover {
	background: var(--kf-accent-light) !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 34px rgba(230, 158, 44, 0.35);
	color: #1a1205 !important;
}

/* Ghost / outline — hairline */
.wp-block-button.is-style-outline .wp-block-button__link,
.is-style-kraftrs-ghost .wp-block-button__link,
.kf-btn.kf-btn--ghost {
	background: rgba(255,255,255,0.02) !important;
	color: var(--kf-white) !important;
	border: 1px solid var(--kf-border-strong) !important;
	box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.is-style-kraftrs-ghost .wp-block-button__link:hover,
.kf-btn.kf-btn--ghost:hover {
	border-color: var(--kf-border-amber) !important;
	background: var(--kf-glow-soft) !important;
	color: var(--kf-white) !important;
	transform: translateY(-2px);
}

/* Text + arrow button */
.kf-btn--text {
	background: none;
	border: none;
	padding: 0;
	color: var(--kf-accent);
	font-weight: 600;
}
.kf-btn--text .kf-arrow { transition: transform 0.3s var(--kf-ease); }
.kf-btn--text:hover .kf-arrow { transform: translateX(5px); }

/* Amber CTA legacy */
.wp-block-button.kf-btn-amber .wp-block-button__link,
.is-style-kraftrs-amber .wp-block-button__link {
	background: var(--kf-accent) !important;
	color: #1a1205 !important;
	border: none;
}

/* ---------------------------------------------------------------------
   7. CARD SYSTEM — one coherent card, several variants
   --------------------------------------------------------------------- */
.kf-card,
.saaslauncher-hover-box,
.wp-block-group.is-style-kraftrs-hover-box {
	position: relative;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)) ,
		var(--kf-card);
	border: 1px solid var(--kf-border);
	border-radius: var(--kf-radius-lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	transition: var(--kf-transition);
	overflow: hidden;
	isolation: isolate;
}

/* cursor spotlight — driven by --mx/--my from JS */
.kf-card::before,
.saaslauncher-hover-box::before,
.wp-block-group.is-style-kraftrs-hover-box::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--kf-glow), transparent 60%);
	opacity: 0;
	transition: opacity 0.5s var(--kf-ease);
	pointer-events: none;
	z-index: -1;
}

.kf-card:hover,
.saaslauncher-hover-box:hover,
.wp-block-group.is-style-kraftrs-hover-box:hover {
	transform: translateY(-6px);
	border-color: var(--kf-border-amber);
	box-shadow: var(--kf-shadow-hover);
	background:
		linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)) ,
		var(--kf-card-2);
}
.kf-card:hover::before,
.saaslauncher-hover-box:hover::before,
.wp-block-group.is-style-kraftrs-hover-box:hover::before { opacity: 1; }

/* Featured / highlight card */
.kf-card--featured,
.kf-pricing-card.is-featured {
	border-color: var(--kf-border-amber);
	background:
		linear-gradient(180deg, rgba(230,158,44,0.10), rgba(230,158,44,0.01)),
		var(--kf-card-2);
	box-shadow: var(--kf-shadow-amber);
}

/* Card with a constant soft top-glow */
.kf-card--glow::after {
	content: '';
	position: absolute;
	top: -1px; left: 10%; right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--kf-accent), transparent);
	opacity: 0.6;
}

/* ---------------------------------------------------------------------
   8. ICONS
   --------------------------------------------------------------------- */
.kf-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: var(--kf-glow-soft);
	border: 1px solid var(--kf-border-amber);
	color: var(--kf-accent);
	margin-bottom: 1.25rem;
	transition: var(--kf-transition);
	flex-shrink: 0;
}
.kf-card:hover .kf-icon,
.saaslauncher-hover-box:hover .kf-icon { transform: translateY(-2px) scale(1.04); background: rgba(230,158,44,0.12); }
.kf-icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.kf-icon--sm { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.kf-icon--sm svg { width: 20px; height: 20px; }

/* Inline check / cross marks as SVG-like glyphs */
.kf-tick, .kf-x {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
}
.kf-tick { background: var(--kf-glow-soft); color: var(--kf-accent); }
.kf-x { background: rgba(255,255,255,0.05); color: var(--kf-meta); }
.kf-tick svg, .kf-x svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* ---------------------------------------------------------------------
   9. STATS / COUNTERS
   --------------------------------------------------------------------- */
.kf-stat-number {
	font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem);
	font-weight: 800;
	color: var(--kf-white);
	line-height: 1;
	display: block;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.kf-stat-number .kf-unit { color: var(--kf-accent); }
.kf-stat-label { font-size: 0.95rem; color: var(--kf-meta); margin-top: 0.6rem; }

/* ---------------------------------------------------------------------
   10. LISTS (check / cross)
   --------------------------------------------------------------------- */
.kf-check-list, .wp-block-list.kf-check-list,
.kf-cross-list, .wp-block-list.kf-cross-list {
	list-style: none;
	padding-left: 0;
	margin: 1.25rem 0;
}
.kf-check-list li, .wp-block-list.kf-check-list li,
.kf-cross-list li, .wp-block-list.kf-cross-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	padding: 0.55rem 0;
	color: var(--kf-foreground-alt);
	border-bottom: 1px solid rgba(255,255,255,0.05);
	font-size: 0.98rem;
	line-height: 1.5;
}
.kf-check-list li:last-child, .kf-cross-list li:last-child { border-bottom: 0; }
.kf-check-list li::before {
	content: '';
	width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0;
	border-radius: 50%;
	background:
		var(--kf-glow-soft)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e69e2c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
		center / 12px no-repeat;
	box-shadow: inset 0 0 0 1px var(--kf-border-amber);
}
.kf-cross-list li::before {
	content: '';
	width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0;
	border-radius: 50%;
	background:
		rgba(255,255,255,0.04)
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A8F82' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E")
		center / 11px no-repeat;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

/* ---------------------------------------------------------------------
   11. PRICING
   --------------------------------------------------------------------- */
.kf-pricing-card {
	position: relative;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
		var(--kf-card);
	border: 1px solid var(--kf-border);
	border-radius: var(--kf-radius-lg);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	transition: var(--kf-transition);
	height: 100%;
}
.kf-pricing-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--kf-shadow-hover);
	border-color: var(--kf-border-amber);
}
.kf-pricing-price {
	font-size: clamp(1.6rem, 1rem + 1.5vw, 2.1rem);
	font-weight: 800;
	color: var(--kf-white);
	line-height: 1;
	letter-spacing: -0.03em;
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.kf-pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--kf-meta); letter-spacing: 0; white-space: nowrap; }
.kf-pricing-tag {
	position: absolute; top: 1.25rem; right: 1.25rem;
	font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: #1a1205; background: var(--kf-accent);
	padding: 0.3rem 0.7rem; border-radius: 60px;
}

/* ---------------------------------------------------------------------
   12. TESTIMONIALS
   --------------------------------------------------------------------- */
.kf-testimonial-card {
	background:
		linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
		var(--kf-card);
	border: 1px solid var(--kf-border);
	border-radius: var(--kf-radius-lg);
	padding: 2rem;
	transition: var(--kf-transition);
	position: relative;
}
.kf-testimonial-card:hover { border-color: var(--kf-border-amber); transform: translateY(-4px); }
.kf-quote-mark {
	font-family: Georgia, serif;
	font-size: 4rem; line-height: 1;
	color: var(--kf-accent); opacity: 0.35;
	margin-bottom: -1.5rem; display: block;
}
.kf-avatar {
	width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-weight: 700; color: #1a1205;
	background: linear-gradient(135deg, var(--kf-accent-light), var(--kf-accent));
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   13. CASE STUDY STICKY CARDS
   --------------------------------------------------------------------- */
.kf-case-card {
	position: sticky;
	min-height: 70vh;
	border-radius: var(--kf-radius-lg);
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: clamp(1.75rem, 4vw, 3rem);
	background-size: cover;
	background-position: center;
	background-color: var(--kf-card);
	border: 1px solid var(--kf-border);
}
/* Elegant gradient placeholder when no image */
.kf-case-card::after {
	content: '';
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(80% 60% at 20% 0%, rgba(230,158,44,0.18), transparent 60%),
		linear-gradient(135deg, #1a130a 0%, #0c0904 100%);
}
.kf-case-card.has-img::after {
	background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.kf-case-card__content { position: relative; z-index: 2; max-width: 560px; }

/* ---------------------------------------------------------------------
   14. MARQUEE
   --------------------------------------------------------------------- */
.kf-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.kf-marquee-track { display: flex; width: max-content; align-items: center; gap: 3.5rem; animation: kf-marquee 32s linear infinite; }
.kf-marquee:hover .kf-marquee-track { animation-play-state: paused; }
.kf-marquee-item { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--kf-foreground-alt); font-weight: 600; font-size: 1rem; white-space: nowrap; opacity: 0.75; transition: opacity 0.3s; }
.kf-marquee-item:hover { opacity: 1; }
.kf-marquee-item svg { width: 20px; height: 20px; color: var(--kf-accent); }
@keyframes kf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   15. HEADER — floating pill nav
   --------------------------------------------------------------------- */
.kf-header-glass {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 48px);
	max-width: 1140px;        /* never changes — only width animates */
	z-index: 9999;
	border-radius: 60px;
	background: linear-gradient(135deg, rgba(38,21,4,0.92) 0%, rgba(18,10,2,0.88) 100%);
	backdrop-filter: blur(28px) saturate(160%);
	-webkit-backdrop-filter: blur(28px) saturate(160%);
	border: 1.5px solid rgba(230,158,44,0.38);
	box-shadow:
		0 0 24px rgba(230,158,44,0.12),
		0 12px 48px rgba(0,0,0,0.55),
		inset 0 1px 0 rgba(255,255,255,0.12);
	/* Only width + top spring-bounce. max-width stays fixed — no jump */
	transition:
		width        0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
		top          0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
		border-color 0.4s var(--kf-ease),
		box-shadow   0.4s var(--kf-ease),
		background   0.4s var(--kf-ease);
}
.kf-header-glass.kf-scrolled {
	/* min() resolves to a fixed px length — width animates smoothly to it */
	width: min(calc(100% - 200px), 820px);
	/* max-width NOT changed — avoids the instant-jump bug */
	top: 8px;
	background: linear-gradient(135deg, rgba(28,15,2,0.97) 0%, rgba(12,6,1,0.97) 100%);
	border-color: rgba(230,158,44,0.55);
	box-shadow:
		0 0 32px rgba(230,158,44,0.18),
		0 20px 60px rgba(0,0,0,0.70),
		inset 0 1px 0 rgba(255,255,255,0.12);
}
/* Admin bar offset when logged in */
html.wp-toolbar .kf-header-glass              { top: calc(16px + var(--wp-admin--admin-bar--height, 32px)); }
html.wp-toolbar .kf-header-glass.kf-scrolled  { top: calc(8px  + var(--wp-admin--admin-bar--height, 32px)); }
.kf-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 1.25rem 0.65rem 1.5rem;
	gap: 1rem;
}
/* Logo zone */
.kf-header-logo {
	display: flex; align-items: center; text-decoration: none; flex-shrink: 0;
	max-width: 200px; overflow: hidden;
	transition: max-width 0.45s var(--kf-ease), opacity 0.35s var(--kf-ease);
}
.kf-logo-img {
	display: block;
	height: 32px; width: auto; max-width: 160px;
	object-fit: contain; object-position: left center;
}
/* On scroll (mobile only): collapse logo to free up room */
@media (max-width: 860px) {
	.kf-scrolled .kf-header-logo {
		max-width: 0;
		opacity: 0;
		pointer-events: none;
	}
}
.kf-wordmark {
	font-size: 1.2rem; font-weight: 800; letter-spacing: -0.04em;
	background: linear-gradient(135deg, #fff 30%, rgba(230,158,44,0.85) 100%);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent;
	background-clip: text; line-height: 1; white-space: nowrap;
}
/* Footer logo */
.kf-footer-brand .kf-logo-img { height: 28px; max-width: 140px; transition: none; }
/* Centre nav */
.kf-nav {
	display: flex; align-items: center; gap: 0.1rem;
	position: absolute; left: 50%; transform: translateX(-50%);
}
.kf-nav__link {
	color: rgba(255,255,255,0.75);
	font-size: 0.85rem; font-weight: 500;
	padding: 0.38rem 0.75rem;
	border-radius: 10px;
	text-decoration: none;
	transition: color 0.2s, background 0.2s, font-size 0.35s var(--kf-ease), padding 0.35s var(--kf-ease);
	white-space: nowrap;
	letter-spacing: 0.01em;
}
/* Tighter nav links when scrolled */
.kf-scrolled .kf-nav__link {
	font-size: 0.8rem;
	padding: 0.3rem 0.65rem;
}
.kf-nav__link:hover { color: var(--kf-white); background: rgba(255,255,255,0.07); }
.kf-nav__link.is-active { color: var(--kf-accent); }
.kf-nav__link:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; border-radius: 10px; }
.kf-nav__chevron { margin-left: 2px; transition: transform 0.2s; vertical-align: middle; opacity: 0.6; }
/* Mega menu wrapper */
.kf-nav__item { position: relative; }
.kf-mega {
	position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
	min-width: 560px;
	background: linear-gradient(145deg, rgba(26,16,4,0.98), rgba(12,7,1,0.98));
	border: 1px solid rgba(230,158,44,0.25);
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
	backdrop-filter: blur(20px);
	padding: 1.25rem;
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: translateX(-50%) translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 100;
}
.kf-has-mega:hover .kf-mega,
.kf-has-mega:focus-within .kf-mega {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: translateX(-50%) translateY(0);
}
.kf-has-mega:hover .kf-nav__chevron,
.kf-has-mega:focus-within .kf-nav__chevron { transform: rotate(180deg); opacity: 1; }
.kf-mega__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem;
	margin-bottom: 1rem;
}
.kf-mega__item {
	display: flex; align-items: flex-start; gap: 0.85rem;
	padding: 0.9rem 1rem; border-radius: 12px; text-decoration: none;
	transition: background 0.15s;
}
.kf-mega__item:hover { background: rgba(230,158,44,0.07); }
.kf-mega__icon {
	width: 36px; height: 36px; flex-shrink: 0;
	border-radius: 10px; background: rgba(230,158,44,0.1);
	display: flex; align-items: center; justify-content: center;
	color: var(--kf-accent);
}
.kf-mega__text { display: flex; flex-direction: column; gap: 0.2rem; }
.kf-mega__label { font-size: 0.88rem; font-weight: 600; color: var(--kf-white); }
.kf-mega__desc  { font-size: 0.78rem; color: var(--kf-meta); line-height: 1.4; }
.kf-mega__foot {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(255,255,255,0.07);
}
.kf-mega__all  { font-size: 0.82rem; font-weight: 500; color: var(--kf-meta); text-decoration: none; transition: color 0.15s; }
.kf-mega__all:hover { color: var(--kf-accent); }
.kf-mega__cta  {
	font-size: 0.82rem; font-weight: 700; color: #1a1205;
	background: var(--kf-accent); padding: 0.45rem 1rem;
	border-radius: 60px; text-decoration: none;
	transition: background 0.15s;
}
.kf-mega__cta:hover { background: var(--kf-accent-light); }
/* Mobile drawer service section */
.kf-drawer__section-label {
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--kf-meta); padding: 0.85rem 1rem 0.35rem; margin-top: 0.5rem;
}
.kf-drawer__sub {
	color: var(--kf-foreground-alt); font-size: 0.9rem; font-weight: 500;
	padding: 0.55rem 1rem; border-radius: 10px; text-decoration: none;
	display: block; transition: color 0.2s, background 0.2s;
}
.kf-drawer__sub:hover { color: var(--kf-white); background: rgba(255,255,255,0.05); }
/* Service card grid in drawer — mirrors desktop mega menu */
.kf-drawer__services {
	display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem;
	margin-bottom: 0.6rem;
}
.kf-drawer__service-card {
	display: flex; flex-direction: column; gap: 0.45rem;
	padding: 0.75rem; border-radius: 12px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s;
}
.kf-drawer__service-card:hover {
	background: rgba(230,158,44,0.07);
	border-color: rgba(230,158,44,0.25);
}
.kf-drawer__service-icon {
	width: 32px; height: 32px; border-radius: 8px;
	background: rgba(230,158,44,0.1);
	display: flex; align-items: center; justify-content: center;
	color: var(--kf-accent); flex-shrink: 0;
}
.kf-drawer__service-name {
	font-size: 0.76rem; font-weight: 600;
	color: var(--kf-white); line-height: 1.3;
}
.kf-drawer__service-blurb {
	font-size: 0.64rem; color: var(--kf-meta); line-height: 1.4;
}
.kf-drawer__services-foot {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.6rem 0; margin-bottom: 1rem;
	border-top: 1px solid rgba(255,255,255,0.07);
}
.kf-drawer__view-all {
	font-size: 0.78rem; font-weight: 500;
	color: var(--kf-meta); text-decoration: none;
	transition: color 0.15s;
}
.kf-drawer__view-all:hover { color: var(--kf-accent); }
/* Right zone */
.kf-header-right {
	display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
	transition: flex-grow 0s; /* flex-grow doesn't animate — instant fill is intentional */
}
/* On scroll (mobile only): CTA slides left into logo spot */
@media (max-width: 860px) {
	.kf-scrolled .kf-header-right {
		flex-grow: 1;
		justify-content: space-between;
		gap: 0;
	}
	.kf-scrolled .kf-header-cta {
		font-size: 0.8rem;
		padding: 0.38rem 0.9rem;
	}
}
/* Header CTA button */
.kf-header-cta {
	display: inline-flex; align-items: center; gap: 0.35rem;
	background: var(--kf-accent); color: #1a1205;
	font-size: 0.85rem; font-weight: 700;
	padding: 0.48rem 1.1rem; border-radius: 60px;
	text-decoration: none; white-space: nowrap;
	box-shadow: 0 4px 18px rgba(230,158,44,0.22);
	transition: background 0.2s, transform 0.2s, box-shadow 0.2s,
	            font-size 0.35s var(--kf-ease), padding 0.35s var(--kf-ease);
}
.kf-header-cta:hover { background: var(--kf-accent-light); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(230,158,44,0.32); }
.kf-header-cta:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 3px; }
/* Hamburger */
.kf-nav-toggle {
	display: none;
	align-items: center; justify-content: center;
	width: 38px; height: 38px;
	background: rgba(255,255,255,0.06); border: 1px solid var(--kf-border);
	border-radius: 10px; cursor: pointer; color: var(--kf-white);
	transition: background 0.2s;
}
.kf-nav-toggle:hover { background: rgba(255,255,255,0.10); }
.kf-nav-toggle:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }
/* Push content below fixed header */
.wp-site-blocks > main, main.wp-block-group { scroll-margin-top: 100px; }
body { padding-top: 0; }

/* ------------------------------------------------------------------
   15b. MOBILE DRAWER
   ------------------------------------------------------------------ */
.kf-nav-overlay {
	display: none; position: fixed; inset: 0; z-index: 9998;
	background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
	opacity: 0; transition: opacity 0.3s;
}
.kf-mobile-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 10000;
	width: min(320px, 88vw);
	background: var(--kf-panel);
	border-left: 1px solid var(--kf-border);
	display: flex; flex-direction: column; padding: 1.5rem;
	gap: 0; transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	overflow-y: auto;
}
.kf-mobile-drawer[hidden] { display: flex; } /* allow CSS animation; JS removes hidden */
.kf-drawer-head {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 2rem;
}
.kf-drawer-close {
	width: 36px; height: 36px; border-radius: 10px;
	background: rgba(255,255,255,0.06); border: 1px solid var(--kf-border);
	color: var(--kf-foreground-alt); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.2s, color 0.2s;
}
.kf-drawer-close:hover { background: rgba(255,255,255,0.10); color: var(--kf-white); }
.kf-drawer-close:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }
.kf-drawer-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; }
.kf-drawer__link {
	color: var(--kf-foreground-alt); font-size: 1.05rem; font-weight: 500;
	padding: 0.8rem 1rem; border-radius: 12px; text-decoration: none;
	transition: color 0.2s, background 0.2s;
}
.kf-drawer__link:hover { color: var(--kf-white); background: rgba(255,255,255,0.06); }
.kf-drawer__link.is-active { color: var(--kf-accent); background: rgba(230,158,44,0.08); }
.kf-drawer-cta { margin-top: auto; }
.kf-drawer-meta {
	font-size: 0.75rem; color: var(--kf-meta); text-align: center;
	margin-top: 1.25rem; line-height: 1.6;
}
/* Open state */
body.kf-nav-open { overflow: hidden; }
body.kf-nav-open .kf-nav-overlay { display: block; opacity: 1; }
body.kf-nav-open .kf-mobile-drawer { transform: translateX(0); }

@media (max-width: 860px) {
	.kf-nav { display: none; }
	.kf-nav-toggle { display: flex; }
	.kf-header-inner { padding: 0.55rem 1rem; }
	/* Mobile: compact CTA + hamburger */
	.kf-header-cta { font-size: 0.78rem; padding: 0.38rem 0.85rem; }
}

/* ---------------------------------------------------------------------
   16. FOOTER
   --------------------------------------------------------------------- */
footer.wp-block-template-part, .kf-footer {
	background-color: var(--kf-base-2);
	border-top: 1px solid var(--kf-border);
	position: relative; padding: 0;
}
.kf-footer::before {
	content: '';
	position: absolute; top: 0; left: 50%; transform: translateX(-50%);
	width: min(700px, 80%); height: 1px;
	background: linear-gradient(90deg, transparent, var(--kf-accent), transparent);
	opacity: 0.5;
}
/* Pre-footer CTA strip */
.kf-footer-strip {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 1rem; padding: 2rem clamp(1.5rem, 5vw, 3rem);
	border-bottom: 1px solid var(--kf-border);
	background: linear-gradient(90deg, rgba(230,158,44,0.04), transparent);
}
.kf-footer-strip__headline { font-size: clamp(1rem,2vw,1.25rem); font-weight: 700; color: var(--kf-white); margin: 0; }
/* Main grid */
.kf-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding: 3rem clamp(1.5rem, 5vw, 3rem);
}
.kf-footer-heading {
	color: var(--kf-white); font-size: 0.78rem; letter-spacing: 0.1em;
	text-transform: uppercase; margin-bottom: 1rem; font-weight: 600;
}
.kf-footer-tagline { color: var(--kf-foreground-alt); font-size: 0.92rem; line-height: 1.7; margin: 1rem 0 0.75rem; }
.kf-footer-partners { color: var(--kf-meta); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; margin: 0 0 1.25rem; }
/* Social icons */
.kf-footer-social { display: flex; gap: 0.5rem; }
.kf-footer-social a {
	width: 34px; height: 34px; border-radius: 9px;
	background: rgba(255,255,255,0.05); border: 1px solid var(--kf-border);
	display: flex; align-items: center; justify-content: center;
	color: var(--kf-foreground-alt); transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.kf-footer-social a:hover { color: var(--kf-accent); background: rgba(230,158,44,0.08); border-color: var(--kf-border-amber); }
/* Footer nav lists */
footer a, .kf-footer a { color: var(--kf-foreground-alt); text-decoration: none; }
footer a:hover, .kf-footer a:hover { color: var(--kf-accent); }
.kf-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.kf-footer-list li::before { display: none; }
.kf-footer-list a { font-size: 0.9rem; padding: 0.3rem 0; display: block; transition: color 0.2s; }
.kf-footer-trust li { font-size: 0.88rem; color: var(--kf-meta); padding: 0.25rem 0; }
/* Bottom bar */
.kf-footer-bottom {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 0.75rem; padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
	border-top: 1px solid var(--kf-border);
}
.kf-footer-bottom p { font-size: 0.8rem; color: var(--kf-meta); margin: 0; }
.kf-footer-bottom a { color: var(--kf-meta); }
.kf-footer-bottom a:hover { color: var(--kf-accent); }
@media (max-width: 760px) {
	.kf-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.kf-footer-brand { grid-column: 1 / -1; }
	.kf-footer-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
	.kf-footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   17. SEPARATORS
   --------------------------------------------------------------------- */
.wp-block-separator { border-color: var(--kf-border) !important; opacity: 1 !important; }

/* ---------------------------------------------------------------------
   18. SCROLL REVEAL
   --------------------------------------------------------------------- */
.kf-anim {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s var(--kf-ease), transform 0.8s var(--kf-ease);
	will-change: opacity, transform;
}
.kf-anim.kf-anim--left  { transform: translateX(-30px); }
.kf-anim.kf-anim--right { transform: translateX(30px); }
.kf-anim.kf-anim--scale { transform: scale(0.94); }
.kf-anim.is-visible { opacity: 1; transform: none; }

.kf-anim-delay-1 { transition-delay: 0.08s; }
.kf-anim-delay-2 { transition-delay: 0.16s; }
.kf-anim-delay-3 { transition-delay: 0.24s; }
.kf-anim-delay-4 { transition-delay: 0.32s; }
.kf-anim-delay-5 { transition-delay: 0.40s; }
.kf-anim-delay-6 { transition-delay: 0.48s; }

@keyframes kf-ping {
	0%   { box-shadow: 0 0 0 0 rgba(230,158,44,0.5); }
	70%  { box-shadow: 0 0 0 8px rgba(230,158,44,0); }
	100% { box-shadow: 0 0 0 0 rgba(230,158,44,0); }
}

/* ---------------------------------------------------------------------
   19. GRADIENT BORDER (eyebrow pills etc.)
   --------------------------------------------------------------------- */
.is-style-saaslauncher-gradient-border,
.wp-block-group.is-style-kraftrs-gradient-border {
	position: relative;
	border-radius: var(--kf-radius-xl) !important;
	border: 1px solid transparent !important;
	background: var(--kf-card);
	background-clip: padding-box;
}
.is-style-saaslauncher-gradient-border::after,
.wp-block-group.is-style-kraftrs-gradient-border::after {
	content: '';
	position: absolute; inset: -1px;
	border-radius: inherit; z-index: -1;
	background: linear-gradient(120deg, var(--kf-accent), var(--kf-accent-dark) 60%, transparent);
}

/* ---------------------------------------------------------------------
   19b. EVEN GRID HELPERS (services, pricing, testimonials — always 3-col)
   --------------------------------------------------------------------- */
.kf-services-grid,
.kf-three-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}
@media (max-width: 900px) {
	.kf-services-grid,
	.kf-three-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.kf-services-grid,
	.kf-three-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   20. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 782px) {
	.wp-block-columns { flex-direction: column; gap: 1rem; }
	.wp-block-column { width: 100% !important; flex-basis: 100% !important; }
	.kf-compare-grid { grid-template-columns: 1fr; }
	.kf-case-card { min-height: 56vh; }
}
@media (max-width: 480px) {
	.wp-block-buttons { flex-direction: column; align-items: stretch; }
	.wp-block-button, .wp-block-button__link { width: 100%; text-align: center; justify-content: center; }
}

/* Agent demo: stack chips above chat on narrow screens */
@media (max-width: 680px) {
	[style*="grid-template-columns:220px 1fr"] {
		grid-template-columns: 1fr !important;
	}
	[style*="grid-template-columns:220px 1fr"] .kf-chips {
		flex-direction: row !important;
		flex-wrap: wrap;
	}
	[style*="grid-template-columns:220px 1fr"] .kf-chip {
		width: auto !important;
		flex: 1 1 auto;
	}
}

/* ---------------------------------------------------------------------
   21. BLOG CARDS
   --------------------------------------------------------------------- */
.kf-blog-card {
	background: var(--kf-surface);
	border: 1px solid var(--kf-border);
	border-radius: 16px;
	overflow: hidden;
	transition: border-color 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
}
.kf-blog-card:hover {
	border-color: rgba(230,158,44,0.3);
	transform: translateY(-3px);
}
.kf-blog-card .wp-block-post-featured-image img {
	width: 100%; aspect-ratio: 16/9; object-fit: cover;
	border-radius: 12px 12px 0 0;
	display: block;
}
.kf-blog-card .wp-block-post-title a {
	color: var(--kf-white);
	text-decoration: none;
}
.kf-blog-card .wp-block-post-title a:hover { color: var(--kf-accent); }
.kf-blog-card .wp-block-post-excerpt__more-link {
	color: var(--kf-accent);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}
@media (max-width: 768px) {
	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 {
		grid-template-columns: 1fr 1fr !important;
	}
}
@media (max-width: 480px) {
	.wp-block-post-template.is-flex-container.is-flex-container.columns-3 {
		grid-template-columns: 1fr !important;
	}
}

/* ---------------------------------------------------------------------
   22. COMPARISON TABLE
   --------------------------------------------------------------------- */
.kf-comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kf-comparison-table { width: 100%; }
.kf-cmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 0; }
.kf-cmp-thead .kf-cmp-cell {
	font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	padding: 0.85rem 1rem; color: var(--kf-meta);
}
.kf-cmp-thead .kf-cmp-col--kraft { color: var(--kf-accent); }
.kf-cmp-body .kf-cmp-row { border-bottom: 1px solid var(--kf-border); }
.kf-cmp-body .kf-cmp-row:last-child { border-bottom: 0; }
.kf-cmp-cell {
	padding: 1rem; font-size: 0.9rem; line-height: 1.5;
	display: flex; align-items: center; gap: 0.5rem;
}
.kf-cmp-label-col { color: var(--kf-foreground-alt); font-weight: 600; font-size: 0.85rem; }
.kf-cmp-col--other { color: var(--kf-meta); }
.kf-cmp-col--kraft {
	color: var(--kf-white); font-weight: 500;
	background: rgba(230,158,44,0.045); border-left: 1px solid rgba(230,158,44,0.15);
}
.kf-cmp-check { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) {
	.kf-cmp-row { grid-template-columns: 1fr 1.1fr; }
	.kf-cmp-col--other { display: none; }
	.kf-cmp-thead .kf-cmp-label-col::after { content: 'vs. others'; }
	.kf-cmp-cell { padding: 0.85rem 0.75rem; font-size: 0.82rem; }
	.kf-cmp-label-col { font-size: 0.8rem; }
}

/* ---------------------------------------------------------------------
   22. FAQ ACCORDION
   --------------------------------------------------------------------- */
.kf-faq-list { display: flex; flex-direction: column; gap: 0; }
.kf-faq-item {
	border-bottom: 1px solid var(--kf-border);
}
.kf-faq-item:first-child { border-top: 1px solid var(--kf-border); }
.kf-faq-q {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.25rem 0; cursor: pointer; list-style: none;
	font-size: 1rem; font-weight: 600; color: var(--kf-white);
	transition: color 0.2s;
}
.kf-faq-q::-webkit-details-marker { display: none; }
.kf-faq-q:hover { color: var(--kf-accent); }
.kf-faq-icon { flex-shrink: 0; color: var(--kf-meta); transition: transform 0.3s var(--kf-ease); }
details[open] .kf-faq-icon { transform: rotate(180deg); }
details[open] .kf-faq-q { color: var(--kf-accent); }
.kf-faq-a {
	padding-bottom: 1.25rem;
	animation: kf-details-open 0.25s var(--kf-ease);
}
.kf-faq-a p { color: var(--kf-foreground-alt); font-size: 0.97rem; line-height: 1.8; margin: 0; }

/* ---------------------------------------------------------------------
   23. SCENARIO CHIPS
   --------------------------------------------------------------------- */
.kf-chips {
	display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.kf-chip {
	display: inline-flex; align-items: center;
	padding: 0.45rem 1rem; border-radius: 60px;
	font-size: 0.82rem; font-weight: 600; cursor: pointer;
	background: rgba(255,255,255,0.05); border: 1px solid var(--kf-border);
	color: var(--kf-foreground-alt);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.kf-chip:hover { background: rgba(255,255,255,0.08); color: var(--kf-white); }
.kf-chip.is-active {
	background: rgba(230,158,44,0.12); border-color: var(--kf-border-amber);
	color: var(--kf-accent);
	animation: kf-chip-pulse 1s ease;
}
.kf-chip:focus-visible { outline: 2px solid var(--kf-accent); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   24. AGENT PIPELINE  — horizontal desktop, vertical mobile
   --------------------------------------------------------------------- */

/* Outer wrapper */
.kf-pipeline {
	position: relative;
	overflow: hidden;
}

/* Desktop: flex row — nodes + connectors side by side */
.kf-pipeline-track {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
}

/* Each step node */
.kf-pipeline-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
	cursor: pointer;
	flex: 1;
	max-width: 200px;
	padding: 0.5rem;
	border-radius: 12px;
	transition: background 0.2s;
	outline: none;
}
.kf-pipeline-node:hover,
.kf-pipeline-node:focus-visible {
	background: rgba(255,255,255,0.04);
}
.kf-pipeline-node.is-active .kf-pipeline-icon {
	border-color: var(--kf-accent) !important;
	background: rgba(230,158,44,0.15) !important;
	box-shadow: 0 0 0 3px rgba(230,158,44,0.18), 0 4px 20px rgba(0,0,0,0.4);
}

/* Icon box */
.kf-pipeline-icon {
	width: 52px; height: 52px;
	border-radius: 14px;
	background: var(--kf-card);
	border: 1px solid var(--kf-border);
	display: flex; align-items: center; justify-content: center;
	color: var(--kf-accent);
	box-shadow: 0 4px 16px rgba(0,0,0,0.35);
	flex-shrink: 0;
	transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.kf-pipeline-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.kf-pipeline-icon--accent { background: rgba(230,158,44,0.1); border-color: var(--kf-border-amber); }

/* Label */
.kf-pipeline-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--kf-foreground-alt);
	transition: color 0.2s;
}
.kf-pipeline-node.is-active .kf-pipeline-label {
	color: var(--kf-accent);
}

/* Description — hidden by default on desktop, shown when active */
.kf-pipeline-desc {
	font-size: 0.75rem;
	color: var(--kf-meta);
	line-height: 1.55;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.35s ease, opacity 0.3s ease;
}
.kf-pipeline-node.is-active .kf-pipeline-desc {
	max-height: 5rem;
	opacity: 1;
}

/* Connector line between nodes */
.kf-pipeline-conn {
	flex-shrink: 0;
	width: 48px;
	height: 2px;
	background: rgba(255,255,255,0.08);
	margin-top: 26px; /* align with icon centre (52px icon / 2 = 26px) */
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}
/* Animated fill inside connector */
.kf-pipeline-fill {
	position: absolute;
	top: 0; left: 0;
	height: 100%;
	width: 0%;
	background: var(--kf-accent);
	transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.kf-pipeline-conn.is-filled .kf-pipeline-fill {
	width: 100%;
}

/* Chips (Shiprocket, Razorpay etc.) */
.kf-pipeline-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-top: 0.3rem; }
.kf-pipeline-tool {
	background: rgba(230,158,44,0.07); border: 1px solid rgba(230,158,44,0.22);
	border-radius: 8px; font-size: 0.62rem; font-weight: 600;
	padding: 0.18rem 0.45rem; color: var(--kf-meta); white-space: nowrap;
}

/* ---- Mobile (≤600px): vertical stack ---- */
@media (max-width: 600px) {
	.kf-pipeline-track {
		flex-direction: column;
		align-items: center;
		gap: 0;
	}
	.kf-pipeline-node {
		max-width: 240px;
		padding: 0.85rem 0.5rem;
		position: relative;
	}
	/* Always show description on mobile */
	.kf-pipeline-desc {
		max-height: none !important;
		opacity: 1 !important;
	}
	/* Connector becomes vertical line */
	.kf-pipeline-conn {
		width: 2px;
		height: 32px;
		margin-top: 0;
		background: rgba(255,255,255,0.08);
	}
}

/* ---------------------------------------------------------------------
   25. TRUST BADGES — grayscale to amber on hover
   --------------------------------------------------------------------- */
.kf-marquee-track .kf-badge-item { filter: grayscale(0.6) opacity(0.7); transition: filter 0.3s; }
.kf-marquee-track .kf-badge-item:hover { filter: none; }

/* ---------------------------------------------------------------------
   26. REDUCED MOTION
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.kf-anim { opacity: 1 !important; transform: none !important; }
	.kf-marquee-track { animation: none !important; }
}

/* Responsive two-column grid utility */
.kf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kf-grid-2-wide { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(3rem, 6vw, 5rem); align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 760px) {
	.kf-grid-2 { grid-template-columns: 1fr; }
	.kf-grid-2-wide { grid-template-columns: 1fr; }
}

/* Legacy compare grid kept */
.kf-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.kf-compare-col { padding: 2rem; border-radius: var(--kf-radius-lg); }
.kf-compare-col.others { background: var(--kf-card); border: 1px solid var(--kf-border); }
.kf-compare-col.kraftrs { background: linear-gradient(135deg, rgba(230,158,44,0.08), var(--kf-card)); border: 1px solid var(--kf-border-amber); }

/* =====================================================================
   27. GLOBAL OVERFLOW PREVENTION
   ===================================================================== */
html { overflow-x: clip; }
body { overflow-x: hidden; max-width: 100%; }

/* =====================================================================
   28. COMPREHENSIVE MOBILE RESPONSIVE
   Uses CSS attribute selectors to override inline style grids that cannot
   be targeted by class-based media queries. Required for CMS-generated
   HTML where layout is expressed as inline style attributes.
   ===================================================================== */

/* ---- ≤ 768px : tablet / large phone ---- */
@media (max-width: 768px) {

	/* --- Layout: collapse inline 2-col grids --- */
	[style*="grid-template-columns:1fr 1fr"],
	[style*="grid-template-columns: 1fr 1fr"] {
		grid-template-columns: 1fr !important;
		gap: 1.5rem !important;
	}
	[style*="grid-template-columns:repeat(2,1fr)"],
	[style*="grid-template-columns:repeat(2, 1fr)"] {
		grid-template-columns: 1fr !important;
		gap: 1.25rem !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
		min-width: 100% !important;
	}
	.kf-comparison-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.kf-step-wrap { gap: 1.25rem; }

	/* --- Agent demo chips --- */
	.kf-chips[style*="flex-direction:column"] {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		gap: 0.5rem !important;
	}
	.kf-chip[style*="text-align:left"],
	.kf-chip[style*="justify-content:flex-start"] {
		text-align: center !important;
		justify-content: center !important;
		width: auto !important;
		flex: 1 1 auto !important;
	}

	/* --- Typography scale-down --- */
	/* Badge: force single line with tighter type */
	.kf-badge {
		font-size: 0.65rem !important;
		padding: 0.28rem 0.85rem !important;
		letter-spacing: 0.05em !important;
		white-space: nowrap !important;
	}
	.kf-eyebrow { font-size: 0.68rem !important; letter-spacing: 0.09em !important; }

	/* CTA buttons — smaller than desktop */
	.kf-cta-primary,
	.kf-cta-ghost {
		font-size: 0.875rem !important;
		padding: 0.7rem 1.5rem !important;
	}

	/* Body / supporting text */
	.kf-hero-sub { font-size: 0.9rem !important; line-height: 1.68 !important; }
	.kf-card p,
	.kf-card li,
	.kf-faq-content p { font-size: 0.85rem !important; }
	.kf-card h3,
	.kf-card h4 { font-size: 0.95rem !important; }

	/* Check-list items */
	.kf-check-list li { font-size: 0.875rem !important; }

	/* Stat labels */
	.kf-stat-label { font-size: 0.72rem !important; line-height: 1.5 !important; }

	/* Pricing price — already clamp-based but pin tighter at tablet */
	.kf-pricing-price { font-size: clamp(1.4rem, 5vw, 2rem) !important; }
}

/* ---- ≤ 480px : phone ---- */
@media (max-width: 480px) {

	/* Badge even tighter on phones */
	.kf-badge {
		font-size: 0.58rem !important;
		padding: 0.24rem 0.7rem !important;
		letter-spacing: 0.04em !important;
	}
	.kf-eyebrow { font-size: 0.62rem !important; }

	/* CTA buttons: smaller + stack vertically in hero */
	.kf-cta-primary,
	.kf-cta-ghost {
		font-size: 0.85rem !important;
		padding: 0.65rem 1.25rem !important;
	}
	.kf-hero-ctas {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	.kf-hero-ctas > a,
	.kf-hero-ctas > .kf-cta-primary,
	.kf-hero-ctas > .kf-cta-ghost {
		width: 100%;
		text-align: center;
		justify-content: center;
	}

	/* Body text */
	.kf-hero-sub { font-size: 0.875rem !important; line-height: 1.65 !important; }
	.kf-card p,
	.kf-card li { font-size: 0.82rem !important; }
	.kf-card h3 { font-size: 0.92rem !important; }
	.kf-check-list li { font-size: 0.85rem !important; }

	/* Section vertical rhythm */
	:root { --kf-section-y: clamp(3rem, 10vw, 4.5rem); }

	/* Card padding */
	.kf-card[style*="padding:2rem"],
	.kf-card[style*="padding: 2rem"] { padding: 1.25rem !important; }
	.kf-card[style*="padding:1.75rem"],
	.kf-card[style*="padding:1.5rem"] { padding: 1rem !important; }

	/* Footer */
	.kf-footer-grid { grid-template-columns: 1fr !important; }
	.kf-footer-brand { grid-column: 1 !important; }

	/* Step icons */
	.kf-step-icon { width: 48px !important; height: 48px !important; }
	.kf-step-icon svg { width: 22px !important; height: 22px !important; }

	/* Pricing */
	.kf-pricing-price { font-size: clamp(1.4rem, 6vw, 2rem) !important; }
	[style*="minmax(320px"] { grid-template-columns: 1fr !important; }

	/* AI Agents demo chip+chat layout */
	[style*="grid-template-columns:220px 1fr"],
	[style*="grid-template-columns: 220px 1fr"] {
		grid-template-columns: 1fr !important;
	}

	/* Orbit diagram: allow nodes to render outside without clipping */
	.kf-hero-visual {
		overflow: visible;
		padding: 0 0.5rem;
	}
	.kf-hero-visual .kf-orbit {
		max-width: min(100%, 300px);
	}

	/* Inline heading overrides from pattern styles */
	[style*="font-size:clamp(2rem"] { font-size: clamp(1.4rem, 5.5vw, 1.9rem) !important; }
	[style*="font-size:clamp(1.8rem"] { font-size: clamp(1.3rem, 5vw, 1.7rem) !important; }
}

/* =====================================================================
   29. BLOG SINGLE POST
   ===================================================================== */
.kf-single-hero { position: relative; text-align: center; }
.kf-single-hero > * { position: relative; z-index: 1; }
.kf-back-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.82rem; font-weight: 500; color: var(--kf-meta); text-decoration: none; padding: 0.35rem 0.95rem 0.35rem 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid var(--kf-border); border-radius: 100px; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.kf-back-link:hover { color: var(--kf-accent); border-color: rgba(230,158,44,0.35); background: rgba(230,158,44,0.06); }
.kf-post-cats { list-style: none; padding: 0; display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.kf-post-cats a { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kf-accent); background: rgba(230,158,44,0.1); border: 1px solid rgba(230,158,44,0.22); padding: 0.28rem 0.9rem; border-radius: 100px; text-decoration: none; }
.kf-single-title { font-size: clamp(1.9rem, 4vw, 3.2rem) !important; font-weight: 800 !important; line-height: 1.12 !important; letter-spacing: -0.025em; color: var(--kf-white); max-width: 820px; margin-left: auto; margin-right: auto; }
.kf-post-meta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem 0.6rem; font-size: 0.85rem; color: var(--kf-meta); }
.kf-post-meta-sep { opacity: 0.4; }
.kf-post-meta-row .wp-block-post-date a, .kf-post-meta-row .wp-block-post-author-name a { color: var(--kf-meta); text-decoration: none; }
.kf-single-featured img, .wp-block-post-featured-image.kf-single-featured img { width: 100%; max-height: 500px; object-fit: cover; display: block; border-radius: 0; }
.kf-post-body { font-size: 1.08rem; line-height: 1.85; color: var(--kf-foreground); }
.kf-post-body .wp-block-post-content { max-width: 720px; margin: 0 auto; }
.kf-post-body h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 700; margin: 2.5rem 0 1rem; color: var(--kf-white); line-height: 1.25; }
.kf-post-body h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; margin: 2rem 0 0.75rem; color: var(--kf-white); line-height: 1.3; }
.kf-post-body h4 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.6rem; color: var(--kf-white); }
.kf-post-body p { margin: 0 0 1.5rem; }
.kf-post-body a { color: var(--kf-accent); text-decoration: underline; text-underline-offset: 3px; }
.kf-post-body strong { color: var(--kf-white); }
.kf-post-body ul, .kf-post-body ol { margin: 0 0 1.5rem 1.25rem; padding: 0; }
.kf-post-body li { margin-bottom: 0.6rem; line-height: 1.7; }
.kf-post-body blockquote { border-left: 3px solid var(--kf-accent); padding: 1.1rem 1.5rem; margin: 2rem 0; background: rgba(230,158,44,0.05); border-radius: 0 12px 12px 0; font-style: italic; color: var(--kf-foreground-alt); }
.kf-post-body blockquote p { margin-bottom: 0; }
.kf-post-body pre { background: rgba(255,255,255,0.04); border: 1px solid var(--kf-border); border-radius: 12px; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 2rem 0; font-size: 0.88em; }
.kf-post-body code:not(pre code) { background: rgba(230,158,44,0.1); color: var(--kf-accent); padding: 0.15em 0.45em; border-radius: 5px; font-size: 0.88em; }
.kf-post-body img { max-width: 100%; border-radius: 12px; margin: 1.5rem 0; display: block; }
.kf-post-body hr { border: none; border-top: 1px solid var(--kf-border); margin: 2.5rem 0; }
.kf-post-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.kf-post-tags a { font-size: 0.78rem; font-weight: 500; color: var(--kf-meta); background: rgba(255,255,255,0.05); border: 1px solid var(--kf-border); padding: 0.28rem 0.85rem; border-radius: 100px; text-decoration: none; transition: color 0.15s, border-color 0.15s; }
.kf-post-tags a:hover { color: var(--kf-accent); border-color: rgba(230,158,44,0.3); }
.kf-author-card.wp-block-post-author { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 720px; margin: 0 auto; background: var(--kf-surface); border: 1px solid var(--kf-border); border-radius: 16px; padding: 1.5rem; }
.kf-author-card .wp-block-post-author__avatar img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(230,158,44,0.25); object-fit: cover; }
.kf-author-card .wp-block-post-author__byline { font-size: 0.72rem; color: var(--kf-meta); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.2rem; }
.kf-author-card .wp-block-post-author__name { font-weight: 700; font-size: 1rem; color: var(--kf-white); margin: 0 0 0.25rem; }
.kf-author-card .wp-block-post-author__bio { font-size: 0.88rem; color: var(--kf-meta); line-height: 1.6; margin: 0; }
.kf-related-heading { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; color: var(--kf-white); margin: 0 0 1.5rem; }
@media (max-width: 560px) { .kf-single-title { font-size: clamp(1.6rem, 8vw, 2.2rem) !important; } .kf-post-body { font-size: 1rem; } .kf-author-card.wp-block-post-author { flex-direction: column; } .kf-single-featured img { max-height: 260px; } }