/* ==========================================================================
   Kofax Store US — Theme Stylesheet (Inspired by kofaxsoftware.us)
   Clean, modern, high-conversion typography, cards, and UI components
   ========================================================================== */

:root {
	--kfx-accent: #384959;
	--kfx-accent-hover: #2c3a47;
	--kfx-link: #4a6b8a;
	--kfx-ink: #384959;
	--kfx-ink-2: #45596b;
	--kfx-muted: #57718a;
	--kfx-line: #d3e2f0;
	--kfx-gray: #eef6fe;
	--kfx-steel: #6a89a7;
	--kfx-sky: #bdddfc;
	--kfx-sky-2: #88bdf2;
	--kfx-white: #ffffff;
	--kfx-radius: 18px;
	--kfx-radius-sm: 10px;
	--kfx-radius-pill: 980px;
	--kfx-ease: cubic-bezier(.25, .1, .25, 1);
	--kfx-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--primary: var(--kfx-accent);
	--primary-dark: var(--kfx-accent-hover);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	font-family: var(--kfx-font);
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: -0.01em;
	color: var(--kfx-ink);
	background: var(--kfx-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--kfx-link); text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: underline; color: var(--kfx-accent-hover); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; color: var(--kfx-ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Utility */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--kfx-accent); outline-offset: 3px; border-radius: 4px; }

/* Layout Wrappers */
.kfx-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kfx-wrap--narrow { max-width: 1024px; margin: 0 auto; padding: 0 24px; }
.kfx-wrap--faq { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.kfx-section { padding: 90px 0; background: var(--kfx-white); }
.kfx-section--gray { background: var(--kfx-gray); }
.kfx-section--tight { padding: 64px 0; }
.kfx-center { text-align: center; }
.kfx-muted { color: var(--kfx-muted); }
.kfx-small { font-size: 15px; }
.kfx-fine { font-size: 14px; color: var(--kfx-muted); margin-top: 18px; }

/* Typography Scale */
.kfx-eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--kfx-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}
.kfx-h1 {
	font-size: clamp(34px, 4.8vw, 54px);
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--kfx-ink);
	margin-bottom: 20px;
}
.kfx-h2 {
	font-size: clamp(28px, 3.8vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.03em;
	color: var(--kfx-ink);
	margin-bottom: 24px;
}
.kfx-h3 {
	font-size: clamp(20px, 2.4vw, 26px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--kfx-ink);
	margin-bottom: 12px;
}
.kfx-lead {
	font-size: clamp(18px, 1.8vw, 21px);
	line-height: 1.5;
	color: var(--kfx-ink-2);
	max-width: 720px;
}
.kfx-lead.kfx-center { margin-left: auto; margin-right: auto; }

/* Buttons & Badges */
.kfx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px; border: 0; border-radius: var(--kfx-radius-pill);
	background: var(--kfx-accent); color: #fff !important; font-size: 16px; font-weight: 600;
	cursor: pointer; transition: all .2s ease; white-space: nowrap; text-decoration: none;
}
.kfx-btn:hover { background: var(--kfx-accent-hover); color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.kfx-btn--lg { height: 52px; padding: 0 30px; font-size: 17px; }
.kfx-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.kfx-btn--ghost {
	background: #fff; color: var(--kfx-ink) !important;
	border: 1.5px solid var(--kfx-steel);
}
.kfx-btn--ghost:hover {
	background: var(--kfx-gray); color: var(--kfx-ink) !important;
	border-color: var(--kfx-accent);
}
.kfx-btn--block { width: 100%; height: 50px; font-size: 17px; }
.kfx-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 24px; }

.kfx-badge {
	display: inline-block; font-size: 12px; font-weight: 700;
	color: var(--kfx-accent); background: var(--kfx-sky);
	padding: 4px 10px; border-radius: 980px; letter-spacing: 0.02em;
	text-transform: uppercase;
}
.kfx-badge--subtle { background: #e0ecf7; color: var(--kfx-ink-2); }
.kfx-badge--green { background: #d4edda; color: #155724; }

/* Top Announcement Bar */
.kfx-topbar { background: var(--kfx-ink); color: #e1ecf7; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.kfx-topbar__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.kfx-topbar a { color: #fff; text-decoration: none; }
.kfx-topbar a:hover { text-decoration: underline; }
.kfx-topbar__meta { display: flex; align-items: center; gap: 14px; }
.kfx-topbar__meta span { opacity: 0.5; }

/* Modern Navigation (Matching kofaxsoftware.us) */
.kfx-nav {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--kfx-line);
	transition: background .2s ease;
}
.kfx-nav__inner {
	max-width: 1200px; margin: 0 auto; padding: 0 24px;
	min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kfx-nav__brand {
	display: flex; align-items: center; gap: 8px;
	font-size: 20px; font-weight: 700; color: var(--kfx-ink);
	letter-spacing: -0.03em; text-decoration: none !important;
}
.kfx-nav__brand span { color: var(--kfx-steel); font-weight: 400; }
.kfx-nav__logo-badge {
	background: var(--kfx-accent); color: #fff;
	font-size: 11px; font-weight: 800; padding: 3px 7px;
	border-radius: 6px; letter-spacing: 0.05em;
}
.kfx-nav__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; align-items: center; gap: 0 28px;
}
.kfx-nav__list a {
	display: block; padding: 20px 0; font-size: 15.5px;
	font-weight: 500; color: var(--kfx-ink); opacity: .85;
	transition: opacity .2s, color .2s; text-decoration: none;
}
.kfx-nav__list a:hover { opacity: 1; color: var(--kfx-accent-hover); text-decoration: none; }

.kfx-nav__actions { display: flex; align-items: center; gap: 8px; }
.kfx-nav__search { display: flex; align-items: center; position: relative; }
.kfx-nav__search input {
	width: 120px; border: 1px solid transparent; padding: 6px 12px; height: 34px;
	border-radius: var(--kfx-radius-pill); background: var(--kfx-gray);
	font-size: 14px; transition: width .3s var(--kfx-ease), border-color .3s;
}
.kfx-nav__search input:focus { width: 180px; outline: none; border-color: var(--kfx-steel); background: #fff; }
.kfx-nav__search button {
	position: absolute; right: 8px; background: none; border: none;
	cursor: pointer; color: var(--kfx-muted); display: flex; align-items: center; justify-content: center;
}
.kfx-nav__cart {
	width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	background: var(--kfx-gray); border-radius: 50%; color: var(--kfx-ink);
	position: relative; text-decoration: none; cursor: pointer; transition: background .2s;
}
.kfx-nav__cart:hover { background: #dceaf7; text-decoration: none; }
.kfx-cart-count {
	position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px;
	padding: 0 4px; border-radius: 9px; background: var(--kfx-accent);
	color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.kfx-cart-count.is-empty { display: none; }
.kfx-nav__toggle {
	display: none; background: none; border: none; cursor: pointer;
	padding: 8px; flex-direction: column; gap: 5px;
}
.kfx-nav__toggle span { display: block; width: 22px; height: 2px; background: var(--kfx-ink); transition: all .3s; }

/* Responsive Nav */
@media (max-width: 900px) {
	.kfx-nav__inner { flex-wrap: wrap; }
	.kfx-nav__toggle { display: flex; order: 3; }
	.kfx-nav__actions { order: 2; margin-left: auto; }
	.kfx-nav__menu {
		order: 4; width: 100%; display: none; padding-bottom: 16px;
	}
	.kfx-nav__menu.is-open { display: block; }
	.kfx-nav__list { flex-direction: column; align-items: flex-start; gap: 10px; }
	.kfx-nav__list a { padding: 10px 0; font-size: 18px; }
	.kfx-nav__search input { width: 100px; }
	.kfx-nav__search input:focus { width: 140px; }
}

/* Hero Section (Matching kofaxsoftware.us 2-column hero) */
.kfx-hero2 {
	padding: 60px 0 80px;
	background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, var(--kfx-gray) 100%);
	border-bottom: 1px solid var(--kfx-line);
	overflow: hidden;
}
.kfx-hero2__inner {
	max-width: 1200px; margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px;
}
.kfx-hero2__text { display: flex; flex-direction: column; align-items: flex-start; }
.kfx-hero2__eyebrow {
	font-size: 13.5px; font-weight: 700; color: var(--kfx-muted);
	background: rgba(255,255,255,0.85); border: 1px solid var(--kfx-line);
	padding: 6px 14px; border-radius: var(--kfx-radius-pill); margin-bottom: 18px;
	letter-spacing: 0.04em;
}
.kfx-hero2__title {
	font-size: clamp(34px, 4.4vw, 54px);
	line-height: 1.08; letter-spacing: -0.035em; color: var(--kfx-ink);
	margin-bottom: 18px;
}
.kfx-hero2__sub {
	font-size: 18px; line-height: 1.55; color: var(--kfx-ink-2);
	margin-bottom: 24px; max-width: 580px;
}
.kfx-hero2__ctas { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-bottom: 22px; }
.kfx-hero2__price {
	font-size: 15px; color: var(--kfx-muted); margin-bottom: 20px;
}
.kfx-hero2__price strong { color: var(--kfx-ink); font-weight: 700; font-size: 18px; }
.kfx-hero2__checks {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 14px 24px;
	font-size: 14.5px; font-weight: 600; color: var(--kfx-ink-2);
}
.kfx-hero2__checks li { display: flex; align-items: center; gap: 7px; }
.kfx-hero2__checks svg { color: #2e7d32; flex-shrink: 0; }
.kfx-hero2__media { text-align: center; }
.kfx-hero2__media img {
	width: 100%; max-width: 540px; margin: 0 auto;
	filter: drop-shadow(0 20px 40px rgba(56, 73, 89, 0.15));
	transition: transform .6s var(--kfx-ease);
}
.kfx-hero2__media img:hover { transform: scale(1.02); }

@media (max-width: 900px) {
	.kfx-hero2 { padding: 40px 0 60px; }
	.kfx-hero2__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
	.kfx-hero2__text { align-items: center; }
	.kfx-hero2__checks { justify-content: center; }
	.kfx-hero2__ctas { justify-content: center; }
}

/* Feature Big Tiles (Power PDF, PaperPort, OmniPage) */
.kfx-tiles {
	max-width: 1200px; margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
	gap: 24px;
}
.kfx-tile {
	background: var(--kfx-gray); border-radius: var(--kfx-radius); overflow: hidden;
	padding: 44px 32px 32px; display: flex; flex-direction: column; align-items: center;
	text-align: center; gap: 12px; border: 1px solid var(--kfx-line);
	transition: transform .3s ease, box-shadow .3s ease;
}
.kfx-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(56, 73, 89, 0.08); }
.kfx-tile h3 { font-size: 26px; letter-spacing: -0.025em; }
.kfx-tile p { font-size: 16px; color: var(--kfx-muted); }
.kfx-tile__img { width: 100%; max-width: 280px; margin-top: auto; padding-top: 20px; }

/* Filter Tabs & Segment Controls */
.kfx-shop__head {
	display: flex; flex-wrap: wrap; justify-content: space-between;
	align-items: flex-end; gap: 20px; margin-bottom: 36px;
}
.kfx-seg {
	display: inline-flex; background: #e0edf7; border-radius: var(--kfx-radius-pill);
	padding: 4px; gap: 4px;
}
.kfx-seg button {
	height: 38px; padding: 0 18px; border: 0; border-radius: var(--kfx-radius-pill);
	background: transparent; font-size: 14.5px; font-weight: 600; cursor: pointer;
	color: var(--kfx-ink-2); transition: all .2s;
}
.kfx-seg button.active, .kfx-seg button[aria-pressed="true"] {
	background: #fff; color: var(--kfx-ink); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Product Cards Grid */
.kfx-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.kfx-card {
	background: #fff; border-radius: var(--kfx-radius);
	border: 1px solid var(--kfx-line); padding: 28px 24px 24px;
	display: flex; flex-direction: column; gap: 12px;
	transition: box-shadow .3s ease, transform .3s ease;
	position: relative;
}
.kfx-card:hover {
	box-shadow: 0 10px 30px rgba(56, 73, 89, 0.09);
	transform: translateY(-3px); border-color: var(--kfx-steel);
}
.kfx-card__badge-row { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.kfx-card__img-wrap {
	display: flex; align-items: center; justify-content: center;
	height: 180px; padding: 10px; margin: 6px 0 12px;
}
.kfx-card__img { max-height: 160px; width: auto; object-fit: contain; }
.kfx-card h3 { font-size: 21px; letter-spacing: -0.02em; }
.kfx-card h3 a { color: var(--kfx-ink); text-decoration: none; }
.kfx-card h3 a:hover { color: var(--kfx-link); }
.kfx-card__desc { font-size: 14.5px; color: var(--kfx-muted); line-height: 1.5; flex-grow: 1; }
.kfx-card__platform { font-size: 13px; font-weight: 600; color: var(--kfx-steel); display: flex; align-items: center; gap: 6px; }
.kfx-card__foot {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 16px; border-top: 1px solid var(--kfx-gray); margin-top: auto;
}
.kfx-card__price { font-size: 22px; font-weight: 700; color: var(--kfx-ink); }
.kfx-card__price-sub { font-size: 12px; color: var(--kfx-muted); font-weight: 400; display: block; }

/* Comparison Matrix Table */
.kfx-compare-table {
	width: 100%; border-collapse: separate; border-spacing: 0;
	border: 1px solid var(--kfx-line); border-radius: var(--kfx-radius);
	overflow: hidden; background: #fff; margin-top: 28px;
}
.kfx-compare-table th, .kfx-compare-table td {
	padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--kfx-line);
	font-size: 15px;
}
.kfx-compare-table th { background: var(--kfx-gray); font-weight: 700; color: var(--kfx-ink); }
.kfx-compare-table tr:last-child td { border-bottom: none; }
.kfx-compare-table td.center { text-align: center; }
.kfx-check { color: #2e7d32; font-weight: bold; }
.kfx-cross { color: #c62828; }

/* Use Cases Cards (Law, Accounting, Scans, Small Business) */
.kfx-uses {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px; margin-top: 36px;
}
.kfx-use {
	background: #fff; border-radius: var(--kfx-radius);
	border: 1px solid var(--kfx-line); overflow: hidden;
	display: flex; flex-direction: column; transition: transform .3s;
}
.kfx-use:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.kfx-use__img { height: 160px; object-fit: cover; width: 100%; }
.kfx-use__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.kfx-use__body h3 { font-size: 20px; }
.kfx-use__body p { font-size: 14.5px; color: var(--kfx-muted); line-height: 1.5; }

/* Volume Licensing & Business Quote */
.kfx-biz {
	display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
	align-items: center; background: var(--kfx-gray);
	border-radius: 24px; padding: 48px; border: 1px solid var(--kfx-line);
}
.kfx-form {
	background: #fff; border-radius: var(--kfx-radius); padding: 32px;
	box-shadow: 0 4px 20px rgba(56, 73, 89, 0.08); display: flex; flex-direction: column; gap: 14px;
}
.kfx-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--kfx-ink-2); }
.kfx-form input, .kfx-form select, .kfx-form textarea {
	height: 44px; border: 1px solid #c6d7e8; border-radius: 8px; padding: 0 14px;
	font-size: 15px; color: var(--kfx-ink); background: #fff; transition: border-color .2s;
}
.kfx-form textarea { height: 80px; padding: 10px 14px; resize: vertical; }
.kfx-form input:focus, .kfx-form select:focus, .kfx-form textarea:focus {
	outline: none; border-color: var(--kfx-accent);
}

@media (max-width: 860px) {
	.kfx-biz { grid-template-columns: 1fr; padding: 28px 20px; }
}

/* FAQ Accordion */
.kfx-faq { border-top: 1px solid var(--kfx-line); margin-top: 24px; }
.kfx-faq details { border-bottom: 1px solid var(--kfx-line); transition: background .2s; }
.kfx-faq details[open] { background: rgba(238, 246, 254, 0.4); }
.kfx-faq summary {
	list-style: none; padding: 22px 8px; font-size: 19px; font-weight: 600;
	color: var(--kfx-ink); cursor: pointer; display: flex;
	justify-content: space-between; align-items: center; gap: 16px;
}
.kfx-faq summary::-webkit-details-marker { display: none; }
.kfx-chev { transition: transform .3s ease; color: var(--kfx-muted); }
.kfx-faq details[open] .kfx-chev { transform: rotate(180deg); }
.kfx-faq details p {
	margin: 0 8px 22px; font-size: 16px; line-height: 1.6;
	color: var(--kfx-ink-2); max-width: 780px;
}

/* Footer (Matching kofaxsoftware.us) */
.kfx-footer { background: var(--kfx-gray); border-top: 1px solid var(--kfx-line); color: var(--kfx-muted); font-size: 14.5px; line-height: 1.6; }
.kfx-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 24px 32px; }
.kfx-footer__cols {
	display: grid; grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 36px 24px; margin-bottom: 36px;
}
.kfx-footer__cols nav, .kfx-footer__brand, .kfx-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.kfx-footer__cols h4, .kfx-footer__cols h2 { font-size: 15px; font-weight: 700; color: var(--kfx-ink); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.kfx-footer__cols a { color: var(--kfx-muted); text-decoration: none; }
.kfx-footer__cols a:hover { color: var(--kfx-ink); text-decoration: underline; }
.kfx-footer__disclaimer {
	border-top: 1px solid var(--kfx-line); padding: 24px 0;
	font-size: 13.5px; color: var(--kfx-muted); line-height: 1.65;
}
.kfx-footer__base {
	border-top: 1px solid var(--kfx-line); padding-top: 20px;
	font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}

@media (max-width: 768px) {
	.kfx-footer__cols { grid-template-columns: 1fr; }
}

/* Cart Drawer */
#cart-overlay {
	display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.4); z-index: 2000; opacity: 0; transition: opacity .3s ease;
}
#cart-drawer {
	position: fixed; top: 0; right: -420px; width: 420px; max-width: 100%; height: 100vh;
	background: #fff; z-index: 2001; box-shadow: -4px 0 24px rgba(0,0,0,0.15);
	transition: right .3s ease; display: flex; flex-direction: column;
}
#cart-drawer.open { right: 0; }
#cart-overlay.open { display: block; opacity: 1; }
