/* ==========================================================================
   Ema Software — design system
   Gold-on-black luxury technology. Palette per KL-01/KL-07 and founder directive §5:
   black stage, primary gold #9A7532, champagne #C0A877, ivory #F3ECDF, white, charcoal #1C1C1C.
   Type: Playfair Display (headlines) + Inter (text), KD-07-02. Self-hosted, OFL.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
	--black: #0b0a08;
	--black-2: #100e0b;
	--charcoal: #1c1c1c;
	--surface: #15130f;
	--surface-2: #1b1813;
	--line: rgba(192, 168, 119, .16);
	--line-strong: rgba(192, 168, 119, .32);
	--gold: #9a7532;
	--gold-bright: #b8924d;
	--champagne: #c0a877;
	--champagne-light: #dcc89c;
	--ivory: #f3ecdf;
	--white: #ffffff;
	--text: #e9e2d4;
	--text-dim: #b3aa99;
	--text-faint: #8b8372;
	--ok: #8fbf8a;
	--btn-gold: linear-gradient(135deg, #e0cc9c 0%, #c4a467 48%, #a8823f 100%);
	--glass: linear-gradient(160deg, rgba(255, 246, 226, .075), rgba(255, 246, 226, .02));
	--shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
	--radius: 18px;
	--radius-sm: 12px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--serif: "Playfair Display", "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0; background: var(--black); color: var(--text);
	font: 400 17px/1.65 var(--sans); font-feature-settings: "ss01", "cv11";
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--champagne); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--champagne-light); }
h1, h2, h3, h4 { margin: 0; color: var(--ivory); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--champagne-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(192, 168, 119, .35); color: var(--white); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ivory); color: var(--charcoal); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { position: relative; padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--panel { background: linear-gradient(180deg, var(--black-2), var(--black)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--champagne); font: 600 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne)); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--champagne), transparent); }
.section-title, .page-title { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.02em; }
.section-title em, .page-title em, .hero__title em { font-style: normal; background: linear-gradient(120deg, #e6d3a3, #c0a877 40%, #9a7532 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-dim); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; max-width: 680px; }
.section-title + .lead, .page-title + .lead { margin-top: 20px; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.lead--hero { margin-top: 22px; }
.fine { color: var(--text-faint); font-size: 14px; }
.prose { max-width: 720px; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin: .35em 0; }

/* ---------- Buttons, badges, status ---------- */
.btn { --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 0; font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s; isolation: isolate; }
.btn .btn__ico { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .btn__ico { transform: translateX(3px); }
.btn--primary { background: var(--btn-gold); color: #14110c; box-shadow: 0 10px 30px -10px rgba(192, 168, 119, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; z-index: -1; transition: background-position .9s var(--ease); }
.btn--primary:hover { color: #14110c; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(192, 168, 119, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--primary:hover::after { background-position: -50% 0; }
.btn--ghost { background: rgba(243, 236, 223, .04); color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(8px); }
.btn--ghost:hover { color: var(--white); background: rgba(243, 236, 223, .08); box-shadow: inset 0 0 0 1px var(--champagne); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge--both { color: var(--champagne); box-shadow: inset 0 0 0 1px var(--line-strong); }
.badge--pro { color: #14110c; background: var(--btn-gold); }
.badge--edu { color: var(--text-dim); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--working, .status--verified { color: var(--ok); }
.status--interactive, .status--simulation, .status--illustration { color: var(--champagne); }
.status--concept, .status--draft { color: #d9a46c; }

/* ---------- Preview bar ---------- */
.preview-bar { position: relative; z-index: 60; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 7px 16px; background: #1a150c; color: var(--champagne-light); font-size: 13px; border-bottom: 1px solid var(--line); text-align: center; }
.preview-bar a { color: var(--ivory); }
.preview-bar__dot { width: 7px; height: 7px; border-radius: 50%; background: #e0a85a; box-shadow: 0 0 0 4px rgba(224, 168, 90, .2); }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.is-scrolled { background: rgba(11, 10, 8, .78); backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); flex: none; }
.brand__mark { width: 40px; height: auto; filter: drop-shadow(0 0 14px rgba(192, 168, 119, .25)); }
.brand__word { font: 700 21px/1 var(--serif); letter-spacing: .01em; color: var(--ivory); }
.brand__word em { font-style: normal; color: var(--champagne); }
.nav { margin-left: 18px; }
.nav__list { display: flex; gap: 4px; list-style: none; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--text); font: 500 15px/1 var(--sans); text-decoration: none; transition: color .25s, background .25s; }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { color: var(--white); background: rgba(243, 236, 223, .06); }
.nav__caret { width: 16px; height: 16px; transition: transform .3s; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__item--mega { position: static; }
.mega { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.nav__item--mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 32px; padding: 30px; border-radius: 22px; background: rgba(18, 16, 12, .96); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.mega__label { margin: 0 0 12px; color: var(--text-faint); font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.mega__col ul { list-style: none; display: grid; gap: 2px; }
.mega__link { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; color: var(--text); text-decoration: none; }
.mega__link:hover { background: rgba(243, 236, 223, .05); color: var(--white); }
.mega__link .ico { color: var(--champagne); margin-top: 1px; }
.mega__link strong { display: block; font-weight: 600; font-size: 15px; }
.mega__link small { display: block; color: var(--text-faint); font-size: 13px; }
.mega__feature { padding: 22px; border-radius: 16px; background: radial-gradient(120% 120% at 100% 0%, rgba(154, 117, 50, .28), transparent 60%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.mega__feature p:not(.mega__label) { color: var(--text-dim); font-size: 15px; }
.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ask-trigger { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: rgba(243, 236, 223, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); font-size: 14px; transition: box-shadow .25s, color .25s; }
.ask-trigger:hover { color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ask-trigger .ico { width: 18px; height: 18px; color: var(--champagne); }
.ask-trigger kbd { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .06); font: 600 12px/1 var(--sans); color: var(--text-faint); }
.header-login { color: var(--text); font-weight: 500; font-size: 15px; text-decoration: none; padding: 0 10px; }
.header-login:hover { color: var(--white); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(243, 236, 223, .06); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ivory); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav__mobile-actions { display: none; }

@media (max-width: 1100px) {
	.ask-trigger span, .ask-trigger kbd { display: none; }
	.ask-trigger { width: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
	.burger { display: block; }
	.header-login, .header-cta { display: none; }
	.nav { position: fixed; inset: 0; top: 0; margin: 0; padding: 96px var(--gutter) 32px; background: rgba(11, 10, 8, .98); backdrop-filter: blur(16px); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: -1; }
	.nav.is-open { opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__link { width: 100%; height: 56px; justify-content: space-between; font-size: 19px; border-radius: 0; border-bottom: 1px solid var(--line); padding: 0 4px; }
	.mega { position: static; padding: 0; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav__item--mega.is-open .mega { display: block; }
	.mega__inner { grid-template-columns: 1fr; padding: 12px 0; background: none; box-shadow: none; backdrop-filter: none; gap: 16px; }
	.mega__feature { display: none; }
	.nav__mobile-actions { display: grid; gap: 12px; margin-top: 28px; }
	.site-header__inner { height: 68px; }
	.brand, .site-header__actions { position: relative; z-index: 2; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: min(940px, 100svh); display: flex; align-items: center; padding: 120px 0 100px; margin-top: -78px; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	radial-gradient(60% 55% at 72% 42%, rgba(154, 117, 50, .22), transparent 70%),
	radial-gradient(40% 40% at 10% 90%, rgba(154, 117, 50, .10), transparent 70%),
	linear-gradient(180deg, rgba(11, 10, 8, .2) 0%, rgba(11, 10, 8, 0) 40%, var(--black) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(243, 236, 223, .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); font-size: 14px; }
.hero__kicker b { display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--btn-gold); color: #14110c; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero__title { font-family: var(--serif); font-weight: 900; font-size: clamp(42px, 5.6vw, 82px); line-height: 1; letter-spacing: -.03em; color: var(--ivory); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; animation: rise 1.2s var(--ease) both; }
.hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.hero__sub { margin: 28px 0 36px; max-width: 560px; color: var(--text-dim); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; animation: fade 1.2s .35s var(--ease) both; }
.hero .btn-row { animation: fade 1.2s .5s var(--ease) both; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: var(--text-faint); font-size: 14px; animation: fade 1.2s .65s var(--ease) both; }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .ico { width: 16px; height: 16px; color: var(--champagne); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero console: an illustrative composition, labelled as such */
.console { position: relative; perspective: 1400px; animation: fade 1.4s .4s var(--ease) both; }
.console__frame { position: relative; transform: rotateY(-12deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 1s var(--ease); }
.console:hover .console__frame { transform: rotateY(-6deg) rotateX(3deg); }
.glass { background: var(--glass), rgba(20, 18, 14, .72); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.console__main { padding: 20px; }
.console__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.console__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.console__bar span { margin-left: 10px; color: var(--text-faint); font-size: 12.5px; letter-spacing: .04em; }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.cstat { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.cstat small { display: block; color: var(--text-faint); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.cstat strong { display: block; margin-top: 6px; font: 700 15px/1.2 var(--sans); color: var(--ivory); }
.console__rows { display: grid; gap: 8px; }
.crow { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .025); }
.crow__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(154, 117, 50, .16); color: var(--champagne); }
.crow__ico .ico { width: 18px; height: 18px; }
.crow b { display: block; font-size: 14px; font-weight: 600; color: var(--ivory); }
.crow small { color: var(--text-faint); font-size: 12.5px; }
.crow em { font-style: normal; font-size: 11.5px; color: var(--ok); letter-spacing: .04em; }
.crow.is-pulse { animation: rowpulse 3.6s var(--ease) infinite; }
@keyframes rowpulse { 0%, 100% { box-shadow: inset 0 0 0 1px transparent; } 50% { box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(192, 168, 119, .06); } }
.console__float { position: absolute; padding: 14px 16px; width: 230px; transform: translateZ(60px); }
.console__float--ai { right: -28px; top: -34px; animation: float 7s ease-in-out infinite; }
.console__float--flow { left: -36px; bottom: -78px; animation: float 8s ease-in-out -2s infinite; }
.console__float p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.console__float .tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--champagne); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.console__float .tag .ico { width: 14px; height: 14px; }
.console__label { position: absolute; right: 0; bottom: -64px; }
.typing { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--champagne); animation: blink 1.4s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateZ(60px) translateY(0); } 50% { transform: translateZ(60px) translateY(-10px); } }

@media (max-width: 980px) {
	.hero { min-height: 0; padding: 120px 0 90px; }
	.hero__grid { grid-template-columns: 1fr; }
	.console { max-width: 560px; margin: 30px auto 40px; }
	.console__frame { transform: none; }
	.console__float--ai { right: -6px; }
	.console__float--flow { left: -6px; }
}
@media (max-width: 560px) {
	.console__float { width: 190px; }
	.console__float--ai { top: -54px; }
	.console__stats { grid-template-columns: 1fr 1fr; }
	.console__stats .cstat:last-child { display: none; }
}

/* ---------- Marquee of capabilities ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--black-2); }
.ticker__track { display: flex; gap: 48px; width: max-content; padding: 20px 0; animation: ticker 48s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 12px; color: var(--text-dim); font: 500 15px/1 var(--sans); white-space: nowrap; }
.ticker__track .ico { width: 18px; height: 18px; color: var(--champagne); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Problem/answer intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-list { list-style: none; display: grid; gap: 18px; }
.intro-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.intro-list .num { font: 700 26px/1 var(--serif); color: var(--gold-bright); }
.intro-list h3 { font-size: 18px; margin-bottom: 6px; font-family: var(--sans); font-weight: 600; }
.intro-list p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Interactive system map (orbit) ---------- */
.system { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 620px; width: 100%; margin: 0 auto; }
.orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring { fill: none; stroke: var(--line); stroke-width: 1; }
.orbit__ring--dash { stroke-dasharray: 2 7; animation: spin 90s linear infinite; transform-origin: 50% 50%; }
.orbit__link { stroke: rgba(192, 168, 119, .18); stroke-width: 1; transition: stroke .3s; }
.orbit__link.is-on { stroke: var(--champagne); stroke-width: 1.4; }
.orbit__pulse { fill: var(--champagne-light); filter: drop-shadow(0 0 6px rgba(220, 200, 156, .9)); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit__core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgba(192, 168, 119, .35), rgba(154, 117, 50, .08) 60%, transparent 70%), var(--surface); box-shadow: 0 0 0 1px var(--line-strong), 0 0 80px rgba(154, 117, 50, .35); }
.orbit__core img { width: 42%; margin: 0 auto 6px; }
.orbit__core b { display: block; font: 700 clamp(13px, 1.5vw, 17px)/1.1 var(--serif); color: var(--ivory); }
.orbit__core small { display: block; color: var(--text-faint); font-size: clamp(10px, 1vw, 12px); }
.onode { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 104px; padding: 0; border: 0; background: none; color: var(--text-dim); font: 500 12.5px/1.2 var(--sans); text-align: center; }
.onode__dot { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--champagne); transition: transform .35s var(--ease), box-shadow .35s, background .35s; }
.onode:hover .onode__dot, .onode[aria-pressed="true"] .onode__dot { transform: translateY(-3px) scale(1.06); background: rgba(154, 117, 50, .22); box-shadow: inset 0 0 0 1px var(--champagne), 0 12px 30px -10px rgba(192, 168, 119, .6); color: var(--ivory); }
.onode[aria-pressed="true"] { color: var(--ivory); }
.onode--pro .onode__dot::after { content: "Pro"; position: absolute; transform: translate(22px, -22px); padding: 3px 6px; border-radius: 6px; background: var(--btn-gold); color: #14110c; font: 700 9px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.system__panel { padding: clamp(24px, 3vw, 36px); min-height: 360px; }
.system__panel h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); margin: 14px 0 10px; }
.system__panel p { color: var(--text-dim); }
.system__panel ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.system__panel li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.system__panel li .ico { width: 18px; height: 18px; color: var(--champagne); margin-top: 3px; }
.system__panel li small { display: block; color: var(--text-faint); font-size: 13px; }
.system__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 980px) {
	.system { grid-template-columns: 1fr; }
	.onode { width: 78px; font-size: 11px; }
	.onode__dot { width: 44px; height: 44px; border-radius: 13px; }
	.onode__dot .ico { width: 19px; height: 19px; }
}
@media (max-width: 480px) { .onode span:last-child { display: none; } }

/* ---------- Capability cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(192, 168, 119, .14), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
a.card:hover, .card--hover:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0, 0, 0, .9); color: var(--text); }
.card:hover::before { opacity: 1; }
.card__ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: linear-gradient(150deg, rgba(192, 168, 119, .22), rgba(154, 117, 50, .06)); box-shadow: inset 0 0 0 1px var(--line); color: var(--champagne-light); }
.card h3 { font: 600 19px/1.3 var(--sans); color: var(--ivory); }
.card p { margin: 0; color: var(--text-dim); font-size: 15.5px; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--champagne); font-weight: 600; font-size: 14.5px; }
.card__more .ico { width: 16px; height: 16px; transition: transform .3s var(--ease); }
a.card:hover .card__more .ico { transform: translateX(4px); }
@media (max-width: 1100px) { .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* ---------- EmaAI showcase ---------- */
.ai { position: relative; overflow: hidden; }
.ai::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(154, 117, 50, .22), transparent 60%); pointer-events: none; }
.ai__grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.ai__points { list-style: none; display: grid; gap: 14px; margin: 26px 0 30px; }
.ai__points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.ai__points .ico-wrap { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(154, 117, 50, .16); color: var(--champagne-light); }
.ai__points b { display: block; color: var(--ivory); font-weight: 600; }
.ai__points span { color: var(--text-dim); font-size: 15.5px; }
.chat { padding: 18px; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.chat__who { display: flex; align-items: center; gap: 12px; }
.chat__avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e6d3a3, #9a7532); color: #14110c; }
.chat__avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(192, 168, 119, .5); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.chat__who b { display: block; color: var(--ivory); font-size: 15px; }
.chat__who small { color: var(--text-faint); font-size: 12.5px; }
.chat__modes { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.chat__modes button { padding: 7px 12px; border: 0; border-radius: 999px; background: none; color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.chat__modes button[aria-pressed="true"] { background: var(--btn-gold); color: #14110c; }
.chat__log { display: grid; gap: 10px; min-height: 330px; align-content: start; }
.bubble { max-width: 84%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: pop .5s var(--ease) both; }
.bubble--in { background: rgba(255, 255, 255, .06); color: var(--text); border-bottom-left-radius: 5px; }
.bubble--out { justify-self: end; background: linear-gradient(150deg, rgba(192, 168, 119, .28), rgba(154, 117, 50, .18)); color: var(--ivory); border-bottom-right-radius: 5px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.bubble small { display: block; margin-top: 6px; color: var(--text-faint); font-size: 11.5px; }
.bubble--draft { border: 1px dashed var(--champagne); background: rgba(192, 168, 119, .06); }
.bubble--note { justify-self: center; max-width: 100%; background: none; color: var(--text-faint); font-size: 12.5px; text-align: center; padding: 4px; }
.bubble__actions { display: flex; gap: 8px; margin-top: 10px; }
.bubble__actions span { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); }
.bubble__actions span:first-child { background: var(--btn-gold); color: #14110c; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.chat__replay { border: 0; background: none; color: var(--champagne); font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.ai__disclaimer { margin-top: 18px; color: var(--text-faint); font-size: 13.5px; }
@media (max-width: 980px) { .ai__grid { grid-template-columns: 1fr; } }

/* ---------- Automation flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 10px; }
.flow__step { position: relative; padding: 0 18px; text-align: center; }
.flow__node { position: relative; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 24px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--champagne); transition: all .5s var(--ease); }
.flow__node .ico { width: 30px; height: 30px; }
.flow__step.is-active .flow__node { background: radial-gradient(circle at 50% 30%, rgba(220, 200, 156, .5), rgba(154, 117, 50, .25)); color: var(--white); box-shadow: inset 0 0 0 1px var(--champagne), 0 0 40px rgba(192, 168, 119, .45); transform: translateY(-4px); }
.flow__step h3 { font: 600 17px/1.3 var(--sans); color: var(--ivory); margin-bottom: 8px; }
.flow__step p { color: var(--text-dim); font-size: 14.5px; margin: 0; }
.flow__step .when { display: block; margin-bottom: 10px; color: var(--text-faint); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.flow__line { position: absolute; z-index: 1; left: 12.5%; right: 12.5%; top: 38px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.flow__line i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--gold), var(--champagne-light)); transition: transform .9s var(--ease); }
.flow__line b { position: absolute; top: -3px; width: 60px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, rgba(255, 240, 200, .95), transparent); animation: travel 3s linear infinite; }
@keyframes travel { from { left: -60px; } to { left: 100%; } }
.flow-note { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 44px; color: var(--text-faint); font-size: 14px; text-align: center; }
@media (max-width: 860px) {
	.flow { grid-template-columns: 1fr; gap: 26px; }
	.flow__line { left: 37px; right: auto; top: 38px; bottom: 38px; width: 2px; height: auto; }
	.flow__line i { transform-origin: top; transform: scaleY(var(--p, 0)); }
	.flow__line b { display: none; }
	.flow__step { display: grid; grid-template-columns: 76px 1fr; gap: 18px; text-align: left; padding: 0; }
	.flow__node { margin: 0; }
}

/* ---------- Tabs (industries) ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tabs__tab { padding: 11px 18px; border: 0; border-radius: 999px; background: rgba(243, 236, 223, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); font-weight: 500; font-size: 15px; transition: all .3s; }
.tabs__tab:hover { color: var(--ivory); }
.tabs__tab[aria-selected="true"] { background: var(--btn-gold); color: #14110c; box-shadow: none; font-weight: 600; }
.tabs__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); padding: clamp(24px, 3.5vw, 44px); border-radius: 24px; background: radial-gradient(120% 120% at 0% 0%, rgba(154, 117, 50, .14), transparent 55%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 36px); margin-bottom: 12px; }
.tabs__panel .eg { color: var(--champagne); font-size: 14px; margin-bottom: 18px; }
.journey { list-style: none; counter-reset: j; display: grid; gap: 10px; }
.journey li { counter-increment: j; position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 15.5px; }
.journey li::before { content: "0" counter(j); flex: none; font: 700 15px/1 var(--serif); color: var(--gold-bright); width: 26px; }
@media (max-width: 860px) { .tabs__panel { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt img { transition: transform 1s var(--ease), opacity .4s; }
.yt:hover img { transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 84px; border: 0; border-radius: 50%; background: var(--btn-gold); color: #14110c; box-shadow: 0 0 0 10px rgba(192, 168, 119, .18), 0 20px 50px -10px rgba(0, 0, 0, .8); transition: transform .35s var(--ease), box-shadow .35s; }
.yt__play .ico { width: 30px; height: 30px; margin-left: 4px; }
.yt:hover .yt__play { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 0 16px rgba(192, 168, 119, .14), 0 20px 50px -10px rgba(0, 0, 0, .8); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 28px; align-items: start; }
.demo-list { list-style: none; display: grid; gap: 10px; }
.demo-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.demo-list li .ico { color: var(--champagne); width: 20px; height: 20px; }
.demo-list li small { display: block; color: var(--text-faint); font-size: 12.5px; }
.video-caption { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1060px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 42px); border-radius: 26px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.plan--pro { background: radial-gradient(130% 90% at 100% 0%, rgba(154, 117, 50, .32), transparent 55%), linear-gradient(180deg, #1d1912, #14110c); box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px -50px rgba(192, 168, 119, .5); }
.plan--pro::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--champagne-light), transparent 35%, transparent 65%, var(--gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__flag { position: absolute; top: 22px; right: 22px; }
.plan__name { font: 700 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); color: var(--ivory); padding-right: 110px; }
.plan__tag { margin: 10px 0 22px; color: var(--text-dim); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.plan__price b { font: 700 clamp(50px, 5.5vw, 66px)/1 var(--serif); color: var(--ivory); letter-spacing: -.02em; }
.plan__price b sup { font-size: .45em; vertical-align: .9em; margin-right: 2px; color: var(--champagne); }
.plan__price span { color: var(--text-dim); }
.plan__note { color: var(--text-faint); font-size: 14px; margin-bottom: 24px; }
.plan__list { list-style: none; display: grid; gap: 12px; margin: 6px 0 30px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.plan__list .ico { width: 19px; height: 19px; color: var(--champagne); margin-top: 3px; }
.plan .btn { margin-top: auto; width: 100%; }
.plan__for { margin-top: 14px; color: var(--text-faint); font-size: 14px; text-align: center; }
.plan-terms { max-width: 1060px; margin: 26px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-terms div { display: flex; gap: 10px; align-items: flex-start; color: var(--text-dim); font-size: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.plan-terms .ico { width: 18px; height: 18px; color: var(--champagne); flex: none; margin-top: 2px; }
@media (max-width: 860px) { .plans, .plan-terms { grid-template-columns: 1fr; } }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare-wrap { overflow-x: auto; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { position: sticky; top: 0; background: #17140f; color: var(--ivory); font-weight: 600; z-index: 1; }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 22%; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare tbody th small { display: block; color: var(--text-faint); font-weight: 400; font-size: 13px; margin-top: 3px; }
.compare tr.group th { padding-top: 26px; color: var(--champagne); font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; background: rgba(255, 255, 255, .015); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.avail { display: inline-grid; place-items: center; }
.avail--yes { width: 28px; height: 28px; border-radius: 50%; background: rgba(192, 168, 119, .16); color: var(--champagne-light); }
.avail--yes .ico { width: 16px; height: 16px; }
.avail--no { color: var(--text-faint); }
.compare-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }

/* ---------- Guide (plan recommender) ---------- */
.guide { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 60px); align-items: start; }
.guide__card { padding: clamp(22px, 3vw, 36px); }
.guide__progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 24px; }
.guide__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--champagne-light)); transition: width .5s var(--ease); }
.guide__q { font: 600 clamp(20px, 2vw, 24px)/1.3 var(--sans); color: var(--ivory); margin-bottom: 18px; }
.guide__opts { display: grid; gap: 10px; }
.guide__opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-align: left; font-size: 15.5px; transition: all .25s; }
.guide__opt:hover { box-shadow: inset 0 0 0 1px var(--champagne); background: rgba(192, 168, 119, .07); color: var(--white); }
.guide__opt .key { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(255, 255, 255, .06); font: 600 12px/1 var(--sans); color: var(--text-faint); }
.guide__back { margin-top: 18px; border: 0; background: none; color: var(--text-faint); font-size: 14px; }
.guide__result h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin: 10px 0 12px; }
.guide__result ul { list-style: none; display: grid; gap: 10px; margin: 16px 0 24px; }
.guide__result li { display: flex; gap: 10px; color: var(--text-dim); font-size: 15.5px; }
.guide__result li .ico { width: 18px; height: 18px; color: var(--champagne); margin-top: 3px; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }

/* ---------- Academy ---------- */
.academy-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 4vw, 56px); }
.stat b { display: block; font: 700 clamp(40px, 5vw, 60px)/1 var(--serif); color: var(--ivory); }
.stat b em { font-style: normal; color: var(--champagne); }
.stat span { display: block; margin-top: 8px; color: var(--text-faint); font-size: 14px; max-width: 140px; }
.lib-tools { position: sticky; top: 78px; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; background: linear-gradient(180deg, var(--black) 70%, rgba(11, 10, 8, 0)); }
.lib-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lib-search:focus-within { box-shadow: inset 0 0 0 1px var(--champagne); }
.lib-search .ico { color: var(--champagne); }
.lib-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ivory); font: 400 16px var(--sans); }
.lib-search input::placeholder { color: var(--text-faint); }
.lib-search input:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(243, 236, 223, .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip:hover { color: var(--ivory); }
.chip[aria-pressed="true"] { background: rgba(192, 168, 119, .18); box-shadow: inset 0 0 0 1px var(--champagne); color: var(--ivory); }
.lib-group { margin-top: 56px; }
.lib-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lib-group__head h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); }
.lib-group__head span { color: var(--text-faint); font-size: 14px; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tcard { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
a.tcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), 0 26px 50px -26px rgba(0, 0, 0, .9); color: var(--text); }
.tcard__thumb { aspect-ratio: 16/9; background: #000; overflow: hidden; }
.tcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a.tcard:hover .tcard__thumb img { transform: scale(1.04); }
.tcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.tcard__meta { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; color: var(--text-faint); font-size: 12.5px; }
.tcard__id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--champagne); opacity: .85; }
.tcard__title { font: 600 16.5px/1.35 var(--sans); color: var(--ivory); margin-bottom: 14px; }
.tcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcard__state { display: inline-flex; align-items: center; gap: 6px; color: var(--text-faint); font-size: 12.5px; }
.tcard__state--live { color: var(--champagne-light); font-weight: 600; }
.tcard__state .ico { width: 13px; height: 13px; }
.tcard:not(.tcard--live) { background: rgba(21, 19, 15, .6); }
.tcard:not(.tcard--live) .tcard__title { color: var(--text); }
.tcard[hidden] { display: none; }
.lib-empty { padding: 40px; text-align: center; color: var(--text-dim); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 1000px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tgrid { grid-template-columns: 1fr; } .lib-tools { grid-template-columns: 1fr; top: 68px; } .academy-hero { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(3, 1fr); } }

/* Paths */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.path { padding: 26px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.path h3 { font: 700 21px/1.25 var(--serif); margin-bottom: 6px; }
.path .for { color: var(--text-faint); font-size: 14px; margin-bottom: 16px; }
.path ol { list-style: none; counter-reset: s; display: grid; gap: 2px; }
.path li { counter-increment: s; position: relative; padding: 8px 0 8px 34px; font-size: 14.5px; color: var(--text-dim); }
.path li::before { content: counter(s); position: absolute; left: 0; top: 7px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 11.5px; font-weight: 600; color: var(--champagne); }
.path li::after { content: ""; position: absolute; left: 10.5px; top: 30px; bottom: -6px; width: 1px; background: var(--line); }
.path li:last-child::after { display: none; }
.path li.live::before { background: var(--btn-gold); color: #14110c; box-shadow: none; }
.path li a { color: var(--ivory); text-decoration: none; }
.path li a:hover { color: var(--champagne-light); }
@media (max-width: 1000px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .paths { grid-template-columns: 1fr; } }

/* ---------- Support band ---------- */
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.support-item { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.support-item .card__ico { margin-bottom: 14px; }
.support-item h3 { font: 600 17px/1.3 var(--sans); margin-bottom: 6px; }
.support-item p { margin: 0 0 12px; color: var(--text-dim); font-size: 15px; }
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.scope > div { padding: 22px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.scope h3 { font: 600 16px/1.3 var(--sans); margin-bottom: 8px; color: var(--ivory); }
.scope p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
@media (max-width: 1000px) { .support-grid { grid-template-columns: 1fr 1fr; } .scope { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; margin: 0 auto; }
.faq__item { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.faq__item[open] { box-shadow: inset 0 0 0 1px var(--line-strong); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; color: var(--ivory); font-weight: 600; font-size: 16.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico { width: 20px; height: 20px; color: var(--champagne); transition: transform .35s var(--ease); }
.faq__item[open] .faq__ico { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-dim); }
.faq__a p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: clamp(80px, 10vw, 140px) 0; text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1100px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(154, 117, 50, .3), transparent); pointer-events: none; }
.cta-band__inner { position: relative; }
.cta-band__title { font: 900 clamp(36px, 5.4vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; max-width: 900px; margin: 0 auto 20px; }
.cta-band .lead { margin: 0 auto 34px; }
.cta-band .btn-row { justify-content: center; }
.cta-band__alt { margin-top: 26px; color: var(--text-faint); font-size: 15px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 6vw, 80px); margin-top: -78px; padding-top: calc(78px + clamp(50px, 7vw, 100px)); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, rgba(154, 117, 50, .26), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(154, 117, 50, .08), transparent 70%); }
.page-hero__glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(192, 168, 119, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(192, 168, 119, .05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 80% at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(70% 80% at 80% 0%, #000, transparent 70%); }
.page-title { max-width: 900px; font-size: clamp(38px, 5.4vw, 70px); }
.page-hero .btn-row { margin-top: 32px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 28px; color: var(--text-faint); font-size: 13.5px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--champagne); }

/* ---------- Generic layout bits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }
.panel { padding: clamp(22px, 3vw, 34px); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.panel h2, .panel h3 { margin-bottom: 12px; }
.panel h3 { font: 600 18px/1.3 var(--sans); }
.panel--gold { background: radial-gradient(140% 100% at 100% 0%, rgba(154, 117, 50, .25), transparent 60%), var(--surface); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico { width: 19px; height: 19px; color: var(--champagne); margin-top: 3px; }
.check-list small { display: block; color: var(--text-faint); font-size: 13.5px; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(224, 168, 90, .06); box-shadow: inset 0 0 0 1px rgba(224, 168, 90, .25); color: var(--text-dim); font-size: 14.5px; }
.note .ico { color: #d9a46c; width: 20px; height: 20px; }
.note p { margin: 0; }
.disclosure { color: var(--text-faint); font-size: 14px; font-style: italic; }
.sticky-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.feature-rows { display: grid; gap: 12px; }
.frow { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.frow h3 { font: 600 16.5px/1.3 var(--sans); margin-bottom: 4px; }
.frow p { margin: 0; color: var(--text-dim); font-size: 15px; }
.frow .needs { display: inline-flex; gap: 6px; margin-top: 8px; color: var(--text-faint); font-size: 13px; }
.frow .needs .ico { width: 15px; height: 15px; color: #d9a46c; }
@media (max-width: 620px) { .frow { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; color: var(--text); }

/* Watch page */
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.watch__badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 0; color: var(--text-faint); font-size: 14px; }
.watch__answer { font-size: clamp(18px, 1.8vw, 21px); color: var(--text); margin: 18px 0 26px; max-width: 820px; }
.takeaways { list-style: none; display: grid; gap: 10px; }
.takeaways li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.takeaways .ico { color: var(--champagne); width: 19px; height: 19px; margin-top: 3px; }
.transcript { margin-top: 14px; }
.transcript summary { cursor: pointer; color: var(--champagne); font-weight: 600; }
.transcript div { margin-top: 14px; max-height: 420px; overflow: auto; padding: 18px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); font-size: 15px; line-height: 1.75; }
@media (max-width: 1000px) { .watch { grid-template-columns: 1fr; } .sticky-side { position: static; } }

/* Help Center */
.help-search { max-width: 760px; }
.help-search .lib-search { height: 64px; }
.hc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hc-cat { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.hc-cat:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); }
.hc-cat .ico { color: var(--champagne); margin-top: 2px; }
.hc-cat b { display: block; font-weight: 600; color: var(--ivory); font-size: 15.5px; }
.hc-cat small { display: block; margin-top: 4px; color: var(--text-faint); font-size: 13px; line-height: 1.45; }
.hc-cat .count { display: block; margin-top: 8px; color: var(--champagne); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
@media (max-width: 1100px) { .hc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .hc-grid { grid-template-columns: 1fr; } }
.plan-switch { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin: 26px 0 0; }
.plan-switch .chip { box-shadow: none; }

/* ---------- Ask (intelligent search) ---------- */
.ask { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 10vh 16px 16px; }
.ask[hidden] { display: none; }
.ask__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .72); backdrop-filter: blur(8px); animation: fadein .25s both; }
@keyframes fadein { from { opacity: 0; } }
.ask__panel { position: relative; width: 100%; max-width: 720px; max-height: 80vh; display: flex; flex-direction: column; border-radius: 22px; background: linear-gradient(180deg, #1a1712, #121009); box-shadow: 0 0 0 1px var(--line-strong), 0 50px 120px -30px #000, 0 0 120px -40px rgba(192, 168, 119, .4); animation: pop .35s var(--ease) both; overflow: hidden; }
.ask__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 0; }
.ask__title { display: inline-flex; gap: 8px; align-items: center; margin: 0; color: var(--champagne); font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ask__title .ico { width: 18px; height: 18px; }
.ask__close { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--text-dim); }
.ask__field { display: flex; gap: 12px; align-items: center; margin: 14px 20px 0; padding: 0 16px; height: 58px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.ask__field:focus-within { box-shadow: inset 0 0 0 1px var(--champagne); }
.ask__field .ico { color: var(--champagne); }
.ask__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ivory); font: 400 17px var(--sans); }
.ask__field input:focus { outline: none; }
.ask__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.ask__suggest button { padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--text-dim); font-size: 13.5px; }
.ask__suggest button:hover { color: var(--ivory); background: rgba(192, 168, 119, .12); }
.ask__results { overflow-y: auto; padding: 12px 12px 4px; }
.ask__answer { margin: 4px 8px 12px; padding: 16px 18px; border-radius: 14px; background: radial-gradient(120% 120% at 0% 0%, rgba(154, 117, 50, .22), transparent 60%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-strong); }
.ask__answer p { margin: 6px 0 0; color: var(--text); font-size: 15px; }
.ask__answer .tag { color: var(--champagne); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ask__hit { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 12px 14px; border-radius: 12px; color: var(--text); text-decoration: none; }
.ask__hit:hover, .ask__hit:focus-visible, .ask__hit.is-active { background: rgba(192, 168, 119, .1); color: var(--white); outline: none; }
.ask__hit b { font-weight: 600; font-size: 15px; }
.ask__hit small { grid-column: 1; color: var(--text-faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask__hit em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--champagne); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.ask__note { margin: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); color: var(--text-faint); font-size: 12.5px; }
.ask__empty { padding: 18px; color: var(--text-dim); font-size: 15px; }

/* ---------- Inner pages (templates) ---------- */
.page-hero--ai { min-height: 520px; }
.page-hero--ai .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.page-hero--ai .wrap { position: relative; }
.tgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
a.chip { color: var(--text-dim); }
a.chip:hover { color: var(--ivory); }
.compare tr.group a { color: inherit; text-decoration: none; }
.compare tr.group a:hover { color: var(--champagne-light); }
.compare.is-pro-only tr[data-tier="both"] { display: none; }
[data-features].is-filtered .card[hidden] { display: none; }
.gs-steps { list-style: none; display: grid; gap: 16px; max-width: 920px; }
.gs-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; }
.gs-step__num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--btn-gold); color: #14110c; font: 700 20px/1 var(--serif); }
.gs-step__title { font: 700 clamp(21px, 2.2vw, 26px)/1.25 var(--serif); margin-bottom: 8px; color: var(--ivory); }
.gs-step p { color: var(--text-dim); }
.gs-step__links { list-style: none; display: grid; gap: 8px; margin-top: 14px; font-size: 14.5px; }
.gs-step__links li { display: flex; gap: 10px; align-items: flex-start; }
.gs-step__links .ico { width: 17px; height: 17px; color: var(--champagne); margin-top: 3px; }
.pb { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); }
.pb fieldset { border: 0; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.pb legend { font-weight: 600; color: var(--ivory); margin-bottom: 10px; }
.pb__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 15px; transition: box-shadow .2s, background .2s; }
.pb__opt:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.pb__opt input { accent-color: var(--champagne); width: 18px; height: 18px; }
.pb__opt:has(input:checked) { background: rgba(192, 168, 119, .12); box-shadow: inset 0 0 0 1px var(--champagne); color: var(--ivory); }
.pb__opt:has(input:focus-visible) { outline: 2px solid var(--champagne); outline-offset: 2px; }
.pb__title { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); margin-bottom: 16px; }
.pb-list { list-style: none; counter-reset: s; display: grid; gap: 2px; }
.pb-list li { counter-increment: s; position: relative; padding: 9px 0 9px 38px; color: var(--text-dim); font-size: 15px; }
.pb-list li::before { content: counter(s); position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12px; color: var(--text-faint); }
.pb-list li.live::before { background: var(--btn-gold); color: #14110c; box-shadow: none; }
.pb-list li a { color: var(--ivory); }
.watch__title { font-size: clamp(32px, 4.2vw, 54px); max-width: 980px; }
.page-hero--watch { padding-bottom: 28px; border-bottom: 0; }
.watch__h { font: 700 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); margin: 48px 0 18px; }
.chapters { list-style: none; display: grid; gap: 2px; }
.chapters a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 14.5px; }
.chapters a:hover, .chapters a:focus-visible { background: rgba(192, 168, 119, .1); color: var(--ivory); }
.chapters time { color: var(--champagne); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .pb { grid-template-columns: 1fr; } .tgrid--2 { grid-template-columns: 1fr; } .gs-step { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 90px 0 40px; border-top: 1px solid var(--line); background: var(--black-2); }
.footer-glow { position: absolute; left: 50%; bottom: -300px; width: 1200px; height: 500px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(154, 117, 50, .18), transparent); pointer-events: none; }
.footer-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin: 20px 0; color: var(--text-dim); font-size: 15px; max-width: 340px; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-dim); }
.footer-contact li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-contact .ico { width: 17px; height: 17px; color: var(--champagne); }
.footer-contact a { color: var(--ivory); text-decoration: none; }
.footer-contact span { color: var(--text-faint); font-size: 13px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-h { margin: 0 0 16px; color: var(--ivory); font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols a { color: var(--text-dim); text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: var(--champagne-light); }
.footer-bottom { position: relative; padding-top: 28px; color: var(--text-faint); font-size: 13.5px; }
.footer-bottom p { margin: 0 0 8px; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.footer-legal a { color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--champagne); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .06s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .12s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .18s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .24s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .3s; }
.js [data-reveal-stagger].is-in > *:nth-child(n+7) { transition-delay: .36s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ticker__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
	.console__frame { transform: none; }
}

/* ---------- Forced colors / print ---------- */
@media (forced-colors: active) { .btn { border: 1px solid ButtonText; } .card, .panel, .tcard { border: 1px solid CanvasText; } }
@media print { .site-header, .site-footer, .preview-bar, .hero__canvas, .ask { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- Small-screen refinements ---------- */
.split > *, .watch > * { min-width: 0; }
.btn { max-width: 100%; }
.btn span { white-space: normal; text-align: center; }
@media (max-width: 620px) {
	.compare th, .compare td { padding: 12px 10px; }
	.compare thead th:not(:first-child), .compare td:not(:first-child) { width: 64px; }
	.compare tbody th small { font-size: 12.5px; }
	.console__float--flow { left: 4px; }
}
.watch__chapters { margin-top: 26px; } .watch__chapters .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } @media (max-width: 620px) { .watch__chapters .chapters { grid-template-columns: 1fr; } }
.panel__h { font: 600 18px/1.3 var(--sans); margin-bottom: 12px; }

/* ---------- Help Center guides (ported KL-09A articles) ---------- */
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.guide-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: rgba(192,168,119,.55); transform: translateY(-1px); }
.guide-card:focus-visible { outline: 2px solid var(--champagne); outline-offset: 2px; }
.guide-card__ico { flex: 0 0 auto; color: var(--champagne); width: 22px; height: 22px; margin-top: 2px; }
.guide-card__ico svg { width: 22px; height: 22px; }
.guide-card b { display: block; font-weight: 600; color: var(--ivory); }
.guide-card small { display: block; margin-top: 4px; color: var(--text-dim); font-size: 14px; line-height: 1.45; }
.guide-card__plan { display: block; margin-top: 8px; }
.guide__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 0; }
.guide__needs { margin: 22px 0; }
.guide__toc { margin: 22px 0 8px; padding: 18px 22px; border-left: 2px solid var(--champagne); background: rgba(192,168,119,.05); border-radius: 0 12px 12px 0; }
.guide__toc ol { margin: 8px 0 0; padding-left: 20px; }
.guide__toc a { color: var(--ivory); }
.hguide h2 { scroll-margin-top: 110px; }
.guide__n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 6px; border-radius: 50%; border: 1px solid rgba(192,168,119,.6); color: var(--champagne); font: 600 15px/1 var(--sans); vertical-align: middle; }
@media (max-width: 900px) { .guide-list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .guide-list, .guide-list--4 { grid-template-columns: 1fr; } }
.hguide .panel__h { margin: 0 0 6px; font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--champagne); }
.hguide .guide__needs { padding: 20px 24px; }
.hguide .guide__needs .check-list { margin: 6px 0 0; }

/* Academy: lessons in production collapsed under "Coming next" (0.3.1) */
.lib-group--guides .guide-list{margin-top:4px}
.lib-soon{margin-top:40px;border-top:1px solid rgba(255,255,255,.08);padding-top:8px}
.lib-soon>summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:18px 0}
.lib-soon>summary::-webkit-details-marker{display:none}
.lib-soon__h{font-family:var(--serif,inherit);font-size:clamp(22px,2.4vw,28px);color:var(--text,#fff)}
.lib-soon__n{color:var(--text-dim);font-size:14px}
.lib-soon>summary svg{margin-left:auto;width:18px;height:18px;transform:rotate(90deg);transition:transform .2s;color:var(--champagne)}
.lib-soon[open]>summary svg{transform:rotate(-90deg)}
.lib-soon>summary:focus-visible{outline:2px solid var(--champagne);outline-offset:4px}
/* Library type cards: face-free gold-on-black (KL-07). */
.tcard__thumb--type { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; background: radial-gradient(120% 90% at 100% 0%, rgba(184, 146, 77, .22), transparent 55%), linear-gradient(160deg, #15130f 0%, #000 70%); box-shadow: inset 0 -1px 0 rgba(184, 146, 77, .35); }
.tcard__thumb--type::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 16px; height: 1px; background: linear-gradient(90deg, var(--gold-bright), rgba(184, 146, 77, 0)); opacity: .7; }
.tcard__kicker { position: relative; font: 600 10.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); }
.tcard__hook { position: relative; margin-bottom: 14px; font: 600 clamp(22px, 2.3vw, 28px)/1.08 var(--serif); color: var(--ivory); letter-spacing: -.01em; transition: transform .8s var(--ease); transform-origin: left bottom; }
.tcard__hook em { font-style: italic; color: var(--gold-bright); }
a.tcard:hover .tcard__hook { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { a.tcard:hover .tcard__hook { transform: none; } }
.sources { margin: 8px 0 6px; padding-left: 18px; }
.sources li { margin: 4px 0; }
