/*
  corner.css
  Self-contained stylesheet for the "In Your Corner" safeguarding page.
  Zero dependencies. Copy this folder to any webserver — works anywhere.

  Aesthetic: "nocturnal essay". Warm dark palette (tobacco/cream/gold, not the
  generic charcoal-and-accent dark mode). Editorial typography with a serif
  display paired with Lexend for body. Subtle grain + vignette for tactility.
  Stages read as typographic sections, not cards. Designed to feel authored,
  not computed.

  TO RE-THEME: edit the CSS custom properties under :root.
  TO RE-CONTENT: edit data.js.
  TO SWAP THE DISPLAY SERIF: replace Georgia in --font-display with a
  self-hosted font of your choice (e.g. Fraunces, Newsreader, EB Garamond).
*/

/* ------------------------------------------------------------------
   Fonts
------------------------------------------------------------------- */
@font-face {
	font-family: 'Lexend';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/fonts/lexend-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
		U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------
   Design tokens
------------------------------------------------------------------- */
:root {
	/* Surfaces — warm tobacco/bitter chocolate, not generic charcoal */
	--color-bg: #161310;
	--color-surface: #1f1a15;
	--color-surface-warm: #2a2319;
	--color-surface-alt: #322a20;

	/* Ink tones — warm cream rather than cold white */
	--color-text: #ede3cf;
	--color-text-soft: #d4c7ad;
	--color-text-muted: #9a8f7f;
	--color-text-faint: #6e6358;

	/* Accent — burnished gold / ochre (mineral, not the usual amber) */
	--color-accent: #d4a35a;
	--color-accent-deep: #b58339;
	--color-accent-soft: rgba(212, 163, 90, 0.14);
	--color-accent-glow: rgba(212, 163, 90, 0.28);

	/* Semantic — rust/clay for danger, never fire-engine red */
	--color-danger: #c46b4a;
	--color-danger-soft: rgba(196, 107, 74, 0.18);

	/* Structural */
	--color-border: #39302a;
	--color-border-soft: #2a241e;

	/* Typography */
	--font-body: 'Lexend', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	--font-display: 'Fraunces', 'Newsreader', 'Iowan Old Style', 'Book Antiqua', 'Georgia', serif;

	--measure: 36rem; /* reading column width — roughly 60–65 characters */

	--transition-soft: 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
	--transition-fast: 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html,
body {
	margin: 0;
	padding: 0;
	background: var(--color-bg);
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--color-text);
	font-family: var(--font-body);
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: 0.005em;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

::selection {
	background: var(--color-accent-glow);
	color: var(--color-bg);
}

button {
	font-family: inherit;
	color: inherit;
}

a {
	color: var(--color-accent);
	text-decoration-color: var(--color-accent-soft);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--transition-fast);
}

a:hover,
a:focus-visible {
	text-decoration-color: var(--color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
	margin: 0;
}

/* ------------------------------------------------------------------
   Atmosphere — grain + vignette layered over everything
   Pure CSS, no external image requests.
------------------------------------------------------------------- */
body::before {
	/* Grain overlay */
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	opacity: 0.045;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.75  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
	mix-blend-mode: screen;
}

body::after {
	/* Edge vignette — genuinely subtle; corners warm rather than heavy */
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2;
	background: radial-gradient(
		ellipse 85% 110% at 50% 50%,
		transparent 60%,
		rgba(0, 0, 0, 0.3) 100%
	);
}

/* ------------------------------------------------------------------
   Quick exit — restrained, almost apologetic
------------------------------------------------------------------- */
.quick-exit {
	position: fixed;
	top: 1.25rem;
	right: 1.25rem;
	background: rgba(22, 19, 16, 0.85);
	color: var(--color-text-soft);
	border: 1px solid var(--color-border);
	padding: 0.5rem 1rem 0.55rem;
	border-radius: 9999px;
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	cursor: pointer;
	z-index: 50;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: all var(--transition-fast);
}

.quick-exit:hover,
.quick-exit:focus-visible {
	background: var(--color-danger);
	color: var(--color-bg);
	border-color: var(--color-danger);
	outline: none;
	transform: translateY(-1px);
}

.quick-exit:focus-visible {
	box-shadow: 0 0 0 3px var(--color-danger-soft);
}

/* ------------------------------------------------------------------
   Page container
------------------------------------------------------------------- */
#app {
	position: relative;
	z-index: 3; /* above grain + vignette */
	max-width: var(--measure);
	margin: 0 auto;
	padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem 4rem;
}

/* ------------------------------------------------------------------
   Page header — asymmetric, serif, with a hand-drawn-feeling underline
------------------------------------------------------------------- */
.page-header {
	text-align: left;
	margin-bottom: 3.5rem;
	animation: header-settle 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 7vw, 3.75rem);
	font-weight: 600;
	font-style: italic;
	color: var(--color-text);
	letter-spacing: -0.015em;
	line-height: 1;
	margin-bottom: 0.75rem;
	font-feature-settings: 'liga', 'dlig', 'ss01';
}

.page-title::after {
	/* A hand-drawn-feel underline under the title */
	content: '';
	display: block;
	width: 2.5rem;
	height: 2px;
	background: var(--color-accent);
	margin-top: 0.9rem;
	border-radius: 2px;
	transform-origin: left;
	animation: underline-draw 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}

.page-subtitle {
	color: var(--color-text-muted);
	font-size: 0.95rem;
	font-family: var(--font-display);
	font-style: italic;
	letter-spacing: 0.01em;
	line-height: 1.4;
	max-width: 26rem;
}

@keyframes header-settle {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes underline-draw {
	from {
		transform: scaleX(0);
	}
	to {
		transform: scaleX(1);
	}
}

/* ------------------------------------------------------------------
   Audience toggle — sliding pill (the active state slides, doesn't snap)
------------------------------------------------------------------- */
.audience-toggle {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 2.25rem;
	animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both;
}

.toggle-label {
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-style: italic;
	letter-spacing: 0.04em;
	color: var(--color-text-muted);
}

.toggle-pill {
	display: inline-flex;
	position: relative;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	padding: 0.2rem;
	gap: 0;
	box-shadow:
		0 1px 0 rgba(0, 0, 0, 0.15),
		inset 0 1px 0 rgba(255, 238, 210, 0.03);
}

.toggle-btn {
	position: relative;
	background: transparent;
	border: none;
	color: var(--color-text-muted);
	padding: 0.55rem 1.15rem;
	border-radius: 9999px;
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: color var(--transition-soft);
	white-space: nowrap;
	z-index: 2;
}

.toggle-btn:hover:not(.active) {
	color: var(--color-text-soft);
}

.toggle-btn.active {
	color: var(--color-bg);
}

/* The sliding highlight — a gold pill that moves under the active button.
   Implemented via ::before on the active button itself so it's always the
   right size without tracking positions in JS. */
.toggle-btn.active::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--color-accent);
	border-radius: 9999px;
	z-index: -1;
	box-shadow: 0 2px 8px var(--color-accent-soft);
	animation: toggle-settle 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes toggle-settle {
	from {
		transform: scale(0.92);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.toggle-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--color-accent-soft);
	border-radius: 9999px;
}

/* ------------------------------------------------------------------
   Privacy card — reads like a marginalia / note to self
------------------------------------------------------------------- */
.privacy-card {
	position: relative;
	padding: 1rem 1.25rem 1rem 2.5rem;
	margin-bottom: 2.75rem;
	font-size: 0.88rem;
	line-height: 1.65;
	color: var(--color-text-soft);
	border-left: 2px solid var(--color-accent-deep);
	animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both;
}

.privacy-card::before {
	/* A small ornamental mark at the start */
	content: '§';
	position: absolute;
	left: 0.75rem;
	top: 0.85rem;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.4rem;
	color: var(--color-accent);
	line-height: 1;
}

.privacy-card-privacy {
	color: var(--color-text);
}

.privacy-card-device {
	margin-top: 0.75rem;
	color: var(--color-text-muted);
	font-size: 0.84rem;
	border-top: 1px dashed var(--color-border-soft);
	padding-top: 0.75rem;
}

.privacy-card strong {
	color: var(--color-text);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Opener — first paragraph gets a drop cap
------------------------------------------------------------------- */
.opener {
	/* flow-root contains the drop-cap's float so it can't leak into
	   later paragraphs or the next section. */
	display: flow-root;
	margin-bottom: 3rem;
	animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both;
}

.opener .prose-p {
	font-size: 1.075rem;
	color: var(--color-text);
	line-height: 1.75;
}

.opener .prose-p:first-child {
	/* Contain the dropcap float so short first paragraphs don't cause
	   the second paragraph to wrap around it. */
	display: flow-root;
}

.opener .prose-p:first-child::first-letter {
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 3.8em;
	line-height: 0.85;
	float: left;
	padding: 0.1em 0.15em 0 0;
	color: var(--color-accent);
}

.opener .prose-p + .prose-p {
	margin-top: 1rem;
	clear: left;
}

.opener strong {
	color: var(--color-accent);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Sections intro — understated, italic serif, small
------------------------------------------------------------------- */
.sections-intro {
	font-family: var(--font-display);
	font-size: 1rem;
	font-style: italic;
	color: var(--color-text-muted);
	text-align: center;
	margin: 3rem auto 1.5rem;
	letter-spacing: 0.01em;
	max-width: 26rem;
	animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.5s both;
}

/* ------------------------------------------------------------------
   Stages — editorial sections separated by an ornament, not card borders
------------------------------------------------------------------- */
.stages {
	display: flex;
	flex-direction: column;
	margin-bottom: 4rem;
}

.stage {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 0 1.5rem;
	position: relative;
	animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
	animation-delay: calc(0.1s * var(--i, 0));
	transition: padding var(--transition-soft);
}

/* Ornament divider between consecutive stages — ✦ centered on a soft line */
.stage + .stage {
	padding-top: 3rem;
}

.stage + .stage::before {
	content: '✦';
	position: absolute;
	top: 0.6rem;
	left: 50%;
	transform: translateX(-50%);
	color: var(--color-accent);
	font-size: 0.9rem;
	opacity: 0.6;
	letter-spacing: 0.3em;
}

.stage + .stage::after {
	content: '';
	position: absolute;
	top: 1.25rem;
	left: 50%;
	width: 4rem;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		var(--color-border),
		transparent
	);
	transform: translateX(-50%);
}

.stage-heading {
	font-family: var(--font-display);
	font-size: 1.55rem;
	font-weight: 500;
	font-style: italic;
	color: var(--color-text);
	letter-spacing: -0.005em;
	line-height: 1.2;
	margin-bottom: 1rem;
	max-width: 28rem;
	transition:
		color var(--transition-soft),
		font-size var(--transition-soft),
		margin-bottom var(--transition-soft);
}

.prose-p {
	color: var(--color-text-soft);
	font-size: 0.985rem;
	line-height: 1.75;
	margin: 0;
}

.stage .prose-p + .prose-p {
	margin-top: 0.95rem;
}

.stage strong {
	color: var(--color-accent);
	font-weight: 600;
}

.stage em {
	color: var(--color-text);
	font-style: italic;
	font-family: var(--font-display);
	font-size: 1.04em;
	font-weight: 500;
}

.stage a {
	color: var(--color-accent);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--color-accent-soft);
}

/* ------------------------------------------------------------------
   "This sounds familiar" checkbox — centered, custom hand-drawn-feel tick
------------------------------------------------------------------- */
.stage-check {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-top: 1.5rem;
	align-self: center; /* centers within flex-column .stage */
	padding: 0.55rem 1.1rem 0.55rem 0.8rem;
	border-radius: 9999px;
	background: transparent;
	border: 1px dashed var(--color-border);
	color: var(--color-text-muted);
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-style: italic;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition:
		background var(--transition-fast),
		color var(--transition-fast),
		border-color var(--transition-fast),
		transform var(--transition-fast);
}

.stage-check:hover {
	color: var(--color-text);
	border-color: var(--color-accent-soft);
	transform: translateY(-1px);
}

.stage-check input[type='checkbox'] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.05rem;
	height: 1.05rem;
	border: 1.5px solid var(--color-border);
	border-radius: 0.25rem;
	background: transparent;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	transition:
		background var(--transition-fast),
		border-color var(--transition-fast),
		transform var(--transition-fast);
}

.stage-check input[type='checkbox']:hover {
	border-color: var(--color-accent);
}

.stage-check input[type='checkbox']:checked {
	background: var(--color-accent);
	border-color: var(--color-accent);
	transform: scale(1.05);
}

.stage-check input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	left: 0.28rem;
	top: 0.06rem;
	width: 0.32rem;
	height: 0.56rem;
	border: solid var(--color-bg);
	border-width: 0 2px 2px 0;
	transform: rotate(42deg);
}

.stage-check input[type='checkbox']:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.stage-check.is-checked {
	border-color: var(--color-accent);
	border-style: solid;
	color: var(--color-accent);
	background: var(--color-accent-soft);
}

/* Collapsed stage — heading + checkbox remain; body prose hides */
.stage.is-collapsed {
	padding: 1rem 0;
}

.stage.is-collapsed + .stage {
	padding-top: 2rem;
}

.stage.is-collapsed + .stage::before {
	top: 0.4rem;
}

.stage.is-collapsed + .stage::after {
	top: 1rem;
}

.stage.is-collapsed .prose-p {
	display: none;
}

.stage.is-collapsed .stage-heading {
	color: var(--color-text-muted);
	font-size: 1.15rem;
	margin-bottom: 0;
}

.stage.is-collapsed .stage-check {
	margin-top: 0.75rem;
}

/* ------------------------------------------------------------------
   Info cards — law, police, how-to-talk. Treated as editorial asides.
------------------------------------------------------------------- */
.info-card {
	position: relative;
	margin: 3rem 0 2rem;
	padding: 1.75rem 1.75rem 1.75rem 2rem;
	background: var(--color-surface);
	border-radius: 0.5rem;
	border-left: 3px solid var(--color-accent);
}

.info-card-heading {
	font-family: var(--font-display);
	font-size: 1.4rem;
	font-weight: 500;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.25;
	margin-bottom: 1rem;
	letter-spacing: -0.005em;
}

.info-card .prose-p {
	color: var(--color-text-soft);
	font-size: 0.95rem;
	line-height: 1.75;
}

.info-card .prose-p + .prose-p {
	margin-top: 0.95rem;
}

.info-card strong {
	color: var(--color-accent);
	font-weight: 600;
}

.info-card em {
	color: var(--color-text);
	font-style: italic;
	font-family: var(--font-display);
}

.info-card a {
	color: var(--color-accent);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--color-accent-soft);
}

/* ------------------------------------------------------------------
   Reach-out section
------------------------------------------------------------------- */
.reach-out {
	margin: 3.5rem 0 1.75rem;
}

.section-heading {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 500;
	font-style: italic;
	color: var(--color-text);
	letter-spacing: -0.01em;
	margin-bottom: 1rem;
}

.reach-out .prose-p {
	color: var(--color-text-soft);
	font-size: 0.985rem;
	line-height: 1.75;
	margin-bottom: 1.5rem;
}

.reach-out strong {
	color: var(--color-accent);
	font-weight: 600;
}

/* ------------------------------------------------------------------
   Resource cards — restrained, letterpress-like
------------------------------------------------------------------- */
.resource-cards {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0.5rem 0;
}

.resource-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border-soft);
	padding: 1rem 1.15rem;
	border-radius: 0.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	text-decoration: none;
	color: inherit;
	transition:
		transform var(--transition-fast),
		border-color var(--transition-soft),
		background var(--transition-soft),
		box-shadow var(--transition-soft);
	position: relative;
	overflow: hidden;
}

a.resource-card {
	cursor: pointer;
}

a.resource-card::before {
	/* Subtle left-edge bloom on hover */
	content: '';
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient(90deg, var(--color-accent-soft), transparent);
	transition: width var(--transition-soft);
	pointer-events: none;
}

a.resource-card:hover::before,
a.resource-card:focus-visible::before {
	width: 100%;
}

a.resource-card:hover,
a.resource-card:focus-visible {
	border-color: var(--color-accent);
	transform: translateX(2px);
	outline: none;
}

a.resource-card:focus-visible {
	box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.resource-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-style: italic;
	color: var(--color-text);
	font-size: 1.08rem;
	margin-bottom: 0.15rem;
	letter-spacing: -0.005em;
}

.resource-desc {
	font-size: 0.83rem;
	color: var(--color-text-muted);
	line-height: 1.5;
	letter-spacing: 0.005em;
}

.resource-cta {
	font-family: var(--font-display);
	color: var(--color-accent);
	font-weight: 500;
	font-style: italic;
	white-space: nowrap;
	font-size: 0.95rem;
	position: relative;
	z-index: 1;
}

/* ------------------------------------------------------------------
   Emergency box — editorial footnote feel with a rust left rule
------------------------------------------------------------------- */
.emergency {
	position: relative;
	padding: 1.1rem 1.25rem 1.1rem 1.5rem;
	margin: 1.25rem 0 2.75rem;
	border-left: 3px solid var(--color-danger);
	background: linear-gradient(
		90deg,
		var(--color-danger-soft) 0%,
		transparent 60%
	);
	border-radius: 0 0.5rem 0.5rem 0;
	font-size: 0.88rem;
	color: var(--color-text-soft);
	line-height: 1.75;
}

.emergency p + p {
	margin-top: 0.3rem;
}

.emergency strong {
	color: var(--color-danger);
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------------
   How-to-talk bullets (parent)
------------------------------------------------------------------- */
.talk-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
}

.talk-list li {
	padding: 1rem 0 1rem 2rem;
	position: relative;
	color: var(--color-text-soft);
	font-size: 0.95rem;
	line-height: 1.7;
	border-top: 1px solid var(--color-border-soft);
}

.talk-list li:first-child {
	border-top: none;
	padding-top: 0.5rem;
}

.talk-list li:last-child {
	padding-bottom: 0.5rem;
}

.talk-list li::before {
	content: '—';
	position: absolute;
	left: 0;
	top: 1rem;
	font-family: var(--font-display);
	color: var(--color-accent);
	font-weight: 400;
	font-style: italic;
	font-size: 1.1rem;
}

.talk-list li:first-child::before {
	top: 0.5rem;
}

.talk-list strong {
	color: var(--color-text);
	font-weight: 600;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.02em;
	letter-spacing: -0.005em;
}

.talk-list em {
	color: var(--color-text-muted);
	font-style: italic;
}

/* ------------------------------------------------------------------
   Final message — closing paragraph, set apart with a breath of space
------------------------------------------------------------------- */
.final-message {
	margin: 4rem auto 2rem;
	text-align: center;
	padding: 2.5rem 1.5rem 2rem;
	max-width: 30rem;
	position: relative;
}

.final-message::before {
	content: '✦';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	color: var(--color-accent);
	font-size: 1.1rem;
	opacity: 0.7;
	letter-spacing: 0.3em;
}

.final-message::after {
	content: '';
	position: absolute;
	top: 0.7rem;
	left: 50%;
	transform: translateX(-50%);
	width: 5rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.final-message .prose-p {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-style: italic;
	color: var(--color-text);
	line-height: 1.6;
	letter-spacing: -0.005em;
}

.final-message .prose-p + .prose-p {
	margin-top: 0.75rem;
}

/* ------------------------------------------------------------------
   Privacy footer — tiny type, signs off the page
------------------------------------------------------------------- */
.privacy-footer {
	margin-top: 2.5rem;
	padding: 1rem 0.25rem;
	text-align: center;
	font-family: var(--font-display);
	font-size: 0.76rem;
	font-style: italic;
	color: var(--color-text-faint);
	letter-spacing: 0.04em;
	line-height: 1.6;
	border-top: 1px dashed var(--color-border-soft);
}

/* ------------------------------------------------------------------
   Generic motion primitive
------------------------------------------------------------------- */
@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ------------------------------------------------------------------
   Reduced-motion
------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	html,
	body {
		scroll-behavior: auto !important;
	}
	body::before {
		display: none; /* grain overlay off when motion is reduced */
	}
}

/* ------------------------------------------------------------------
   Mobile refinements
------------------------------------------------------------------- */
@media (max-width: 480px) {
	.page-title {
		font-size: clamp(2.1rem, 9vw, 2.75rem);
	}
	.stage-heading {
		font-size: 1.35rem;
	}
	.info-card {
		padding: 1.5rem 1.25rem 1.5rem 1.5rem;
	}
	.info-card-heading {
		font-size: 1.2rem;
	}
	.resource-card {
		padding: 0.85rem 1rem;
	}
	.resource-title {
		font-size: 0.98rem;
	}
}
