/* ============================================================================
   Dental SEO landing page — page-specific styles.
   Ported from design_handoff_dental_seo/design_files/ui_kits/website/article.css
   Layered on top of tokens.css + wonderboy.css.
   ============================================================================ */

/* ---- Reading-progress bar (fixed, very top) ----------------------------- */
.dseo-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 150;
	background: transparent; pointer-events: none;
}
.dseo-progress span {
	display: block; height: 100%; width: 0;
	background: linear-gradient(90deg, var(--hero-500), var(--electric-500));
	box-shadow: 0 0 12px rgba(56,189,248,.5);
	transition: width .08s linear;
}

/* ===========================================================================
   HERO — full-width band, photo right, copy left, midnight scrim
   ========================================================================== */
.dseo-hero {
	position: relative; overflow: hidden; min-height: 640px;
	background: radial-gradient(120% 100% at 12% 0%, var(--midnight-800), var(--midnight-950) 70%);
}
.dseo-hero-photo {
	position: absolute; top: 0; right: 0; bottom: 0; width: 58%; z-index: 0;
	background: linear-gradient(135deg, var(--midnight-800), var(--midnight-950));
}
.dseo-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.dseo-hero-scrim {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background:
		linear-gradient(90deg, var(--midnight-950) 26%, rgba(18,26,43,.82) 38%, rgba(18,26,43,.30) 50%, transparent 62%),
		linear-gradient(0deg, rgba(18,26,43,.55) 0%, transparent 32%);
}
.dseo-hero-glow {
	position: absolute; top: -16%; right: -4%; width: 640px; height: 640px; z-index: 1;
	background: radial-gradient(circle, rgba(56,189,248,.20), transparent 62%); pointer-events: none;
}
.dseo-hero-wrap { position: relative; z-index: 2; }
.dseo-hero-inner {
	display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
	column-gap: 32px; align-items: center; padding: 132px 0 40px;
}
.dseo-hero-copy { max-width: 600px; }
.dseo-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 9px;
	font-family: var(--font-mono); font-weight: 500; font-size: 12.5px;
	letter-spacing: .18em; text-transform: uppercase; color: var(--electric-400);
	margin-bottom: 20px;
}
.dseo-hero-eyebrow img { height: 14px; }
.dseo-hero h1 {
	font-family: var(--font-display); font-weight: 900;
	font-size: clamp(38px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -.02em;
	color: #fff; margin: 0 0 20px; text-wrap: balance;
}
.dseo-hero h1 .wb-accent { color: var(--hero-400); }
.dseo-hero-sub {
	font-family: var(--font-body); font-size: var(--text-lg); line-height: 1.6;
	color: #c2cbe0; max-width: 520px; margin: 0 0 30px;
}
.dseo-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }

/* ---- Trust feature row (under both columns) ---------------------------- */
.dseo-hero-trust {
	grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0; max-width: 780px;
}
.dseo-hero-trust li {
	flex: 1 1 0; min-width: 150px; padding: 0 22px; position: relative;
	display: flex; flex-direction: column; gap: 10px;
}
.dseo-hero-trust li:first-child { padding-left: 0; }
.dseo-hero-trust li + li::before {
	content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
	width: 1px; background: rgba(255,255,255,.14);
}
.dseo-hero-trust span {
	font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 1.3;
	text-transform: uppercase; letter-spacing: .04em; color: #cdd5e6;
}

/* ---- Floating stat cards over the photo --------------------------------- */
.dseo-hero-stage { position: relative; min-height: 528px; align-self: stretch; }
.dseo-stat-card {
	position: absolute; width: 230px; background: rgba(255,255,255,.96);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg);
	padding: 16px 18px; box-shadow: 0 20px 48px rgba(8,12,24,.45);
	animation: dseo-floatcard 6s var(--ease-in-out) infinite;
}
.dseo-stat-card--a { top: 4px;   left: 14px; animation-delay: 0s; }
.dseo-stat-card--b { top: 186px; left: 58px; animation-delay: .8s; z-index: 3; }
.dseo-stat-card--c { top: 366px; left: 2px;  animation-delay: 1.5s; }
@keyframes dseo-floatcard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .dseo-stat-card { animation: none; } }
.dseo-stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dseo-stat-label {
	font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--gray-500); line-height: 1.25;
}
.dseo-stat-value {
	font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1;
	color: var(--midnight-900); letter-spacing: -.02em;
}
.dseo-stat-foot {
	display: flex; align-items: center; gap: 7px; margin-top: 9px;
	font-family: var(--font-mono); font-size: 11px; color: var(--gray-500);
}
.dseo-stat-delta {
	display: inline-flex; align-items: center; gap: 2px; font-weight: 700; color: var(--success);
}
.dseo-stat-stars { color: var(--gold-500); margin: 8px 0 4px; font-size: 14px; letter-spacing: .08em; }

/* ---- Credibility bar along the bottom of the hero ----------------------- */
.dseo-hero-cred {
	position: relative; z-index: 2;
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px 32px; flex-wrap: wrap; padding: 18px 26px; margin-bottom: 26px;
	background: rgba(18,26,43,.5);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
}
.dseo-cred-main {
	display: inline-flex; align-items: center; gap: 11px;
	font-family: var(--font-display); font-weight: 800; font-size: 15px;
	text-transform: uppercase; letter-spacing: .03em; color: #fff;
}
.dseo-cred-logos { display: inline-flex; align-items: center; gap: 24px; margin-left: auto; }
.dseo-cred-logo {
	font-family: var(--font-display); font-weight: 800; font-size: 13px;
	letter-spacing: .02em; text-transform: uppercase;
	color: #6f7c97; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}

/* ===========================================================================
   LAYOUT — main reading column + sticky sidebar
   ========================================================================== */
.dseo-layout {
	display: grid; grid-template-columns: minmax(0,1fr) 332px; gap: 64px;
	align-items: start; padding: 64px 0 88px;
}
.dseo-main { min-width: 0; max-width: 760px; }
.dseo-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

/* ---- Podcast / audio bar ----------------------------------------------- */
.dseo-audio {
	display: flex; align-items: center; gap: 16px;
	background: var(--midnight-900); border-radius: var(--radius-lg);
	padding: 14px 18px; margin-bottom: 44px; box-shadow: var(--shadow-md);
	position: relative; overflow: hidden;
}
.dseo-audio::before {
	content: ''; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
	background: radial-gradient(circle, rgba(99,117,255,.22), transparent 62%); pointer-events: none;
}
.dseo-audio-play {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
	background: var(--hero-500); color: #fff; display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-brand);
	transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.dseo-audio-play:hover { background: var(--hero-600); transform: scale(1.05); }
.dseo-audio-play:active { transform: scale(.94); }
.dseo-audio-body { flex: 1 1 auto; min-width: 0; position: relative; z-index: 1; }
.dseo-audio-label {
	font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--electric-400); margin-bottom: 5px;
}
.dseo-audio-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.dseo-audio-track { margin-top: 9px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.dseo-audio-track span { display: block; height: 100%; width: 0; background: var(--electric-500); border-radius: 999px; }
.dseo-audio-time {
	flex: 0 0 auto; font-family: var(--font-mono); font-size: 12px; color: #8a96b0;
	position: relative; z-index: 1; font-variant-numeric: tabular-nums;
}

/* ===========================================================================
   TABLE OF CONTENTS (sidebar, scroll-spy)
   ========================================================================== */
.dseo-toc {
	background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm); padding: 20px 18px;
}
.dseo-toc-label {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--fg-muted); padding: 0 8px 12px; display: flex; align-items: center; gap: 8px;
	border-bottom: 1px solid var(--border-subtle); margin-bottom: 6px;
}
.dseo-toc-list { list-style: none; margin: 0; padding: 0; }
.dseo-toc-item { display: flex; align-items: center; gap: 8px; }
.dseo-toc-item > a.dseo-toc-link {
	flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0;
	font-family: var(--font-body); font-weight: 600; font-size: 13.5px; line-height: 1.3;
	color: var(--fg-secondary); padding: 9px 8px; border-radius: var(--radius-sm);
	position: relative; transition: color var(--dur-fast), background var(--dur-fast);
}
.dseo-toc-item > a.dseo-toc-link::before {
	content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
	background: var(--border-strong); transition: background var(--dur-base), transform var(--dur-base);
}
.dseo-toc-item > a.dseo-toc-link:hover { color: var(--midnight-900); background: var(--gray-50); }
.dseo-toc-item.is-active > a.dseo-toc-link { color: var(--hero-700); background: var(--hero-50); }
.dseo-toc-item.is-active > a.dseo-toc-link::before { background: var(--hero-500); transform: scale(1.5); }
.dseo-toc-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); flex: 0 0 auto; }
.dseo-toc-item.is-active .dseo-toc-num { color: var(--hero-600); }
.dseo-toc-item > a.dseo-toc-pill {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px;
	font-family: var(--font-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--hero-700); background: var(--hero-50); border: 1px solid var(--hero-200);
	padding: 3px 6px; border-radius: var(--radius-pill); white-space: nowrap; line-height: 1;
	transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base);
}
.dseo-toc-pill:hover { background: var(--hero-500); color: #fff; border-color: var(--hero-500); }

/* ---- Sidebar audit CTA card -------------------------------------------- */
.dseo-audit {
	position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 24px 22px;
	background:
		radial-gradient(120% 90% at 90% -10%, rgba(99,117,255,.40), transparent 56%),
		linear-gradient(180deg, var(--midnight-900), var(--midnight-950));
	box-shadow: var(--shadow-md);
}
.dseo-audit-bolt { position: absolute; right: -16px; bottom: -22px; width: 120px; opacity: .08; pointer-events: none; }
.dseo-audit h3 {
	position: relative; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.1;
	color: #fff; margin: 0 0 8px; letter-spacing: -.01em;
}
.dseo-audit p { position: relative; font-size: 13.5px; line-height: 1.5; color: #aeb9cf; margin: 0 0 16px; }
.dseo-audit-form { position: relative; display: flex; flex-direction: column; gap: 10px; }
.dseo-audit-input {
	position: relative; display: flex; align-items: center; gap: 8px;
	background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.16); border-radius: var(--radius-md);
	padding: 0 12px; transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.dseo-audit-input:focus-within { border-color: var(--electric-500); box-shadow: var(--shadow-glow); }
.dseo-audit-input input {
	flex: 1 1 auto; min-width: 0; background: none; border: none; outline: none;
	font-family: var(--font-body); font-size: 14px; color: #fff; padding: 12px 0;
}
.dseo-audit-input input::placeholder { color: #6f7c97; }
.dseo-audit .wb-btn { width: 100%; }
.dseo-audit-note {
	position: relative;
	font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em;
	color: #6f7c97; margin: 12px 0 0;
}

/* ===========================================================================
   PROSE — the reading column
   ========================================================================== */
.dseo-intro p {
	font-family: var(--font-body); font-size: 19px; line-height: 1.7; color: var(--fg-primary);
	margin: 0 0 18px; text-wrap: pretty;
}
.dseo-intro p:first-child { font-size: 21px; color: var(--midnight-900); }
.dseo-intro { margin-bottom: 8px; padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }

.dseo-section { padding: 44px 0; border-bottom: 1px solid var(--border-subtle); scroll-margin-top: 92px; }
.dseo-section:last-of-type { border-bottom: none; }
.dseo-section > h2 {
	font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 38px);
	line-height: 1.08; letter-spacing: -.02em; color: var(--midnight-900); margin: 0 0 22px;
	text-wrap: balance;
}
.dseo-section > h3 {
	font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15;
	letter-spacing: -.01em; color: var(--midnight-900); margin: 34px 0 12px;
}
.dseo-section p {
	font-family: var(--font-body); font-size: 17.5px; line-height: 1.75; color: var(--fg-primary);
	margin: 0 0 16px; text-wrap: pretty;
}
.dseo-section p strong { font-weight: 700; color: var(--midnight-900); }

/* ---- Inline deep-dive link --------------------------------------------- */
.dseo-deeplink {
	color: var(--hero-600); font-weight: 600;
	background-image: linear-gradient(var(--hero-300), var(--hero-300));
	background-position: 0 100%; background-repeat: no-repeat; background-size: 100% 2px;
	padding-bottom: 1px;
	transition: background-size var(--dur-base) var(--ease-out), color var(--dur-base);
}
.dseo-deeplink:hover {
	color: var(--hero-700); background-size: 100% 100%;
	background-image: linear-gradient(var(--hero-50), var(--hero-50));
}
.dseo-deeplink::after {
	content: '↗'; font-family: var(--font-mono); font-size: .82em;
	margin-left: 2px; color: var(--hero-500); vertical-align: 1px;
}

/* ---- Read-next feature card -------------------------------------------- */
.dseo-readnext {
	display: grid; grid-template-columns: 168px 1fr; margin: 34px 0 8px;
	border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
	overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
	transition: transform var(--dur-base) var(--ease-out),
				box-shadow var(--dur-base) var(--ease-out),
				border-color var(--dur-base);
}
.dseo-readnext:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--hero-200); }
.dseo-readnext-thumb {
	position: relative; background-size: cover; background-position: center; min-height: 160px;
}
.dseo-readnext-thumb::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(120deg, rgba(28,37,57,.35), transparent 60%);
}
.dseo-readnext-body { padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.dseo-readnext-label {
	display: inline-flex; align-self: flex-start;
	font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hero-700); background: var(--hero-50);
	padding: 5px 10px; border-radius: var(--radius-pill); margin-bottom: 12px;
}
.dseo-readnext-body h4 {
	font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1;
	letter-spacing: -.01em; color: var(--midnight-900); margin: 0 0 8px;
}
.dseo-readnext-body p {
	font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
	color: var(--fg-secondary); margin: 0 0 14px;
}
.dseo-readnext-cta {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
	font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; font-size: 13px; color: var(--hero-600);
	transition: gap var(--dur-base);
}
.dseo-readnext:hover .dseo-readnext-cta { gap: 11px; }

/* ===========================================================================
   IN-COLUMN IMAGE FIGURES (placeholders for SERP + map-pack screenshots)
   ========================================================================== */
.dseo-figure { margin: 36px 0; }
.dseo-figure-media {
	border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-md); background: var(--gray-50);
}
.dseo-figure-media img { width: 100%; display: block; }
.dseo-figure-ph {
	position: relative; aspect-ratio: 16/9;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; padding: 24px; text-align: center;
	background-color: var(--gray-50);
	background-image: repeating-linear-gradient(135deg, var(--gray-100) 0 14px, transparent 14px 28px);
}
.dseo-figure-ph .lbl {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
	text-transform: uppercase; color: var(--gray-500); max-width: 380px; line-height: 1.5;
}
.dseo-figure figcaption {
	margin-top: 12px; display: flex; gap: 9px; align-items: baseline;
	font-family: var(--font-body); font-size: 14px; color: var(--fg-muted); line-height: 1.5;
}
.dseo-figure-kicker {
	flex: 0 0 auto; font-family: var(--font-mono); font-size: 10.5px;
	letter-spacing: .1em; text-transform: uppercase; color: var(--hero-600);
}

/* ===========================================================================
   VIDEO BLOCK + LIGHTBOX
   ========================================================================== */
.dseo-video {
	position: relative; margin: 38px 0; border-radius: var(--radius-lg); overflow: hidden;
	cursor: pointer; aspect-ratio: 16/9; box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255,255,255,.08);
	background: radial-gradient(120% 130% at 72% 0%, var(--midnight-700), var(--midnight-950));
}
.dseo-video-poster { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .42; }
.dseo-video-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,26,43,.9), rgba(18,26,43,.2) 60%); }
.dseo-video-bolt { position: absolute; right: 5%; top: 12%; width: 116px; opacity: .1; }
.dseo-video-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
	width: 76px; height: 76px; border-radius: 50%; border: none; cursor: pointer;
	background: var(--hero-500); color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-brand);
	transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
	font-size: 26px;
}
.dseo-video-play::after {
	content: ''; position: absolute; inset: -10px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.25);
}
.dseo-video:hover .dseo-video-play { transform: translate(-50%, -50%) scale(1.08); background: var(--hero-600); }
.dseo-video-meta { position: absolute; left: 26px; right: 26px; bottom: 22px; z-index: 2; }
.dseo-video-meta .lbl {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--electric-400); margin-bottom: 7px;
}
.dseo-video-meta h4 {
	font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.1;
	color: #fff; margin: 0;
}
.dseo-video-meta .len {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--font-mono); font-size: 12px; color: #aeb9cf; margin-top: 8px;
}

.dseo-lightbox {
	position: fixed; inset: 0; z-index: 200; display: none;
	background: rgba(14,22,38,.72);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	align-items: center; justify-content: center; padding: 28px;
}
.dseo-lightbox.is-open { display: flex; }
.dseo-lightbox-inner { width: 100%; max-width: 920px; position: relative; }
.dseo-lightbox-close {
	position: absolute; top: -46px; right: 0; width: 38px; height: 38px; border-radius: 50%;
	border: none; cursor: pointer; background: rgba(255,255,255,.12); color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: background var(--dur-base); font-size: 18px;
}
.dseo-lightbox-close:hover { background: rgba(255,255,255,.24); }
.dseo-lightbox-frame {
	position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
	background: var(--midnight-950); border: 1px solid rgba(255,255,255,.12);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 14px; color: #8a96b0; text-align: center; padding: 24px;
}
.dseo-lightbox-frame .lbl {
	font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
	line-height: 1.6; max-width: 420px;
}

/* ===========================================================================
   PDF GUIDE / LEAD MAGNET BLOCK
   ========================================================================== */
.dseo-guide {
	display: grid; grid-template-columns: 210px 1fr; margin: 40px 0;
	border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); background: #fff;
}
.dseo-guide-cover {
	position: relative; display: flex; align-items: center; justify-content: center;
	padding: 28px 22px;
	background: radial-gradient(120% 90% at 30% 0%, var(--hero-600), var(--midnight-900));
}
.dseo-guide-doc {
	width: 100%; aspect-ratio: 3/4; border-radius: 7px;
	background: linear-gradient(160deg, #fff, #eef0f6);
	box-shadow: var(--shadow-lg); transform: rotate(-3deg);
	padding: 18px 16px; display: flex; flex-direction: column;
	border: 1px solid rgba(255,255,255,.6);
}
.dseo-guide-doc img { height: 26px; margin-bottom: 12px; }
.dseo-guide-doc .t {
	font-family: var(--font-display); font-weight: 900; font-size: 17px; line-height: 1.0;
	text-transform: uppercase; letter-spacing: -.01em; color: var(--midnight-900);
}
.dseo-guide-doc .s {
	margin-top: auto; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
	text-transform: uppercase; color: var(--hero-600);
}
.dseo-guide-body { padding: 26px 28px; }
.dseo-guide-kicker {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--hero-600); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 7px;
}
.dseo-guide-body h3 {
	font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1;
	color: var(--midnight-900); margin: 0 0 8px;
}
.dseo-guide-body > p {
	font-family: var(--font-body); font-size: 15px; line-height: 1.6;
	color: var(--fg-secondary); margin: 0 0 14px;
}
.dseo-guide-list {
	list-style: none; margin: 0 0 18px; padding: 0;
	display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px;
}
.dseo-guide-list li {
	display: flex; align-items: center; gap: 8px;
	font-size: 13.5px; color: var(--fg-secondary);
}
.dseo-guide-list li::before {
	content: '✓'; color: var(--hero-500); font-weight: 700;
}
.dseo-guide-form { display: flex; gap: 10px; flex-wrap: wrap; }
.dseo-guide-field {
	flex: 1 1 220px; display: flex; align-items: center; gap: 9px;
	border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); padding: 0 13px;
	transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.dseo-guide-field:focus-within { border-color: var(--hero-500); box-shadow: var(--shadow-glow); }
.dseo-guide-field input {
	flex: 1 1 auto; min-width: 0; border: none; outline: none;
	font-family: var(--font-body); font-size: 14.5px; padding: 12px 0;
	color: var(--midnight-900);
}

/* ===========================================================================
   SEO TOOL (audit + keyword finder)
   ========================================================================== */
.dseo-toolbox { margin: 40px 0; }
.dseo-toolbox-head { margin-bottom: 16px; }
.dseo-toolbox-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--hero-600); margin-bottom: 8px;
}
.dseo-toolbox-kicker img { height: 13px; }
.dseo-toolbox-head h3 {
	font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1;
	letter-spacing: -.01em; color: var(--midnight-900); margin: 0;
}
.dseo-tool-card {
	background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md); overflow: hidden;
}
.dseo-tool-tabs {
	display: flex; gap: 6px; padding: 8px;
	background: var(--gray-50); border-bottom: 1px solid var(--border-subtle);
}
.dseo-tool-tab {
	flex: 1; padding: 13px; border: none; background: transparent;
	border-radius: var(--radius-md); cursor: pointer;
	font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
	text-transform: uppercase; letter-spacing: .04em; color: var(--fg-secondary);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	transition: background var(--dur-base), color var(--dur-base);
}
.dseo-tool-tab.is-active { background: #fff; color: var(--hero-600); box-shadow: var(--shadow-sm); }
.dseo-tool-panel { padding: 24px; }
.dseo-tool-panel[hidden] { display: none; }
.dseo-tool-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.dseo-tool-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 7px; }
.dseo-tool-field label {
	font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--midnight-900);
}
.dseo-tool-field .wrap {
	display: flex; align-items: center; gap: 9px;
	border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); padding: 0 13px;
	transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.dseo-tool-field .wrap:focus-within { border-color: var(--hero-500); box-shadow: var(--shadow-glow); }
.dseo-tool-field input, .dseo-tool-field select {
	flex: 1 1 auto; min-width: 0; border: none; outline: none; background: none;
	font-family: var(--font-body); font-size: 15px; padding: 12px 0; color: var(--midnight-900);
}
.dseo-tool-hint {
	font-family: var(--font-mono); font-size: 11.5px; color: var(--fg-muted);
	margin: 16px 0 0; display: flex; align-items: center; gap: 7px;
}

/* audit scan animation */
.dseo-scan { margin-top: 26px; display: none; }
.dseo-scan.is-active { display: block; }
.dseo-scan-bar { height: 6px; border-radius: 999px; background: var(--gray-100); overflow: hidden; margin-bottom: 18px; }
.dseo-scan-bar span {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--hero-500), var(--electric-500));
	border-radius: 999px; transition: width .4s var(--ease-out); width: 0;
}
.dseo-scan-list { list-style: none; margin: 0; padding: 0; }
.dseo-scan-item {
	display: flex; align-items: center; gap: 13px; padding: 13px 2px;
	border-bottom: 1px solid var(--border-subtle); font-size: 15px; color: var(--fg-secondary);
}
.dseo-scan-item:last-child { border-bottom: none; }
.dseo-scan-item .st {
	flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--gray-100); color: var(--gray-400); font-size: 14px;
}
.dseo-scan-item.is-checking .st {
	background: var(--hero-50); color: var(--hero-500);
	animation: dseo-spin 1s linear infinite;
}
.dseo-scan-item.is-done { color: var(--midnight-900); }
.dseo-scan-item.is-done .st { background: var(--success-bg); color: var(--success); }
.dseo-scan-item.is-done .st::before { content: '✓'; }
.dseo-scan-item.is-checking .st::before { content: '◐'; }
@keyframes dseo-spin { to { transform: rotate(360deg); } }
.dseo-scan-cta {
	margin-top: 22px; padding: 20px; border-radius: var(--radius-lg);
	background: var(--midnight-900);
	display: none; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
}
.dseo-scan-cta.is-active { display: flex; }
.dseo-scan-cta p { margin: 0; color: #c2cbe0; font-size: 14.5px; line-height: 1.5; max-width: 420px; }
.dseo-scan-cta strong {
	display: block; font-family: var(--font-display); color: #fff; font-size: 17px; margin-bottom: 3px;
}

/* keyword finder results */
.dseo-kw { margin-top: 26px; }
.dseo-kw-group { margin-bottom: 22px; }
.dseo-kw-group:last-child { margin-bottom: 0; }
.dseo-kw-group h5 {
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--hero-600); margin: 0 0 12px;
}
.dseo-kw-group h5 .ct { color: var(--fg-muted); }
.dseo-kw-list { display: flex; flex-wrap: wrap; gap: 9px; }
.dseo-kw-chip {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--midnight-900);
	background: var(--gray-50); border: 1px solid var(--border-subtle);
	padding: 9px 14px; border-radius: var(--radius-pill);
}

/* ===========================================================================
   PORTFOLIO PROOF BLOCK
   ========================================================================== */
.dseo-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 8px; }
.dseo-pf-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
	padding: 22px 20px; box-shadow: var(--shadow-sm);
	transition: transform var(--dur-base) var(--ease-out),
				box-shadow var(--dur-base) var(--ease-out),
				border-color var(--dur-base);
}
.dseo-pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--hero-200); }
.dseo-pf-logo {
	height: 56px; display: flex; align-items: center; margin-bottom: 16px;
	padding-bottom: 16px; border-bottom: 1px solid var(--border-subtle);
}
.dseo-pf-logo img { max-height: 48px; max-width: 150px; width: auto; object-fit: contain; }
.dseo-pf-name {
	font-family: var(--font-display); font-weight: 700; font-size: 16px;
	color: var(--midnight-900); margin: 0 0 3px;
}
.dseo-pf-loc {
	display: inline-flex; align-items: center; gap: 5px;
	font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
	color: var(--fg-muted); margin-bottom: 16px;
}
.dseo-pf-result {
	display: block; font-family: var(--font-body); font-size: 14px; line-height: 1.45;
	color: var(--fg-secondary); margin-top: auto;
}

/* ===========================================================================
   FAQ ACCORDION
   ========================================================================== */
.dseo-faq { margin: 8px 0; border-top: 1px solid var(--border-subtle); }
.dseo-faq-item { border-bottom: 1px solid var(--border-subtle); }
.dseo-faq-q {
	width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
	background: none; border: none; padding: 22px 4px;
	font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--midnight-900);
	transition: color var(--dur-fast);
}
.dseo-faq-q:hover { color: var(--hero-600); }
.dseo-faq-q .dseo-faq-icon {
	flex: 0 0 auto; margin-left: auto; width: 30px; height: 30px; border-radius: 50%;
	background: var(--gray-100); color: var(--hero-600);
	display: flex; align-items: center; justify-content: center;
	transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
	font-size: 18px; line-height: 1;
}
.dseo-faq-item.is-open .dseo-faq-icon { transform: rotate(45deg); background: var(--hero-500); color: #fff; }
.dseo-faq-a { overflow: hidden; max-height: 0; transition: max-height var(--dur-slow) var(--ease-in-out); }
.dseo-faq-item.is-open .dseo-faq-a { max-height: 600px; }
.dseo-faq-a-inner { padding: 0 4px 24px; }
.dseo-faq-a-inner p {
	font-family: var(--font-body); font-size: 16.5px; line-height: 1.7;
	color: var(--fg-secondary); margin: 0 0 12px;
}
.dseo-faq-a-inner p:last-child { margin-bottom: 0; }

/* ===========================================================================
   FINAL CTA BAND
   ========================================================================== */
.dseo-final { position: relative; overflow: hidden; background: var(--midnight-950); padding: 84px 0; }
.dseo-final-art {
	position: absolute; top: 0; bottom: 0; right: 0; width: 38%; z-index: 0;
	background-size: cover; background-position: center; opacity: .5;
	-webkit-mask-image: linear-gradient(270deg, #000 30%, transparent);
	mask-image: linear-gradient(270deg, #000 30%, transparent);
}
.dseo-final-glow {
	position: absolute; left: 30%; top: -34%; width: 760px; height: 760px; z-index: 1;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(99,117,255,.30), transparent 60%); pointer-events: none;
}
.dseo-final-inner { position: relative; z-index: 2; max-width: 720px; }
.dseo-final-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono); font-weight: 600; font-size: 12.5px;
	letter-spacing: .18em; text-transform: uppercase; color: var(--hero-400); margin-bottom: 16px;
}
.dseo-final-eyebrow img { height: 15px; }
.dseo-final h2 {
	font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
	font-size: clamp(34px, 4.6vw, 56px); line-height: .98; letter-spacing: -.02em;
	color: #fff; margin: 0 0 18px;
}
.dseo-final h2 .wb-accent { color: var(--hero-400); }
.dseo-final p { font-size: var(--text-lg); line-height: 1.6; color: #aeb9cf; max-width: 560px; margin: 0 0 18px; }
.dseo-final-form {
	display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
	margin: 26px 0 18px; max-width: 540px;
}
.dseo-final-field {
	flex: 1 1 240px; display: flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.18);
	border-radius: var(--radius-md); padding: 0 14px;
	transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.dseo-final-field:focus-within { border-color: var(--electric-500); box-shadow: var(--shadow-glow); }
.dseo-final-field input {
	flex: 1 1 auto; min-width: 0; background: none; border: none; outline: none;
	font-family: var(--font-body); font-size: 15px; color: #fff; padding: 15px 0;
}
.dseo-final-field input::placeholder { color: #6f7c97; }
.dseo-final-foot {
	display: flex; align-items: center; gap: 10px; font-size: 14px; color: #8a96b0;
}

/* ===========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
	.dseo-layout { grid-template-columns: 1fr; gap: 0; }
	.dseo-aside {
		position: static; flex-direction: row; flex-wrap: wrap; gap: 16px;
		margin-bottom: 40px; order: -1; padding-top: 8px;
	}
	.dseo-toc   { flex: 1 1 320px; }
	.dseo-audit { flex: 1 1 280px; }
	.dseo-main  { max-width: 740px; margin: 0 auto; }
}
@media (max-width: 980px) {
	.dseo-hero-photo { width: 100%; opacity: .5; }
	.dseo-hero-scrim {
		background:
			linear-gradient(90deg, var(--midnight-950) 40%, rgba(18,26,43,.7) 100%),
			linear-gradient(0deg, var(--midnight-950) 8%, rgba(18,26,43,.2) 55%);
	}
	.dseo-hero-inner { grid-template-columns: 1fr; padding: 124px 0 36px; }
	.dseo-hero-stage { display: none; }
	.dseo-hero-trust { max-width: none; }
}
@media (max-width: 760px) {
	.dseo-portfolio { grid-template-columns: 1fr; }
	.dseo-readnext { grid-template-columns: 1fr; }
	.dseo-readnext-thumb { min-height: 150px; }
	.dseo-aside { flex-direction: column; }
	.dseo-hero h1 { font-size: clamp(34px, 9vw, 46px); }
	.dseo-hero-trust li { flex: 1 1 45%; min-width: 0; padding: 0 14px; }
	.dseo-hero-trust li:nth-child(odd) { padding-left: 0; }
	.dseo-hero-trust li:nth-child(3)::before,
	.dseo-hero-trust li:nth-child(odd)::before { display: none; }
	.dseo-hero-cred { flex-direction: column; align-items: flex-start; gap: 14px; }
	.dseo-cred-logos { margin-left: 0; flex-wrap: wrap; gap: 16px; }
	.dseo-section p, .dseo-intro p { font-size: 17px; }
	.dseo-guide { grid-template-columns: 1fr; }
	.dseo-guide-doc { max-width: 200px; margin: 0 auto; transform: none; }
	.dseo-guide-list { grid-template-columns: 1fr; }
	.dseo-tool-form { flex-direction: column; align-items: stretch; }
}
