/* ============================================================================
   Program + form pages: contact, clean-safe, newsletter, submit-event.
   Reuses tokens/classes from app.css (--magenta/--yellow/--ink/--paper-low…),
   the shared .hmd-eyebrow / .hmd-section / .hmd-page-heading classes, and the
   form primitives from service.css (.hmd-field, .hmd-btn-submit, .req). Only
   NEW section-specific components live here — no duplication of the above.
   ========================================================================== */

/* ── Intro block (clean-safe) ─────────────────────────────────────────────*/
.hmd-intro { max-width: 900px; }
.hmd-intro__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	margin: 0 0 1.25rem;
}
.hmd-intro__lede {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink-soft);
	margin: 0;
	max-width: 62ch;
}

/* ── Program blocks (clean-safe) ──────────────────────────────────────────*/
.hmd-programs__list { display: flex; flex-direction: column; gap: 2.5rem; }
.hmd-program {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.hmd-program--safe { grid-template-columns: 7fr 5fr; }
.hmd-program--safe .hmd-program__panel { grid-column: 2; grid-row: 1; }
.hmd-program--safe .hmd-program__body { grid-column: 1; grid-row: 1; }

.hmd-program__panel {
	border-radius: 20px;
	padding: clamp(2rem, 4vw, 3rem);
	min-height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
	position: relative;
	overflow: hidden;
	color: #fff;
}
.hmd-program--clean .hmd-program__panel { background: var(--magenta); }
.hmd-program--safe .hmd-program__panel { background: var(--ink); }
.hmd-program__panel::after {
	content: "";
	position: absolute;
	right: -70px;
	bottom: -70px;
	width: 220px;
	height: 220px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	pointer-events: none;
}
.hmd-program__ico {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	display: grid;
	place-items: center;
	position: relative;
	z-index: 1;
}
.hmd-program__ico .hmd-icon { width: 32px; height: 32px; }
.hmd-program--safe .hmd-program__ico { color: var(--yellow); }
.hmd-program__stat { position: relative; z-index: 1; }
.hmd-program__stat b {
	display: block;
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(2.75rem, 6vw, 4rem);
	line-height: 0.9;
	letter-spacing: -0.03em;
}
.hmd-program--safe .hmd-program__stat b { color: var(--yellow); }
.hmd-program__stat span {
	display: block;
	margin-top: 0.625rem;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.hmd-program__num {
	font-family: var(--font-display);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--magenta);
	margin: 0 0 0.75rem;
}
.hmd-program--safe .hmd-program__num { color: var(--teal); }
.hmd-program__title {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 1rem;
}
.hmd-program__desc {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 1.5rem;
	max-width: 48ch;
}
.hmd-program__checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem 1.5rem;
}
.hmd-program__checklist li {
	position: relative;
	padding-left: 1.875rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ink);
}
.hmd-program__checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--magenta);
}
.hmd-program--safe .hmd-program__checklist li::before { background: var(--teal); }
.hmd-program__checklist li::after {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 900;
}

/* ── Contact page ─────────────────────────────────────────────────────────*/
.hmd-contact {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.hmd-contact__heading {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 1.75rem;
}
.hmd-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hmd-contact-card {
	background: var(--paper);
	border-radius: 16px;
	padding: 1.5rem;
	display: flex;
	gap: 1rem;
	box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
}
.hmd-contact-card__ico {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--paper-low);
	color: var(--magenta);
	display: grid;
	place-items: center;
}
.hmd-contact-card:nth-child(2) .hmd-contact-card__ico { color: var(--teal); }
.hmd-contact-card:nth-child(3) .hmd-contact-card__ico { color: var(--coral); }
.hmd-contact-card:nth-child(4) .hmd-contact-card__ico { color: var(--purple); }
.hmd-contact-card__ico .hmd-icon { width: 22px; height: 22px; }
.hmd-contact-card__body { min-width: 0; }
.hmd-contact-card__body h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.9375rem;
	margin: 0 0 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.hmd-contact-card__badge {
	font-size: 0.5625rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #0A6E63;
	background: #D6F2EE;
	padding: 2px 7px;
	border-radius: 999px;
}
.hmd-contact-card__body p {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-soft);
	margin: 0 0 0.375rem;
}
.hmd-contact-card__body p:last-child { margin-bottom: 0; }
.hmd-contact-card__body a { color: var(--ink); text-decoration: none; }
.hmd-contact-card__body a:hover { color: var(--magenta); }

/* Shared white form card (contact) */
.hmd-form-card {
	background: var(--paper);
	border-radius: 18px;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
}
.hmd-form-card h2 {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.375rem;
}
.hmd-form-card__sub { font-size: 0.875rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.hmd-form-card__actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.hmd-form-card__note { font-size: 0.75rem; color: var(--ink-soft); margin: 0; max-width: 20rem; }

/* ── Newsletter page ──────────────────────────────────────────────────────*/
.hmd-news {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.hmd-news__heading {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0 0 2rem;
}
.hmd-news__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.hmd-news__benefit { display: flex; gap: 1rem; align-items: flex-start; }
.hmd-news__ico {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--paper);
	color: var(--magenta);
	display: grid;
	place-items: center;
	box-shadow: 0 4px 16px rgba(26, 26, 46, 0.06);
}
.hmd-news__benefit:nth-child(2) .hmd-news__ico { color: var(--teal); }
.hmd-news__benefit:nth-child(3) .hmd-news__ico { color: var(--coral); }
.hmd-news__benefit:nth-child(4) .hmd-news__ico { color: var(--purple); }
.hmd-news__ico .hmd-icon { width: 24px; height: 24px; }
.hmd-news__benefit h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; margin: 0 0 0.25rem; }
.hmd-news__benefit p { font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* Signup card (ink) */
.hmd-signup {
	background: var(--ink);
	color: #fff;
	border-radius: 18px;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	position: sticky;
	top: 2rem;
}
.hmd-signup__count {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hmd-signup__count b {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2rem;
	letter-spacing: -0.02em;
	line-height: 1;
	color: var(--yellow);
}
.hmd-signup__count span {
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.hmd-signup__title { font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; margin: 0 0 0.375rem; color: #fff; }
.hmd-signup__sub { font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); margin: 0 0 1.5rem; }
.hmd-signup .hmd-field label { color: rgba(255, 255, 255, 0.9); }
.hmd-signup .req { color: var(--yellow); }
.hmd-signup__fine { font-size: 0.6875rem; color: rgba(255, 255, 255, 0.5); line-height: 1.5; margin: 1rem 0 0; }

/* Full-width submit button variant (newsletter) */
.hmd-btn-submit--block { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* ── Submit-event page ────────────────────────────────────────────────────*/
.hmd-submitev-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.hmd-submitev-perk {
	background: var(--paper);
	border-radius: 16px;
	padding: 1.75rem;
	box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
}
.hmd-submitev-perk__ico {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--paper-low);
	color: var(--magenta);
	display: grid;
	place-items: center;
	margin-bottom: 1rem;
}
.hmd-submitev-perk:nth-child(2) .hmd-submitev-perk__ico { color: var(--teal); }
.hmd-submitev-perk:nth-child(3) .hmd-submitev-perk__ico { color: var(--coral); }
.hmd-submitev-perk__ico .hmd-icon { width: 24px; height: 24px; }
.hmd-submitev-perk h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; margin: 0 0 0.375rem; }
.hmd-submitev-perk p { font-size: 0.875rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.hmd-addevent__inner {
	background: var(--paper);
	border-radius: 18px;
	padding: clamp(1rem, 3vw, 2rem);
	box-shadow: 0 4px 20px rgba(26, 26, 46, 0.06);
}

/* ── Responsive ───────────────────────────────────────────────────────────*/
@media (max-width: 1000px) {
	.hmd-contact { grid-template-columns: 1fr; }
	.hmd-news { grid-template-columns: 1fr; }
	.hmd-signup { position: static; }
	.hmd-program,
	.hmd-program--safe { grid-template-columns: 1fr; }
	.hmd-program--safe .hmd-program__panel { grid-column: 1; grid-row: 1; }
	.hmd-program--safe .hmd-program__body { grid-column: 1; grid-row: 2; }
	.hmd-submitev-perks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.hmd-contact-cards { grid-template-columns: 1fr; }
	.hmd-program__checklist { grid-template-columns: 1fr; }
	.hmd-form-card__actions { flex-direction: column; align-items: stretch; }
	.hmd-form-card__actions .hmd-btn-submit { width: 100%; justify-content: center; }
}
