/* Dexero site styles (from the DEX-94 mockup). */
:root {
	--red: #c01a34;
	--red-700: #9e1229;
	--red-50: #fdeef0;
	--ink: #111827;
	--ink-2: #374151;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #ffffff;
	--bg-soft: #f6f7f9;
	--bg-dark: #0f141c;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 8px 24px rgba(17, 24, 39, .08);
	--container: 1180px;
	--font: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }
[id] { scroll-margin-top: 90px; }
.has-subnav [id] { scroll-margin-top: 140px; }

/* Header. The utility bar above it scrolls away; the header stays at 68px. */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--ink-2); text-decoration: none; font-weight: 550; }
.topbar a:hover { color: var(--ink); text-decoration: underline; }
.topbar-search { display: flex; align-items: center; margin-right: auto; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.topbar-search input { width: 180px; border: 0; background: none; font: inherit; color: var(--ink); padding: 3px 0 3px 12px; }
.topbar-search input:focus { outline: none; }
.topbar-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.topbar-search button { display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); padding: 3px 10px 3px 6px; cursor: pointer; }
.topbar-search svg { width: 16px; height: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--red); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.logo:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .nav-list .nav-label { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); border-radius: 8px 8px 0 0; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.sub { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 10px 12px; }
.sub a small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { font-weight: 700; font-size: .85rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { border-color: var(--ink-2); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; border: 2px solid transparent; font-size: 1rem; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--red-50); color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: .92rem; white-space: nowrap; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #e5e7eb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head:last-child { margin-bottom: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; max-width: none; }
.section-head.row h2 { margin: 0; }
.more { margin-top: 28px; }
.section-head.center + .more, .more.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.section-dark .eyebrow { color: #ff6b81; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.section-dark .lead { color: #cbd5e1; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1100px 480px at 85% -10%, var(--red-50), transparent 60%), linear-gradient(#fff, #fff); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--red); }
.hero .lead { max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--red); font-weight: 800; margin-right: 6px; }

/* Product illustration (pure CSS) */
.mock { position: relative; }
.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(17, 24, 39, .25), var(--shadow); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mock-side { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 14px 10px; font-size: .78rem; color: var(--ink-2); }
.mock-side b { display: block; padding: 6px 8px; border-radius: 6px; font-weight: 600; }
.mock-side b.on { background: #fff; box-shadow: inset 3px 0 0 var(--red); }
.mock-main { padding: 18px; }
.mock-title { font-size: .95rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.field { margin-bottom: 10px; }
.field .label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
.field div { height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; position: relative; }
.field div.sel::after { content: ""; position: absolute; right: 10px; top: 10px; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-chips { margin: 12px 0 0; }
.mock-chip { display: inline-block; font-size: .7rem; background: var(--red-50); color: var(--red-700); border-radius: 999px; padding: 2px 8px; margin-right: 4px; }
.mock-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .78rem; }
.mock-card.table { right: -18px; bottom: -34px; width: 260px; }
.mock-card.table div { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.mock-card.table div:last-child { border: 0; }
.mock-card.table div.head { color: var(--muted); font-weight: 600; }
.ok { color: #047857; font-weight: 700; }
.mock-card.chart { left: -24px; top: 40px; width: 150px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 8px; }
.bars-lg { height: 110px; }
.bars i { flex: 1; background: var(--red); border-radius: 3px 3px 0 0; opacity: .85; }
.bars i:nth-child(odd) { opacity: .45; }

/* Trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; list-style: none; margin: 0; padding: 22px 0; font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.card p { color: var(--ink-2); }
.card .link-arrow { margin-top: auto; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #d1d5db; box-shadow: var(--shadow); transform: translateY(-2px); }
a.card:hover .link-arrow { color: var(--red-700); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.pillar { padding: 32px; border-top: 4px solid var(--red); }
.checks { list-style: none; padding: 0; margin: 0 0 22px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.section-dark .checks li { color: #cbd5e1; }
.section-dark .card { background: #161d28; border-color: #263041; }
.section-dark .card p { color: #cbd5e1; }
.section-dark .card-icon { background: rgba(255, 107, 129, .12); color: #ff8798; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse > :first-child { order: 2; }
.split-top { align-items: start; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 260px; }
.panel .mock-window { box-shadow: var(--shadow); }

/* Use-case list */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usecases.cols-2 { grid-template-columns: repeat(2, 1fr); }
.usecase { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; }
.usecase:hover { border-color: var(--red); color: inherit; }
.usecase strong { display: block; }
.usecase span { color: var(--muted); font-size: .92rem; }
.usecase .card-icon { margin: 0; width: 40px; height: 40px; flex: none; }
.usecase .card-icon svg { width: 22px; height: 22px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--red); letter-spacing: -.02em; }
.stat span { color: var(--ink-2); }

/* Quote / proof placeholder */
.quote { background: #fff; border: 1px dashed #d9b84a; border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.1rem; }
.quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }

/* Blog cards */
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.post h3 { font-size: 1.1rem; }
.post-list { list-style: none; margin: 0; padding: 0; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--red) 0%, #7d0f22 100%); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #ffe4e8; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }

/* Page hero (inner pages) */
.page-hero { padding: 56px 0 64px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.page-hero .lead { max-width: 760px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.subnav { position: sticky; top: 68px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: block; white-space: nowrap; padding: 14px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); border-color: var(--red); }

/* Long text (legal pages, blog posts) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.5em; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
.prose img { height: auto; border-radius: var(--radius); }
.prose blockquote { margin: 0 0 1em; padding-left: 18px; border-left: 3px solid var(--red); color: var(--ink-2); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }

/* Search page */
.search-form { display: flex; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 10px; color: var(--ink); }
.search-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.search-results { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.search-results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 650; font-size: 1.1rem; }
.search-results p { margin: 6px 0 0; color: var(--ink-2); }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-aside h3 { margin-top: 18px; }
.contact-aside h3:first-child { margin-top: 0; }
.contact-aside p { color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--bg-dark); color: #9ca3af; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h2 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid #263041; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: .85rem; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal li { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
	.header-inner { gap: 16px; }
	.nav-list a { padding: 10px 8px; }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.usecases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; max-height: calc(100vh - 68px); overflow-y: auto; }
	.nav-open .nav { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 8px; font-size: 1.05rem; }
	.nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); border-radius: 0 8px 8px 0; }
	.sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
	.sub a small { display: none; }
	.sub a { font-weight: 450; font-size: .98rem; padding: 9px 8px; }
	.has-sub > a::after { display: none; }
	.nav-tools { margin: 14px 0 0; justify-content: space-between; }
	.hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
	.split.reverse > :first-child { order: 0; }
	.grid-3 { grid-template-columns: 1fr 1fr; }
	.cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
	.mock-card.chart { display: none; }
	.mock-card.table { right: 8px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.section { padding: 64px 0; }
	.hero { padding: 44px 0 72px; }
	.grid-2, .grid-3, .grid-4, .usecases, .usecases.cols-2, .stats { grid-template-columns: 1fr; }
	.topbar .container { flex-wrap: wrap; row-gap: 6px; }
	.topbar-search { flex: 1 1 100%; }
	.topbar-search input { flex: 1; width: auto; min-width: 0; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.mock-body { grid-template-columns: 1fr; }
	.mock-side { display: none; }
	.mock-card.table { position: static; width: auto; margin-top: 14px; }
	.trust ul { justify-content: flex-start; }
	.hero-ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
