/* Big Text website
 *
 * Every colour, radius and type size here traces back to a token in the app's
 * lib/core/theme.dart. When the app's palette changes, this file changes with it.
 *
 * Dark only, on purpose. theme.dart calls dark "the real theme": the product is a
 * light-emitting sign, and a bright chrome around a black canvas defeats the point.
 * The app ships a light palette because a phone in daylight needs one. A marketing
 * page does not.
 */

/* ── Fonts ─────────────────────────────────────────────────────────────────
 * Self-hosted from the same files the app ships, so the wordmark on the page and
 * the wordmark in the screenshot are the same face. No CDN, which also means no
 * third party sees a request from a visitor reading the privacy policy.
 */
@font-face {
	font-family: 'Archivo Black';
	src: url('/assets/fonts/ArchivoBlack-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('/assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('/assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('/assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'Silkscreen';
	src: url('/assets/fonts/Silkscreen-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────────────────────
 * BigTextColors.dark, verbatim.
 */
:root {
	--surface: #0a0a0d;
	--surface-elevated: #16161c;
	--surface-sunken: #121218;
	--surface-selected: #26262f;
	--track: #1e1e26;
	--border: #23232c;
	--border-strong: #26262f;
	--border-dashed: #2c2c36;
	--text-primary: #f5f3ef;
	--text-secondary: #c9c6d0;
	--text-muted: #8b8894;
	--text-dim: #6c6a76;
	--text-faint: #55535e;
	--accent: #ffb020;
	--on-accent: #0a0a0d;

	/* The sign's own canvas. The one place #000 is correct. */
	--sign-canvas: #000000;

	/* BigTextGlow.bloom */
	--bloom: 26px;

	/* BigTextRadii */
	--radius-sm: 16px;
	--radius-md: 18px;
	--radius-lg: 20px;
	--radius-xl: 22px;
	--radius-xxl: 24px;
	--radius-xxxl: 26px;

	--display: 'Archivo Black', system-ui, sans-serif;
	--ui: 'Space Grotesk', system-ui, sans-serif;

	--gutter: 24px;
	--max-width: 1080px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--text-primary);
	font-family: var(--ui);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--text-primary);
}

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

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

.skip {
	position: absolute;
	left: -9999px;
}
.skip:focus {
	left: var(--gutter);
	top: 12px;
	z-index: 10;
	background: var(--accent);
	color: var(--on-accent);
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	font-weight: 700;
}

/* ── Header ────────────────────────────────────────────────────────────────
 * The editor screen's header: a lit amber dot, then the wordmark in the display face.
 */
header.site {
	position: sticky;
	top: 0;
	z-index: 5;
	background: rgba(10, 10, 13, 0.86);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

header.site .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 68px;
}

.wordmark {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-size: 19px;
	letter-spacing: -0.5px;
	color: var(--text-primary);
	text-decoration: none;
}

.wordmark:hover {
	color: var(--text-primary);
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 var(--bloom) rgba(255, 176, 32, 0.55);
	flex: none;
}

nav.site {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 15px;
}

nav.site a {
	color: var(--text-muted);
	text-decoration: none;
}

nav.site a:hover {
	color: var(--text-primary);
}

@media (max-width: 640px) {
	nav.site a.hide-sm {
		display: none;
	}
}

/* ── Buttons ───────────────────────────────────────────────────────────────
 * The SHOW button: a filled amber pill with a bloom under it, label in the
 * display face, ink is onAccent and never textPrimary.
 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--display);
	font-size: 20px;
	letter-spacing: -0.5px;
	padding: 0 34px;
	height: 62px;
	border-radius: var(--radius-xxxl);
	border: none;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: 0 0 var(--bloom) rgba(255, 176, 32, 0.55);
}

.btn-primary:hover {
	color: var(--on-accent);
	transform: translateY(-2px);
	box-shadow: 0 0 38px rgba(255, 176, 32, 0.7);
}

.btn-secondary {
	background: var(--surface-elevated);
	color: var(--text-primary);
	border: 1px solid var(--border);
	font-size: 18px;
}

/* Pre-launch stand-in for the Google Play badge. Deliberately not the badge image
 * with the link taken off: Google's badge guidelines are that it links to Play, and
 * a badge that does nothing when tapped reads as a broken page rather than as an
 * app that has not shipped. This says the true thing in the site's own voice.
 *
 * On launch, delete this rule and restore the badge, the JSON-LD installUrl and
 * the footer's Google Play link. All four are marked in the markup. */
.btn-coming {
	background: transparent;
	color: var(--accent);
	border: 1px dashed rgba(255, 176, 32, 0.45);
	font-size: 18px;
	cursor: default;
}

.btn-secondary:hover {
	color: var(--text-primary);
	background: var(--surface-selected);
}

/* ── Sections ──────────────────────────────────────────────────────────────*/
section {
	padding: 84px 0;
	border-top: 1px solid var(--border);
}

section:first-of-type {
	border-top: none;
}

.overline {
	font-size: 12px;
	letter-spacing: 1.44px;
	text-transform: uppercase;
	color: var(--text-dim);
	margin: 0 0 14px;
}

h1 {
	font-family: var(--display);
	font-size: clamp(42px, 7vw, 74px);
	line-height: 1.02;
	letter-spacing: -2px;
	margin: 0 0 20px;
}

h2 {
	font-family: var(--display);
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.1;
	letter-spacing: -1px;
	margin: 0 0 16px;
}

h3 {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.3px;
	margin: 0 0 8px;
}

.lede {
	font-size: 20px;
	line-height: 1.55;
	color: var(--text-secondary);
	max-width: 46ch;
	margin: 0 0 32px;
}

.section-intro {
	color: var(--text-muted);
	max-width: 58ch;
	margin: 0 0 44px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────*/
.hero {
	padding: 76px 0 84px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

@media (max-width: 900px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 44px;
	}
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.play-badge img {
	height: 62px;
	width: auto;
}

.hero-note {
	margin: 26px 0 0;
	font-size: 14px;
	color: var(--text-dim);
}

/* The sign itself, running on the page. The product demonstrates itself, which is
 * the same argument the store listing makes for shooting screenshots in a dark room. */
.sign {
	background: var(--sign-canvas);
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-xxxl);
	padding: 46px 0;
	overflow: hidden;
	position: relative;
}

.sign-label {
	position: absolute;
	top: 16px;
	left: 22px;
	font-size: 11px;
	letter-spacing: 1.4px;
	color: var(--text-faint);
	text-transform: uppercase;
}

.marquee {
	display: flex;
	width: max-content;
	animation: scroll 14s linear infinite;
}

.marquee span {
	font-family: var(--display);
	font-size: clamp(44px, 7vw, 76px);
	line-height: 1.15;
	white-space: nowrap;
	padding-right: 0.6em;
	color: var(--accent);
	/* BigTextGlow.sign: a tight bright core plus a wide soft spill. */
	text-shadow: 0 0 0.44em rgba(255, 176, 32, 0.65), 0 0 1.02em rgba(255, 176, 32, 0.35);
}

@keyframes scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* The sign is decoration here. Anyone who has asked the OS to stop moving things
 * should get a still one. */
@media (prefers-reduced-motion: reduce) {
	.marquee {
		animation: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ── Promise strip ─────────────────────────────────────────────────────────*/
.promises {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius-xxl);
	overflow: hidden;
}

@media (max-width: 760px) {
	.promises {
		grid-template-columns: repeat(2, 1fr);
	}
}

.promise {
	background: var(--surface-elevated);
	padding: 28px 22px;
	text-align: center;
}

.promise strong {
	display: block;
	font-family: 'Silkscreen', var(--display);
	font-size: 26px;
	color: var(--accent);
	margin-bottom: 8px;
}

.promise span {
	font-size: 14px;
	color: var(--text-muted);
}

/* ── Feature cards ─────────────────────────────────────────────────────────*/
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
}

.card {
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-xxxl);
	padding: 30px 28px;
}

.card p {
	margin: 0;
	color: var(--text-muted);
	font-size: 16px;
	line-height: 1.55;
}

/* Lucide, inlined as SVG rather than pulled from a CDN, for the same reason the
 * fonts are self-hosted: this site should make no third party request.
 *
 * The app's own chrome is Material (BigTextIcons in lib/core/widgets/chrome.dart)
 * and this is a knowing departure. Lucide's 2px rounded stroke sits closer to the
 * prototype's bare geometry than Material's filled glyphs do, and at 24px on a
 * dark surface the lighter line is what keeps the amber the only loud thing on
 * the page. The two vocabularies never appear side by side. */
.icon {
	width: 24px;
	height: 24px;
	flex: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.card .glyph {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	background: var(--surface-selected);
	display: grid;
	place-items: center;
	margin-bottom: 18px;
	color: var(--accent);
}

.btn .icon {
	width: 20px;
	height: 20px;
}

/* The privacy panel's icon sits on the same line as its first sentence. */
.panel-head {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--accent);
	margin: 0 0 16px;
	font-weight: 700;
	font-size: 17px;
}

/* ── Screenshots ───────────────────────────────────────────────────────────*/
.shots {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	padding: 6px 0 24px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--border-strong) transparent;
}

.shot {
	flex: none;
	width: 258px;
	scroll-snap-align: start;
}

.shot img {
	width: 100%;
	height: auto;
	border-radius: var(--radius-xxl);
}

.shot figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--text-dim);
	text-align: center;
}

/* ── Plans ─────────────────────────────────────────────────────────────────*/
.plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

@media (max-width: 760px) {
	.plans {
		grid-template-columns: 1fr;
	}
}

.plan {
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-xxxl);
	padding: 34px 30px;
}

.plan.pro {
	border-color: rgba(255, 176, 32, 0.32);
}

.plan h3 {
	font-family: var(--display);
	font-size: 26px;
	letter-spacing: -0.6px;
	margin-bottom: 4px;
}

.plan .price {
	font-size: 15px;
	color: var(--text-dim);
	margin: 0 0 24px;
}

.badge {
	display: inline-block;
	background: var(--accent);
	color: var(--on-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	padding: 4px 10px;
	border-radius: 8px;
	vertical-align: 4px;
	margin-left: 10px;
}

ul.ticks {
	list-style: none;
	margin: 0;
	padding: 0;
}

ul.ticks li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 12px;
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.5;
}

ul.ticks li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--accent);
}

.plan.free ul.ticks li::before {
	background: var(--text-faint);
}

/* ── Privacy panel ─────────────────────────────────────────────────────────
 * The Pro screen's reassurance note: a sunken panel inside an elevated area. */
.panel {
	background: var(--surface-sunken);
	border: 1px dashed var(--border-dashed);
	border-radius: var(--radius-xxl);
	padding: 30px 28px;
	color: var(--text-muted);
	font-size: 16px;
}

.panel p:last-child {
	margin-bottom: 0;
}

/* ── Footer ────────────────────────────────────────────────────────────────*/
footer.site {
	border-top: 1px solid var(--border);
	padding: 46px 0 60px;
	color: var(--text-dim);
	font-size: 14px;
}

footer.site .rows {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

footer.site nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}

footer.site a {
	color: var(--text-muted);
	text-decoration: none;
}

footer.site a:hover {
	color: var(--text-primary);
}

/* ── Long-form pages (privacy policy) ──────────────────────────────────────*/
/* The gutter is restated rather than inherited: this rule sets `padding` for the
 * vertical rhythm, and the shorthand would otherwise reset `.wrap`'s horizontal
 * padding to zero. On a phone that put the body copy flush against both edges. */
.doc {
	max-width: 720px;
	padding: 64px var(--gutter) 40px;
	/* An email address or a long URL must not push the page sideways. */
	overflow-wrap: break-word;
}

.doc h1 {
	font-size: clamp(34px, 5vw, 48px);
	letter-spacing: -1.4px;
	margin-bottom: 12px;
}

.doc .updated {
	color: var(--text-dim);
	font-size: 15px;
	margin: 0 0 44px;
}

.doc h2 {
	font-family: var(--ui);
	font-weight: 700;
	font-size: 24px;
	letter-spacing: -0.4px;
	margin: 48px 0 14px;
}

.doc p,
.doc li {
	color: var(--text-secondary);
	font-size: 17px;
	line-height: 1.7;
}

.doc ul {
	padding-left: 22px;
}

.doc li {
	margin-bottom: 10px;
}

.doc .summary {
	background: var(--surface-elevated);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius-lg);
	padding: 26px 28px;
	margin: 0 0 12px;
}

.doc .summary p {
	margin: 0;
	color: var(--text-primary);
	font-size: 18px;
}

@media (max-width: 560px) {
	.doc {
		padding-top: 44px;
	}

	.doc .updated {
		margin-bottom: 34px;
	}

	.doc .summary {
		padding: 22px 20px;
	}

	.doc .summary p {
		font-size: 17px;
	}

	.doc h2 {
		font-size: 21px;
		margin-top: 38px;
	}

	.doc p,
	.doc li {
		font-size: 16px;
	}

	.doc ul {
		padding-left: 18px;
	}
}
