/* ============================================================================
   ReadVoice — marketing site
   Design language is inherited from the app (apps/web/src/routes/+layout.svelte):
   warm off-white paper, sage green, Atkinson Hyperlegible for body text.
   Fraunces is added here for display headings only.
   ========================================================================== */

@font-face {
	font-family: 'OpenDyslexic';
	src: url('fonts/OpenDyslexic-Regular.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	/* App tokens, verbatim */
	--bg: #f5f6f1;
	--bg-card: #ffffff;
	--bg-sidebar: #eef2ea;
	--bg-soft: #f0f4ec;
	--border: #d8d8d4;
	--border-soft: #e4e7df;
	--green: #a8d5ba;
	--green-deep: #5a9978;
	--green-deeper: #487a60;
	--green-tint: #dcecdf;
	--text: #2a2a28;
	--text-soft: #6a6a66;
	--text-faint: #9a9a93;
	--shadow: 0 1px 2px rgba(40, 50, 35, 0.04);

	/* Site-only additions, pulled from the logo mark */
	--ink: #1a4d2e;
	--ink-soft: #24603a;
	--mint: #86efac;
	--paper-deep: #edf0e7;
	--card-lift: 0 1px 2px rgba(40, 50, 35, 0.05), 0 12px 32px -18px rgba(26, 77, 46, 0.28);
	--card-lift-lg: 0 2px 4px rgba(40, 50, 35, 0.05), 0 30px 70px -34px rgba(26, 77, 46, 0.38);

	/* Live-tunable by the demo's palette picker. These are Soft green, the app's
	   default palette — the demos must open on the same colours a new reader gets. */
	--hl-sentence: #cfe8d9;
	--hl-word: #a8d5ba;
	--hl-word-fg: #1f3a2a;

	--display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
	--mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

	--maxw: 1120px;
	--radius: 16px;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 88px;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
svg {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
}
button {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--green);
	color: #1f3a2a;
}

:focus-visible {
	outline: 2px solid var(--green-deep);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ── Layout primitives ───────────────────────────────────────────────────── */

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

section {
	position: relative;
}

.band {
	padding: 96px 0;
}
.band--tight {
	padding: 72px 0;
}
.band--paper {
	background: var(--paper-deep);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
}
.band--ink {
	background: var(--ink);
	color: #e7f2ea;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--green-deeper);
}
.band--ink .eyebrow {
	color: var(--mint);
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h2 {
	font-size: clamp(30px, 4vw, 42px);
	margin-top: 14px;
}

.lede {
	font-size: 18px;
	color: var(--text-soft);
	max-width: 62ch;
	margin-top: 16px;
	text-wrap: pretty;
}
.band--ink .lede {
	color: #b9d6c4;
}

.section-head {
	max-width: 720px;
	margin-bottom: 48px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 20px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition:
		transform 120ms ease,
		background 120ms ease,
		border-color 120ms ease,
		box-shadow 120ms ease;
}
.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	background: var(--ink);
	color: #f2fbf5;
	box-shadow: 0 10px 24px -14px rgba(26, 77, 46, 0.9);
}
.btn--primary:hover {
	background: var(--ink-soft);
	box-shadow: 0 14px 30px -14px rgba(26, 77, 46, 0.95);
}

.btn--ghost {
	background: var(--bg-card);
	border-color: var(--border);
	color: var(--text);
}
.btn--ghost:hover {
	background: var(--bg-soft);
	border-color: var(--green-deep);
	color: var(--green-deeper);
}

.btn--sm {
	padding: 9px 15px;
	font-size: 14px;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(245, 246, 241, 0.82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
.nav[data-stuck='true'] {
	border-bottom-color: var(--border-soft);
	box-shadow: 0 6px 24px -20px rgba(26, 77, 46, 0.6);
}

.nav__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	letter-spacing: -0.01em;
	flex-shrink: 0;
}
.brand img {
	width: 30px;
	height: 30px;
	border-radius: 8px;
}
/* The lockup is a wide 7.5:1 wordmark, not the square app icon, so it opts out
   of the sizing above. Height is what needs to be consistent between header and
   footer; width follows from the aspect ratio.

   Written as `.brand img.brand__lockup` on purpose: `.brand img` above scores
   one class + one element, so a lone `.brand__lockup` class loses the cascade
   and the wordmark gets crushed into a 30px square. */
.brand img.brand__lockup {
	width: auto;
	height: 20px;
	border-radius: 0;
}

.nav__links {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
}
.nav__links a {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	color: var(--text-soft);
	text-decoration: none;
	transition: color 120ms, background 120ms;
}
.nav__links a:hover {
	color: var(--text);
	background: var(--bg-soft);
}

.nav__cta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.nav__links {
		display: none;
	}
	.nav__cta {
		margin-left: auto;
	}
}

/* ── Account menu ────────────────────────────────────────────────────────── */

.accountmenu {
	position: relative;
}
.accountmenu__button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 5px 12px 5px 5px;
	cursor: pointer;
	font-size: 14px;
	color: var(--text);
	transition: border-color 120ms, background 120ms;
}
.accountmenu__button:hover {
	border-color: var(--green-deep);
	background: var(--bg-soft);
}
.accountmenu__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--mint);
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}
.accountmenu__email {
	max-width: 15ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 560px) {
	.accountmenu__email {
		display: none;
	}
}

.accountmenu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 220px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	box-shadow: var(--card-lift);
	padding: 6px;
	display: flex;
	flex-direction: column;
	z-index: 70;
}
.accountmenu__plan {
	font-size: 12px;
	color: var(--text-faint);
	padding: 8px 12px 10px;
	border-bottom: 1px solid var(--border-soft);
	margin-bottom: 4px;
}
.accountmenu__panel a,
.accountmenu__panel button {
	text-align: left;
	background: none;
	border: none;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: var(--text);
	text-decoration: none;
	cursor: pointer;
}
.accountmenu__panel a:hover,
.accountmenu__panel button:hover {
	background: var(--bg-soft);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	padding: 72px 0 0;
	overflow: hidden;
}

.hero__glow {
	position: absolute;
	inset: -220px 0 auto 0;
	height: 620px;
	background:
		radial-gradient(680px 320px at 50% 44%, rgba(168, 213, 186, 0.5), transparent 68%),
		radial-gradient(420px 260px at 82% 10%, rgba(134, 239, 172, 0.26), transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.hero__inner {
	position: relative;
	z-index: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	font-size: 13px;
	color: var(--text-soft);
	box-shadow: var(--shadow);
}
.chip b {
	color: var(--green-deeper);
	font-weight: 700;
}
.chip__dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--green-tint);
	display: grid;
	place-items: center;
	color: var(--green-deeper);
}

.hero h1 {
	font-size: clamp(38px, 6.4vw, 68px);
	margin: 22px 0 0;
	max-width: 16ch;
}
.hero h1 em {
	font-style: italic;
	color: var(--green-deeper);
}

.hero__sub {
	font-size: clamp(17px, 2vw, 19.5px);
	color: var(--text-soft);
	max-width: 60ch;
	margin: 20px auto 0;
	text-wrap: pretty;
}

.hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 30px;
}

.hero__meta {
	margin-top: 18px;
	font-size: 13.5px;
	color: var(--text-faint);
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
}
.hero__meta span:not(:last-child)::after {
	content: '·';
	margin-left: 8px;
	color: var(--border);
}

/* ── Demo ────────────────────────────────────────────────────────────────── */

.demo {
	position: relative;
	z-index: 1;
	margin: 56px auto 0;
	max-width: 940px;
}

.demo__label {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.demo__label p {
	font-size: 13.5px;
	color: var(--text-faint);
}

.reader {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 22px;
	box-shadow: var(--card-lift-lg);
	overflow: hidden;
	text-align: left;
}

.reader__chrome {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: var(--bg-sidebar);
	border-bottom: 1px solid var(--border-soft);
}
.reader__dots {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.reader__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d3dbd2;
}

.tabs {
	display: flex;
	gap: 4px;
	margin-left: 6px;
	overflow-x: auto;
	scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
	display: none;
}
.tab {
	border: 1px solid transparent;
	background: none;
	padding: 6px 13px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--text-soft);
	cursor: pointer;
	white-space: nowrap;
	transition: background 120ms, color 120ms, border-color 120ms;
}
.tab:hover {
	background: rgba(255, 255, 255, 0.7);
	color: var(--text);
}
.tab[aria-selected='true'] {
	background: var(--bg-card);
	border-color: var(--border-soft);
	color: var(--green-deeper);
	box-shadow: var(--shadow);
}

.reader__badge {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-faint);
	white-space: nowrap;
	flex-shrink: 0;
}
@media (max-width: 700px) {
	.reader__badge,
	.reader__dots {
		display: none;
	}
}

.reader__page {
	padding: 34px clamp(20px, 5vw, 56px) 24px;
}

.doc-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 20px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--border-soft);
}
.doc-head img {
	width: 42px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
	flex-shrink: 0;
}
.doc-head__t {
	font-family: var(--display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}
.doc-head__s {
	font-size: 13.5px;
	color: var(--text-faint);
	margin-top: 3px;
}

/* The read-along surface. font-family/size are set inline by the controls. */
.prose {
	font-size: 19px;
	line-height: 1.85;
	color: var(--text);
	min-height: 190px;
	transition: font-size 140ms ease;
}

.sentence {
	display: inline;
	border-radius: 2px;
	padding: 1px 0;
	transition: background-color 100ms ease;
}
.sentence.is-active {
	background-color: var(--hl-sentence);
}

.word {
	display: inline;
	border-radius: 3px;
	cursor: pointer;
	transition: background 80ms ease, color 80ms ease;
}
.word:hover {
	background: rgba(168, 213, 186, 0.3);
}
.word.is-active {
	background: var(--hl-word);
	color: var(--hl-word-fg);
}

.reader__note {
	margin-top: 20px;
	font-size: 13px;
	color: var(--text-faint);
	display: flex;
	gap: 7px;
	align-items: flex-start;
}
.reader__note svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--green-deep);
}

/* Player — mirrors .player-pill in the app reader */
.player {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px clamp(16px, 4vw, 24px);
	border-top: 1px solid var(--border-soft);
	background: var(--bg-card);
}

.voice-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	border-radius: 50%;
	transition: transform 100ms, box-shadow 100ms;
}
.voice-btn:hover {
	transform: scale(1.06);
}

.skip-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #555;
	transition: background 80ms, color 80ms;
	padding: 0;
}
.skip-btn:hover {
	background: var(--bg-soft);
	color: var(--text);
}

.play-btn {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #f2fbf5;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 100ms, transform 100ms;
}
.play-btn:hover {
	background: var(--ink-soft);
	transform: scale(1.04);
}

.progress {
	flex: 1;
	min-width: 60px;
	height: 5px;
	background: #e4e4e0;
	border-radius: 3px;
	border: none;
	padding: 0;
	cursor: pointer;
	position: relative;
	transition: height 80ms;
}
.progress:hover {
	height: 7px;
}
.progress__fill {
	height: 100%;
	background: var(--green);
	border-radius: 3px;
	width: 0;
	pointer-events: none;
	transition: width 90ms linear;
}

.time {
	font-size: 13px;
	color: var(--text-soft);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex-shrink: 0;
}

.speed-btn {
	border: 1px solid var(--border);
	background: var(--bg-card);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	color: var(--text-soft);
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	transition: background 100ms, border-color 100ms, color 100ms;
}
.speed-btn:hover {
	background: var(--bg-soft);
	border-color: var(--green-deep);
	color: var(--green-deeper);
}

@media (max-width: 640px) {
	.time,
	.reader__note {
		display: none;
	}
	.player {
		gap: 10px;
	}
}

/* Reading-preferences rail under the demo */
.prefs {
	display: flex;
	align-items: center;
	gap: 10px 22px;
	flex-wrap: wrap;
	padding: 14px 4px 0;
	font-size: 13px;
	color: var(--text-faint);
}
.prefs__group {
	display: flex;
	align-items: center;
	gap: 8px;
}
.prefs__group > span {
	white-space: nowrap;
}

.swatches {
	display: flex;
	gap: 6px;
}
.swatch {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
	padding: 0;
	transition: transform 100ms, box-shadow 100ms;
}
.swatch:hover {
	transform: scale(1.12);
}
.swatch[aria-pressed='true'] {
	box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--green-deep);
}

.pill-select {
	appearance: none;
	border: 1px solid var(--border);
	background: var(--bg-card);
	border-radius: 999px;
	padding: 6px 30px 6px 12px;
	font-size: 13px;
	cursor: pointer;
	color: var(--text);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6a66' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 11px center;
}

.stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	background: var(--bg-card);
	border-radius: 999px;
	overflow: hidden;
}
.stepper button {
	border: none;
	background: none;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: var(--text-soft);
	font-size: 15px;
	line-height: 1;
	transition: background 100ms;
}
.stepper button:hover {
	background: var(--bg-soft);
	color: var(--text);
}
.stepper span {
	font-size: 12.5px;
	min-width: 34px;
	text-align: center;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

/* ── Stats ───────────────────────────────────────────────────────────────── */

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border-soft);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
}
.stat {
	background: var(--bg);
	padding: 26px 22px;
}
.stat b {
	display: block;
	font-family: var(--display);
	font-size: 34px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.stat span {
	display: block;
	margin-top: 8px;
	font-size: 13.5px;
	color: var(--text-soft);
}
@media (max-width: 760px) {
	.stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ── Format icon ─────────────────────────────────────────────────────────── */

.format__ico {
	width: 30px;
	height: 36px;
	border-radius: 4px 4px 4px 0;
	display: grid;
	place-items: center;
	font-size: 9.5px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}

/* ── Feature blocks ──────────────────────────────────────────────────────── */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.split--flip .split__media {
	order: -1;
}
@media (max-width: 900px) {
	.split {
		grid-template-columns: 1fr;
	}
	.split--flip .split__media {
		order: 0;
	}
}

.split h3 {
	font-size: 27px;
	margin-top: 12px;
}
.split p {
	color: var(--text-soft);
	margin-top: 14px;
	max-width: 52ch;
}

.checks {
	list-style: none;
	margin-top: 22px;
	display: flex;
	flex-direction: column;
	gap: 11px;
}
.checks li {
	display: flex;
	gap: 11px;
	font-size: 15px;
	align-items: flex-start;
}
.checks svg {
	flex-shrink: 0;
	margin-top: 4px;
	color: var(--green-deep);
}
.checks b {
	font-weight: 700;
}

.frame {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: var(--card-lift);
	overflow: hidden;
}
.frame__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--bg-sidebar);
	border-bottom: 1px solid var(--border-soft);
	font-size: 12px;
	color: var(--text-faint);
}
.frame__body {
	padding: 20px;
}

/* ── Live file viewer ("drop in a file") ─────────────────────────────────── */

.fileviewer {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: var(--card-lift);
	overflow: hidden;
}

.fileviewer__bar {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 12px;
	background: var(--bg-sidebar);
	border-bottom: 1px solid var(--border-soft);
	font-size: 12px;
	color: var(--text-faint);
}
.fileviewer__listen {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ink);
	color: #f2fbf5;
	border: none;
	border-radius: 999px;
	padding: 6px 14px 6px 11px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 120ms, transform 120ms;
}
.fileviewer__listen:hover {
	background: var(--ink-soft);
	transform: scale(1.03);
}
.fileviewer__icon {
	display: grid;
	place-items: center;
	width: 13px;
	height: 13px;
}
.fileviewer__icon svg {
	width: 11px;
	height: 11px;
}

/* Ring the button until it is pressed once, so it reads as a control. */
.fileviewer.is-untouched .fileviewer__listen,
.pastebox.is-untouched .paste__btn {
	animation: nudge 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.fileviewer.is-untouched .fileviewer__listen,
.pastebox.is-untouched .paste__btn {
		animation: none;
	}
}

.fileviewer__track {
	height: 3px;
	background: #e4e4e0;
}
.fileviewer__track i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--green-deep);
	transition: width 90ms linear;
}

.fileviewer__body {
	padding: clamp(16px, 3vw, 26px);
	background: var(--bg-soft);
}

/* The viewer keeps one height across formats so switching tabs doesn't make the
   page jump under the reader's cursor. */
.fileviewer__body {
	min-height: 330px;
	display: flex;
	align-items: center;
	justify-content: center;
}
@media (max-width: 620px) {
	.fileviewer__body {
		min-height: 0;
	}
}

.fileviewer__doc {
	color: var(--text-soft);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fileviewer__meta {
	white-space: nowrap;
}
@media (max-width: 560px) {
	.fileviewer__meta {
		display: none;
	}
}

/* ── Format tabs ─────────────────────────────────────────────────────────── */

.filedemo {
	margin-top: 72px;
}
.filedemo__head {
	max-width: 640px;
	margin-bottom: 24px;
}
.filedemo__head h3 {
	font-size: 27px;
}
.filedemo__head p {
	color: var(--text-soft);
	margin-top: 12px;
}

.filetabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin-bottom: 16px;
}
@media (max-width: 860px) {
	.filetabs {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 480px) {
	.filetabs {
		grid-template-columns: repeat(2, 1fr);
	}
}

.filetab {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 13px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	box-shadow: var(--shadow);
	cursor: pointer;
	text-align: left;
	transition: transform 130ms ease, box-shadow 130ms ease, border-color 130ms ease;
}
.filetab:hover {
	transform: translateY(-2px);
	border-color: var(--green);
	box-shadow: var(--card-lift);
}
.filetab[aria-selected='true'] {
	border-color: var(--green-deep);
	box-shadow: 0 0 0 1px var(--green-deep), var(--card-lift);
}
.filetab__t {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

/* ── Document layouts, one per format ────────────────────────────────────── */

.sheet {
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(40, 50, 35, 0.09);
	padding: 26px 26px 16px;
	width: 100%;
	max-width: 620px;
	color: #23231f;
}

/* PDF — two justified serif columns, a plate and a running foot. */
.sheet--pdf {
	font-family: Georgia, 'Times New Roman', serif;
	max-width: 540px;
}
.sheet__eyebrow {
	font-size: 9px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #9a9a93;
	font-family: var(--body);
	margin-bottom: 10px;
}
.sheet__h {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	margin-bottom: 12px;
}
/* One column, set a little larger — a single readable measure beats two narrow
   ones at this size, and the highlight is easier to follow down one flow. */
.sheet--pdf .sheet__body {
	font-size: 13px;
	line-height: 1.7;
	text-align: justify;
	hyphens: auto;
}
@media (max-width: 620px) {
	.sheet--pdf .sheet__body {
		text-align: left;
	}
}

.pdffig {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #ececea;
}
.pdffig__plate {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 14px;
	height: 46px;
	margin-bottom: 7px;
}
.pdffig__plate span {
	width: 34px;
	border-radius: 50% 50% 46% 46%;
	background: #e6e9e3;
	border: 1px solid #d5dad2;
}
.pdffig__plate span:nth-child(1) {
	height: 16px;
}
.pdffig__plate span:nth-child(2) {
	height: 26px;
}
.pdffig__plate span:nth-child(3) {
	height: 36px;
}
.pdffig__plate span:nth-child(4) {
	height: 46px;
}
.pdffig figcaption {
	font-family: var(--body);
	font-size: 9.5px;
	color: #8d8d86;
	text-align: center;
}

.sheet__foot {
	margin-top: 14px;
	padding-top: 8px;
	border-top: 1px solid #ececea;
	text-align: center;
	font-size: 9.5px;
	color: #a5a59d;
	font-family: var(--body);
}

/* EPUB — a book page: running head, centred chapter title, generous measure. */
.sheet--epub {
	font-family: Georgia, 'Times New Roman', serif;
	max-width: 470px;
	padding: 26px 34px 16px;
}
.sheet--epub .sheet__eyebrow {
	text-align: center;
	font-style: italic;
	font-family: Georgia, serif;
	text-transform: none;
	letter-spacing: 0.04em;
	font-size: 10.5px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ececea;
}
.sheet--epub .sheet__h {
	text-align: center;
	font-size: 15px;
	letter-spacing: 0.02em;
	margin: 16px 0 14px;
}
.sheet--epub .sheet__body {
	font-size: 13px;
	line-height: 1.75;
	text-align: justify;
	hyphens: auto;
}
.sheet--epub .sheet__body::first-letter {
	font-size: 30px;
	line-height: 1;
	float: left;
	padding: 3px 6px 0 0;
	font-weight: 700;
}

/* Word — sans body under a blue-rule heading, plus a list. */
.sheet--docx {
	font-family: var(--body);
	max-width: 540px;
}
.sheet--docx .sheet__h {
	font-family: var(--body);
	font-size: 16px;
	color: #1f4e79;
	border-bottom: 1.5px solid #2c68b8;
	padding-bottom: 6px;
	margin-bottom: 14px;
}
.sheet--docx .sheet__body {
	font-size: 13px;
	line-height: 1.7;
}

/* Web page — a headline and a wide sans measure, chrome already stripped. */
.sheet--html {
	font-family: var(--body);
	max-width: 560px;
}
.sheet--html .sheet__eyebrow {
	text-transform: none;
	letter-spacing: 0;
	font-size: 11px;
	font-style: italic;
}
.sheet--html .sheet__h {
	font-family: var(--display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}
.sheet--html .sheet__body {
	font-size: 14px;
	line-height: 1.75;
}

/* Text — monospace on a bare page, because that is all a .txt is. */
.sheet--txt {
	font-family: var(--mono);
	max-width: 520px;
	background: #fcfcfa;
}
.sheet--txt .sheet__body {
	font-size: 12.5px;
	line-height: 1.85;
	white-space: pre-wrap;
}

/* Rich text — a letter: dated, indented, serif. */
.sheet--rtf {
	font-family: Georgia, 'Times New Roman', serif;
	max-width: 500px;
}
.sheet--rtf .sheet__date {
	text-align: right;
	font-size: 11.5px;
	font-style: italic;
	color: #6a6a66;
	margin-bottom: 18px;
}
.sheet--rtf .sheet__body {
	font-size: 13.5px;
	line-height: 1.8;
	text-indent: 1.6em;
}
.sheet--rtf .sheet__sign {
	margin-top: 16px;
	font-size: 13.5px;
	font-style: italic;
	text-align: right;
}

/* ── Paste box ───────────────────────────────────────────────────────────── */

.paste__track {
	height: 3px;
	background: #e4e4e0;
}
.paste__track i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--green-deep);
	transition: width 90ms linear;
}
.pastebox.is-untouched .paste__btn {
	animation: nudge 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
	.pastebox.is-untouched .paste__btn {
		animation: none;
	}
}
.paste__btn {
	border: none;
	cursor: pointer;
	transition: background 120ms, transform 120ms;
}
.paste__btn:hover {
	background: var(--ink-soft);
	transform: scale(1.03);
}



/* Mock waveform for the transcription block */
.wave {
	display: flex;
	align-items: center;
	gap: 3px;
	height: 62px;
	padding: 0 2px;
}
.wave i {
	flex: 1;
	background: var(--green);
	border-radius: 2px;
	opacity: 0.55;
}
.wave i.hot {
	background: var(--green-deep);
	opacity: 1;
}

.tblocks {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.tblock {
	display: flex;
	gap: 12px;
	font-size: 13px;
}
.tblock time {
	color: var(--green-deeper);
	font-family: var(--mono);
	font-size: 11.5px;
	white-space: nowrap;
	padding-top: 2px;
	flex-shrink: 0;
}
.tblock p {
	margin: 0;
	color: var(--text-soft);
	font-size: 13.5px;
	line-height: 1.5;
}

/* ── Two ways ────────────────────────────────────────────────────────────── */

.ways {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
@media (max-width: 820px) {
	.ways {
		grid-template-columns: 1fr;
	}
}

.way {
	display: block;
	text-decoration: none;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow);
	transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}
.way:hover {
	transform: translateY(-3px);
	border-color: var(--green);
	box-shadow: var(--card-lift);
}
.way__ico {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--ink);
	color: var(--mint);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
}
.way h3 {
	font-size: 23px;
}
.way__lead {
	margin-top: 8px;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--green-deeper);
}
.way p:not(.way__lead) {
	margin-top: 10px;
	color: var(--text-soft);
	font-size: 15px;
}
.way__go {
	display: inline-block;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--green-deeper);
}
.way:hover .way__go {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Browser mock (extension section) ────────────────────────────────────── */

.browser {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 18px;
	box-shadow: var(--card-lift-lg);
	overflow: hidden;
}

.browser__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	background: var(--bg-sidebar);
	border-bottom: 1px solid var(--border-soft);
}
.browser__dots {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}
.browser__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #d3dbd2;
}
.browser__url {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: var(--bg-soft);
	border-bottom: 1px solid var(--border-soft);
	padding: 8px 14px;
	font-size: 12.5px;
	color: var(--text-faint);
}

/* Browser tabs across the top of the live demo — one per kind of page, because
   "it reads anything" is the claim this demo has to carry. */
.exttabs {
	display: flex;
	gap: 4px;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}
.exttabs::-webkit-scrollbar {
	display: none;
}
.exttab {
	border: 1px solid transparent;
	border-bottom: none;
	background: none;
	padding: 7px 15px;
	border-radius: 9px 9px 0 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-soft);
	cursor: pointer;
	white-space: nowrap;
	transition: background 120ms, color 120ms, border-color 120ms;
}
.exttab:hover {
	background: rgba(255, 255, 255, 0.65);
	color: var(--text);
}
.exttab[aria-selected='true'] {
	background: var(--bg-soft);
	border-color: var(--border-soft);
	color: var(--green-deeper);
}
.browser__ext {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: var(--green-tint);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	box-shadow: 0 0 0 2px rgba(90, 153, 120, 0.28);
}
.browser__ext img {
	border-radius: 5px;
}

.browser__page {
	padding: 34px clamp(18px, 4vw, 44px) 30px;
	position: relative;
	min-height: 300px;
}

/* Page body inside the live extension demo */
.extpage {
	max-width: 660px;
	margin: 0 auto;
	padding-bottom: 62px;
}
.extpage__title {
	font-family: var(--display);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.extpage__by {
	font-size: 12.5px;
	color: var(--text-faint);
	margin: 7px 0 20px;
}

.chat__row {
	position: relative;
}
.chat__row--you {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 20px;
}
.chat__you {
	background: var(--bg-soft);
	border: 1px solid var(--border-soft);
	border-radius: 16px 16px 4px 16px;
	padding: 11px 16px;
	font-size: 14.5px;
	color: var(--text-soft);
	max-width: 78%;
}

/* The block the extension is reading, with its play button alongside — the
   per-message button on chat sites, the paragraph button on articles. */
.extblock {
	position: relative;
	padding-left: 38px;
}
.extprose {
	font-size: 16.5px;
	line-height: 1.8;
}
/* Article bodies are set a touch larger than a chat reply, as they are on the
   real sites these stand in for. */
.extpage--article .extprose {
	font-size: 17.5px;
}

.msgplay {
	position: absolute;
	left: 0;
	top: 2px;
	width: 27px;
	height: 27px;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--green-deeper);
	display: grid;
	place-items: center;
	padding: 0;
	cursor: pointer;
	box-shadow: var(--shadow);
	transition: background 120ms, color 120ms, border-color 120ms, transform 120ms;
}
.msgplay svg {
	width: 12px;
	height: 12px;
}
.msgplay:hover {
	transform: scale(1.1);
	border-color: var(--green-deep);
}
.msgplay--active {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--mint);
}

/* Until the visitor presses play once, ring the button so it reads as the
   control it is rather than as decoration in a screenshot. */
.browser--live.is-untouched .msgplay {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--mint);
	animation: nudge 2.4s ease-out infinite;
}
@keyframes nudge {
	0% {
		box-shadow: 0 0 0 0 rgba(90, 153, 120, 0.55);
	}
	60%,
	100% {
		box-shadow: 0 0 0 12px rgba(90, 153, 120, 0);
	}
}
@media (prefers-reduced-motion: reduce) {
	.browser--live.is-untouched .msgplay {
		animation: none;
	}
}

.filedemo__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 26px;
	flex-wrap: wrap;
}
.filedemo__foot .ext-caption {
	margin-top: 0;
	/* Let the caption take the slack so the palette sits at the right-hand end
	   of the row rather than wrapping onto its own line. */
	flex: 1 1 420px;
	min-width: 0;
}
.filedemo__foot .prefs__group {
	flex-shrink: 0;
	font-size: 13px;
	color: var(--text-faint);
}

.ext-caption {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-wrap: wrap;
	margin-top: 16px;
	font-size: 13.5px;
	color: var(--text-faint);
}
.ext-caption b {
	color: var(--green-deeper);
	font-weight: 700;
}
.ext-caption__cue {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--mint);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

/* Floating player, shrunk to sit inside the mock */
.minipill {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 999px;
	box-shadow: 0 8px 26px -12px rgba(26, 77, 46, 0.5);
	font-size: 11.5px;
	color: var(--text-soft);
	white-space: nowrap;
}
.minipill__avatar {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e89bb0;
	flex-shrink: 0;
}
.minipill__play {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ink);
	color: #f2fbf5;
	border: none;
	padding: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: background 120ms, transform 120ms;
}
.minipill__play svg {
	width: 12px;
	height: 12px;
}
.minipill__play:hover {
	background: var(--ink-soft);
	transform: scale(1.06);
}
.minipill__bar {
	width: 120px;
	height: 4px;
	border-radius: 2px;
	background: #e4e4e0;
	display: block;
	flex-shrink: 0;
}
.minipill__bar i {
	display: block;
	width: 46%;
	height: 100%;
	border-radius: 2px;
	background: var(--green);
}
/* Tabular figures so the countdown doesn't jitter as the digits change. */
.minipill__t {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Narrow screens lose the progress bar but keep the countdown — without it the
   pill reads as two bare circles rather than a player. */
@media (max-width: 620px) {
	.minipill__bar {
		display: none;
	}
}

/* ── Paste mock (web app section) ────────────────────────────────────────── */

.paste {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: 12px;
	overflow: hidden;
}
.paste__field {
	padding: 18px;
	min-height: 168px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg-card);
}
.paste__field p {
	margin: 0;
	display: inline;
}
.paste__caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	background: var(--green-deep);
	vertical-align: text-bottom;
	margin-left: 2px;
	animation: blink 1.1s step-end infinite;
}
@keyframes blink {
	50% {
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.paste__caret {
		animation: none;
	}
}
.paste__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-top: 1px solid var(--border-soft);
	background: var(--bg-soft);
}
.paste__count {
	font-size: 12.5px;
	color: var(--text-faint);
}
.paste__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--ink);
	color: #f2fbf5;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13.5px;
	font-weight: 700;
}

/* ── Book shelf ──────────────────────────────────────────────────────────── */

.shelf {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding: 6px 4px 20px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.shelf img {
	width: 132px;
	height: 198px;
	object-fit: cover;
	border-radius: 5px;
	flex-shrink: 0;
	box-shadow: 0 3px 14px rgba(40, 50, 35, 0.18);
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.shelf img:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 26px rgba(40, 50, 35, 0.26);
}
.shelf__note {
	font-size: 13.5px;
	color: var(--text-faint);
	margin-top: 6px;
	max-width: 74ch;
}

/* ── Bento (capabilities) ────────────────────────────────────────────────── */

.bento {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 18px;
}
.bento__card {
	grid-column: span 5;
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(134, 239, 172, 0.18);
	border-radius: var(--radius);
	padding: 26px 26px 0;
	overflow: hidden;
	transition: border-color 140ms ease, transform 140ms ease;
}
.bento__card--wide {
	grid-column: span 7;
}
.bento__card:hover {
	border-color: rgba(134, 239, 172, 0.42);
	transform: translateY(-3px);
}
.bento__card h3 {
	font-size: 21px;
}
.bento__card > p {
	color: #a9cfb8;
	font-size: 14.5px;
	margin-top: 9px;
	max-width: 46ch;
}
.bento__art {
	margin-top: 22px;
	flex: 1;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 190px;
}
@media (max-width: 900px) {
	.bento__card,
	.bento__card--wide {
		grid-column: span 12;
	}
	.bento__art {
		min-height: 0;
	}
}

/* Document mock. Light paper inside the dark card, so the highlight colours
   are the real ones rather than a dark-background approximation. */
.bentodoc {
	width: 100%;
	background: var(--bg-card);
	border-radius: 12px 12px 0 0;
	overflow: hidden;
	box-shadow: 0 -2px 30px -12px rgba(0, 0, 0, 0.5);
	color: var(--text);
}
.bentodoc__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	background: var(--bg-sidebar);
	border-bottom: 1px solid var(--border-soft);
	font-size: 11.5px;
	color: var(--text-faint);
}
.bentodoc__bar span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--green-deep);
	flex-shrink: 0;
}
.bentodoc__body {
	padding: 18px 18px 24px;
	font-size: 15px;
	line-height: 1.85;
}
.bentodoc__sent {
	background: var(--hl-sentence);
	border-radius: 2px;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

/* Each word lights for one slot of a cycle that is --n slots long, giving a
   left-to-right sweep. The lit window below is 100/--n percent — if the copy
   changes, that percentage has to change with it. */
.bento-word {
	border-radius: 3px;
	animation: bentoLit calc(var(--n) * 0.34s) steps(1, end) infinite;
	animation-delay: calc(var(--i) * 0.34s);
}
@keyframes bentoLit {
	0% {
		background: var(--hl-word);
		color: var(--hl-word-fg);
	}
	4.8%,
	100% {
		background: transparent;
		color: inherit;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bento-word {
		animation: none;
	}
}

/* Speed dial */
.speeddial {
	width: 100%;
	padding-bottom: 26px;
}
.speeddial__read {
	text-align: center;
	margin-bottom: 18px;
}
.speeddial__read b {
	display: block;
	font-family: var(--display);
	font-size: 44px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--mint);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.speeddial__read span {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	color: #a9cfb8;
}
.speeddial__read em {
	font-style: normal;
	font-weight: 700;
	color: #eaf6ee;
	font-variant-numeric: tabular-nums;
}
.speeddial__chips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.speedchip {
	border: 1px solid rgba(134, 239, 172, 0.24);
	background: rgba(255, 255, 255, 0.04);
	color: #dff0e4;
	border-radius: 999px;
	padding: 9px 0;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: background 120ms, border-color 120ms, color 120ms;
}
.speedchip:hover {
	background: rgba(134, 239, 172, 0.14);
}
.speedchip[aria-pressed='true'] {
	background: var(--mint);
	border-color: var(--mint);
	color: #0e3a20;
}

/* Photographed page */
.snap {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	padding-bottom: 26px;
}
.snap__page {
	width: 78%;
	background: #fbf7ef;
	border-radius: 4px;
	padding: 22px 20px;
	transform: rotate(-3deg);
	box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.6);
	/* A camera never gets the page evenly lit — the wash sells it as a photo
	   rather than another rendered document. */
	background-image: linear-gradient(115deg, rgba(0, 0, 0, 0.09), transparent 42%, rgba(255, 255, 255, 0.5));
}
.snap__page i {
	display: block;
	height: 6px;
	border-radius: 2px;
	background: #cfc9bd;
	margin-bottom: 11px;
}
.snap__page i:last-child {
	margin-bottom: 0;
}
.snap__lit {
	background: var(--hl-word) !important;
	box-shadow: 0 0 0 3px var(--hl-sentence);
}
.snap__badge {
	position: absolute;
	right: 4%;
	bottom: 34px;
	background: var(--ink);
	color: var(--mint);
	border: 1px solid rgba(134, 239, 172, 0.4);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 11.5px;
	font-weight: 700;
}

/* Source pills */
.sources {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	width: 100%;
	padding-bottom: 26px;
	align-content: flex-end;
}
.source {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(134, 239, 172, 0.18);
	font-size: 13.5px;
	color: #dff0e4;
}
.source i {
	width: 26px;
	height: 26px;
	border-radius: 7px;
	display: grid;
	place-items: center;
	font-size: 8.5px;
	font-weight: 700;
	font-style: normal;
	color: #fff;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

/* ── Card grid ───────────────────────────────────────────────────────────── */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}
.card {
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.card:hover {
	transform: translateY(-3px);
	border-color: var(--green);
	box-shadow: var(--card-lift);
}
.card__ico {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--green-tint);
	color: var(--green-deeper);
	display: grid;
	place-items: center;
	margin-bottom: 16px;
}
.card h3 {
	font-size: 19px;
}
.card p {
	color: var(--text-soft);
	font-size: 14.5px;
	margin-top: 9px;
}

.band--ink .card {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(134, 239, 172, 0.18);
	box-shadow: none;
}
.band--ink .card:hover {
	border-color: rgba(134, 239, 172, 0.4);
	transform: translateY(-3px);
}
.band--ink .card__ico {
	background: rgba(134, 239, 172, 0.14);
	color: var(--mint);
}
.band--ink .card p {
	color: #a9cfb8;
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	counter-reset: step;
}
.step {
	position: relative;
	padding-top: 22px;
	border-top: 2px solid var(--border-soft);
}
.step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: -15px;
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--ink);
	color: var(--mint);
	font-size: 13px;
	font-weight: 700;
	display: grid;
	place-items: center;
	font-family: var(--body);
}
.step h3 {
	font-size: 18px;
	margin-top: 6px;
}
.step p {
	color: var(--text-soft);
	font-size: 14.5px;
	margin-top: 8px;
}
@media (max-width: 800px) {
	.steps {
		grid-template-columns: 1fr;
		gap: 34px;
	}
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
	max-width: 800px;
	margin: 0 auto;
}
.faq details {
	border-bottom: 1px solid var(--border-soft);
}
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 40px 20px 0;
	font-size: 16.5px;
	font-weight: 700;
	position: relative;
	transition: color 120ms;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary:hover {
	color: var(--green-deeper);
}
.faq summary::after {
	content: '';
	position: absolute;
	right: 8px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--text-faint);
	border-bottom: 2px solid var(--text-faint);
	transform: translateY(-70%) rotate(45deg);
	transition: transform 180ms ease;
}
.faq details[open] summary::after {
	transform: translateY(-20%) rotate(-135deg);
}
.faq details p {
	color: var(--text-soft);
	padding: 0 40px 22px 0;
	margin-top: -4px;
	font-size: 15.5px;
}
.faq a {
	color: var(--green-deeper);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Founder's letter ────────────────────────────────────────────────────── */

.letter {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: clamp(28px, 5vw, 56px);
	max-width: 880px;
	margin: 0 auto;
	align-items: start;
}
@media (max-width: 700px) {
	.letter {
		grid-template-columns: 1fr;
		gap: 26px;
	}
}

.letter__photo {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	/* The source is a transparent-cornered circle; the radius keeps it one even
	   if the asset is ever replaced with a square crop. */
	box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.28), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
}

.letter__head {
	display: flex;
	align-items: center;
	gap: 13px;
	margin-bottom: 16px;
}
.letter__play {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: none;
	background: var(--mint);
	color: #0e3a20;
	display: grid;
	place-items: center;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 120ms, background 120ms;
}
.letter__play svg {
	width: 15px;
	height: 15px;
}
.letter__play:hover {
	transform: scale(1.06);
	background: #a7f5c4;
}
.letter__meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.letter__cue {
	font-size: 14.5px;
	font-weight: 700;
	color: #eaf6ee;
}
.letter__aside-note {
	font-size: 12.5px;
	color: #7fa78d;
}

.letter__track {
	height: 3px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.1);
	margin-bottom: 26px;
	overflow: hidden;
}
.letter__track i {
	display: block;
	height: 100%;
	width: 0;
	background: var(--mint);
	transition: width 90ms linear;
}

.letter__body {
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.85;
	color: #d8ecdf;
	text-wrap: pretty;
}
/* The letter is one flow of sentences, so give the reader paragraph breaks to
   breathe — the sentence spans the engine renders are inline. */
.letter__body .sentence {
	display: inline;
}
.letter__break {
	display: block;
	height: 15px;
}

.letter__sign {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(134, 239, 172, 0.18);
}
.letter__name {
	display: block;
	font-family: var(--display);
	font-style: italic;
	font-size: 26px;
	color: #eaf6ee;
	letter-spacing: -0.01em;
}
.letter__role {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: #7fa78d;
}

/* On the dark band the light palettes would glare, so tint the text instead —
   the same approach the app's dark highlight values take. */
.letter__body .sentence.is-active {
	background-color: rgba(134, 239, 172, 0.13);
}
.letter__body .word.is-active {
	background: rgba(134, 239, 172, 0.32);
	color: #f2fbf5;
}

/* ── Platform grid (closing section) ─────────────────────────────────────── */

.platforms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	max-width: 900px;
	margin: 0 auto;
}
@media (max-width: 760px) {
	.platforms {
		grid-template-columns: 1fr;
	}
}

.platform {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	background: var(--bg-card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow);
	transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.platform:hover {
	transform: translateY(-3px);
	border-color: var(--green);
	box-shadow: var(--card-lift);
}

.platform__ico {
	width: 40px;
	height: 40px;
	border-radius: 11px;
	background: var(--ink);
	color: var(--mint);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.platform__body {
	flex: 1;
}
.platform h3 {
	font-size: 20px;
}
.platform p {
	color: var(--text-soft);
	font-size: 14.5px;
	margin-top: 8px;
}

/* Not shipped yet. Deliberately not a button: a dead download control is worse
   than an honest label, and nothing here should imply you can install it today. */
.platform--soon {
	background: none;
	border-style: dashed;
	box-shadow: none;
}
.platform--soon:hover {
	transform: none;
	border-color: var(--border);
	box-shadow: none;
}
.platform--soon .platform__ico {
	background: var(--bg-soft);
	color: var(--text-faint);
	border: 1px solid var(--border-soft);
}
.platform--soon h3 {
	color: var(--text-soft);
}
.platform__soon {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-faint);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 8px 15px;
}
.platform__soon::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--text-faint);
}

.platforms__note {
	max-width: 62ch;
	margin: 26px auto 0;
	text-align: center;
	font-size: 13.5px;
	color: var(--text-faint);
}

/* ── CTA + footer ────────────────────────────────────────────────────────── */

.footer {
	border-top: 1px solid var(--border-soft);
	padding: 44px 0 56px;
	font-size: 13.5px;
	color: var(--text-faint);
}
.footer__top {
	display: flex;
	justify-content: space-between;
	gap: 28px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.footer__links {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}
.footer__links a {
	color: var(--text-soft);
	text-decoration: none;
}
.footer__links a:hover {
	color: var(--green-deeper);
	text-decoration: underline;
}
.footer__legal {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--border-soft);
	max-width: 76ch;
	line-height: 1.7;
}

/* ── Reveal-on-scroll ────────────────────────────────────────────────────── */

/* Deliberately scoped to .js-reveal, which the inline script in <head> only adds
   when it can actually drive the animation. The starting state hides content, so
   if that script never runs — or IntersectionObserver is missing — the page must
   fall back to plainly visible rather than to a blank scroll. */
.js-reveal .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 620ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js-reveal .reveal.in {
	opacity: 1;
	transform: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 8px 8px;
	text-decoration: none;
	transition: top 140ms;
}
.skip-link:focus {
	top: 0;
}
