/* Wayscript marketing site — matches the app's design tokens (apps/web/src/styles/tokens.css). */

:root {
	--bg: #ece5d6;
	--surface: #f4eee2;
	--surface-2: #faf6ec;
	--fg: #211c14;
	--fg-dim: #5c5345;
	--fg-faint: #938872;
	--border: #dcd2bd;
	--accent: #2f6f6a;
	--accent-soft: #dcebe7;
	--accent-ink: #faf6ec;
	--shadow: 0 18px 50px rgba(40, 32, 16, 0.12);
	--shadow-sm: 0 6px 20px rgba(40, 32, 16, 0.08);
	--radius: 16px;
	--font-ui: "Public Sans", system-ui, -apple-system, sans-serif;
	--font-display: "EB Garamond", Georgia, serif;
	--font-mono: "IBM Plex Mono", ui-monospace, monospace;
	--maxw: 1140px;
}

[data-theme="dark"] {
	--bg: #14120d;
	--surface: #1c1a13;
	--surface-2: #232017;
	--fg: #e9e3d4;
	--fg-dim: #a59c87;
	--fg-faint: #6f6857;
	--border: #332f22;
	--accent: #5fb0a8;
	--accent-soft: #223330;
	--accent-ink: #11211f;
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
	--shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	font-family: var(--font-ui);
	background: var(--bg);
	color: var(--fg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
	font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--accent); margin-bottom: 16px;
}
.muted { color: var(--fg-dim); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; justify-content: center;
	font-family: var(--font-ui); font-size: 15px; font-weight: 600;
	padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
	cursor: pointer; transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; background: transparent; box-shadow: none; }

/* ---------- nav ---------- */
.nav {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.brand .mark {
	width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
	display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 32px;
	box-shadow: var(--shadow-sm);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 20px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--fg-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* features dropdown */
.nav-drop { position: relative; display: inline-flex; align-items: center; padding: 22px 0; margin: -22px 0; }
.nav-drop-t { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: 9px; color: var(--fg-faint); transition: transform 0.2s ease; }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px); min-width: 204px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 7px; display: grid; gap: 1px; opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 60; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--fg-dim); white-space: nowrap; }
.nav-menu a:hover { background: var(--surface-2); color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
	width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent;
	color: var(--fg-dim); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
	transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface); color: var(--fg); }
/* Theme toggle floats at the bottom-right of the viewport on every page. */
.theme-fab {
	position: fixed; right: 20px; bottom: 20px; z-index: 80;
	background: var(--surface); box-shadow: var(--shadow);
}
.theme-fab:hover { background: var(--surface-2); }

/* Floating "Start writing" CTA — appears bottom-right after the hero scrolls away,
   stacked just above the theme toggle. */
.cta-fab {
	position: fixed; right: 20px; bottom: 74px; z-index: 79;
	display: inline-flex; align-items: center; gap: 7px;
	padding: 12px 20px; border-radius: 999px;
	background: var(--accent); color: var(--accent-ink);
	font-family: var(--font-ui); font-weight: 600; font-size: 14px; line-height: 1;
	box-shadow: var(--shadow); text-decoration: none;
	opacity: 0; transform: translateY(12px) scale(0.96); pointer-events: none;
	transition: opacity 0.28s ease, transform 0.28s ease, background 0.15s ease;
}
.cta-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.cta-fab:hover { background: var(--accent-hover, var(--accent)); filter: brightness(1.06); }
.cta-fab-arr { transition: transform 0.18s ease; }
.cta-fab:hover .cta-fab-arr { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
	.cta-fab { transition: opacity 0.2s ease; transform: none; }
	.cta-fab:not(.show) { transform: none; }
}
.lang {
	font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; color: var(--fg-dim);
	border: 1px solid var(--border); border-radius: 10px; background: transparent; padding: 8px 11px; cursor: pointer;
}
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 18.5px; color: var(--fg-dim); max-width: 30em; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--fg-faint); display: flex; align-items: center; gap: 8px; }
.hero-note + .hero-note { margin-top: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* hero app mock */
.mock {
	background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
	overflow: hidden; transform: rotate(0.4deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: inline-block; }
.mock-bar .title { margin-left: 10px; font-family: var(--font-display); font-size: 14px; color: var(--fg-dim); }
.mock-body { display: grid; grid-template-columns: 116px 1fr; min-height: 312px; }
.mock-binder { border-right: 1px solid var(--border); padding: 14px 12px; background: var(--surface-2); font-size: 11.5px; }
.mock-binder .kick { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); font-size: 9.5px; margin: 0 0 8px; }
.mock-binder .row { padding: 5px 7px; border-radius: 6px; color: var(--fg-dim); margin-bottom: 2px; }
.mock-binder .row.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mock-page { padding: 22px 24px; position: relative; }
.mock-page .h { font-family: var(--font-display); font-size: 19px; margin-bottom: 12px; }
.mock-page p { font-family: var(--font-display); font-size: 14.5px; line-height: 1.7; color: var(--fg-dim); margin-bottom: 9px; }
.ent { color: var(--accent); border-bottom: 1.5px solid var(--accent-soft); font-style: normal; }
.flag { background: rgba(181, 121, 42, 0.16); border-radius: 3px; padding: 0 2px; }
.ai-card {
	position: absolute; right: 16px; bottom: 16px; width: 210px; background: var(--surface-2);
	border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 13px;
}
.ai-card .hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.ai-card .spark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ai-card p { font-size: 11.5px; line-height: 1.5; color: var(--fg-dim); font-family: var(--font-ui); }
.ai-card .ok { color: var(--accent); font-weight: 600; }

/* ---------- hero guided journey (stacking carousel) ---------- */
.hero-show { position: relative; }
.stack { position: relative; height: 372px; }
.stack-card {
	position: absolute; top: 50%; left: 0; right: 0;
	transform: translateY(-50%) scale(calc(1 - var(--d, 0) * 0.05)) translateY(calc(var(--d, 0) * 20px));
	transform-origin: 50% 50%;
	transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
	will-change: transform, opacity;
}
.stack-card .mock { transform: none; margin: 0; }
.stack-card:not(.front) .mock { box-shadow: var(--shadow-sm); }

/* live-presence chips in the write card's title bar (co-writers) */
.mock-live { margin-left: auto; display: inline-flex; align-items: center; }
.mock-av { width: 19px; height: 19px; border-radius: 50%; color: #faf6ec; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--surface-2); }
.mock-av + .mock-av { margin-left: -7px; }
.mock-live-t { margin-left: 8px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; color: var(--fg-faint); }

/* numbered step rail + caption */
.journey { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.j-step {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--fg-dim);
	background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
	padding: 6px 13px 6px 6px; transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.j-step:hover { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.j-n { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--fg-faint); transition: background 0.16s, color 0.16s; }
.j-step.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.j-step.on .j-n { background: var(--accent-ink); color: var(--accent); }
.journey-cap { margin-top: 14px; font-size: 14px; color: var(--fg-dim); min-height: 3em; max-width: 34em; line-height: 1.55; }

/* export / compile mock */
.mock-export .mx-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.mx-formats { display: flex; gap: 7px; flex-wrap: wrap; }
.mx-fmt { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--fg-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 11px; }
.mx-fmt.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.mx-preview { flex: 1; display: flex; align-items: stretch; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.mx-book { width: 80%; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow-sm); padding: 18px 22px; }
.mx-bt { font-family: var(--font-display); font-size: 17px; font-weight: 600; text-align: center; }
.mx-bs { font-family: var(--font-display); font-size: 11.5px; font-style: italic; color: var(--fg-faint); text-align: center; margin-top: 3px; }
.mx-rule { display: block; width: 32px; height: 2px; background: var(--accent); margin: 13px auto; opacity: 0.6; }
.mx-ch { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--fg-dim); margin-bottom: 10px; }
.mx-lines { display: grid; gap: 6px; }
.mx-lines span { height: 4px; border-radius: 3px; background: var(--border); }
.mx-note { font-size: 10.5px; color: var(--fg-faint); text-align: center; }

/* ---------- sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 16px; }
.section-head p { font-size: 17.5px; color: var(--fg-dim); }

/* feature pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px;
	transition: transform 0.16s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card .glyph {
	width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; font-size: 21px; margin-bottom: 18px;
}
.card h3 { font-size: 22px; margin-bottom: 9px; }
.card p { color: var(--fg-dim); font-size: 15px; }

/* AI spotlight */
.spotlight { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
.spot > .eyebrow { text-align: left; }
.spot-list { list-style: none; margin: 26px 0 30px; display: grid; gap: 16px; }
.spot-list li { display: flex; gap: 13px; }
.spot-list .ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.spot-list strong { display: block; font-size: 15.5px; margin-bottom: 2px; }
.spot-list span { font-size: 14px; color: var(--fg-dim); }
.spot-aside { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.spot-aside h3 { font-size: 20px; margin-bottom: 6px; }
.spot-aside .lead { color: var(--fg-dim); font-size: 14.5px; margin-bottom: 20px; }
.choice { display: grid; gap: 12px; }
.choice .opt { border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; background: var(--surface); }
.choice .opt h4 { font-family: var(--font-ui); font-size: 14.5px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 7px; }
.choice .opt p { font-size: 13px; color: var(--fg-dim); }
.tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 2px 9px; }
.aside-note { font-size: 13px; color: var(--fg-dim); margin-top: 18px; }

/* ---------- feature tour ---------- */
.tour { display: grid; gap: 60px; }
.tour-row { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.tour-row.reverse .tour-copy { order: 2; }
.tour-copy .eyebrow { text-align: left; margin-bottom: 12px; }
.tour-copy h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.tour-copy > p { font-size: 16px; color: var(--fg-dim); margin-bottom: 18px; }
.tour-points { list-style: none; display: grid; gap: 9px; }
.tour-points li { font-size: 14px; color: var(--fg-dim); display: flex; gap: 10px; align-items: flex-start; }
.tour-points li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.tour-visual .mock { transform: none; }

/* ---------- scrollytelling tour ---------- */
.scrolly-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 48px; }
.scrolly-steps, .scrolly-stage { min-width: 0; }
.sc-copy .eyebrow { text-align: left; margin-bottom: 12px; }
.sc-copy h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.sc-copy > p { font-size: 16px; color: var(--fg-dim); margin-bottom: 18px; }
.sc-vis-inline { display: none; }
.sc-vis-inline .mock { transform: none; }
.sc-card > .mock { transform: scale(1.08); }

.sc-sticky { position: sticky; top: 14vh; height: 72vh; }
.sc-card { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); pointer-events: none; }
/* one fixed height for every pinned mock, so the card doesn't grow/shrink as it crossfades */
.sc-card > .mock { width: 100%; height: 464px; display: flex; flex-direction: column; }
.sc-card > .mock > .mock-body,
.sc-card > .mock > .mv-body,
.sc-card > .mock > .mp-board,
.sc-card > .mock > .ma-view.on,
.sc-card > .mock > .gr-body { flex: 1 1 auto; min-height: 0; }
/* centre each plan view's content so shorter views (threads, timeline) aren't bottom-heavy */
.sc-card .mp-board.mp-view.on { display: flex; flex-direction: column; justify-content: center; }

/* narrative threads — swimlane graph with shared scenes */
.mp-threads2 { padding: 2px 4px; }
.th-svg { width: 100%; height: auto; display: block; }
.th-base { stroke: var(--border); stroke-width: 1.4; }
.th-blend { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0.55; }
.th-edge { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.th-node { stroke: var(--surface); stroke-width: 2; }
.th-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.th-lab { fill: var(--fg-dim); font-size: 11px; font-family: var(--font-ui); font-weight: 600; }
.th-code { fill: var(--fg-faint); font-size: 10px; font-family: var(--font-mono); text-anchor: middle; }
.th-code.th-shared { fill: var(--accent); font-weight: 700; }
.th-legend { display: flex; gap: 18px; justify-content: center; margin-top: 4px; font-size: 10.5px; color: var(--fg-faint); }
.th-legend span { display: inline-flex; align-items: center; gap: 6px; }
.th-lg-ring { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); }
.th-lg-blend { width: 14px; border-top: 1.5px dashed var(--accent); }

/* timeline — POV swimlanes with scene chips */
.tl { padding: 2px 4px; }
.tl-axis { position: relative; height: 15px; margin: 0 0 6px 96px; border-bottom: 1px solid var(--border); }
.tl-axis span { position: absolute; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: var(--fg-faint); }
.tl-lane { display: grid; grid-template-columns: 96px 1fr; align-items: center; height: 46px; }
.tl-pov { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--fg-dim); }
.tl-pov i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.tl-track { position: relative; height: 46px; border-bottom: 1px dashed var(--border); }
.tl-chip { position: absolute; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); }

/* relationship graph mock */
.mock-graph .gr-body { display: flex; height: 100%; }
.sc-vis-inline .mock-graph .gr-body { height: 300px; }   /* mobile inline has no flex parent to fill */
.fhero-visual .mock-graph .gr-body, .tour-visual .mock-graph .gr-body { height: 380px; }   /* feature pages: no flex parent */
.mock-graph .gr-canvas { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; background-color: var(--surface); background-image: radial-gradient(var(--border) 0.9px, transparent 0.9px); background-size: 20px 20px; }
.gr-svg { width: 100%; height: 100%; display: block; touch-action: none; }
.gr-edge { stroke: var(--fg-faint); stroke-width: 1.3; opacity: 0.55; }
.gr-node { stroke: var(--surface); stroke-width: 2.5; }
.gr-n { cursor: grab; }
.gr-n:active { cursor: grabbing; }
.gr-n, .gr-edge { transition: opacity 0.2s ease; }
.gr-n.dim, .gr-edge.dim { opacity: 0.2; }
.gr-n.hot .gr-node { stroke: var(--accent); stroke-width: 3.5; }
.gr-edge.hot { stroke: var(--accent); opacity: 0.9; stroke-width: 1.8; }
/* click-to-open entity sidebar */
.gr-side { flex: 0 0 0; width: 0; overflow: hidden; background: var(--surface-2); border-left: 1px solid var(--border); transition: flex-basis 0.28s ease, width 0.28s ease; }
.gr-body.open .gr-side { flex: 0 0 202px; width: 202px; }
.gr-sin { width: 202px; padding: 15px 15px 16px; position: relative; }
.gr-close { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--fg-dim); font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gr-idrow { display: flex; gap: 10px; align-items: center; margin: 2px 0 12px; }
.gr-init { fill: #faf6ec; font-family: var(--font-display); font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.gr-lab { fill: var(--fg-dim); font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.gr-ctl { position: absolute; display: inline-flex; align-items: center; gap: 6px; }
.gr-ctl.gr-tl { top: 12px; left: 12px; }
.gr-ctl.gr-tr { top: 12px; right: 12px; font-size: 10px; color: var(--fg-faint); }
.gr-ctl.gr-br { bottom: 12px; right: 12px; flex-direction: column; }
.gr-btn { font-family: var(--font-ui); font-size: 11px; font-weight: 600; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; box-shadow: var(--shadow-sm); }
.gr-btn.gr-ico { width: 27px; height: 27px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.sc-card.on { opacity: 1; transform: none; pointer-events: auto; }

@media (min-width: 921px) {
	.sc-step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
	.sc-copy { opacity: 0.32; transition: opacity 0.5s ease; }
	.sc-step.active .sc-copy { opacity: 1; }
}
@media (max-width: 920px) {
	.scrolly-grid { grid-template-columns: 1fr; gap: 0; }
	.scrolly-stage { display: none; }
	.sc-vis-inline { display: block; margin-top: 22px; }
	.sc-step { padding: 26px 0 40px; border-bottom: 1px solid var(--border); }
	.sc-step:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) {
	.scrolly-stage { display: none; }
	.sc-vis-inline { display: block; margin-top: 22px; }
	.sc-step { min-height: 0 !important; padding: 26px 0 40px; }
	.sc-copy { opacity: 1 !important; }
}

/* plan mockup */
.mp-tabs { display: flex; align-items: center; flex-wrap: nowrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 10.5px; }
.mp-tab { padding: 4px 7px; border-radius: 7px; color: var(--fg-dim); white-space: nowrap; }
.mp-seg { flex: 0 0 auto; }
.mp-tab.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mp-seg { margin-left: auto; display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mp-seg b, .mp-seg span { padding: 4px 9px; font-weight: 500; color: var(--fg-dim); }
.mp-seg b { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mp-board { padding: 16px 16px 20px; }
.mp-part { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 12px; }
.mp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.mp-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px 11px; overflow: hidden; }
.mp-card.ghost { opacity: 0.6; }
.mp-stripe { display: flex; gap: 3px; margin: -10px -11px 9px; }
.mp-stripe i { height: 4px; flex: 1; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mp-code { font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); }
.mp-status { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 2px 6px; border-radius: 20px; }
.mp-status.done { background: var(--accent-soft); color: var(--accent); }
.mp-status.draft { background: rgba(201, 138, 58, 0.18); color: #b5792a; }
.mp-status.idea { background: var(--surface); color: var(--fg-faint); border: 1px solid var(--border); }
.mp-ttl { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.mp-syn { font-size: 11px; color: var(--fg-dim); line-height: 1.45; margin-bottom: 10px; min-height: 32px; }
.mp-foot { display: flex; align-items: center; justify-content: space-between; }
.mp-pov { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--fg-dim); }
.mp-pov b { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; }
.mp-wc { font-size: 10px; font-weight: 600; color: var(--fg-faint); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

/* beat-sheet view (Plan → Beat Sheet tab): a proven structure laid over the book */
.bs { display: flex; flex-direction: column; gap: 6px; }
.bs-head { display: flex; align-items: baseline; justify-content: space-between; }
.bs-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.bs-src { font-size: 10px; color: var(--fg-faint); margin-left: 8px; }
.bs-prog { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 20px; padding: 2px 9px; }
.bs-rail { position: relative; height: 13px; margin: 4px 2px 6px; }
.bs-track { position: absolute; top: 5px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--border); display: block; }
.bs-track b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.bs-node { position: absolute; top: 2px; width: 9px; height: 9px; border-radius: 50%; transform: translateX(-50%); background: var(--surface); border: 2px solid var(--c, var(--border)); }
.bs-node.done { background: var(--c, var(--accent)); }
.bs-act { font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c, var(--fg-faint)); margin: 3px 0 0; }
.bs-beat { display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; }
.bs-beat.done { opacity: 0.82; }
.bs-check { flex: 0 0 15px; width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--border); margin-top: 1px; position: relative; }
.bs-beat.done .bs-check { background: var(--accent); border-color: var(--accent); }
.bs-beat.done .bs-check::after { content: "✓"; position: absolute; inset: 0; color: var(--accent-ink); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.bs-bd { flex: 1; min-width: 0; }
.bs-bt { font-family: var(--font-display); font-size: 12.5px; font-weight: 600; }
.bs-beat.done .bs-bt { text-decoration: line-through; text-decoration-color: var(--fg-faint); }
.bs-bb { font-size: 10.5px; color: var(--fg-dim); line-height: 1.4; margin: 2px 0 0; }
.bs-scene { flex: 0 0 auto; align-self: center; font-size: 9.5px; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.bs-scene.bs-empty { color: var(--fg-faint); border-style: dashed; }
/* compact the beat sheet inside the fixed-height scrollytelling card so nothing clips */
.sc-card .bs { gap: 4px; }
.sc-card .bs-beat { padding: 5px 11px; }

/* community club mock (clubs · sprints · leaderboards) */
.mock-cmty { font-family: var(--font-ui); }
.cm-banner { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: linear-gradient(120deg, var(--accent-soft), var(--surface-2)); }
.cm-crest { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 38px; }
.cm-bname { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.cm-btag { font-size: 10.5px; color: var(--fg-dim); }
.cm-tags { margin-left: auto; display: flex; gap: 5px; }
.cm-tags span { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: var(--surface); border-radius: 20px; padding: 2px 8px; }
.cm-membar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.cm-avs { display: inline-flex; }
.cm-avs i { width: 21px; height: 21px; border-radius: 50%; color: #faf6ec; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--surface); font-style: normal; }
.cm-avs i + i { margin-left: -7px; }
.cm-mct { font-size: 11px; color: var(--fg-dim); }
.cm-sprint { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--fg-dim); }
.cm-live { color: #c0563a; font-weight: 700; font-size: 9px; letter-spacing: 0.03em; }
.cm-join { font-size: 9.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 2px 8px; }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 16px; }
.cm-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 13px; }
.cm-h { font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 8px; }
.cm-goal { display: flex; align-items: baseline; gap: 7px; }
.cm-big { font-family: var(--font-display); font-size: 25px; font-weight: 600; color: var(--accent); }
.cm-of { font-size: 10.5px; color: var(--fg-faint); }
.cm-bar { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; margin: 9px 0 7px; }
.cm-bar b { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cm-note { font-size: 10px; color: var(--fg-dim); margin: 0; }
.cm-lhead { display: flex; align-items: center; justify-content: space-between; }
.cm-scope { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; margin-bottom: 8px; }
.cm-scope b, .cm-scope span { font-size: 8.5px; padding: 2px 7px; font-weight: 600; color: var(--fg-dim); }
.cm-scope b { background: var(--accent); color: var(--accent-ink); }
.cm-lb { display: flex; flex-direction: column; gap: 2px; }
.cm-row { display: grid; grid-template-columns: 15px 1fr auto auto; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-size: 11px; }
.cm-row.you { background: var(--accent-soft); }
.cm-rank { color: var(--fg-faint); font-weight: 700; }
.cm-nm { color: var(--fg); }
.cm-row.you .cm-nm { color: var(--accent); font-weight: 700; }
.cm-wc { font-family: var(--font-mono); font-size: 9.5px; color: var(--fg-dim); }
.cm-strk { font-size: 9.5px; color: #c0563a; white-space: nowrap; }
.cmty-aside { padding: 0; background: none; border: none; box-shadow: none; }
.cmty-aside .mock { transform: none; }

/* vault mockup */
.mv-body { display: grid; grid-template-columns: 104px 1fr 96px; min-height: 300px; }
.mv-tree { border-right: 1px solid var(--border); background: var(--surface-2); padding: 12px 10px; }
.mv-kick { font-size: 8.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 6px; }
.mv-tree .mv-kick ~ .mv-kick { margin-top: 12px; }
.mv-item { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--fg-dim); padding: 4px 5px; border-radius: 6px; margin-bottom: 1px; }
.mv-item i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.mv-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.mv-detail { padding: 0 16px 16px; overflow: hidden; }
.mv-cover { height: 46px; margin: 0 -16px; background: linear-gradient(120deg, var(--accent-soft), var(--surface-2)); }
.mv-id { display: flex; gap: 10px; align-items: flex-end; margin: -18px 0 12px; }
.mv-av { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; border: 2px solid var(--surface); flex: 0 0 40px; }
.mv-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.mv-role { font-size: 10.5px; color: var(--fg-dim); }
.mv-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.mv-badges span { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 8px; }
.mv-badges .thread { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.mv-sum { font-size: 11.5px; color: var(--fg-dim); line-height: 1.5; margin-bottom: 12px; }
.mv-alias { font-size: 11px; color: var(--fg-faint); line-height: 1.5; margin: -6px 0 12px; }
.mv-back { font-size: 10.5px; color: var(--fg-faint); line-height: 1.5; border-top: 1px solid var(--border); padding-top: 10px; }
.mv-back b { color: var(--fg-dim); }
.mv-graph { border-left: 1px solid var(--border); background: var(--surface-2); padding: 12px 8px; }
.mv-svg { width: 100%; height: auto; margin-top: 6px; }
.mv-svg line { stroke: var(--border); stroke-width: 1.4; }
.mv-svg .nd circle { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.mv-svg .nd.hot circle { fill: var(--accent); }
.mv-svg .nd text { fill: var(--fg-dim); font-size: 7px; font-family: var(--font-ui); text-anchor: middle; font-weight: 600; }
.mv-svg .nd.hot text { fill: var(--accent-ink); }

/* analyze mockup */
.ma-tabs { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 11px; }
.ma-tabs b { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.ma-tabs span { color: var(--fg-faint); }
.ma-top { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 11px; padding: 14px; }
.ma-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.ma-h { font-size: 10.5px; font-weight: 700; color: var(--fg-dim); margin-bottom: 10px; }
.ma-donut { text-align: center; }
.ma-ring { width: 84px; height: 84px; border-radius: 50%; margin: 2px auto 12px; background: conic-gradient(#2f6f6a 0 70%, #3a83c0 70% 91%, #c98a3a 91% 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.ma-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface-2); }
.ma-ringc { position: relative; font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1; display: flex; flex-direction: column; }
.ma-ringc small { font-size: 8px; color: var(--fg-faint); font-family: var(--font-ui); font-weight: 500; }
.ma-leg { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--fg-dim); align-items: flex-start; }
.ma-leg span { display: inline-flex; align-items: center; gap: 5px; }
.ma-leg i { width: 7px; height: 7px; border-radius: 2px; }
.ma-cols { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin-top: 4px; }
.ma-cols span { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-width: 0; }
.ma-cols span.flagged { background: #c98a3a; }
.ma-note { font-size: 9.5px; color: #b5792a; margin-top: 9px; }
.ma-threads { margin: 0 14px 16px; }
.ma-thread { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 10.5px; }
.ma-thread:last-child { margin-bottom: 0; }

/* ---------- interactive mock states ---------- */
.mp-tab, .mp-sopt, .ma-tab, .mv-item { cursor: pointer; }
.mp-tab { transition: background 0.15s, color 0.15s; }
.mp-tab:hover { color: var(--fg); }
.mp-sopt { transition: background 0.15s, color 0.15s; }
.mp-sopt.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.mp-board.mp-view { display: none; }
.mp-board.mp-view.on { display: block; }
.mv-item { transition: background 0.15s, color 0.15s; }
.mv-item:hover { background: var(--surface-2); color: var(--fg); }
.ma-tab { color: var(--fg-faint); padding-bottom: 3px; transition: color 0.15s; }
.ma-tab:hover { color: var(--fg-dim); }
.ma-tab.on { color: var(--accent); font-weight: 600; border-bottom: 2px solid var(--accent); }
.ma-view { display: none; }
.ma-view.on { display: block; }

/* plan · outliner */
.mp-outline .mp-part { margin: 2px 0 8px; }
.mp-outline .mp-part + .mp-orow { margin-top: 0; }
.mp-outline p.mp-part ~ p.mp-part { margin-top: 14px; }
.mp-orow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); margin-bottom: 6px; }
.mp-orow.ghost { opacity: 0.6; }
.mp-ocode { font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint); }
.mp-ottl { font-family: var(--font-display); font-size: 13px; font-weight: 600; flex: 1; }
.mp-owc { font-size: 10px; font-weight: 600; color: var(--fg-faint); }

/* plan · narrative threads */
.mp-threads { display: grid; gap: 16px; padding: 10px 4px; }
.mp-thread { display: grid; grid-template-columns: 126px 1fr; align-items: center; gap: 12px; }
.mp-tname { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; }
.mp-tname i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mp-track { position: relative; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--tc, var(--accent)) 26%, var(--border)); }
.mp-track b { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--tc, var(--accent)); transform: translate(-50%, -50%); border: 2px solid var(--surface); }

/* plan · timeline */
.mp-timeline { position: relative; height: 116px; }
.mp-tline { position: absolute; left: 14px; right: 14px; top: 34px; height: 2px; background: var(--border); }
.mp-tev { position: absolute; top: 28px; width: 80px; margin-left: -40px; text-align: center; }
.mp-tdot { display: block; width: 13px; height: 13px; border-radius: 50%; margin: 0 auto; border: 2px solid var(--surface); position: relative; z-index: 1; }
.mp-tlab { display: block; margin-top: 9px; font-family: var(--font-display); font-size: 11px; font-weight: 600; line-height: 1.2; }
.mp-tday { display: block; margin-top: 3px; font-size: 9px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.05em; }

/* analyze · reports */
.ma-rep { display: grid; grid-template-columns: 84px 24px 1fr; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 11px; }
.ma-rep:last-child { margin-bottom: 0; }
.ma-rlbl { color: var(--fg-dim); font-weight: 600; }
.ma-rct { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); text-align: right; }
.ma-rbar { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.ma-rbar b { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.ma-crit { margin-top: 12px; }
.ma-critq { font-family: var(--font-display); font-size: 12.5px; line-height: 1.5; color: var(--fg-dim); font-style: italic; }
/* analyze — 4-tab parity: presence heatmap, readability, reviewer */
.ma-tabs { flex-wrap: nowrap; overflow: hidden; }
.ma-tab { white-space: nowrap; }
.ma-chead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ma-note { font-size: 9.5px; color: var(--fg-faint); white-space: nowrap; }
.ma-heat { margin: 14px 14px 0; }
.mh { display: grid; gap: 3px; align-items: center; }
.mh-c { font-family: var(--font-mono); font-size: 8.5px; color: var(--fg-faint); text-align: center; }
.mh-l { font-size: 10px; color: var(--fg-dim); font-weight: 600; white-space: nowrap; }
.mh i { height: 15px; border-radius: 3px; background: var(--c); opacity: var(--o); }
.ma-top2 { grid-template-columns: 0.82fr 1.18fr; }
.ma-sb { margin-bottom: 9px; }
.ma-sb:last-child { margin-bottom: 0; }
.ma-sb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; font-weight: 600; margin-bottom: 4px; }
.ma-sb-m { color: var(--fg-faint); font-weight: 500; white-space: nowrap; }
.ma-sb-tr { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.ma-sb-tr b { display: block; height: 100%; border-radius: 6px; }
.rd-hero { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rd-big { font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1; }
.rd-band { font-size: 15px; color: var(--accent); font-weight: 600; }
.rd-sub { font-size: 12px; color: var(--fg-faint); }
.rd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 12px 14px; }
.rd-m { padding: 11px 12px; }
.rd-v { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1; margin: 3px 0; }
.rd-n { font-size: 9.5px; color: var(--fg-faint); }
.ma-cols span.rd-hard { background: #d8513f; }
.mr-kick { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin: 14px 14px 8px; }
.mr-card { margin: 0 14px; }
.mr-t { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.mr-sum { font-size: 11.5px; color: var(--fg-dim); line-height: 1.5; margin-bottom: 8px; }
.mr-pt { font-size: 11px; color: var(--fg-dim); }
.mr-arr { color: var(--accent); font-weight: 700; }
.mr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.mr-rev { padding: 12px 13px; }
.mr-top { display: flex; justify-content: space-between; align-items: center; }
.mr-name { font-weight: 700; font-size: 12px; }
.mr-stars { color: #e0a93a; font-size: 11px; letter-spacing: 1px; }
.mr-persona { font-size: 9.5px; color: var(--fg-faint); margin: 1px 0 6px; }
.mr-head { font-family: var(--font-display); font-style: italic; font-size: 12.5px; color: var(--fg); margin-bottom: 4px; }
.mr-body { font-size: 10.5px; color: var(--fg-dim); line-height: 1.45; }
.mr-disc { font-size: 9.5px; color: var(--fg-faint); margin: 10px 14px 0; }
.ma-tlbl { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 118px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-tlbl i { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 8px; }
.ma-bar { flex: 1; height: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.ma-bar b { display: block; height: 100%; background: var(--accent); }
.ma-pct { flex: 0 0 32px; text-align: right; font-weight: 600; color: var(--fg-faint); }

/* ---------- who it's for ---------- */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.persona { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform 0.16s ease, box-shadow 0.2s ease; }
.persona:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.persona .glyph { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.persona h3 { font-size: 19px; margin-bottom: 8px; }
.persona p { font-size: 13.5px; color: var(--fg-dim); line-height: 1.55; }

/* ---------- pricing ---------- */
.bill-toggle { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 30px; padding: 5px; }
.bill-toggle button { font-family: var(--font-ui); font-size: 14px; font-weight: 600; border: none; background: transparent; color: var(--fg-dim); padding: 8px 18px; border-radius: 24px; cursor: pointer; transition: background 0.16s, color 0.16s; }
.bill-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.save-note { font-size: 13px; color: var(--accent); font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.plan.feature { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .pop { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 20px; }
.plan .pname { font-family: var(--font-display); font-size: 23px; font-weight: 600; margin-bottom: 4px; }
.plan .ptag { font-size: 13px; color: var(--fg-faint); min-height: 34px; margin-bottom: 12px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan .price .amt { font-family: var(--font-display); font-size: 40px; font-weight: 600; }
.plan .price .per { font-size: 14px; color: var(--fg-dim); }
.plan .billed { font-size: 12px; color: var(--fg-faint); min-height: 18px; margin-bottom: 18px; }
.plan .credits { font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 7px 10px; text-align: center; margin-bottom: 18px; }
.plan .credits.none { color: var(--fg-faint); background: transparent; border: 1px dashed var(--border); }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; flex: 1; }
.plan li { font-size: 13.5px; color: var(--fg-dim); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; flex: 0 0 auto; }
.packs-note { text-align: center; margin-top: 22px; font-size: 14px; color: var(--fg-dim); }

/* ---------- comparison ---------- */
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--surface); }
table.compare th, table.compare td { padding: 13px 16px; text-align: center; font-size: 13.5px; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface-2); font-family: var(--font-ui); font-weight: 700; font-size: 14px; position: sticky; top: 0; }
table.compare thead th.feat-h { text-align: left; }
table.compare td.feat { text-align: left; color: var(--fg); font-weight: 500; }
table.compare tr.group td { background: var(--accent-soft); color: var(--accent); font-weight: 700; text-align: left; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
table.compare .yes { color: var(--accent); font-weight: 700; }
table.compare .no { color: var(--fg-faint); }
table.compare .val { color: var(--fg-dim); font-size: 12.5px; }
table.compare tr.price-row td { font-weight: 700; color: var(--fg); background: var(--surface-2); }

/* ---------- vs competitors ---------- */
.vs-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.vs { width: 100%; border-collapse: collapse; min-width: 780px; background: var(--surface); }
table.vs th, table.vs td { padding: 13px 14px; text-align: center; font-size: 13.5px; border-bottom: 1px solid var(--border); }
table.vs thead th { background: var(--surface-2); font-family: var(--font-ui); font-weight: 700; position: sticky; top: 0; }
table.vs thead th.vs-ws-h { background: var(--accent); color: var(--accent-ink); }
table.vs th.feat-h { text-align: left; }
table.vs td.feat { text-align: left; color: var(--fg); font-weight: 500; }
table.vs td.vs-ws { background: var(--accent-soft); }
table.vs .vs-yes { color: var(--accent); font-weight: 700; font-size: 15px; }
table.vs .vs-part { color: #b5792a; font-weight: 700; cursor: help; }
.soon-pill { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); background: var(--accent); border-radius: 20px; padding: 3px 9px; vertical-align: middle; }
table.vs .vs-no { color: var(--fg-faint); }
table.vs .vs-val { font-size: 12.5px; color: var(--fg-dim); }
table.vs tr.vs-price td { font-weight: 700; background: var(--surface-2); }
table.vs tr.vs-price td.vs-ws { background: var(--accent-soft); }
table.vs tr.vs-price td.vs-ws .vs-val { color: var(--accent); }
[data-tip] { cursor: help; }

/* themed tooltip (single node on <body>, never clipped by scroll containers) */
.tip {
	position: fixed; top: 0; left: 0; z-index: 100; max-width: 270px;
	background: var(--fg); color: var(--bg);
	font-family: var(--font-ui); font-size: 12px; font-weight: 500; line-height: 1.5;
	padding: 10px 13px; border-radius: 10px; box-shadow: var(--shadow);
	white-space: pre-line; text-align: left; pointer-events: none;
	opacity: 0; visibility: hidden; transform: translateY(3px);
	transition: opacity 0.14s ease, transform 0.14s ease;
}
.tip.on { opacity: 1; visibility: visible; transform: none; }
.tip::after {
	content: ""; position: absolute; left: var(--ax, 50%); top: 100%;
	transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--fg);
}
.tip.below::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--fg); }

.vs-legend { text-align: center; font-size: 12.5px; color: var(--fg-faint); margin-top: 14px; }
.vs-note { text-align: center; font-size: 13px; color: var(--fg-faint); margin: 8px auto 0; max-width: 640px; }

/* ---------- certification ladder ---------- */
.cert-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.cert-ladder { display: grid; gap: 10px; }
.cert-row {
	display: flex; gap: 14px; align-items: center; background: var(--surface-2);
	border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px;
}
.cert-row.top { border-color: var(--accent); box-shadow: var(--shadow-sm); background: var(--surface); }
.cert-sw { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px; border: 1px solid rgba(40, 32, 16, 0.18); }
.cert-row .nm { font-family: var(--font-display); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cert-row .ds { font-size: 13px; color: var(--fg-dim); margin-top: 1px; }
.cert-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent-ink); background: var(--accent); border-radius: 20px; padding: 2px 9px; }
.cert-note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.cert-note h3 { font-size: 22px; margin-bottom: 12px; }
.cert-note p { color: var(--fg-dim); font-size: 15px; margin-bottom: 22px; }

/* ---------- download ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.dl-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl-card .os { width: 52px; height: 52px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.dl-card .os svg { width: 28px; height: 28px; }
.dl-card .os-ios { font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.5px; line-height: 1; }
.dl-card h3 { font-size: 18px; margin-bottom: 4px; }
.dl-card .meta { font-size: 12px; color: var(--fg-faint); margin-bottom: 16px; }
/* Five cards now share the row that used to hold four, so a full-bleed pill overwhelms the
   narrower card — size the button to its label instead (same scale as the hero buttons). */
.dl-card .btn { width: auto; padding: 10px 18px; font-size: 14px; }
.dl-web { display: flex; align-items: center; gap: 15px; max-width: 540px; margin: 22px auto 0; padding: 16px 20px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); text-align: left; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.dl-web:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.dl-web-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.dl-web-ic svg { width: 23px; height: 23px; }
.dl-web-copy { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dl-web-copy b { font-size: 15px; font-weight: 700; color: var(--fg); }
.dl-web-copy span { font-size: 13px; color: var(--fg-dim); }
.dl-web-go { flex: none; color: var(--accent); font-size: 20px; font-weight: 600; transition: transform 0.18s ease; }
.dl-web:hover .dl-web-go { transform: translateX(3px); }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; counter-reset: faq; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 2px 22px; transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); box-shadow: var(--shadow-sm); }
.faq summary { counter-increment: faq; font-weight: 600; font-size: 16px; padding: 18px 0; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq); flex: none; width: 27px; height: 27px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.faq summary::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform 0.22s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 20px 41px; color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }
.faq details[open] p { animation: faqIn 0.24s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- cta band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: 56px 40px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; color: var(--accent-ink); }
.cta-band p { font-size: 17px; opacity: 0.92; margin-bottom: 26px; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.foot-brand p { color: var(--fg-dim); font-size: 14px; max-width: 26em; margin-top: 14px; }
.foot-brand .foot-version { color: var(--fg-faint); font-size: 11.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.foot-col h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--fg-dim); margin-bottom: 9px; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--fg-faint); flex-wrap: wrap; }

/* ---------- motion & polish ---------- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; transition: transform 0.08s linear; }
.nav { transition: box-shadow 0.25s ease, background 0.25s ease; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(40, 32, 16, 0.09); background: color-mix(in srgb, var(--bg) 90%, transparent); }

a.card { display: block; color: inherit; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; font-size: 13.5px; font-weight: 600; color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity 0.22s ease, transform 0.22s ease; }
.card:hover .card-more { opacity: 1; transform: none; }
.card-more i { font-style: normal; transition: transform 0.2s ease; }
.card:hover .card-more i { transform: translateX(4px); }

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--stagger, 0ms); }
	.reveal.in { opacity: 1; transform: none; }
	/* cards, plans & ladder rungs settle in with a touch of scale */
	.card.reveal, .persona.reveal, .plan.reveal, .dl-card.reveal, .fhi.reveal, .xcard.reveal, .cert-row.reveal { transform: translateY(26px) scale(0.985); }

	/* two-column choreo — copy and visual sweep in from opposite sides */
	.choreo .tour-copy, .choreo .tour-visual, .choreo .spot, .choreo .spot-aside {
		opacity: 0; transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	}
	.choreo .tour-copy, .choreo .spot { transform: translateX(-36px); }
	.choreo .tour-visual, .choreo .spot-aside { transform: translateX(36px) scale(0.96); transition-delay: 0.1s; }
	.choreo.reverse .tour-copy { transform: translateX(36px); }
	.choreo.reverse .tour-visual { transform: translateX(-36px) scale(0.96); }
	.choreo.in .tour-copy, .choreo.in .tour-visual, .choreo.in .spot, .choreo.in .spot-aside { opacity: 1; transform: none; }

	/* hero deck parallax — compositor-driven where supported, a no-op elsewhere */
	@supports (animation-timeline: scroll()) {
		.hero-show { animation: heroPar linear both; animation-timeline: scroll(root); animation-range: 0 560px; }
	}

	.hero .eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-note { opacity: 0; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
	.hero h1 { animation-delay: 0.07s; }
	.hero-sub { animation-delay: 0.16s; }
	.hero-cta { animation-delay: 0.26s; }
	.hero-note { animation-delay: 0.34s; }
	.hero .stack { opacity: 0; animation: mockin 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards; }

	.fhero-copy > * { opacity: 0; animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
	.fhero-copy > *:nth-child(2) { animation-delay: 0.06s; }
	.fhero-copy > *:nth-child(3) { animation-delay: 0.14s; }
	.fhero-copy > *:nth-child(4) { animation-delay: 0.22s; }
	.fhero-visual { opacity: 0; animation: mockin 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.18s forwards; }

	.btn-primary { position: relative; overflow: hidden; }
	.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); pointer-events: none; }
	.btn-primary:hover::after { animation: sheen 0.7s ease; }

	.wr-dot { animation: pulse 2s ease-in-out infinite; }
	.caret { animation: blink 1.1s step-end infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes mockin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroPar { to { transform: translateY(-34px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0.4deg); } 50% { transform: translateY(-9px) rotate(0.4deg); } }
@keyframes sheen { to { left: 150%; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- write section aside ---------- */
.write-aside { display: grid; gap: 15px; }
.goal { display: flex; align-items: center; gap: 14px; }
.goal-ring { width: 62px; height: 62px; border-radius: 50%; flex: 0 0 62px; background: conic-gradient(var(--accent) 0 74%, var(--border) 74% 100%); display: flex; align-items: center; justify-content: center; position: relative; }
.goal-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface-2); }
.goal-pct { position: relative; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.goal-meta { display: flex; flex-direction: column; }
.goal-meta strong { font-size: 18px; font-family: var(--font-display); font-weight: 600; }
.goal-meta span { font-size: 12px; color: var(--fg-faint); }
.wr-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; }
.wr-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: var(--accent); }
.wr-mock { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 15px 17px; }
.wr-mock p { font-family: var(--font-display); font-size: 14.5px; line-height: 1.7; color: var(--fg-dim); margin: 0; }
.wr-mock p + p { margin-top: 3px; }
.caret { display: inline-block; width: 2px; height: 1.02em; background: var(--accent); margin-left: 1.5px; vertical-align: -2px; }

/* write section — animated typing demo (mirrors the app editor UI) */
.wr-editor { background: transparent; border: none; box-shadow: none; }   /* no outer box — just the title bar + prose */
.wr-mock-bar { display: flex; align-items: center; gap: 7px; padding: 0 2px 11px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.wr-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: inline-block; }
.wr-mock-bar .title { margin-left: 8px; font-family: var(--font-display); font-size: 14px; color: var(--fg-dim); }
.wr-page { padding: 14px 2px 0; position: relative; min-height: 300px; overflow: hidden; }
.wr-type, .wr-type2 { position: relative; z-index: 1; font-family: var(--font-display); font-size: 18.5px; line-height: 1.95; color: var(--fg-dim); margin: 0; min-height: 1.95em; }   /* min-height keeps the lines spaced when emptied; z-index sits the text above the selection overlay */
.wr-selz { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.wr-selrect { position: absolute; border-radius: 2px; }
.wr-selrect.sel-main { background: var(--accent-soft); }
.wr-selrect.sel-mara { background: rgba(70, 104, 138, 0.22); }
.wr-type2 { margin-top: 16px; }
.wr-caret { position: absolute; top: 0; left: 0; width: 2px; background: var(--accent); z-index: 4; transition: transform 0.09s linear, opacity 0.2s ease; animation: blink 1.1s step-end infinite; }
/* collaborator (second user) caret + name flag */
.wr-caret2 { position: absolute; top: 0; left: 0; width: 2px; background: #46688a; z-index: 4; opacity: 0; transition: transform 0.09s linear, opacity 0.2s ease; animation: blink 1.1s step-end infinite; }
.wr-flag { position: absolute; top: 0; left: 0; z-index: 4; font-family: var(--font-ui); font-size: 10px; font-weight: 700; color: #fff; background: #46688a; border-radius: 4px 4px 4px 0; padding: 1px 6px; white-space: nowrap; pointer-events: none; opacity: 0; transition: transform 0.09s linear, opacity 0.2s ease; }
.wr-sel2 { background: rgba(70, 104, 138, 0.22); border-radius: 2px; }   /* collaborator's own selection (Mara's colour) */
.wr-page .ent { color: inherit; border-bottom: 1.5px solid var(--accent); border-radius: 2px; cursor: pointer; transition: background 0.15s ease; }   /* app .ws-entity — underline only, text stays normal */
.wr-page .ent:hover { background: var(--accent-soft); }   /* interactive: highlight an entity on hover */
.wr-page .ent-pop { animation: entpop 0.6s ease; }
.wr-type .typo { text-decoration: underline wavy #d8513f; text-decoration-skip-ink: none; text-underline-offset: 2px; }   /* app .ws-misspell */
.wr-type .fixed { border-radius: 2px; animation: fixflash 0.9s ease; }
.wr-type .wr-sel { background: var(--accent-soft); border-radius: 2px; }
.wr-type em { font-style: italic; }
@keyframes entpop { 0% { background: var(--accent-soft); } 100% { background: transparent; } }
@keyframes fixflash { 0% { background: rgba(95, 176, 168, 0.32); } 100% { background: transparent; } }

/* emulated cursor */
.wr-cursor { position: absolute; top: 0; left: 0; z-index: 7; opacity: 0; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.2, 1), opacity 0.3s ease; }
.wr-cursor::after { content: ""; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; transform: scale(0.4); }
.wr-cursor.click::after { animation: curring 0.42s ease; }
@keyframes curring { 0% { opacity: 0.7; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }

/* entity hover popover — app proseInteractions card */
.wr-pop { position: absolute; z-index: 9; width: 224px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px var(--shadow); padding: 11px 13px; pointer-events: none; opacity: 0; transform: translateY(5px); transition: opacity 0.2s ease, transform 0.2s ease; }
.wr-pop.show { opacity: 1; transform: none; }
.wr-pop-h { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.wr-pop-av { width: 26px; height: 26px; border-radius: 50%; color: #faf6ec; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 26px; }
.wr-pop-n { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; line-height: 1.1; }
.wr-pop-r { font-size: 11px; color: var(--fg-faint); }
.wr-pop-b { font-size: 11.5px; line-height: 1.5; color: var(--fg-dim); }

/* spell context menu — app ContextMenu */
.wr-menu { position: absolute; z-index: 5; min-width: 172px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px var(--shadow); padding: 6px; opacity: 0; transform: scale(0.97); transform-origin: top left; transition: opacity 0.12s ease, transform 0.12s ease; }
.wr-menu.show { opacity: 1; transform: none; }
.wr-ml { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-faint); padding: 5px 10px 4px; }
.wr-mi { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; width: 100%; text-align: left; border: none; background: transparent; font-family: var(--font-ui); font-size: 13px; color: var(--fg); }
.wr-mi.hl { background: var(--surface-2); }
.wr-mi .ic { color: var(--accent); width: 14px; text-align: center; flex: 0 0 14px; }
.wr-mi .ic2 { width: 14px; text-align: center; color: var(--fg-faint); flex: 0 0 14px; }
.wr-msep { height: 1px; background: var(--border); margin: 5px 4px; }

/* formatting bubble — app .bubble */
.wr-bubble { position: absolute; z-index: 5; display: flex; align-items: center; gap: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 22px var(--shadow); padding: 5px; opacity: 0; transform: translateY(4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.wr-bubble.show { opacity: 1; transform: none; }
.wr-fb { width: 26px; height: 26px; border-radius: 6px; border: none; background: transparent; color: var(--fg-dim); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-ui); }
.wr-fb[data-b="b"] { font-weight: 800; }
.wr-fb[data-b="i"] { font-style: italic; font-family: var(--font-display); }
.wr-fb.active { background: var(--accent-soft); color: var(--accent); }
.wr-fdiv { width: 1px; height: 18px; background: var(--border); margin: 0 3px; }

/* ---------- feature deep-dive pages ---------- */
.fhero { padding: 60px 0 38px; }
.fhero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.fcrumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-faint); margin-bottom: 16px; }
.fcrumb a { color: var(--accent); font-weight: 600; }
.fcrumb a:hover { text-decoration: underline; }
.fhero-copy .eyebrow { text-align: left; }
.fhero-copy h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; margin-bottom: 16px; }
.fhero-copy h1 em { font-style: italic; color: var(--accent); }
.fhero-lead { font-size: 18px; color: var(--fg-dim); margin-bottom: 24px; max-width: 32em; }
.fhero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.fhi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fhi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; transition: transform 0.16s ease, box-shadow 0.2s ease; }
.fhi:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.fhi .glyph { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.fhi h3 { font-size: 18px; margin-bottom: 7px; }
.fhi p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; }

.xgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xcard { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; color: inherit; transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.xcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--accent); }
.xcard .glyph { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 38px; }
.xcard h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.xcard p { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }

/* spec panel (deep-row visual) */
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.spec-h { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.spec ul { list-style: none; display: grid; gap: 13px; }
.spec li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--fg-dim); }
.spec li i { width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-style: normal; flex: 0 0 28px; }

/* reviewer + certification mockups (feature pages) */
.rv-body { padding: 16px; display: grid; gap: 11px; }
.ai-card.rv-card { position: static; width: auto; }
.cert-mini { padding: 14px; display: grid; gap: 8px; }

/* ---------- AI policy page ---------- */
.policy { max-width: 720px; margin: 0 auto; }
.policy h2 { font-size: clamp(24px, 3vw, 32px); margin: 6px 0 16px; }
.policy p { font-size: 17px; color: var(--fg-dim); line-height: 1.78; margin-bottom: 18px; }
.policy p strong { color: var(--fg); font-weight: 600; }
.policy-quote { max-width: 720px; margin: 40px auto; border-left: 3px solid var(--accent); padding: 6px 0 6px 24px; }
.policy-quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.4; color: var(--fg); margin: 0 0 10px; }
.policy-quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--fg-faint); }
.policy h3 { font-size: 19px; margin: 28px 0 8px; }
.policy ul { margin: 0 0 18px; padding-left: 22px; }
.policy li { font-size: 16px; color: var(--fg-dim); line-height: 1.7; margin-bottom: 7px; }
.policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.policy .updated { font-size: 13px; color: var(--fg-faint); margin-bottom: 24px; }
.policy-tldr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; margin: 0 auto 40px; max-width: 720px; box-shadow: var(--shadow-sm); }
.policy-tldr h2 { margin: 0 0 6px; }
.policy-tldr .lede { font-size: 14px; color: var(--fg-faint); margin-bottom: 14px; }
.policy-tldr ul { margin: 0; }
.policy-tldr li { font-size: 15.5px; }
.ai-note { max-width: 680px; margin: 32px auto 0; text-align: center; font-size: 15px; color: var(--fg-dim); line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
	.nav-links { display: none; }
	.nav-toggle { display: inline-flex; }
	.hero-grid, .spot-grid, .cert-grid { grid-template-columns: 1fr; gap: 40px; }
	.cert-note { position: static; }
	.mock { transform: none; }
	.pillars { grid-template-columns: 1fr 1fr; }
	.plans { grid-template-columns: 1fr 1fr; }
	.persona-grid { grid-template-columns: 1fr 1fr; }
	.tour { gap: 44px; }
	.tour-row { grid-template-columns: 1fr; gap: 26px; }
	.tour-row.reverse .tour-copy { order: 0; }
	.dl-grid { grid-template-columns: repeat(2, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.fhero-grid { grid-template-columns: 1fr; gap: 36px; }
	.fhi-grid, .xgrid { grid-template-columns: 1fr 1fr; }
	section { padding: 60px 0; }
}
@media (max-width: 560px) {
	.pillars, .plans, .persona-grid, .fhi-grid, .xgrid { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr; }
	.hero { padding: 48px 0 40px; }
	.cta-band { padding: 40px 24px; }
	.nav-actions .btn-primary { display: none; } /* hero CTA + menu cover this */
	.nav-inner { gap: 10px; }
	.foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* mobile nav drawer */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; border-top: 1px solid var(--border); background: var(--surface); padding: 14px 24px 20px; }
.mobile-menu a { display: block; padding: 11px 0; font-weight: 600; color: var(--fg-dim); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-sub { display: grid; margin: 0 0 6px 6px; padding-left: 12px; border-left: 2px solid var(--border); }
.mobile-menu .mobile-sub a { padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--fg-faint); border-bottom: none; }

/* ============================================================
   Screenplay mock (audience.js SP_MOCK) — Fountain source + a
   live industry-formatted page, in the shared .mock chrome.
   ============================================================ */
.spm .spm-body { display: grid; grid-template-columns: 0.82fr 1fr; min-height: 316px; font-family: var(--font-mono); }
.spm-src { border-right: 1px solid var(--border); background: var(--surface-2); padding: 16px 16px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.spm-src .spm-l { font-size: 11px; line-height: 1.55; color: var(--fg-faint); white-space: pre; min-height: 1.55em; }
.spm-src .spm-l:empty { min-height: 0.9em; }
.spm-page { position: relative; background: var(--accent-ink); padding: 20px 26px; color: var(--fg-dim); overflow: hidden; }
.spm-page p { font-family: var(--font-mono); font-size: 11px; line-height: 1.55; margin: 0 0 9px; }
.spm-scene { text-transform: uppercase; letter-spacing: 0.02em; color: var(--fg); font-weight: 600; }
.spm-action { color: var(--fg-dim); }
.spm-char { text-transform: uppercase; color: var(--fg); margin-left: 38% !important; margin-bottom: 0 !important; }
.spm-paren { margin-left: 30% !important; margin-bottom: 0 !important; color: var(--fg-faint); font-style: italic; }
.spm-dia { margin: 0 14% 9px 20% !important; color: var(--fg-dim); }
.spm-trans { text-align: right; text-transform: uppercase; color: var(--fg-dim); }
.spm-folio { position: absolute; top: 12px; right: 18px; font-size: 10px; color: var(--fg-faint); }
@media (max-width: 620px) { .spm .spm-body { grid-template-columns: 1fr; } .spm-src { display: none; } }

/* ============================================================
   Audience pages — "Now / Coming" tags, honest hero note, and
   the dialogue-flow mock (audience.js FG_MOCK).
   ============================================================ */
.fhi-tag { font-family: var(--font-ui); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; position: relative; top: -1px; }
.fhi-tag.now { background: var(--accent-soft); color: var(--accent); }
.fhi-tag.coming { color: var(--fg-faint); border: 1px dashed var(--border); }
.fhero-note2 { display: flex; align-items: baseline; gap: 9px; margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--fg-faint); max-width: 52ch; }
.fhero-note2 .soon-pill { flex: none; }

/* dialogue-flow mock */
.fgm .fgm-canvas { position: relative; aspect-ratio: 680 / 360; min-height: 300px; background-color: var(--surface); background-image: radial-gradient(var(--border) 0.9px, transparent 0.9px); background-size: 20px 20px; overflow: hidden; }
.fgm-edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.fgm-edge { fill: none; stroke: var(--fg-faint); stroke-width: 1.6; opacity: 0.6; }
.fgm-elab { fill: var(--fg-faint); font-family: var(--font-ui); font-size: 12px; font-weight: 600; text-anchor: middle; }
.fgm-node { position: absolute; box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--fg-faint); border-radius: 9px; padding: 8px 10px; font-family: var(--font-ui); font-size: 11px; line-height: 1.35; color: var(--fg-dim); box-shadow: var(--shadow-sm); }
.fgm-node .fgm-k, .fgm-node .fgm-sp { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 3px; }
.fgm-node .fgm-k { color: var(--fg-faint); }
.fgm-node.dia { border-left-color: var(--accent); }
.fgm-node.dia .fgm-sp { color: var(--accent); }
.fgm-node.cond { border-left-color: #6a5fb0; }
.fgm-node.cond .fgm-k { color: #6a5fb0; }
.fgm-node.hub { border-left-color: #c98a3a; }
.fgm-node.hub .fgm-k { color: #c98a3a; }
.fgm-node.scene .fgm-k { color: var(--fg-faint); }
.fgm-var { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.fgm-var i { width: 7px; height: 7px; border-radius: 50%; background: #6a5fb0; }
.fgm-soon { margin-left: auto; font-family: var(--font-ui); font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); border: 1px dashed var(--border); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 560px) { .fgm-node { font-size: 9.5px; padding: 6px 8px; } .fgm-elab { font-size: 10px; } }

/* linked "Who it's for" personas → audience pages */
.persona-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease; }
.persona-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.persona-go { display: inline-block; margin-top: 12px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--accent); }
.persona-link:hover .persona-go { text-decoration: underline; }

/* comparison page + home "compare" teaser */
.vs-cta { margin-top: 26px; }
.vs-cta-jump { margin-top: 12px; font-size: 13.5px; color: var(--fg-faint); }
.vs-cta-jump a { color: var(--accent); font-weight: 600; }
.cmp-hero { padding-bottom: 8px; }
.cmp-hero h1 { max-width: 16ch; }
.cmp-sec + .cmp-sec { padding-top: 8px; }
