@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--ink: #1f2430;
	--muted: #5b6472;
	--bg: #faf8f5;
	--card: #ffffff;
	--accent: #2f5d50;
	--accent-dark: #21453b;
	--accent-light: #e7efe9;
	--border: #e3e0da;
	--error: #b3261e;
	--shadow-sm: 0 1px 2px rgba(31, 36, 48, 0.05);
	--shadow-md: 0 10px 28px rgba(31, 36, 48, 0.08);
	--shadow-lift: 0 14px 32px rgba(47, 93, 80, 0.18);
	--radius: 16px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Inter', Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
}

h1, h2, h3 {
	font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* --- Site header / footer --- */

.site-header {
	max-width: 900px;
	margin: 0 auto;
	padding: 28px 24px 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	font-size: 1.05rem;
}

.brand-mark {
	display: block;
	border-radius: 7px;
}

.site-footer {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 24px 40px;
	text-align: center;
}

.site-footer p {
	font-size: 0.8rem;
	color: var(--muted);
	margin: 0;
}

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

/* --- Landing page --- */

.landing {
	min-height: calc(100vh - 120px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	background:
		radial-gradient(ellipse 900px 500px at 50% -10%, var(--accent-light) 0%, transparent 60%),
		var(--bg);
}

/* Richer two-tone wash for the homepage specifically (the persuasion page) —
   a warm coral-cream glow low-right in addition to the usual green one up
   top, so it reads a bit more alive without adding motion or clutter. Other
   .landing pages (course, free-lesson, module error pages) keep the single
   plain wash above so the teaching/checkout surfaces stay calm and focused. */
.landing-warm {
	background:
		radial-gradient(ellipse 780px 440px at 20% -15%, var(--accent-light) 0%, transparent 55%),
		radial-gradient(ellipse 700px 500px at 100% 110%, #f3ded0 0%, transparent 55%),
		var(--bg);
}

.landing-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.landing-card {
	max-width: 560px;
	width: 100%;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 44px 40px;
	text-align: center;
}

.eyebrow, .path-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-light);
	padding: 5px 12px;
	border-radius: 999px;
	margin: 0 0 16px;
}

.landing h1 {
	font-size: 1.9rem;
	line-height: 1.3;
	margin: 0 0 18px;
}

.lede {
	color: var(--muted);
	line-height: 1.65;
	margin: 0 0 28px;
	font-size: 1.02rem;
}

.signup-form {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.signup-form input[type="email"] {
	flex: 1;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-size: 1rem;
	font-family: 'Inter', Arial, sans-serif;
	background: var(--bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.signup-form input[type="email"]:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
	background: var(--card);
}

.signup-form button {
	padding: 13px 22px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: white;
	font-size: 1rem;
	font-weight: 600;
	font-family: 'Inter', Arial, sans-serif;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.signup-form button:hover {
	background: var(--accent-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lift);
}

.fine-print {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.82rem;
	color: var(--muted);
	margin: 0;
}

.fine-print a {
	color: var(--accent);
}

.form-error {
	color: var(--error);
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.9rem;
	margin: 0 0 16px;
}

.form-success {
	color: var(--accent);
	font-family: 'Inter', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

/* --- Homepage: two paths --- */

.home-card {
	max-width: 780px;
}

.paths {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	margin-top: 28px;
	text-align: left;
}

.path {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 26px;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.path:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--accent);
}

.path h2 {
	margin: 0 0 10px;
	font-size: 1.3rem;
}

.path p {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.92rem;
	color: var(--muted);
	line-height: 1.6;
	margin: 0 0 20px;
	flex: 1;
}

.path-cta {
	display: inline-block;
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	color: white;
	background: var(--accent);
	text-decoration: none;
	padding: 11px 18px;
	border-radius: 10px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.path-cta:hover {
	background: var(--accent-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lift);
}

/* --- Course landing page --- */

.course-card {
	max-width: 760px;
	text-align: left;
}

.course-card .eyebrow,
.course-card h1,
.course-card .lede {
	text-align: center;
}

.modules {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin: 0 0 32px;
}

.module {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 22px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.module:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.module-number {
	display: inline-block;
	font-family: 'Inter', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--accent);
	background: var(--accent-light);
	padding: 4px 11px;
	border-radius: 999px;
	margin: 0 0 12px;
}

.module h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.module p {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.88rem;
	color: var(--muted);
	line-height: 1.55;
	margin: 0;
}

.course-card .signup-form,
.course-card .fine-print,
.course-card .form-error,
.course-card .form-success {
	text-align: center;
	justify-content: center;
}

.cta-link {
	display: inline-block;
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.cta-link:hover {
	text-decoration: underline;
}

/* --- Course sales page: checkboxes + live total --- */

.buy-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 20px;
}

.buy-option {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px 20px;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.buy-option:hover {
	border-color: var(--accent);
}

.buy-option input[type="checkbox"] {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
	flex-shrink: 0;
	cursor: pointer;
}

.buy-option-body {
	flex: 1;
}

.buy-option-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.buy-option-name {
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
}

.buy-option-price {
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--accent);
	white-space: nowrap;
}

.buy-option-desc {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.85rem;
	color: var(--muted);
	line-height: 1.5;
	margin: 4px 0 0;
}

.buy-option-bundle {
	border-color: var(--accent);
	background: var(--accent-light);
}

.buy-option-bundle .buy-option-name::after {
	content: "Best value";
	display: inline-block;
	margin-left: 8px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: white;
	background: var(--accent);
	padding: 2px 8px;
	border-radius: 999px;
	vertical-align: middle;
}

.buy-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.buy-divider::before,
.buy-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}

.buy-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 4px;
	border-top: 1px solid var(--border);
	margin-bottom: 16px;
	font-family: 'Inter', Arial, sans-serif;
}

.buy-summary-label {
	color: var(--muted);
	font-size: 0.9rem;
}

.buy-summary-total {
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--ink);
}

.buy-cta {
	display: block;
	width: 100%;
	padding: 15px 22px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: white;
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.buy-cta:hover:not(:disabled) {
	background: var(--accent-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lift);
}

.buy-cta:disabled {
	opacity: 0.5;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.upgrade-card {
	max-width: 760px;
	width: 100%;
	margin: 18px auto 0;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 32px;
	text-align: center;
}

.upgrade-card p {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.88rem;
	color: var(--muted);
	margin: 0;
	line-height: 1.6;
}

.upgrade-card a {
	color: var(--accent);
	font-weight: 600;
}

/* --- Legal pages (Terms / Privacy / Refund Policy) --- */

.legal-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.legal-page h1 {
	font-size: 1.7rem;
	margin: 0 0 6px;
}

.legal-page .legal-updated {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.82rem;
	color: var(--muted);
	margin: 0 0 32px;
}

.legal-page h2 {
	font-size: 1.15rem;
	margin: 36px 0 12px;
}

.legal-page p,
.legal-page li {
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--ink);
}

.legal-page ul {
	padding-left: 1.3em;
}

.legal-page a {
	color: var(--accent);
}

.legal-draft-banner {
	background: var(--accent-light);
	border: 1px solid var(--accent);
	border-radius: 10px;
	padding: 14px 18px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 0.85rem;
	color: var(--accent-dark);
	margin: 0 0 32px;
}

.legal-fill {
	background: #fdf0d8;
	color: #6b4a05;
	padding: 1px 5px;
	border-radius: 4px;
	font-weight: 600;
}

/* --- Session / chat --- */

.session {
	max-width: 700px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding: 28px 24px;
}

.session-header {
	text-align: center;
	margin-bottom: 18px;
}

.session-header h1 {
	margin: 0 0 6px;
	font-size: 1.6rem;
}

.session-sub {
	font-family: 'Inter', Arial, sans-serif;
	color: var(--muted);
	margin: 0;
	font-size: 0.9rem;
}

.chat-log {
	flex: 1;
	overflow-y: auto;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	padding: 22px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 400px;
}

.msg {
	font-family: 'Inter', Arial, sans-serif;
	line-height: 1.6;
	padding: 13px 17px;
	border-radius: 14px;
	max-width: 85%;
	white-space: pre-wrap;
}

.msg-instructor {
	background: var(--accent-light);
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.msg-student {
	background: #eef1f5;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.chat-form {
	display: flex;
	gap: 8px;
}

.chat-form textarea {
	flex: 1;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	font-family: 'Inter', Arial, sans-serif;
	font-size: 1rem;
	resize: vertical;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-light);
}

.chat-form button {
	padding: 0 24px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: white;
	font-family: 'Inter', Arial, sans-serif;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.chat-form button:hover:not(:disabled) {
	background: var(--accent-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lift);
}

.chat-form button:disabled {
	opacity: 0.6;
	cursor: default;
}
