/* Denrobotics marketing theme */

:root {
	--ink: #1d1d1f;
	--ink-soft: #3a3a3c;
	--muted: #6e6e73;
	--paper: #f5f5f7;
	--paper-2: #e8e8ed;
	--white: rgba(255, 255, 255, 0.72);
	--line: rgba(0, 0, 0, 0.08);
	--mint: #c8ffe9;
	--mint-ink: #0b6b5c;
	--mint-strong: #0f8f78;
	--blue: #0071e3;
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	--display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Segoe UI", sans-serif;
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", Manrope, "Segoe UI", sans-serif;
	--max: 1160px;
	color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-soft);
	background:
		radial-gradient(1100px 520px at 8% -8%, rgba(0, 113, 227, 0.1), transparent 55%),
		radial-gradient(900px 480px at 100% 0%, rgba(15, 143, 120, 0.08), transparent 50%),
		#f5f5f7;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
	font-family: var(--display);
	color: var(--ink);
	line-height: 1.08;
	letter-spacing: -0.04em;
	font-weight: 600;
	margin: 0;
}
p { margin: 0; }
a { color: inherit; }

::selection { background: #b6ffe1; color: #10211c; }

:focus-visible {
	outline: 2px solid var(--mint-strong);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 12px 16px;
	background: #fff;
	color: var(--ink);
	border-radius: 12px;
}

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.wrap-prose, .narrow { width: min(780px, calc(100% - 40px)); }
.narrow { margin: 0 auto; }

.kicker {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }

.display {
	font-size: clamp(2.6rem, 4.8vw, 4.6rem);
	line-height: 1.02;
	font-weight: 600;
}
.display-sm {
	font-size: clamp(2rem, 3.6vw, 3.15rem);
	line-height: 1.08;
	font-weight: 600;
	max-width: 16em;
}
.lede { font-size: 1.125rem; max-width: 42rem; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head .lede, .hero-copy .lede, .page-hero .lede { margin-top: 16px; }
.service-line { color: var(--muted); font-weight: 600; margin: 8px 0; }
.service-line-lg { font-size: 1.2rem; margin-top: 14px; }

.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #f6f3ec; }
.section-ink h2, .section-ink h3, .section-ink .kicker { color: #f6f3ec; }
.section-ink .kicker { color: var(--mint); }
.sheet-round { border-radius: 36px 36px 0 0; }

.actions, .hero-copy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2c2824; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20, 18, 15, 0.28); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #f6f3ec; color: var(--ink); }
.btn-light:hover { background: #fff; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	margin-top: 14px;
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}
.link-arrow::after {
	content: "→";
	margin-left: 0.4em;
	transition: transform 0.2s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }

.logo, .custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ink);
	text-decoration: none;
	flex: none;
}
.logo img {
	display: block;
	height: 22px;
	width: auto;
}
.footer-logo img { height: 28px; }
.custom-logo { height: 28px; width: auto; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 80;
	padding-top: 12px;
	background: linear-gradient(rgba(245, 245, 247, 0.72), rgba(245, 245, 247, 0.35) 70%, transparent);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
}
.admin-bar .site-header { top: 32px; }

.nav-shell {
	position: relative;
	width: min(var(--max), calc(100% - 24px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 16px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 10px 40px rgba(20, 18, 15, 0.06);
}
.primary-nav { flex: 1; min-width: 0; }
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li.has-sub { position: static; }
.menu > li > a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 590;
	font-size: 14.5px;
	white-space: nowrap;
}
.menu > li > a:hover,
.menu > li > a[aria-current="page"] { background: var(--paper); }

.sub-toggle { display: none; }

.mega {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% - 4px);
	padding-top: 14px;
	display: none;
	z-index: 90;
}
.has-sub:hover > .mega,
.has-sub:focus-within > .mega,
.has-sub.is-open > .mega { display: block; }
.mega-inner {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 22px;
	padding: 18px 18px 14px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
	max-height: min(70vh, 640px);
	overflow: auto;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.mega-groups section {
	background: rgba(245, 245, 247, 0.9);
	border-radius: 16px;
	padding: 12px 10px 8px;
}
.mega strong { color: var(--ink); font-weight: 650; }
.mega small { color: #6e6e73; }
.mega-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.mega-groups-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega-groups h2 {
	margin: 0 0 6px;
	font-family: var(--sans);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.mega a {
	display: block;
	padding: 8px 10px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
}
.mega a:hover,
.mega a[aria-current="page"] { background: var(--paper); }
.mega strong { display: block; font-size: 15px; letter-spacing: -0.02em; }
.mega small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.mega-foot { margin: 12px 4px 0; font-weight: 700; }
.mega-foot a { display: inline; padding: 0; }
.mobile-only { display: none; }

.menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
}
.menu > .menu-item-has-children:hover > .sub-menu,
.menu > .menu-item-has-children:focus-within > .sub-menu { display: block; }
.menu .sub-menu a { display: block; padding: 8px 10px; text-decoration: none; border-radius: 10px; }
.menu .sub-menu a:hover { background: var(--paper); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.text-link { color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; padding: 8px; }
.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}
.nav-toggle .bar {
	display: block;
	width: 16px;
	height: 1.5px;
	background: #fff;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-shell.is-open .nav-toggle .bar:nth-child(2) { transform: translateY(6.5px) rotate(45deg); }
.nav-shell.is-open .nav-toggle .bar:nth-child(3) { opacity: 0; }
.nav-shell.is-open .nav-toggle .bar:nth-child(4) { transform: translateY(-6.5px) rotate(-45deg); }

.hero {
	position: relative;
	margin: 8px 12px 0;
	border-radius: 32px;
	overflow: hidden;
}
.hero .display {
	font-size: clamp(2.7rem, 4.6vw, 4.35rem);
	max-width: 12em;
	line-height: 1.02;
}
.hero-copy {
	box-shadow: 0 24px 60px rgba(20, 18, 15, 0.1);
}
.hero-copy .guide {
	position: static;
	right: auto;
	bottom: auto;
	margin: 22px 0 0;
	max-width: none;
}
.hero-copy .guide img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-position: center 18%;
}
.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 72% center;
	animation: ken 28s ease-in-out infinite alternate;
}
.hero-shade {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.02) 100%);
}
.hero-copy {
	background: rgba(243, 239, 230, 0.9);
	border-radius: 28px;
	padding: 28px 28px 22px;
}
.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.86fr);
	gap: 28px;
	align-items: center;
	padding: 56px 0 64px;
}
.hero .btn-ghost { background: rgba(255, 255, 255, 0.72); }
.hero-visual .visual { background: rgba(255, 252, 247, 0.92); }
.stat-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 22px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.stat-row div { margin: 0; }
.stat-row dt {
	font-family: var(--display);
	font-size: 1.7rem;
	letter-spacing: -0.04em;
	color: var(--ink);
}
.stat-row dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); }

.marquee {
	overflow: hidden;
	border-block: 1px solid var(--line);
	background: rgba(255, 252, 247, 0.55);
}
.marquee-track { display: flex; width: max-content; animation: ticker 80s linear infinite; }
.marquee-track ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-track li {
	padding: 14px 0 14px 28px;
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}
.marquee-track li::before { content: "·"; margin-right: 28px; color: var(--mint-strong); }
@keyframes ticker { to { transform: translateX(-50%); } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip, .aud-tab, .step-btn, .layer-toggles button {
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	border-radius: 999px;
}
.chip, .aud-tab {
	min-height: 40px;
	padding: 0 14px;
	font-weight: 700;
	font-size: 14px;
}
.chip.is-active, .chip[aria-pressed="true"], .aud-tab.is-active {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.group-title { margin: 28px 0 14px; font-size: 1.4rem; scroll-margin-top: 120px; }
.module-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-top: 3px solid var(--line);
	border-radius: 22px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.module-card[data-category="diagnostics"] { border-top-color: #0f8f78; }
.module-card[data-category="orthodontics"] { border-top-color: #3d7ec7; }
.module-card[data-category="clinical-automation"] { border-top-color: #e59a16; }
.module-card[data-category="clinical-ai"] { border-top-color: #6d5bd0; }
.module-card[data-category="practice-operations"] { border-top-color: #e25b45; }
.section-white .module-card { background: var(--paper); }
.module-card:hover { transform: translateY(-3px); border-color: rgba(20, 18, 15, 0.32); }
.module-card h3 { font-size: 1.7rem; }
.module-card h3 a { color: inherit; text-decoration: none; }
.module-card p:last-of-type { color: var(--ink-soft); }
.module-card .link-arrow { margin-top: auto; padding-top: 16px; }
.module-card[hidden], .group-title[hidden], .module-grid[hidden] { display: none !important; }

.walk-grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: 22px; align-items: start; }
.step-list { display: grid; gap: 8px; }
.step-btn {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	align-items: center;
	text-align: left;
	width: 100%;
	min-height: 64px;
	padding: 12px 14px;
	border-radius: 16px;
}
.step-btn span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--mint-ink); }
.step-btn.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.step-btn.is-active span, .step-btn.is-active strong { color: #fff; }
.step-panel h3 { font-size: 2rem; margin-bottom: 8px; }
.step-panel > p:not(.kicker) { margin-bottom: 16px; max-width: 46rem; }
.js [data-step-panel]:not(.is-active),
.js [data-aud-panel]:not(.is-active) { display: none; }
.section-link { margin-top: 18px; }

.aud-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.aud-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
	gap: 28px;
	align-items: start;
}
.aud-panel h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; margin-bottom: 12px; }
.point-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.point-list li { padding-left: 18px; position: relative; }
.point-list li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mint-strong);
	position: absolute;
	left: 0;
	top: 0.55em;
}
.mini-modules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-modules a {
	display: block;
	padding: 12px 14px;
	border-radius: 16px;
	background: var(--paper);
	text-decoration: none;
}
.mini-modules strong, .mini-modules small { display: block; }
.mini-modules small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.band + .band { margin-top: 28px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); gap: 32px; align-items: center; }
.band h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); max-width: 18ch; margin-bottom: 12px; text-transform: none; letter-spacing: -0.04em; }
.band:nth-child(even) .band-copy { order: 2; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scenario {
	background: var(--paper);
	border-radius: 22px;
	padding: 22px;
	border: 1px solid var(--line);
	min-height: 100%;
}
.scenario h3 { font-size: 1.45rem; margin-bottom: 8px; }

.mission-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: end; }
.mission-grid p { font-size: 1.1rem; margin-bottom: 18px; }
.cta-band { padding: 28px 0 72px; }
.cta-inner {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: center;
	background: #fff;
	border-radius: 28px;
	padding: 28px;
	border: 1px solid var(--line);
}
.cta-inner p { margin-top: 8px; max-width: 40rem; }

.page-hero { padding: 42px 0 10px; }
.page-hero .display { max-width: 12em; }
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.meta-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.meta-pair div { background: var(--paper); border-radius: 16px; padding: 14px; margin: 0; }
.meta-pair dt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meta-pair dd { margin: 4px 0 0; color: var(--ink); font-weight: 700; }
.step-row { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.step-row li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.step-row span { color: var(--mint-ink); font-weight: 700; }
.step-row h3 { font-size: 1.35rem; margin: 8px 0; }
.coverage { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 22px; }
.coverage ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.coverage li { display: grid; gap: 2px; }
.coverage a { color: var(--ink); text-decoration: none; }
.coverage span { color: var(--muted); font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.form, .comment-form, .search-form {
	display: grid;
	gap: 14px;
	background: var(--paper);
	border-radius: 24px;
	padding: 18px;
}
.search-form { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 22px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .comment-form label { font-weight: 700; color: var(--ink); font-size: 14px; }
.field label span { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.search-form input {
	width: 100%;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 14px;
	padding: 12px 14px;
	min-height: 48px;
}
.field textarea, .comment-form textarea { min-height: 140px; resize: vertical; }
.form-notice { margin: 0; padding: 12px 14px; border-radius: 14px; font-weight: 700; }
.form-notice.is-ok { background: var(--mint); color: var(--mint-ink); }
.form-notice.is-err { background: #ffe4dc; color: #8a2e1d; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card {
	background: var(--paper);
	border-radius: 22px;
	padding: 22px;
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
.post-card h2 { font-size: 1.55rem; margin: 8px 0; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-card .link-arrow { margin-top: auto; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: 2rem; margin-top: 1.6rem; text-transform: none; }
.prose a { color: var(--mint-ink); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.comments-wrap, .widget-area { padding-bottom: 48px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment-list li { background: var(--paper); border-radius: 16px; padding: 14px; }
.pagination, .navigation.pagination { margin-top: 22px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
	display: inline-flex;
	min-width: 40px;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 999px;
	text-decoration: none;
	background: var(--paper);
	color: var(--ink);
	font-weight: 700;
}
.page-numbers.current { background: var(--ink); color: #fff; }
.empty-state { padding: 10px 0 20px; }

.disclaimer { color: var(--muted); font-size: 14px; }
.disclaimer.standalone { margin: 8px 0 22px; max-width: 46rem; }

.site-footer {
	background: rgba(255, 255, 255, 0.55);
	color: var(--ink-soft);
	padding: 28px 0 36px;
	margin-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.8);
	backdrop-filter: saturate(180%) blur(22px);
	-webkit-backdrop-filter: saturate(180%) blur(22px);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.site-footer h2 {
	font-family: var(--sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 14px;
}
.foot-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
}
.foot-top p { margin: 12px 0 0; max-width: 28rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-grid ul, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-base {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-note {
	margin: 14px auto 0;
	max-width: var(--max);
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}
.site-footer :focus-visible { outline-color: var(--blue); }

.visual {
	background: rgba(255, 252, 247, 0.8);
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 16px;
	box-shadow: var(--shadow);
}
.visual-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 12px;
}
.pill {
	background: var(--mint);
	color: var(--mint-ink);
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 12px;
	white-space: nowrap;
}
.film {
	background:
		radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
		linear-gradient(180deg, #2a2d2b, #151716);
	border-radius: 18px;
	padding: 16px 12px 12px;
}
.film-inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 168px;
	padding: 8px 6px 20px;
}
.tooth {
	position: relative;
	flex: 1;
	height: 76%;
	background: linear-gradient(#f7f4ee, #d5cec1);
	border-radius: 46% 46% 12px 12px / 30% 30% 12px 12px;
}
.tooth::after {
	content: "";
	position: absolute;
	left: 22%;
	right: 22%;
	bottom: -16px;
	height: 22px;
	background: linear-gradient(#efe8da, #c9bfb0);
	border-radius: 6px;
}
.tooth.short { height: 62%; }
.tooth.tall { height: 88%; }
.mark { position: absolute; transition: opacity 0.2s ease; }
.mark.caries {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #e25b45;
	box-shadow: 0 0 0 5px rgba(226, 91, 69, 0.28);
}
.mark.c1 { left: 27%; top: 38%; }
.mark.c2 { left: 62%; top: 48%; }
.mark.bone {
	left: 7%;
	right: 7%;
	top: 64%;
	height: 2px;
	background: #3ddec0;
	box-shadow: 0 8px 0 rgba(61, 222, 192, 0.35);
}
.mark.calculus {
	width: 18px;
	height: 6px;
	border-radius: 99px;
	background: #e59a16;
	left: 44%;
	top: 70%;
}
.visual.hide-caries .mark.caries,
.visual.hide-bone .mark.bone,
.visual.hide-calculus .mark.calculus { opacity: 0; }
.layer-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.layer-toggles button { min-height: 36px; padding: 0 12px; font-weight: 700; font-size: 13px; }
.layer-toggles button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.phone {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 12px;
	min-height: 148px;
	color: var(--ink);
	font-size: 13px;
	font-weight: 700;
}
.phone.is-flag { background: #fff4f0; border-color: rgba(226, 91, 69, 0.45); }
.phone em { font-style: normal; display: block; color: var(--muted); font-weight: 600; }
.phone.is-flag em { color: #a33b28; }
.arch {
	height: 58px;
	margin: 12px 6px;
	border: 3px solid var(--ink);
	border-bottom: 0;
	border-radius: 80px 80px 0 0;
	position: relative;
}
.arch::before, .arch::after {
	content: "";
	position: absolute;
	bottom: 0;
	width: 8px;
	height: 12px;
	background: var(--ink);
	border-radius: 4px 4px 0 0;
}
.arch::before { left: 18%; }
.arch::after { right: 18%; }

.note-sheet { background: #fff; border-radius: 18px; padding: 16px 16px 12px; color: var(--ink); }
.note-kicker { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.note-sheet h3 { font-size: 1.5rem; margin: 6px 0 10px; }
.note-sheet ul { margin: 0; padding-left: 18px; }
.note-foot { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 700; }

.slices { position: relative; height: 190px; }
.slice {
	position: absolute;
	left: 10px;
	right: 46px;
	top: 16px;
	height: 120px;
	border-radius: 28px;
	background: linear-gradient(160deg, #d9fff3, #9ebfff 48%, #f7f4ee);
	border: 1px solid rgba(20, 18, 15, 0.12);
}
.slice.s2 { transform: translate(16px, 16px); }
.slice.s3 { transform: translate(32px, 32px); background: linear-gradient(160deg, #fff, #c8ffe9 40%, #d5e4ff); }

.chip-list, .packet-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.chip-list li, .packet-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink); }
.packet-list li { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid transparent; }
.packet-list li.is-current { border-color: var(--ink); }
.swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.swatch.coral { background: #e25b45; }
.swatch.mint { background: #12a88f; }
.swatch.amber { background: #e59a16; }
.swatch.blue { background: #3d7ec7; }
.swatch.ink { background: #14120f; }

@media (max-width: 1080px) {
	.nav-shell { border-radius: 24px; flex-wrap: wrap; align-items: center; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		display: none;
		order: 4;
		flex: 1 1 100%;
		width: 100%;
		min-width: 100%;
	}
	.nav-shell.is-open { max-height: calc(100vh - 24px); overflow: auto; }
	.nav-shell.is-open .primary-nav { display: block; }
	.nav-actions .text-link, .phone-link { display: none; }
	.mobile-only { display: block; }
	.menu { flex-direction: column; align-items: stretch; padding: 4px 4px 10px; }
	.menu > li { border-top: 1px solid var(--line); }
	.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
	.has-sub > a { flex: 1; }
	.sub-toggle {
		display: inline-flex;
		width: 44px;
		height: 44px;
		border: 0;
		background: transparent;
		align-items: center;
		justify-content: center;
	}
	.sub-toggle::before {
		content: "";
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--ink);
		border-bottom: 2px solid var(--ink);
		transform: rotate(45deg);
		margin-top: -4px;
	}
	.has-sub.is-open .sub-toggle::before { transform: rotate(225deg); margin-top: 4px; }
	.has-sub:hover > .mega,
	.has-sub:focus-within > .mega { display: none; }
	.has-sub.is-open > .mega { display: block; position: static; padding-top: 0; }
	.mega-inner { box-shadow: none; max-height: none; padding: 4px 8px 12px; }
	.mega-groups, .mega-groups-2 { grid-template-columns: 1fr; }
	.hero-grid, .walk-grid, .aud-panel, .band-grid, .mission-grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.foot-grid, .foot-top { grid-template-columns: 1fr 1fr; }
	.foot-top { display: grid; align-items: start; }
	.band:nth-child(even) .band-copy { order: 0; }
	.module-grid, .scenario-grid, .post-grid { grid-template-columns: 1fr 1fr; }
	.stat-row { grid-template-columns: 1fr; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
	.module-grid, .scenario-grid, .post-grid, .field-row, .meta-pair, .phones, .foot-grid { grid-template-columns: 1fr; }
	.section { padding: 64px 0; }
	.hero-grid { padding-top: 22px; }
	.logo img { height: 16px; }
	.search-form { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.guide {
	position: absolute;
	right: 28px;
	bottom: 18px;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	max-width: min(420px, calc(100% - 32px));
	color: var(--ink);
	text-decoration: none;
}
.guide-bubble {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border-radius: 999px;
	padding: 10px 14px;
	box-shadow: 0 12px 40px rgba(20, 18, 15, 0.12);
	font-weight: 700;
	font-size: 14px;
	line-height: 1.35;
}
.guide-bubble i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7dffe1;
	box-shadow: 0 0 0 0 rgba(125, 255, 225, 0.7);
	animation: pulse 1.8s ease infinite;
	flex: none;
}
.guide img {
	width: 108px;
	height: 132px;
	object-fit: cover;
	object-position: center 15%;
	border-radius: 28px;
	box-shadow: 0 18px 40px rgba(20, 18, 15, 0.2);
	animation: floaty 4.8s ease-in-out infinite;
	background: #f3efe6;
}
.walk-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 18px;
	max-width: none;
}
.walk-pause { flex: none; margin-bottom: 6px; }
.walk-pause[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.film-inner { overflow: hidden; }
.film-inner::before {
	content: "";
	position: absolute;
	left: 4%;
	right: 4%;
	height: 28%;
	top: 0;
	background: linear-gradient(transparent, rgba(125, 255, 225, 0.42), transparent);
	animation: sweep 3.6s ease-in-out infinite;
	pointer-events: none;
	z-index: 3;
}
.visual-aligner .phone.is-flag { animation: nudge 2.8s ease-in-out infinite; }
.note-sheet li { animation: typein 0.7s ease both; }
.note-sheet li:nth-child(2) { animation-delay: 0.2s; }
.note-sheet li:nth-child(3) { animation-delay: 0.4s; }
.slice { animation: drift 7s ease-in-out infinite alternate; }
.slice.s2 { animation-delay: -2s; }
.slice.s3 { animation-delay: -4s; }
.packet-list li.is-current { animation: approve 0.55s ease; }
.js .rise { opacity: 0; transform: translateY(16px); }
.js .rise.is-in { animation: rise 0.7s ease forwards; }
.js .module-grid .rise:nth-child(2).is-in { animation-delay: 0.06s; }
.js .module-grid .rise:nth-child(3).is-in { animation-delay: 0.12s; }
@keyframes ken { to { transform: scale(1.06); } }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@keyframes pulse {
	70% { box-shadow: 0 0 0 8px rgba(125, 255, 225, 0); }
}
@keyframes sweep { to { transform: translateY(240%); } }
@keyframes nudge { 50% { transform: translateY(-6px); } }
@keyframes typein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes drift { to { transform: translate(10px, 14px); } }
@keyframes approve { from { transform: scale(0.98); } to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
	.hero { min-height: 0; margin: 0; border-radius: 0; }
	.hero-shade {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.5) 100%);
	}
	.hero-copy { padding: 22px 18px 16px; }
	.hero-grid { padding: 28px 0 20px; }
	.hero-copy .guide { margin: 18px 0 0; }
	.guide {
		position: relative;
		right: auto;
		bottom: auto;
		margin: 0 16px 16px auto;
	}
}

.glossary-search { display: grid; gap: 8px; margin-top: 22px; }
.glossary-search label { font-weight: 700; color: var(--ink); }
.glossary-search input {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 12px 14px;
	background: #fff;
}
.glossary-list { display: grid; gap: 14px; }
.glossary-item {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px 20px;
}
.glossary-item h2 { font-size: 1.35rem; text-transform: none; letter-spacing: -0.03em; }
.glossary-item p { margin-top: 6px; }
.glossary-item[hidden], .glossary-empty[hidden], .cookie-bar[hidden] { display: none !important; }

.nav-shell,
.menu .sub-menu,
.hero-copy,
.hero-visual .visual,
.visual,
.module-card,
.section-white .module-card,
.scenario,
.post-card,
.step-row li,
.glossary-item,
.cta-inner,
.form,
.comment-form,
.search-form,
.guide-bubble,
.note-sheet,
.phone,
.meta-pair div,
.comment-list li,
.chip,
.aud-tab,
.step-btn,
.layer-toggles button {
	background: rgba(255, 255, 255, 0.62);
	border-color: rgba(255, 255, 255, 0.72);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	backdrop-filter: saturate(180%) blur(22px);
	-webkit-backdrop-filter: saturate(180%) blur(22px);
}
.nav-shell {
	background: rgba(255, 255, 255, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.82);
}
.hero-copy,
.hero-visual .visual {
	background: rgba(255, 255, 255, 0.42);
}
.section-white,
.section-paper { background: transparent; }
.chip.is-active,
.chip[aria-pressed="true"],
.aud-tab.is-active,
.step-btn.is-active,
.layer-toggles button[aria-pressed="true"],
.walk-pause[aria-pressed="true"] {
	background: var(--ink);
	color: #fff;
	border-color: transparent;
	backdrop-filter: none;
}
.btn-ghost {
	background: rgba(255, 255, 255, 0.38);
	border-color: rgba(255, 255, 255, 0.7);
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
}
.cookie-bar {
	background: rgba(29, 29, 31, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: saturate(180%) blur(24px);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
}
.site-footer { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.section-ink {
	background: rgba(29, 29, 31, 0.82);
	backdrop-filter: saturate(160%) blur(18px);
	-webkit-backdrop-filter: saturate(160%) blur(18px);
}

.cookie-bar {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	width: min(880px, calc(100% - 32px));
	margin: 0 auto;
	padding: 14px 16px;
	color: #f6f3ec;
	border-radius: 18px;
}
.cookie-bar p { margin: 0; flex: 1 1 280px; font-size: 14px; }
.cookie-bar a { color: #c8ffe9; font-weight: 700; }
.cookie-bar button {
	border: 0;
	background: #fff;
	color: var(--ink);
	border-radius: 999px;
	min-height: 40px;
	padding: 0 16px;
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee-track,
	.hero-media img,
	.guide img,
	.guide-bubble i,
	.film-inner::before,
	.visual-aligner .phone.is-flag,
	.note-sheet li,
	.slice,
	.packet-list li.is-current,
	.js .rise,
	.js .rise.is-in { animation: none; }
	.js .rise,
	.js .rise.is-in { opacity: 1; transform: none; }
	.module-card, .link-arrow::after, .mark, .nav-toggle .bar { transition: none; }
}

@media print {
	.site-header, .site-footer, .marquee, .actions, .btn, .filters, .aud-tabs, .step-list { display: none !important; }
	body, .section-ink, .section-white { background: #fff; color: #000; }
	.js [data-step-panel], .js [data-aud-panel] { display: block !important; }
}
