/* Digitaloyal custom theme styles
   Clean, professional, mobile-first.
*/

:root {
	--do-bg: #ffffff;
	--do-bg-alt: #f6f8fb;
	--do-text: #0f172a;
	--do-muted: #64748b;
	--do-border: #e5e9f2;
	--do-primary: #2563eb;
	--do-primary-dark: #1d4ed8;
	--do-accent: #10b981;
	--do-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	--do-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
	--do-radius: 12px;
	--do-radius-lg: 18px;
	--do-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: smooth; }

/* Kill underscores default post/page bottom margin that causes white space under footer. */
.post, .page { margin: 0; }

/* Reset underscores default ul/ol 3em left margin — it leaks into nav, cards, footer lists. */
ul, ol { margin: 0; padding: 0; list-style: none; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; list-style: revert; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

body {
	margin: 0;
	font-family: var(--do-font);
	color: var(--do-text);
	background: var(--do-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--do-primary); text-decoration: none; }
a:visited { color: var(--do-primary); }
a:hover { color: var(--do-primary-dark); }

.btn,
.btn:visited,
.btn:hover,
.btn:focus,
.btn:active { text-decoration: none; }
.btn-primary,
.btn-primary:visited { color: #fff; }
.btn-ghost,
.btn-ghost:visited { color: var(--do-text); }
.btn-link,
.btn-link:visited { color: var(--do-primary); }
.cta-band .btn-primary,
.cta-band .btn-primary:visited { color: var(--do-primary); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--do-text); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

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

.container { max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; width: 100%; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	text-decoration: none;
	line-height: 1;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--do-primary); color: #fff; }
.btn-primary:hover { background: var(--do-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--do-shadow); }
.btn-ghost { background: #fff; color: var(--do-text); border-color: var(--do-border); }
.btn-ghost:hover { border-color: var(--do-primary); color: var(--do-primary); }
.btn-link { background: transparent; color: var(--do-primary); padding: 12px 6px; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--do-border);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 24px;
}
.site-branding { display: flex; align-items: center; }
.site-branding .site-title,
.site-branding p.site-title,
.site-branding h1.site-title {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.site-branding .site-title a,
.site-branding .site-title a:visited { color: var(--do-text); text-decoration: none; }
.site-branding .site-description { display: none; }
.brand-mark { color: var(--do-primary); display: inline-block; }
.main-navigation { display: flex; align-items: center; gap: 24px; justify-content: flex-end; flex: 1; }
.nav-panel { display: flex; align-items: center; gap: 24px; }
.primary-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 28px;
}
.primary-menu a {
	color: var(--do-text);
	font-weight: 500;
	font-size: 15px;
}
.primary-menu a:hover { color: var(--do-primary); }
.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	width: 40px;
	height: 40px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
}
.menu-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--do-text);
	border-radius: 2px;
}

/* Hero */
.hero {
	padding: 80px 0 60px;
	background: radial-gradient(1200px 500px at 80% -10%, rgba(37,99,235,0.10), transparent 60%),
	            linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--do-border);
}
.hero-inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
}
.eyebrow {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(37,99,235,0.08);
	color: var(--do-primary);
	font-weight: 600;
	font-size: 13px;
	border-radius: 99px;
	letter-spacing: 0.02em;
	margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--do-muted); max-width: 56ch; }
.hero-cta { display: flex; gap: 12px; margin: 28px 0 20px; flex-wrap: wrap; }
.hero-badges {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 20px;
	flex-wrap: wrap;
	color: var(--do-muted);
	font-size: 14px;
}
.hero-visual {
	position: relative;
	height: 380px;
}
.hero-card {
	position: absolute;
	background: #fff;
	border: 1px solid var(--do-border);
	padding: 18px 22px;
	border-radius: var(--do-radius);
	box-shadow: var(--do-shadow-lg);
	font-weight: 600;
	font-size: 15px;
}
.hero-card.card-1 { top: 20px; left: 10%; }
.hero-card.card-2 { top: 140px; right: 5%; }
.hero-card.card-3 { bottom: 30px; left: 25%; }

/* Page hero */
.page-hero {
	padding: 72px 0 48px;
	background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--do-border);
}
.single-page .page-hero { text-align: left; }
.single-page .page-hero-inner { text-align: left; }
.single-page .single-title { margin: 0; text-align: left; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--do-bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { color: var(--do-muted); font-size: 1.05rem; }
.center { text-align: center; }

/* Industries strip */
.industries-strip {
	text-align: center;
	padding: 32px 0 0;
	border-top: 1px solid var(--do-border);
}
.industries-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--do-muted);
	margin: 0 0 16px;
}
.industries-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}
.industries-list span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--do-border);
	border-radius: 99px;
	font-size: 14px;
	font-weight: 500;
	color: var(--do-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.industries-list span:hover {
	border-color: var(--do-primary);
	box-shadow: 0 4px 12px rgba(37,99,235,0.10);
}
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 80px; }
.muted { color: var(--do-muted); }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Cards */
.card {
	background: #fff;
	border: 1px solid var(--do-border);
	border-radius: var(--do-radius-lg);
	padding: 28px;
	box-shadow: var(--do-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--do-shadow-lg); }
.service-card .service-icon { font-size: 32px; margin-bottom: 12px; }
.service-card p { color: var(--do-muted); margin: 0; }

/* Product card */
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef2ff;
	overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #c7d2fe;
	font-size: 48px;
}
.thumb-placeholder.big { aspect-ratio: 4 / 3; font-size: 72px; border-radius: var(--do-radius-lg); }
.product-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-title { margin: 0; font-size: 1.15rem; }
.product-title a { color: var(--do-text); }
.product-title a:hover { color: var(--do-primary); }
.product-tagline { color: var(--do-muted); margin: 0; font-size: 14px; flex: 1; }
.product-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.price-pro {
	background: rgba(37,99,235,0.10);
	color: var(--do-primary);
	padding: 4px 10px;
	border-radius: 99px;
	font-weight: 700;
}
.price-free {
	background: rgba(16,185,129,0.10);
	color: #059669;
	padding: 4px 10px;
	border-radius: 99px;
	font-weight: 600;
}

/* Pricing cards */
.pricing-card { display: flex; flex-direction: column; position: relative; }
.pricing-card.is-featured {
	border-color: var(--do-primary);
	box-shadow: 0 20px 50px rgba(37,99,235,0.18);
	transform: translateY(-4px);
}
.pricing-card .badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--do-primary);
	color: #fff;
	padding: 6px 14px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}
.price { margin: 18px 0 6px; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price-cadence { color: var(--do-muted); margin-left: 4px; }
.feature-list {
	list-style: none;
	padding: 0;
	margin: 18px 0 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--do-text);
}
.feature-list li { font-size: 15px; }

/* Product single */
.product-hero {
	padding: 80px 0;
	background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
	border-bottom: 1px solid var(--do-border);
}
.product-hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 48px;
	align-items: center;
}
.product-hero-visual img,
.product-hero-visual .thumb-placeholder {
	border-radius: var(--do-radius-lg);
	box-shadow: var(--do-shadow-lg);
}
.product-price-row { display: flex; gap: 16px; align-items: baseline; margin: 20px 0; flex-wrap: wrap; }
.big-price { font-size: 2rem; font-weight: 800; color: var(--do-primary); }
.free-tag { color: var(--do-muted); font-size: 14px; }
.product-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.product-body-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}
.product-description .entry-content { font-size: 1.05rem; color: #334155; }
.product-description .entry-content p { margin: 0 0 1.1em; }
.card-pro { border: 2px solid var(--do-primary); background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%); }

/* Screenshots */
.screenshot-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}
.screenshot {
	display: block;
	border-radius: var(--do-radius);
	overflow: hidden;
	border: 1px solid var(--do-border);
	box-shadow: var(--do-shadow);
	transition: transform .2s ease;
}
.screenshot:hover { transform: scale(1.02); }
.screenshot img { width: 100%; height: auto; display: block; }

/* CTA band */
.cta-band {
	background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
	padding: 64px 0;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #dbeafe; margin: 0; }
.cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.cta-band .btn-primary {
	background: #fff;
	color: var(--do-primary);
}
.cta-band .btn-primary:hover { background: #f0f5ff; color: var(--do-primary-dark); }

/* Contact */
.contact-layout {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 32px;
	align-items: start;
}
.contact-form label {
	display: block;
	margin-bottom: 16px;
}
.contact-form label span {
	display: block;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
	color: var(--do-text);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--do-border);
	border-radius: 10px;
	font: inherit;
	color: var(--do-text);
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
	outline: 0;
	border-color: var(--do-primary);
	box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.contact-form textarea { resize: vertical; min-height: 140px; }

.alert {
	padding: 14px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
	font-size: 14px;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.site-footer {
	background: #0f172a;
	color: #cbd5e1;
	padding: 64px 0 28px;
	margin-top: 0;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #1e293b;
}
.footer-brand { color: #fff; margin: 0 0 12px; }
.footer-col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #cbd5e1; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #94a3b8; font-size: 14px; margin: 0 0 14px; }
.site-info {
	padding-top: 24px;
	font-size: 13px;
	color: #64748b;
	text-align: center;
}

/* Pagination */
.pagination-wrap { margin-top: 40px; text-align: center; }

/* 404 */
.error-404-section {
	padding: 100px 0 80px;
	background: radial-gradient(1000px 400px at 50% -10%, rgba(37,99,235,0.10), transparent 60%),
	            linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.error-404-inner { text-align: center; max-width: 860px; }
.error-code {
	font-size: clamp(6rem, 18vw, 12rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(135deg, var(--do-primary) 0%, #10b981 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 16px;
}
.error-404-inner .lede { margin: 0 auto 32px; }
.error-search { max-width: 520px; margin: 0 auto 28px; }
.error-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.error-links h3 { margin-bottom: 24px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--do-muted); font-weight: 700; }
.error-link-card {
	display: block;
	text-align: left;
	color: var(--do-text);
	text-decoration: none;
}
.error-link-card:visited { color: var(--do-text); }
.error-link-card h4 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.error-link-card p { margin: 0; color: var(--do-muted); font-size: 14px; }

/* Search form */
.search-form {
	display: flex;
	gap: 8px;
	background: #fff;
	padding: 6px;
	border: 1px solid var(--do-border);
	border-radius: 12px;
	box-shadow: var(--do-shadow);
}
.search-form label { flex: 1; margin: 0; }
.search-form .search-field {
	width: 100%;
	border: 0;
	outline: none;
	padding: 12px 14px;
	font: inherit;
	background: transparent;
	color: var(--do-text);
}
.search-form .search-submit {
	background: var(--do-primary);
	color: #fff;
	border: 0;
	padding: 0 20px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.search-form .search-submit:hover { background: var(--do-primary-dark); }

/* Search results */
.search-hero-form { max-width: 520px; margin-top: 24px; }
.search-results-list { display: flex; flex-direction: column; gap: 20px; }
.search-result {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
	padding: 20px;
	align-items: center;
}
.search-result:has(> .search-result-body:only-child) { grid-template-columns: 1fr; }
.search-result-thumb {
	display: block;
	border-radius: var(--do-radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body .product-title { margin: 6px 0 8px; }
.no-results { text-align: center; padding: 48px 32px; }
.no-results .error-cta-row { margin-top: 24px; margin-bottom: 0; }

@media (max-width: 720px) {
	.search-result { grid-template-columns: 1fr; }
}

/* Tool cards */
.tool-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	color: var(--do-text);
	text-decoration: none;
}
.tool-card:visited { color: var(--do-text); }
.tool-card:hover { border-color: var(--do-primary); }
.tool-icon { font-size: 36px; line-height: 1; }
.tool-card h3 { margin: 0; }
.tool-card p { color: var(--do-muted); margin: 0; flex: 1; }
.tool-link {
	color: var(--do-primary);
	font-weight: 600;
	font-size: 14px;
	margin-top: 6px;
}

/* Calculator layout */
.calc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
	gap: 32px;
	align-items: start;
}
.calc-layout > * { min-width: 0; }
.calc-results { min-width: 0; }
.calc-results > .card { min-width: 0; max-width: 100%; }
.calc-form { position: sticky; top: 88px; }
.calc-form h3 { margin-top: 0; }
.calc-form label {
	display: block;
	margin-bottom: 14px;
}
.calc-form label > span {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--do-muted);
	margin-bottom: 6px;
}
.input-unit {
	display: flex;
	align-items: center;
	border: 1px solid var(--do-border);
	border-radius: 10px;
	background: #fff;
	padding: 0 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.input-unit:focus-within {
	border-color: var(--do-primary);
	box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.input-unit > span {
	color: var(--do-muted);
	font-weight: 600;
	font-size: 15px;
}
.input-unit input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 12px 8px;
	font: inherit;
	color: var(--do-text);
	min-width: 0;
}
.input-unit.suffix > span { order: 2; margin-left: 4px; }
.input-unit input::-webkit-outer-spin-button,
.input-unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-unit input[type=number] { -moz-appearance: textfield; }

.calc-results { display: flex; flex-direction: column; gap: 20px; }
.result-main {
	background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
	border-color: var(--do-primary);
}
.result-label {
	display: block;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: var(--do-muted);
}
.result-value {
	font-size: clamp(2.2rem, 5vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--do-primary);
	margin: 8px 0 10px;
	line-height: 1;
}
.result-mid {
	font-size: 1.6rem;
	font-weight: 800;
	margin-top: 6px;
	letter-spacing: -0.01em;
}
.result-sub { font-size: 14px; font-weight: 600; }
.result-sub.is-good { color: #059669; }
.result-sub.is-warn { color: #d97706; }
.result-sub.is-bad { color: #dc2626; }

.result-grid { margin: 0; }
.result-small { padding: 20px; }

.breakdown-list {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 15px;
}
.breakdown-list li {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid var(--do-border);
	color: var(--do-text);
}
.breakdown-list li:last-child { border-bottom: 0; }
.breakdown-list li.total {
	border-top: 2px solid var(--do-primary);
	border-bottom: 0;
	padding-top: 12px;
	margin-top: 4px;
	font-weight: 700;
	color: var(--do-primary);
}

.whatif-table-wrap { overflow-x: auto; margin-top: 12px; max-width: 100%; }
.whatif-table {
	width: 100%;
	min-width: 380px;
	border-collapse: collapse;
	font-size: 14px;
}
.whatif-table th,
.whatif-table td {
	padding: 12px 10px;
	text-align: left;
	border-bottom: 1px solid var(--do-border);
}
.whatif-table th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--do-muted);
	font-weight: 700;
}
.whatif-table tr.is-highlight {
	background: #eff6ff;
	font-weight: 700;
}
.whatif-table tr.is-highlight td:first-child { color: var(--do-primary); }

@media (max-width: 960px) {
	.grid-2 { grid-template-columns: minmax(0, 1fr); }
	.calc-layout { grid-template-columns: minmax(0, 1fr); }
	.calc-form { position: static; }
}

/* ---------------------------------------------------------------
 * Scroll animations
 * --------------------------------------------------------------- */
[data-animate] {
	opacity: 0;
	transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
	            transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
[data-animate="up"]    { transform: translateY(36px); }
[data-animate="left"]  { transform: translateX(-36px); }
[data-animate="right"] { transform: translateX(36px); }
[data-animate="scale"] { transform: scale(0.92); }

[data-animate].is-visible {
	opacity: 1;
	transform: translateY(0) translateX(0) scale(1);
}

/* Text reveal — word by word */
.text-reveal .word {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
}
.text-reveal .word-inner {
	display: inline-block;
	transform: translateY(105%);
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.text-reveal.is-revealed .word-inner {
	transform: translateY(0);
}
/* Stagger each word */
.text-reveal .word:nth-child(1) .word-inner  { transition-delay: 0ms; }
.text-reveal .word:nth-child(2) .word-inner  { transition-delay: 50ms; }
.text-reveal .word:nth-child(3) .word-inner  { transition-delay: 100ms; }
.text-reveal .word:nth-child(4) .word-inner  { transition-delay: 150ms; }
.text-reveal .word:nth-child(5) .word-inner  { transition-delay: 200ms; }
.text-reveal .word:nth-child(6) .word-inner  { transition-delay: 250ms; }
.text-reveal .word:nth-child(7) .word-inner  { transition-delay: 300ms; }
.text-reveal .word:nth-child(8) .word-inner  { transition-delay: 350ms; }
.text-reveal .word:nth-child(9) .word-inner  { transition-delay: 400ms; }
.text-reveal .word:nth-child(10) .word-inner { transition-delay: 450ms; }
.text-reveal .word:nth-child(n+11) .word-inner { transition-delay: 500ms; }

/* ---------------------------------------------------------------
 * Hover interactions
 * --------------------------------------------------------------- */

/* Card hover lift + border glow */
.card {
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.35s ease,
	            border-color 0.25s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(15,23,42,0.12), 0 0 0 1px rgba(37,99,235,0.12);
}

/* Button hover pulse glow */
.btn {
	transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
	            box-shadow 0.3s ease,
	            background 0.2s ease,
	            color 0.2s ease,
	            border-color 0.2s ease;
}
.btn-primary:hover {
	box-shadow: 0 8px 24px rgba(37,99,235,0.35), 0 0 0 4px rgba(37,99,235,0.10);
}
.btn-ghost:hover {
	box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}

/* Nav link animated underline */
.primary-menu a {
	position: relative;
}
.primary-menu a::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--do-primary);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-menu a:hover::after {
	transform: scaleX(1);
}

/* Product card image zoom on hover */
.product-thumb img,
.post-thumb img {
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-thumb img,
.post-card:hover .post-thumb img {
	transform: scale(1.06);
}

/* Tool card arrow nudge */
.tool-link {
	transition: transform 0.3s ease, color 0.2s ease;
	display: inline-block;
}
.tool-card:hover .tool-link {
	transform: translateX(6px);
	color: var(--do-primary-dark);
}

/* Hero cards floating animation */
@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}
.hero-card {
	animation: float 4s ease-in-out infinite;
}
.hero-card.card-1 { animation-delay: 0s; }
.hero-card.card-2 { animation-delay: 1.2s; }
.hero-card.card-3 { animation-delay: 2.4s; }

/* Pricing card featured pulse */
@keyframes glow-pulse {
	0%, 100% { box-shadow: 0 20px 50px rgba(37,99,235,0.18); }
	50% { box-shadow: 0 20px 60px rgba(37,99,235,0.28); }
}
.pricing-card.is-featured {
	animation: glow-pulse 3s ease-in-out infinite;
}

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
	[data-animate] { opacity: 1; transform: none; transition: none; }
	.text-reveal .word-inner { transform: none; transition: none; }
	.hero-card { animation: none; }
	.pricing-card.is-featured { animation: none; }
	.card, .btn, .tool-link { transition: none; }
}

/* Blog — post cards */
.post-grid { gap: 32px; }
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: #eef2ff;
	overflow: hidden;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--do-muted);
}
.post-meta .dot { opacity: 0.6; }
.post-cat {
	color: var(--do-primary);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 12px;
}
.post-cat:visited { color: var(--do-primary); }
.post-title { margin: 2px 0 4px; font-size: 1.25rem; line-height: 1.3; }
.post-title a { color: var(--do-text); }
.post-title a:visited { color: var(--do-text); }
.post-title a:hover { color: var(--do-primary); }
.post-excerpt { color: var(--do-muted); margin: 0; flex: 1; font-size: 15px; }
.post-read-more {
	font-weight: 600;
	font-size: 14px;
	margin-top: 6px;
}

/* Single post */
.single-hero {
	padding: 72px 0 32px;
	background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}
.single-hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.post-cats { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.single-title {
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	margin: 0 0 24px;
	letter-spacing: -0.02em;
}
.single-meta { display: flex; justify-content: center; }
.author { display: flex; align-items: center; gap: 12px; text-align: left; }
.author img { border-radius: 999px; }
.author-name { display: block; font-weight: 600; color: var(--do-text); font-size: 14px; }
.author .muted { font-size: 13px; }

.single-featured {
	padding: 24px 0 0;
}
.single-featured img {
	width: 100%;
	max-height: 520px;
	object-fit: cover;
	border-radius: var(--do-radius-lg);
	box-shadow: var(--do-shadow-lg);
}

.single-body-section { padding-top: 56px; }
.entry-content {
	font-size: 1.08rem;
	line-height: 1.75;
	color: #1f2937;
}
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 2em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.8em; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 22px;
	border-left: 4px solid var(--do-primary);
	background: #f8faff;
	border-radius: 0 10px 10px 0;
	color: #334155;
	font-style: italic;
}
.entry-content pre {
	background: #0f172a;
	color: #e2e8f0;
	padding: 18px 20px;
	border-radius: 10px;
	overflow-x: auto;
	font-size: 14px;
}
.entry-content code {
	background: #f1f5f9;
	color: #0f172a;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.92em;
}
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content img { border-radius: var(--do-radius); margin: 1.4em 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 13px; color: var(--do-muted); text-align: center; margin-top: 8px; }

.post-tags {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--do-border);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.post-tags a {
	display: inline-block;
	padding: 6px 12px;
	background: #f1f5f9;
	color: var(--do-text);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 500;
}
.post-tags a:visited { color: var(--do-text); }
.post-tags a:hover { background: var(--do-primary); color: #fff; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--do-border);
	font-weight: 600;
}
.post-nav a {
	display: block;
	padding: 16px 20px;
	background: #f8faff;
	border: 1px solid var(--do-border);
	border-radius: var(--do-radius);
	color: var(--do-text);
	transition: border-color .15s ease, background .15s ease;
}
.post-nav a:visited { color: var(--do-text); }
.post-nav a:hover { border-color: var(--do-primary); background: #eff6ff; color: var(--do-primary); }
.post-nav-next { text-align: right; }

@media (max-width: 720px) {
	.post-nav { grid-template-columns: 1fr; }
	.single-hero { padding: 48px 0 24px; }
}

/* Responsive */
@media (max-width: 960px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { display: none; }
	.product-hero-grid { grid-template-columns: 1fr; }
	.product-body-grid { grid-template-columns: 1fr; }
	.contact-layout { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
	.header-inner { position: relative; gap: 12px; }
	.site-header { position: relative; }

	.menu-toggle { display: flex; }

	.nav-panel {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px 24px 20px;
		border-top: 1px solid var(--do-border);
		box-shadow: var(--do-shadow-lg);
		z-index: 40;
	}
	.main-navigation.toggled .nav-panel { display: flex; }

	.nav-panel .primary-menu {
		display: flex;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 0;
	}
	.nav-panel .primary-menu li {
		border-bottom: 1px solid var(--do-border);
	}
	.nav-panel .primary-menu li:last-child { border-bottom: 0; }
	.nav-panel .primary-menu a {
		display: block;
		padding: 14px 4px;
		font-size: 16px;
	}
	.nav-panel .nav-cta {
		display: inline-flex;
		margin-top: 16px;
		width: 100%;
	}

	.grid-3 { grid-template-columns: 1fr; }
	.section { padding: 56px 0; }
	.hero { padding: 56px 0 40px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.price-amount { font-size: 2rem; }
}
