/* LearnPrompt homepage ([lp_home]). Scoped under .lph so theme styles and
   the lesson-widget CSS (.lp-*) never collide with it. */

.lph {
	--ink: #16150f;
	--ink-2: #34332b;
	--muted: #55534a;
	--line: #e7e3d7;
	--paper: #fbfaf6;
	--sand: #f3f1ea;
	--sky: #dcecff;
	--hill: #a8d98a;
	--yellow: #ffe94d;
	--green: #1f6f4a;
	--green-bg: #dff3e6;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	color: var(--ink);
	background: var(--paper);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.lph *, .lph *::before, .lph *::after { box-sizing: border-box; }
.lph p, .lph h1, .lph h2, .lph h3 { margin: 0; }
.lph a { color: var(--green); }
.lph a:hover { color: #14502f; }

.lph-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lph-wrap--narrow { max-width: 820px; }
.lph-center { text-align: center; }

/* Type */
.lph-display {
	font-family: 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	font-size: clamp(54px, 8vw, 112px);
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: var(--ink);
	max-width: 1000px;
}
.lph-display--md { font-size: clamp(42px, 5.6vw, 76px); line-height: 1; }
.lph-h2 {
	font-family: 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	font-size: clamp(40px, 5vw, 64px);
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--ink);
}
.lph-h3 { font-family: Inter, system-ui, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.3; color: inherit; }
.lph-lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 600px; }
.lph-sub { font-size: 18px; line-height: 1.6; color: var(--muted); }
.lph-body { font-size: 15px; line-height: 1.6; color: var(--muted); }
.lph-mark { background: var(--yellow); padding: 0 8px; border-radius: 6px; }

/* Buttons */
.lph .lph-btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	padding: 16px 28px;
	border-radius: 999px;
	transition: transform 0.15s ease;
}
.lph .lph-btn:hover { transform: translateY(-1px); }
.lph .lph-btn--sm { font-size: 15px; padding: 12px 20px; }
.lph .lph-btn--dark, .lph .lph-btn--dark:hover { background: var(--ink); color: #ffffff; }
.lph .lph-btn--white, .lph .lph-btn--white:hover { background: #ffffff; color: var(--ink); box-shadow: 0 2px 10px rgba(22, 21, 15, 0.10); }

/* Stickers and tags */
.lph-sticker {
	display: inline-block;
	background: var(--yellow);
	color: var(--ink);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.4;
	padding: 3px 9px;
	border-radius: 5px;
}
.lph-sticker--lg { font-size: 20px; padding: 4px 12px; border-radius: 6px; transform: rotate(-2deg); }
.lph-sticker--tl { position: absolute; top: -14px; left: -10px; }
.lph-sticker--br { position: absolute; bottom: -14px; right: -8px; }
.lph-tag { background: var(--green-bg); color: #14502f; font-weight: 600; padding: 3px 10px; border-radius: 6px; }

/* Hero */
.lph-hero {
	background:
		radial-gradient(120% 60% at 50% 118%, var(--hill) 0%, var(--hill) 46%, rgba(168, 217, 138, 0) 46.2%),
		var(--sky);
	overflow: hidden;
}
.lph-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 64px 24px 72px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
}
.lph-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.lph-note { font-size: 15px; font-weight: 500; color: var(--ink); }

/* Floating lesson cards */
.lph-cards { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 26px 0 10px; }
.lph-card {
	position: relative;
	width: 240px;
	background: #ffffff;
	border-radius: 16px;
	padding: 18px;
	text-align: left;
	box-shadow: 0 16px 36px rgba(22, 21, 15, 0.16);
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.lph-card--dark { background: var(--ink); color: var(--paper); box-shadow: 0 16px 36px rgba(22, 21, 15, 0.22); }
.lph-card--tilt-l { transform: rotate(-6deg); width: 250px; }
.lph-card--tilt-s { transform: rotate(2deg); }
.lph-card--tilt-r { transform: rotate(6deg); }
.lph-card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a877a; }
.lph-card-label--green { color: var(--green); margin-top: 6px; }
.lph-card-muted { font-size: 15px; color: var(--muted); }
.lph-card-text { font-size: 14px; line-height: 1.45; color: var(--ink); }
.lph-card-title { font-size: 13px; font-weight: 600; }
.lph-option { font-size: 14px; padding: 9px 11px; border-radius: 10px; background: var(--sand); color: var(--ink-2); }
.lph-option--right { background: var(--green-bg); color: #14502f; font-weight: 600; }
.lph-check { font-size: 14px; color: #d9d6ca; display: flex; align-items: center; gap: 8px; }
.lph-check::before { content: ""; width: 13px; height: 13px; border: 1.5px solid #d9d6ca; border-radius: 3px; flex: none; }

/* Stats strip */
.lph-stats { background: var(--ink); color: var(--paper); }
.lph-stats-grid {
	padding-top: 34px; padding-bottom: 34px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	text-align: center;
}
.lph-stat { font-family: 'Instrument Serif', Georgia, serif; font-size: 44px; line-height: 1; }
.lph-stat--yellow { color: var(--yellow); }
.lph-stat-label { margin-top: 6px !important; font-size: 14px; color: #c9c6b8; }

/* Sections */
.lph-section { padding: 104px 0; }
.lph-section--sand { background: var(--sand); }
.lph-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.lph-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 700px; }
.lph-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

.lph-grid { display: grid; gap: 20px; }
.lph-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lph-grid--3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.lph-tile {
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	color: var(--ink);
}
.lph .lph-tile--link { text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.lph .lph-tile--link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 21, 15, 0.08); }
.lph .lph-tile--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.lph .lph-tile--dark:hover { color: var(--paper); }
.lph-tile--dark .lph-body { color: #d9d6ca; }
.lph-tile--dark .lph-meta { color: #c9c6b8; }
.lph-tile--dark .lph-more { color: var(--yellow); }
.lph-num { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; line-height: 1; color: var(--green); }
.lph-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #6b685c; }
.lph-more { margin-top: 6px !important; font-size: 15px; font-weight: 600; color: var(--green); }

.lph-path { border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.lph-path .lph-body { color: var(--ink-2); }
.lph-path--sky { background: var(--sky); }
.lph-path--mint { background: var(--green-bg); }
.lph-path--lemon { background: #fff4b8; }
.lph-path--peach { background: #fde2d3; }
.lph-route { margin-top: 8px !important; font-size: 14px; line-height: 1.7; font-weight: 500; color: var(--ink); }

.lph-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.lph .lph-pill { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); background: #fff4b8; padding: 8px 13px; border-radius: 999px; }
.lph .lph-pill:hover { color: var(--ink); background: var(--yellow); }

/* FAQ */
.lph-faq { margin-top: 32px; }
.lph-qa { border-top: 1px solid var(--line); padding: 24px 0; display: flex; flex-direction: column; gap: 8px; }
.lph-qa:last-child { border-bottom: 1px solid var(--line); }
.lph-qa .lph-h3 { font-size: 19px; }
.lph-qa .lph-body { font-size: 16px; line-height: 1.65; }

/* Closing CTA */
.lph-cta-wrap { padding: 0 24px 104px; }
.lph-cta {
	max-width: 1152px;
	margin: 0 auto;
	border-radius: 32px;
	background:
		radial-gradient(120% 70% at 50% 120%, var(--hill) 0%, var(--hill) 40%, rgba(168, 217, 138, 0) 40.3%),
		var(--sky);
	padding: 88px 24px 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	text-align: center;
}


/* Phones */
@media (max-width: 760px) {
	.lph-hero {
		background:
			radial-gradient(260% 22% at 50% 104%, var(--hill) 0%, var(--hill) 46%, rgba(168, 217, 138, 0) 46.5%),
			var(--sky);
	}
	.lph-hero-inner { padding: 40px 20px 72px; }
	.lph-cards { gap: 28px; }
	.lph-card--tilt-s { display: none; }
	.lph-card, .lph-card--tilt-l { width: min(300px, 100%); }
	.lph-card--tilt-l { transform: rotate(-3deg); }
	.lph-card--tilt-r { transform: rotate(3deg); }
	.lph-section { padding: 72px 0; }
	.lph-grid--3 { grid-template-columns: 1fr; }
	.lph-wrap { padding: 0 20px; }
}
