/**
 * Lead-magnet landing page — running-cost guide.
 *
 * Page-scoped under .twy-lm-running-cost so the editorial palette
 * tokens don't bleed. Mirrors the rhythm of the heat-pumps + science
 * pages: cream + clay + sage, display-serif headings with italic
 * clay accents, mono eyebrows.
 */

.twy-lm-running-cost {
	--ink: #14160F;
	--ink-3: #3f4538;
	--cream: #f6fff2;
	--cream-2: #eaf6e2;
	--paper: #ffffff;
	--clay: #93db4c;
	--clay-deep: #3f7826;
	--sage: #93db4c;
	--sage-deep: #b8631f;
	--stone-2: #6b6f60;
	--line: #d5e3cd;
	--line-strong: #bcd0b0;
	--font-display: 'Fraunces', 'DM Serif Display', Georgia, serif;
	--font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
	background: var(--cream);
	color: var(--ink-3);
}

/* =================================================================
   HERO
   ================================================================= */
.twy-lm-rc__hero {
	background: var(--cream);
	padding: 140px 0 96px;
}
@media (max-width: 800px) {
	.twy-lm-rc__hero { padding: 100px 0 64px; }
}
.twy-lm-rc__hero-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 64px;
	align-items: center;
}
@media (max-width: 960px) {
	.twy-lm-rc__hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.twy-lm-rc__eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
	margin-bottom: 18px;
}
.twy-lm-rc__h1 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(36px, 5.5vw, 64px);
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: var(--ink);
	margin: 0 0 22px;
}
.twy-lm-rc__h1 em {
	font-style: italic;
	color: var(--clay);
}
.twy-lm-rc__lede {
	font-size: 17px;
	line-height: 1.55;
	color: var(--ink-3);
	margin: 0 0 32px;
	max-width: 560px;
}

/* ---- Form ---- */
.twy-lm-rc__form {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px;
	max-width: 580px;
}
.twy-lm-rc__form-row {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 14px;
	margin-bottom: 16px;
}
@media (max-width: 520px) {
	.twy-lm-rc__form-row { grid-template-columns: 1fr; }
}
.twy-lm-rc__field {
	display: block;
}
.twy-lm-rc__field-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stone-2);
	margin-bottom: 6px;
}
.twy-lm-rc__field-optional {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--stone-2);
	text-transform: lowercase;
	letter-spacing: 0.04em;
}
.twy-lm-rc__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.twy-lm-rc__input:focus {
	outline: none;
	border-color: var(--clay);
	background: #fff;
}
.twy-lm-rc__submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	justify-content: center;
	padding: 14px 24px;
	background: var(--clay);
	color: var(--cream);
	border: 1px solid var(--clay);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.twy-lm-rc__submit:hover,
.twy-lm-rc__submit:focus-visible {
	background: var(--clay-deep);
	border-color: var(--clay-deep);
	outline: none;
	transform: translateY(-1px);
}
.twy-lm-rc__submit[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}
.twy-lm-rc__opt {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.twy-lm-rc__opt-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}
.twy-lm-rc__opt-check {
	margin: 3px 0 0 0;
	flex-shrink: 0;
}
.twy-lm-rc__opt-text {
	font-size: 14px;
	color: var(--ink);
	line-height: 1.45;
}
.twy-lm-rc__opt-note {
	margin: 8px 0 0 24px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--stone-2);
}

/* Feedback / confirmation card */
.twy-lm-rc__feedback {
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.5;
}
.twy-lm-rc__feedback.is-success {
	background: rgba(143, 163, 89, 0.16);
	border: 1px solid rgba(79, 94, 42, 0.35);
	color: var(--sage-deep);
}
.twy-lm-rc__feedback.is-error {
	background: rgba(202, 92, 41, 0.10);
	border: 1px solid rgba(202, 92, 41, 0.30);
	color: var(--clay-deep);
}

/* Honeypot */
.twy-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

/* ---- Hero figure (decorative PDF cover) ---- */
.twy-lm-rc__hero-figure {
	display: flex;
	justify-content: center;
}
.twy-lm-rc__cover {
	width: 100%;
	max-width: 360px;
	aspect-ratio: 1 / 1.414;
	background: var(--cream-2);
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 36px 32px;
	box-shadow: 0 18px 40px rgba(20, 23, 15, 0.08), 0 4px 8px rgba(20, 23, 15, 0.04);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: rotate(-1.5deg);
	transition: transform 0.4s ease;
}
.twy-lm-rc__hero-figure:hover .twy-lm-rc__cover {
	transform: rotate(0deg);
}
.twy-lm-rc__cover-eyebrow,
.twy-lm-rc__cover-meta {
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
}
.twy-lm-rc__cover-title {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--ink);
}
.twy-lm-rc__cover-title em {
	font-style: italic;
	color: var(--clay);
}
@media (max-width: 960px) {
	.twy-lm-rc__hero-figure { order: -1; }
	.twy-lm-rc__cover { max-width: 280px; transform: rotate(0deg); }
}

/* =================================================================
   "WHAT'S INSIDE" section
   ================================================================= */
.twy-lm-rc__inside {
	background: var(--paper);
	padding: 96px 0;
	border-top: 1px solid var(--line);
}
.twy-lm-rc__inside-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
	margin-bottom: 14px;
}
.twy-lm-rc__inside-h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--ink);
	margin: 0 0 40px;
	max-width: 720px;
}
.twy-lm-rc__inside-h2 em {
	font-style: italic;
	color: var(--clay);
}
.twy-lm-rc__inside-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 820px;
}
.twy-lm-rc__inside-list li {
	display: grid;
	grid-template-columns: 50px 1fr;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.twy-lm-rc__inside-list li:last-child { border-bottom: 0; }
.twy-lm-rc__inside-num {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--clay);
	padding-top: 2px;
}
.twy-lm-rc__inside-text {
	font-size: 15px;
	line-height: 1.6;
	color: var(--ink-3);
}
.twy-lm-rc__inside-text strong {
	color: var(--ink);
	font-weight: 600;
}

/* =================================================================
   "WHY WE WROTE IT"
   ================================================================= */
.twy-lm-rc__why {
	background: var(--cream);
	padding: 96px 0;
	border-top: 1px solid var(--line);
}
.twy-lm-rc__why-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stone-2);
	margin-bottom: 18px;
}
.twy-lm-rc__why-body {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(18px, 2.2vw, 24px);
	line-height: 1.45;
	color: var(--ink);
	margin: 0;
	max-width: 760px;
}
