/* ============================================================
   Layoff Survival Guide | Design System & Shared Styles
   Warm, Friendly & Comforting Redesign
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
	/* Colors | Warm Cream, Honey, Terracotta & Sage Earth Tones */
	--color-bg-primary: #FAF6F0;
	--color-bg-secondary: #F3EFE7;
	--color-bg-card: rgba(255, 255, 255, 0.78);
	--color-bg-card-hover: rgba(255, 255, 255, 0.95);
	--color-bg-glass: rgba(255, 255, 255, 0.65);
	--color-bg-glass-border: rgba(210, 180, 150, 0.22);
	--color-bg-nav: rgba(250, 246, 240, 0.88);

	--color-text-primary: #2C2520;
	--color-text-secondary: #564C43;
	--color-text-muted: #8C8074;
	--color-text-heading: #231C16;

	--color-accent: #D97745;
	--color-accent-hover: #C46433;
	--color-accent-soft: rgba(217, 119, 69, 0.12);

	--color-success: #4E8762;
	--color-success-soft: rgba(78, 135, 98, 0.12);
	--color-warning: #D28C38;
	--color-warning-soft: rgba(210, 140, 56, 0.12);
	--color-danger: #C85A52;
	--color-danger-soft: rgba(200, 90, 82, 0.10);
	--color-info: #5B7BB8;
	--color-info-soft: rgba(91, 123, 184, 0.12);
	--color-calm: #7866B5;
	--color-calm-soft: rgba(120, 102, 181, 0.12);

	--color-border: rgba(200, 170, 140, 0.20);
	--color-border-light: rgba(200, 170, 140, 0.35);

	/* Gradients */
	--gradient-hero: linear-gradient(135deg, #FAF6F0 0%, #F6EADF 35%, #F0DDD0 65%, #FAF2EA 100%);
	--gradient-accent: linear-gradient(135deg, #D97745, #C46433);
	--gradient-subtle: linear-gradient(180deg, rgba(217, 119, 69, 0.06) 0%, transparent 100%);

	/* Typography */
	--font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-heading: 'Fraunces', Georgia, serif;

	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1.0625rem;
	/* 17px for ultra-comfortable reading */
	--text-lg: 1.1875rem;
	--text-xl: 1.35rem;
	--text-2xl: 1.625rem;
	--text-3xl: 2rem;
	--text-4xl: 2.5rem;
	--text-5xl: 3.25rem;
	--text-6xl: 4rem;

	--leading-tight: 1.25;
	--leading-normal: 1.7;
	--leading-relaxed: 1.85;

	/* Spacing */
	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2.25rem;
	--space-2xl: 3.25rem;
	--space-3xl: 4.5rem;
	--space-4xl: 6.5rem;

	/* Border Radius */
	--radius-sm: 0.6rem;
	--radius-md: 1rem;
	--radius-lg: 1.25rem;
	--radius-xl: 1.75rem;
	--radius-full: 9999px;

	/* Shadows | Warm, Soft, Layered */
	--shadow-sm: 0 2px 8px rgba(140, 110, 80, 0.05);
	--shadow-md: 0 8px 24px rgba(140, 110, 80, 0.08);
	--shadow-lg: 0 16px 40px rgba(140, 110, 80, 0.11);
	--shadow-glow: 0 0 50px rgba(217, 119, 69, 0.12);

	/* Transitions */
	--transition-fast: 180ms ease;
	--transition-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);
	--transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);

	/* Layout */
	--content-width: 52rem;
	--content-width-wide: 74rem;
	--nav-height: 4.25rem;
}

/* --- View Transitions (Progressive Enhancement) --- */
@view-transition {
	navigation: auto;
}

::view-transition-old(root) {
	animation: fade-out 220ms ease forwards;
}

::view-transition-new(root) {
	animation: fade-in 320ms ease forwards;
}

@keyframes fade-out {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-text-primary);
	background-color: var(--color-bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Background ambient warmth */
body::before {
	content: '';
	position: fixed;
	top: -25%;
	left: -12%;
	width: 65%;
	height: 65%;
	background: radial-gradient(circle, rgba(246, 220, 195, 0.25) 0%, transparent 70%);
	pointer-events: none;
	z-index: -1;
}

body::after {
	content: '';
	position: fixed;
	bottom: -25%;
	right: -12%;
	width: 55%;
	height: 55%;
	background: radial-gradient(circle, rgba(217, 119, 69, 0.08) 0%, transparent 70%);
	pointer-events: none;
	z-index: -1;
}

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

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-accent-hover);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	color: var(--color-text-heading);
	line-height: var(--leading-tight);
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 {
	font-size: var(--text-5xl);
	font-weight: 800;
}

h2 {
	font-size: var(--text-3xl);
	font-weight: 700;
}

h3 {
	font-size: var(--text-xl);
	font-weight: 600;
}

h4 {
	font-size: var(--text-lg);
	font-weight: 600;
}

p {
	margin-bottom: var(--space-md);
	color: var(--color-text-secondary);
	line-height: var(--leading-normal);
}

strong {
	color: var(--color-text-primary);
	font-weight: 600;
}

em {
	color: var(--color-text-secondary);
	font-style: italic;
}

/* --- Navigation --- */
.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--nav-height);
	background: var(--color-bg-nav);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid var(--color-border);
	z-index: 1000;
	display: flex;
	align-items: center;
	transition: background var(--transition-base), border-color var(--transition-base);
}

.nav__inner {
	width: 100%;
	max-width: var(--content-width-wide);
	margin: 0 auto;
	padding: 0 var(--space-xl);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav__brand {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	color: var(--color-text-heading);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	white-space: nowrap;
}

.nav__brand:hover {
	color: var(--color-accent);
}

.nav__brand-icon {
	font-size: 1.4rem;
	filter: drop-shadow(0 2px 4px rgba(217, 119, 69, 0.2));
}

.nav__links {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	list-style: none;
}

.nav__link {
	display: block;
	padding: 0.45rem 0.9rem;
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--color-text-secondary);
	text-decoration: none;
	border-radius: var(--radius-full);
	transition: all var(--transition-fast);
	white-space: nowrap;
}

.nav__link:hover {
	color: var(--color-text-primary);
	background: rgba(217, 119, 69, 0.08);
}

.nav__link--active {
	color: var(--color-accent);
	background: var(--color-accent-soft);
	font-weight: 600;
}

.nav__link--disabled {
	color: var(--color-text-muted);
	cursor: not-allowed;
	opacity: 0.45;
}

.nav__link--disabled:hover {
	color: var(--color-text-muted);
	background: transparent;
}

/* Mobile nav toggle */
.nav__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-text-primary);
	font-size: var(--text-xl);
	cursor: pointer;
	padding: var(--space-sm);
	border-radius: var(--radius-sm);
	transition: background var(--transition-fast);
}

.nav__toggle:hover {
	background: rgba(217, 119, 69, 0.08);
}

/* --- Hero Section --- */
.hero {
	position: relative;
	padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
	background: var(--gradient-hero);
	overflow: hidden;
	text-align: center;
}

.hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(to top, var(--color-bg-primary), transparent);
	pointer-events: none;
}

.hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--content-width);
	margin: 0 auto;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 0.4rem 1.1rem;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(217, 119, 69, 0.2);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-xl);
	backdrop-filter: blur(12px);
	box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-accent);
	animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(217, 119, 69, 0.4);
	}

	50% {
		opacity: 0.6;
		transform: scale(1.2);
		box-shadow: 0 0 0 6px rgba(217, 119, 69, 0);
	}
}

.hero__chapter {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	margin-bottom: var(--space-sm);
}

.hero__title {
	font-family: var(--font-heading);
	font-size: var(--text-6xl);
	font-weight: 800;
	color: var(--color-text-heading);
	margin-bottom: var(--space-lg);
	letter-spacing: -0.02em;
}

.hero__subtitle {
	font-size: var(--text-xl);
	color: var(--color-text-secondary);
	max-width: 38rem;
	margin: 0 auto var(--space-xl);
	line-height: var(--leading-relaxed);
}

/* Ambient animated orbs behind hero */
.hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
	opacity: 0.55;
}

.hero__orb--1 {
	width: 420px;
	height: 420px;
	background: rgba(246, 205, 175, 0.45);
	top: -120px;
	right: -80px;
	animation: float-orb 10s ease-in-out infinite;
}

.hero__orb--2 {
	width: 350px;
	height: 350px;
	background: rgba(217, 160, 120, 0.3);
	bottom: -60px;
	left: -60px;
	animation: float-orb 12s ease-in-out infinite reverse;
}

@keyframes float-orb {

	0%,
	100% {
		transform: translate(0, 0);
	}

	33% {
		transform: translate(25px, -35px);
	}

	66% {
		transform: translate(-20px, 20px);
	}
}

/* --- Main Content --- */
.content {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: var(--space-2xl) var(--space-xl) var(--space-4xl);
}

/* --- Sections --- */
.section {
	margin-bottom: var(--space-4xl);
}

.section__header {
	margin-bottom: var(--space-2xl);
}

.section__number {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-bottom: var(--space-sm);
}

.section__title {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-md);
	position: relative;
	padding-bottom: var(--space-md);
}

.section__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 50px;
	height: 4px;
	background: var(--gradient-accent);
	border-radius: var(--radius-full);
}

.section__intro {
	font-size: var(--text-lg);
	color: var(--color-text-secondary);
	line-height: var(--leading-relaxed);
}

/* --- Warm Card --- */
.card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	margin-bottom: var(--space-xl);
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: all var(--transition-base);
}

.card:hover {
	background: var(--color-bg-card-hover);
	border-color: var(--color-border-light);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.card__title {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
	margin-bottom: var(--space-md);
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
}

.card__icon {
	font-size: 1.5rem;
	flex-shrink: 0;
	line-height: 1;
}

.card__body p {
	margin-bottom: var(--space-md);
}

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

/* --- Callout Boxes | Warm, Gentle Tones --- */
.callout {
	border-radius: var(--radius-lg);
	padding: var(--space-lg) var(--space-xl);
	margin-bottom: var(--space-xl);
	border-left: 5px solid;
	position: relative;
	box-shadow: var(--shadow-sm);
	backdrop-filter: blur(8px);
}

.callout__title {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	margin-bottom: var(--space-sm);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.callout p {
	margin-bottom: var(--space-xs);
	color: var(--color-text-secondary);
}

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

.callout--tip {
	background: var(--color-success-soft);
	border-color: var(--color-success);
}

.callout--tip .callout__title {
	color: var(--color-success);
}

.callout--warning {
	background: var(--color-warning-soft);
	border-color: var(--color-warning);
}

.callout--warning .callout__title {
	color: var(--color-warning);
}

.callout--danger {
	background: var(--color-danger-soft);
	border-color: var(--color-danger);
}

.callout--danger .callout__title {
	color: var(--color-danger);
}

.callout--info {
	background: var(--color-info-soft);
	border-color: var(--color-info);
}

.callout--info .callout__title {
	color: var(--color-info);
}

.callout--calm {
	background: var(--color-calm-soft);
	border-color: var(--color-calm);
}

.callout--calm .callout__title {
	color: var(--color-calm);
}

/* --- Lists --- */
.list {
	list-style: none;
	padding: 0;
	margin-bottom: var(--space-xl);
}

.list li {
	position: relative;
	padding-left: var(--space-xl);
	margin-bottom: var(--space-md);
	color: var(--color-text-secondary);
	line-height: var(--leading-relaxed);
}

.list li::before {
	content: '';
	position: absolute;
	left: 0.2rem;
	top: 0.7em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--color-accent);
}

/* Do / Don't lists */
.list--do li::before,
.list--dont li::before {
	content: none;
}

.list--do li {
	padding-left: var(--space-2xl);
}

.list--do li::after {
	content: '✅';
	position: absolute;
	left: 0;
	top: 0;
	font-size: var(--text-base);
}

.list--dont li {
	padding-left: var(--space-2xl);
}

.list--dont li::after {
	content: '❌';
	position: absolute;
	left: 0;
	top: 0;
	font-size: var(--text-base);
}

/* Nested list */
.list--nested {
	margin-top: var(--space-md);
	margin-bottom: var(--space-sm);
	padding-left: var(--space-md);
}

.list--nested li::before {
	width: 5px;
	height: 5px;
	background: var(--color-text-muted);
}

/* --- Stage Cards (Grief Stages) --- */
.stages {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

.stage {
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.stage:hover {
	background: var(--color-bg-card-hover);
	border-color: var(--color-border-light);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.stage__number {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: var(--space-xs);
}

.stage__name {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	color: var(--color-text-heading);
	margin-bottom: var(--space-xs);
}

.stage__example {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	font-style: italic;
	line-height: var(--leading-relaxed);
}

/* --- Breathing Exercise --- */
.breathing {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
	padding: var(--space-2xl);
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-xl);
	margin-bottom: var(--space-xl);
	box-shadow: var(--shadow-sm);
}

.breathing__circle {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	border: 4px solid var(--color-calm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: var(--text-lg);
	color: var(--color-calm);
	animation: breathe 16s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	background: var(--color-calm-soft);
	box-shadow: 0 0 30px rgba(120, 102, 181, 0.2);
}

@keyframes breathe {

	0%,
	100% {
		transform: scale(1);
		opacity: 0.75;
		box-shadow: 0 0 20px rgba(120, 102, 181, 0.15);
	}

	6.25% {
		transform: scale(1);
		opacity: 0.75;
	}

	25% {
		transform: scale(1.35);
		opacity: 1;
		box-shadow: 0 0 45px rgba(120, 102, 181, 0.35);
	}

	31.25% {
		transform: scale(1.35);
		opacity: 1;
	}

	50% {
		transform: scale(1);
		opacity: 0.75;
		box-shadow: 0 0 20px rgba(120, 102, 181, 0.15);
	}

	56.25% {
		transform: scale(1);
		opacity: 0.75;
	}

	75% {
		transform: scale(1.35);
		opacity: 1;
		box-shadow: 0 0 45px rgba(120, 102, 181, 0.35);
	}

	81.25% {
		transform: scale(1.35);
		opacity: 1;
	}
}

.breathing__steps {
	display: flex;
	gap: var(--space-md);
	flex-wrap: wrap;
	justify-content: center;
}

.breathing__step {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	padding: 0.4rem 0.9rem;
	background: rgba(120, 102, 181, 0.08);
	border-radius: var(--radius-full);
	font-size: var(--text-sm);
	color: var(--color-text-secondary);
}

.breathing__step-num {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-calm);
	color: #FFF;
	font-weight: 700;
	font-size: var(--text-xs);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* --- Reframe Comparison --- */
.reframe {
	display: grid;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.reframe__item {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md) var(--space-lg);
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
}

.reframe__old {
	font-size: var(--text-sm);
	color: var(--color-danger);
	text-decoration: line-through;
	text-decoration-color: rgba(200, 90, 82, 0.4);
}

.reframe__arrow {
	color: var(--color-accent);
	font-size: var(--text-lg);
	font-weight: 700;
}

.reframe__new {
	font-size: var(--text-sm);
	color: var(--color-success);
	font-weight: 600;
}

/* --- Question Checklist (for layoff conversation) --- */
.question-list {
	list-style: none;
	padding: 0;
	margin-bottom: var(--space-lg);
}

.question-list li {
	padding: var(--space-md) var(--space-lg);
	padding-left: calc(var(--space-lg) + 1.5rem);
	margin-bottom: var(--space-sm);
	background: rgba(255, 255, 255, 0.65);
	border-radius: var(--radius-md);
	color: var(--color-text-secondary);
	font-size: var(--text-sm);
	position: relative;
	border: 1px solid var(--color-border);
	transition: all var(--transition-fast);
}

.question-list li::before {
	content: '❓';
	position: absolute;
	left: var(--space-md);
	top: var(--space-md);
	font-size: var(--text-sm);
}

.question-list li:hover {
	border-color: var(--color-border-light);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--shadow-sm);
}

/* --- Next Page CTA --- */
.next-page {
	margin-top: var(--space-4xl);
	padding: var(--space-2xl);
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-xl);
	text-align: center;
	box-shadow: var(--shadow-sm);
}

.next-page__label {
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-bottom: var(--space-md);
	font-weight: 600;
}

.next-page__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-md);
	font-family: var(--font-heading);
	font-size: var(--text-2xl);
	font-weight: 700;
	color: var(--color-accent);
	text-decoration: none;
	padding: var(--space-md) var(--space-xl);
	border-radius: var(--radius-lg);
	transition: all var(--transition-base);
}

.next-page__link:hover {
	background: var(--color-accent-soft);
	color: var(--color-accent-hover);
	transform: translateX(4px);
}

.next-page__link--disabled {
	color: var(--color-text-muted);
	cursor: not-allowed;
	opacity: 0.45;
}

.next-page__link--disabled:hover {
	background: transparent;
	color: var(--color-text-muted);
	transform: none;
}

.next-page__arrow {
	font-size: var(--text-2xl);
	transition: transform var(--transition-fast);
}

.next-page__link:hover .next-page__arrow {
	transform: translateX(4px);
}

/* --- Footer --- */
.footer {
	padding: var(--space-2xl) var(--space-xl);
	border-top: 1px solid var(--color-border);
	text-align: center;
}

.footer__text {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}

/* --- Scroll Fade-In Animations --- */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Stagger children */
.fade-in-group>.fade-in:nth-child(1) {
	transition-delay: 0ms;
}

.fade-in-group>.fade-in:nth-child(2) {
	transition-delay: 80ms;
}

.fade-in-group>.fade-in:nth-child(3) {
	transition-delay: 160ms;
}

.fade-in-group>.fade-in:nth-child(4) {
	transition-delay: 240ms;
}

.fade-in-group>.fade-in:nth-child(5) {
	transition-delay: 320ms;
}

.fade-in-group>.fade-in:nth-child(6) {
	transition-delay: 400ms;
}

.fade-in-group>.fade-in:nth-child(7) {
	transition-delay: 480ms;
}

/* --- Utility --- */
.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;
}

.text-accent {
	color: var(--color-accent);
}

.text-muted {
	color: var(--color-text-muted);
}

.text-sm {
	font-size: var(--text-sm);
}

.mt-lg {
	margin-top: var(--space-lg);
}

.mb-lg {
	margin-bottom: var(--space-lg);
}

.mb-xl {
	margin-bottom: var(--space-xl);
}

/* Inline quote style */
.inline-quote {
	font-family: var(--font-heading);
	font-style: italic;
	font-size: var(--text-lg);
	color: var(--color-text-secondary);
	border-left: 4px solid var(--color-accent);
	padding-left: var(--space-md);
	margin: var(--space-lg) 0;
	display: block;
}

/* --- Accessibility / Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.fade-in {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --- Responsive --- */
@media (max-width: 768px) {
	:root {
		--nav-height: 3.75rem;
	}

	.nav__toggle {
		display: block;
	}

	.nav__links {
		position: fixed;
		top: var(--nav-height);
		left: 0;
		right: 0;
		bottom: 0;
		flex-direction: column;
		background: var(--color-bg-secondary);
		padding: var(--space-xl);
		gap: var(--space-xs);
		transform: translateX(100%);
		transition: transform var(--transition-base);
		overflow-y: auto;
	}

	.nav__links--open {
		transform: translateX(0);
	}

	.nav__link {
		font-size: var(--text-base);
		padding: var(--space-md) var(--space-lg);
		border-radius: var(--radius-md);
	}

	.hero__title {
		font-size: var(--text-4xl);
	}

	.hero__subtitle {
		font-size: var(--text-base);
	}

	h2 {
		font-size: var(--text-2xl);
	}

	.section__title {
		font-size: var(--text-2xl);
	}

	.stages {
		grid-template-columns: 1fr;
	}

	.reframe__item {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.reframe__arrow {
		transform: rotate(90deg);
	}

	.breathing__circle {
		width: 110px;
		height: 110px;
	}

	.content {
		padding: var(--space-xl) var(--space-md) var(--space-3xl);
	}
}

@media (max-width: 480px) {
	.hero {
		padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-md) var(--space-2xl);
	}

	.hero__title {
		font-size: var(--text-3xl);
	}

	.card {
		padding: var(--space-lg);
	}

	.callout {
		padding: var(--space-md) var(--space-lg);
	}
}

/* --- Financial Runway Calculator --- */
.calculator {
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	margin-bottom: var(--space-2xl);
	box-shadow: var(--shadow-md);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.calculator__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
	margin-top: var(--space-lg);
}

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

.calculator__inputs {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.calc-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.calc-label {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-text-primary);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.calc-hint {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	font-weight: 400;
}

.calc-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.calc-prefix {
	position: absolute;
	left: 1rem;
	font-weight: 600;
	color: var(--color-text-muted);
	pointer-events: none;
}

.calc-input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.2rem;
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--color-text-primary);
	background: rgba(255, 255, 255, 0.85);
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-md);
	outline: none;
	transition: all var(--transition-fast);
}

.calc-input:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(217, 119, 69, 0.15);
	background: #FFFFFF;
}

.calculator__results {
	background: rgba(250, 246, 240, 0.85);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: center;
}

.calc-result-badge {
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-accent);
	margin-bottom: var(--space-xs);
}

.calc-result-number {
	font-family: var(--font-heading);
	font-size: 3.5rem;
	font-weight: 800;
	color: var(--color-text-heading);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.calc-result-unit {
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-md);
}

.calc-progress-container {
	width: 100%;
	height: 12px;
	background: rgba(200, 170, 140, 0.25);
	border-radius: var(--radius-full);
	overflow: hidden;
	margin-bottom: var(--space-md);
}

.calc-progress-bar {
	height: 100%;
	width: 50%;
	background: var(--color-success);
	border-radius: var(--radius-full);
	transition: width 400ms ease, background-color 400ms ease;
}

.calc-summary-stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-sm);
	padding-top: var(--space-md);
	border-top: 1px dashed var(--color-border);
	text-align: left;
}

.stat-item {
	display: flex;
	flex-direction: column;
}

.stat-label {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

.stat-value {
	font-weight: 700;
	color: var(--color-text-primary);
	font-size: var(--text-sm);
}

.calc-advice {
	margin-top: var(--space-md);
	padding: var(--space-md);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	line-height: 1.5;
	text-align: left;
}

/* Status colors for calculator result */
.calc-status--safe {
	background: var(--color-success-soft);
	color: #2D583E;
	border-left: 4px solid var(--color-success);
}

.calc-status--warning {
	background: var(--color-warning-soft);
	color: #8C5512;
	border-left: 4px solid var(--color-warning);
}

.calc-status--urgent {
	background: var(--color-danger-soft);
	color: #92322B;
	border-left: 4px solid var(--color-danger);
}

/* --- Comparison Matrix (Healthcare COBRA vs ACA) --- */
.compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

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

.compare-card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	transition: all var(--transition-base);
}

.compare-card:hover {
	border-color: var(--color-accent);
	box-shadow: var(--shadow-sm);
}

.compare-card--featured {
	border-color: var(--color-accent);
	background: rgba(255, 255, 255, 0.92);
}

.compare-title {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
}

.compare-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: var(--text-xs);
	font-weight: 700;
	border-radius: var(--radius-full);
	background: var(--color-accent-soft);
	color: var(--color-accent);
	margin-bottom: var(--space-xs);
}

/* --- Priority Checklist & Timeline --- */
.priority-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.8rem;
	border-radius: var(--radius-full);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.priority-badge--high {
	background: var(--color-danger-soft);
	color: var(--color-danger);
}

.priority-badge--medium {
	background: var(--color-warning-soft);
	color: var(--color-warning);
}

.priority-badge--info {
	background: var(--color-info-soft);
	color: var(--color-info);
}

/* Budget breakdown pills */
.budget-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--space-md);
	margin-bottom: var(--space-xl);
}

.budget-card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: var(--space-md) var(--space-lg);
	transition: all var(--transition-fast);
}

.budget-card:hover {
	border-color: var(--color-border-light);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.budget-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-xs);
}

.budget-card__title {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--color-text-heading);
}

.budget-card__icon {
	font-size: 1.25rem;
}

/* --- Pause Page Specific Components --- */

/* Strategy Comparison: Spray & Pray vs Strategic Pause */
.strategy-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	margin-bottom: var(--space-xl);
}

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

.strategy-card {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	position: relative;
	transition: all var(--transition-base);
}

.strategy-card--danger {
	border-top: 4px solid var(--color-danger);
	background: rgba(255, 245, 245, 0.7);
}

.strategy-card--success {
	border-top: 4px solid var(--color-success);
	background: rgba(245, 252, 247, 0.85);
	box-shadow: var(--shadow-md);
}

.strategy-card__header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-xs);
}

.strategy-card__badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.strategy-card--danger .strategy-card__badge {
	background: var(--color-danger-soft);
	color: var(--color-danger);
}

.strategy-card--success .strategy-card__badge {
	background: var(--color-success-soft);
	color: var(--color-success);
}

.strategy-card__title {
	font-family: var(--font-heading);
	font-size: var(--text-xl);
	font-weight: 700;
}

.strategy-metrics {
	display: flex;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.65);
	padding: var(--space-md) var(--space-lg);
	border-radius: var(--radius-md);
	border: 1px solid var(--color-border);
}

.metric-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: var(--space-md);
	font-size: var(--text-sm);
	padding: var(--space-xs) 0;
}

.metric-row:not(:last-child) {
	border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.metric-label {
	color: var(--color-text-secondary);
	font-weight: 600;
	flex: 0 0 120px;
	white-space: nowrap;
}

.metric-value {
	font-weight: 700;
	color: var(--color-text-heading);
	flex: 1;
	text-align: right;
}

/* Grace Period Planner / Tracker Widget */
.grace-planner {
	background: var(--color-bg-card);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-xl);
	padding: var(--space-2xl);
	margin-bottom: var(--space-2xl);
	box-shadow: var(--shadow-md);
}

.planner-progress-wrapper {
	margin-bottom: var(--space-xl);
}

.planner-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--space-xs);
}

.planner-progress-bar {
	height: 10px;
	background: var(--color-bg-secondary);
	border-radius: var(--radius-full);
	overflow: hidden;
}

.planner-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--gradient-accent);
	border-radius: var(--radius-full);
	transition: width var(--transition-slow);
}

.planner-days {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}

.day-card {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	transition: all var(--transition-fast);
}

.day-card--completed {
	border-color: var(--color-success);
	background: rgba(245, 252, 247, 0.5);
}

.day-header {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	margin-bottom: var(--space-md);
}

.day-badge {
	background: var(--color-accent);
	color: #fff;
	font-size: var(--text-xs);
	font-weight: 800;
	padding: 0.3rem 0.8rem;
	border-radius: var(--radius-full);
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.day-card--completed .day-badge {
	background: var(--color-success);
}

.day-title {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	font-weight: 700;
	margin-bottom: 0;
}

.day-tasks {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.task-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-sm);
	font-size: var(--text-base);
	cursor: pointer;
	user-select: none;
}

.task-checkbox {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid var(--color-border-light);
	border-radius: 4px;
	margin-top: 2px;
	cursor: pointer;
	position: relative;
	transition: all var(--transition-fast);
	flex-shrink: 0;
}

.task-checkbox:checked {
	background: var(--color-success);
	border-color: var(--color-success);
}

.task-checkbox:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 13px;
	font-weight: bold;
}

.task-text {
	color: var(--color-text-primary);
	transition: color var(--transition-fast);
}

.task-checkbox:checked+.task-text {
	text-decoration: line-through;
	color: var(--color-text-muted);
}

/* Identity Statement Builder */
.identity-builder {
	background: var(--color-bg-card);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	margin-bottom: var(--space-2xl);
	box-shadow: var(--shadow-sm);
}

.builder-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-xl);
}

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

.builder-inputs {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.builder-group {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.builder-label {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-text-heading);
}

.builder-input,
.builder-select {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--color-text-primary);
	background: rgba(255, 255, 255, 0.9);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.builder-input:focus,
.builder-select:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px var(--color-accent-soft);
}

textarea.builder-input {
	resize: vertical;
	line-height: var(--leading-normal);
}

.builder-output-card {
	background: var(--gradient-hero);
	border: 1px solid var(--color-bg-glass-border);
	border-radius: var(--radius-lg);
	padding: var(--space-xl);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--shadow-sm);
}

.output-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md);
}

.output-title {
	font-family: var(--font-heading);
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--color-accent);
}

.output-statement {
	font-family: var(--font-heading);
	font-size: var(--text-lg);
	line-height: 1.6;
	color: var(--color-text-heading);
	font-style: italic;
	margin-bottom: var(--space-lg);
}

.copy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	padding: 0.6rem 1.2rem;
	background: var(--color-accent);
	color: #fff;
	border: none;
	border-radius: var(--radius-full);
	font-weight: 600;
	font-size: var(--text-sm);
	cursor: pointer;
	transition: background var(--transition-fast), transform var(--transition-fast);
}

.copy-btn:hover {
	background: var(--color-accent-hover);
	transform: translateY(-1px);
}

/* Chapter Bottom Navigation */
.chapter-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-md);
	margin-top: var(--space-3xl);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--color-border);
}

@media (max-width: 600px) {
	.chapter-nav {
		flex-direction: column;
		align-items: stretch;
	}
}

.chapter-nav__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-sm);
	padding: var(--space-md) var(--space-xl);
	background: var(--color-bg-card);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-lg);
	font-weight: 600;
	color: var(--color-text-primary);
	text-decoration: none;
	transition: all var(--transition-base);
}

.chapter-nav__btn:hover {
	border-color: var(--color-accent);
	background: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
	color: var(--color-accent);
}

.chapter-nav__btn--disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.chapter-nav__btn--disabled:hover {
	border-color: var(--color-border-light);
	background: var(--color-bg-card);
	transform: none;
	box-shadow: none;
	color: var(--color-text-primary);
}