/* Max Hero — homepage. All rules scoped under .mh-site.
   Design language: hairline rules carry the structure; boxes are spent only
   where something really is a discrete object (the mock UI panels, the pricing
   tiers). One shadow, used twice. */

.mh-site {
	background: var(--mh-ground);
	color: var(--mh-ink);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.mh-site *,
.mh-site *::before,
.mh-site *::after { box-sizing: border-box; }

.mh-site h1, .mh-site h2, .mh-site h3 {
	font-family: var(--mh-sans);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin: 0;
	text-wrap: balance;
	color: var(--mh-ink);
}
.mh-hero h1,
.mh-agency h2,
.mh-final h2 { color: var(--mh-on-navy); }
:where(.mh-site) p { margin: 0; } /* :where() = 0 specificity, so component margins win */
.mh-site a:not(.mh-btn) { color: inherit; }

.mh-wrap { max-width: var(--mh-maxw); margin: 0 auto; padding: 0 24px; }
.mh-mono { font-family: var(--mh-mono); }
.mh-num-t { font-variant-numeric: tabular-nums; }
.mh-visually-hidden {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mh-eyebrow,
.mh-kicker {
	font-family: var(--mh-mono);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin: 0 0 16px;
}
.mh-eyebrow { color: var(--mh-ink-soft); }
.mh-kicker { color: var(--mh-blue); font-weight: 600; }

.mh-textlink {
	display: inline-block;
	margin-top: 20px;
	font-weight: 700;
	font-size: 15px;
	color: var(--mh-blue);
	text-decoration: none;
	padding: 4px 0;
}
.mh-textlink:hover { text-decoration: underline; }

/* ---------- buttons ---------- */
.mh-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 22px; border-radius: 999px;
	font-weight: 700; font-size: 15px; text-decoration: none;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.mh-btn--primary { background: var(--mh-blue-strong); color: #fff; }
.mh-btn--primary:hover { background: #2540bd; transform: translateY(-1px); }
.mh-btn--ghost { background: transparent; border-color: var(--mh-line-strong); color: var(--mh-ink); }
.mh-btn--ghost:hover { border-color: var(--mh-ink); }
.mh-btn--on-navy { border-color: rgba(255,255,255,.42); color: var(--mh-on-navy); }
.mh-btn--on-navy:hover { border-color: #fff; }

/* ---------- section rhythm ----------
   A change of background does the separating work, so full padding is only
   needed where the ground changes. Two sections sharing one ground get
   `--seam`, which stops the top and bottom padding stacking into a void. */
.mh-section { padding: 80px 0; }
.mh-section--seam { padding-top: 24px; }
.mh-section--tint { background: var(--mh-ground-2); }
.mh-h2 { font-size: clamp(28px, 3.4vw, 40px); }

/* reveal — visible at rest. home.js adds .mh-anim only when it is driving the
   animation, so a missing script or reduced-motion leaves everything visible. */
.mh-site .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.mh-site.mh-anim .reveal {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .55s ease, transform .55s ease;
	}
	.mh-site.mh-anim .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.mh-hero { position: relative; overflow: hidden; background: var(--mh-navy); color: var(--mh-on-navy); }
.mh-hero .mh-wrap { position: relative; z-index: 2; padding-top: clamp(48px, 6vw, 84px); padding-bottom: 84px; }
.mh-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.mh-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; }
.mh-hero .mh-eyebrow { color: var(--mh-on-navy-soft); }
.mh-hero-sub { margin-top: 22px; font-size: 19px; color: var(--mh-on-navy-soft); max-width: 46ch; }
.mh-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.mh-hero-trust {
	margin-top: 24px; font-size: 13px; color: var(--mh-on-navy-soft);
	font-family: var(--mh-mono);
}
@media (max-width: 940px) { .mh-hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.mh-blob { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .5; z-index: 1; pointer-events: none; }
.mh-blob--a { width: 460px; height: 460px; background: #22406e; top: -140px; right: -90px; }
.mh-blob--b { width: 380px; height: 380px; background: #123a40; bottom: -160px; left: -120px; }
.mh-blob--c { width: 420px; height: 420px; background: #123a40; top: -120px; right: -160px; }

.mh-device { position: relative; width: 100%; max-width: 430px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); }
.mh-device svg { width: 100%; height: auto; display: block; }
.mh-altbar {
	margin-top: 14px; background: #fff; border: 1px solid #c7cbd6; border-radius: 10px;
	padding: 12px 14px; display: flex; align-items: center; gap: 8px;
	font-family: var(--mh-mono); font-size: 13px; color: #1b2440;
}
.mh-altbar .mh-k { color: #8a4bd0; }
.mh-caret { width: 2px; height: 15px; background: var(--mh-blue); display: inline-block; }
.mh-caret.blink { animation: mh-blink 1s steps(1) infinite; }
@keyframes mh-blink { 50% { opacity: 0; } }
@media (max-width: 940px) { .mh-device { margin: 0 auto; } }

/* ---------- the problem: hairline columns, no boxes ---------- */
.mh-why-head {
	display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: end;
}
.mh-why-head h2 { max-width: 20ch; }
.mh-why-head p { color: var(--mh-ink-soft); font-size: 17px; max-width: 46ch; }
@media (max-width: 860px) {
	.mh-why-head { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}
.mh-why-list {
	list-style: none; margin: 48px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--mh-line-strong);
	border-bottom: 1px solid var(--mh-line-strong); /* closes the column rules */
}
.mh-why-list li { padding: 26px 32px 28px 0; }
.mh-why-list li + li { border-left: 1px solid var(--mh-line); padding-left: 32px; }
.mh-why-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.mh-why-list p { color: var(--mh-ink-soft); font-size: 15px; }
.mh-why-list code {
	display: inline-block; margin-top: 16px;
	font-family: var(--mh-mono); font-size: 12px;
	color: var(--mh-ink-soft);
}
@media (max-width: 860px) {
	.mh-why-list { grid-template-columns: 1fr; border-top: 0; border-bottom: 0; }
	.mh-why-list li { padding: 24px 0; border-top: 1px solid var(--mh-line); }
	.mh-why-list li + li { border-left: 0; padding-left: 0; }
}

/* ---------- the workflow: three plain alternating rows ---------- */
.mh-flow-head { max-width: 30ch; }
.mh-flow-row {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center;
	padding: 56px 0;
	border-top: 1px solid var(--mh-line);
}
.mh-flow-head + .mh-flow-row { margin-top: 44px; }
.mh-flow-row--flip { grid-template-columns: 1.1fr 1fr; }
.mh-flow-row--flip .mh-flow-copy { order: 2; }
.mh-flow-num {
	font-family: var(--mh-mono); font-size: 12px; letter-spacing: .16em;
	text-transform: uppercase; color: var(--mh-ink-soft); margin-bottom: 14px;
}
.mh-flow-num span { color: var(--mh-blue); font-weight: 700; margin-right: 6px; }
.mh-flow-copy h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.mh-flow-copy > p { color: var(--mh-ink-soft); font-size: 17px; max-width: 42ch; }
.mh-flow-meta {
	margin-top: 18px;
	font-family: var(--mh-mono); font-size: 12px; line-height: 1.5;
	color: var(--mh-ink-soft); opacity: .85;
}
@media (max-width: 940px) {
	.mh-flow-row,
	.mh-flow-row--flip { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
	.mh-flow-row--flip .mh-flow-copy { order: 0; }
}

/* the mock UI panels — these really are objects, so they get the one shadow */
.mh-panel {
	background: var(--mh-surface);
	border: 1px solid var(--mh-line);
	border-radius: 12px;
	box-shadow: 0 18px 44px -22px rgba(18,23,42,.35);
	padding: 22px;
}
.mh-bar-top { display: flex; gap: 6px; margin-bottom: 16px; }
.mh-bar-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--mh-line-strong); display: block; }
.mh-panel-label {
	font-family: var(--mh-mono); font-size: 11px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--mh-ink-soft);
}
.mh-mock-field {
	width: 100%; margin: 12px 0; border: 1px solid var(--mh-line); border-radius: 8px;
	background: var(--mh-ground-2); color: var(--mh-ink); padding: 12px;
	font-size: 15px; line-height: 1.4;
}
.mh-row { display: flex; gap: 8px; }
.mh-mini { font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 999px; border: 0; }
.mh-mini--p { background: var(--mh-blue-strong); color: #fff; }
.mh-mini--s { background: var(--mh-ground-2); border: 1px solid var(--mh-line); color: var(--mh-ink); }
.mh-mock-alt code {
	display: block; margin-top: 16px; font-family: var(--mh-mono);
	font-size: 12.5px; color: var(--mh-ink-soft); word-break: break-all;
}

.mh-metric {
	display: flex; justify-content: space-between; align-items: baseline;
	font-size: 14px; margin: 14px 0 6px;
}
.mh-metric .mh-num-t { font-family: var(--mh-mono); font-size: 13px; }
.mh-track { height: 10px; border-radius: 999px; background: var(--mh-ground-2); overflow: hidden; }
.mh-fill { height: 100%; border-radius: 999px; }
.mh-fill--before { width: 100%; background: var(--mh-line-strong); }
.mh-fill--after { width: 9%; background: var(--mh-teal); }
.mh-save {
	margin-top: 18px; font-weight: 900; font-size: 30px;
	color: var(--mh-teal-ink); font-variant-numeric: tabular-nums;
}
.mh-notes { margin-top: 8px; font-size: 13px; color: var(--mh-ink-soft); }
.mh-notes span { display: inline-block; margin-right: 12px; }
.mh-notes span::before { content: "\2713 "; color: var(--mh-teal-ink); }

.mh-lrow {
	display: flex; align-items: center; gap: 12px; padding: 12px 0;
	border-top: 1px solid var(--mh-line); font-size: 13.5px;
}
.mh-lrow:first-of-type { border-top: 0; }
.mh-fn { font-family: var(--mh-mono); color: var(--mh-ink); flex: 1; word-break: break-all; }
.mh-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mh-badge--flag { background: #fcebea; color: #8a1f11; }
.mh-badge--review { background: #fcf0e4; color: #8a4b00; }
.mh-badge--clear { background: #edf6e9; color: #1e6b32; }

/* ---------- features: sticky heading + hairline spec list ---------- */
.mh-feats-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 72px; align-items: start; }
.mh-feats-head { position: sticky; top: 96px; }
.mh-feats-head p { margin-top: 16px; color: var(--mh-ink-soft); font-size: 17px; max-width: 40ch; }
.mh-feats-list { margin: 0; padding: 0; }
.mh-feats-list > div {
	display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px;
	padding: 22px 0;
	border-top: 1px solid var(--mh-line);
}
.mh-feats-list > div:first-child { border-top: 1px solid var(--mh-line-strong); }
.mh-feats-list dt { font-weight: 700; font-size: 16px; }
.mh-feats-list dd { margin: 0; color: var(--mh-ink-soft); font-size: 15px; }
@media (max-width: 940px) {
	.mh-feats-grid { grid-template-columns: 1fr; gap: 36px; }
	.mh-feats-head { position: static; }
	.mh-feats-list > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- agency band ---------- */
.mh-agency { position: relative; overflow: hidden; background: var(--mh-navy); color: var(--mh-on-navy); }
.mh-agency .mh-wrap { position: relative; z-index: 2; }
.mh-agency-head { max-width: 28ch; }
.mh-agency-pts { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mh-agency-pt { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.mh-agency-pt b { display: block; font-weight: 700; margin-bottom: 8px; }
.mh-agency-pt p { color: var(--mh-on-navy-soft); font-size: 15px; }
@media (max-width: 820px) { .mh-agency-pts { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- pricing: flat cards, one hairline each ---------- */
.mh-pricing-head { max-width: 34ch; }
.mh-pricing-head p { margin-top: 14px; color: var(--mh-ink-soft); font-size: 17px; }
.mh-tiers { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.mh-tier {
	background: var(--mh-surface);
	border: 1px solid var(--mh-line-strong);
	border-radius: 12px;
	padding: 26px 22px;
	display: flex; flex-direction: column;
	position: relative;
}
.mh-tier--pop { border-color: var(--mh-ink); }
.mh-tier-flag {
	position: absolute; top: -10px; left: 22px;
	background: var(--mh-ink); color: var(--mh-surface);
	font-size: 11px; font-weight: 700; letter-spacing: .03em;
	padding: 3px 10px; border-radius: 999px;
}
.mh-tier-name { font-weight: 700; font-size: 16px; }
.mh-tier-sites { font-size: 13px; color: var(--mh-ink-soft); margin-top: 2px; }
.mh-tier-price {
	font-weight: 900; font-size: 34px; margin: 18px 0 2px;
	font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.mh-tier-price span { font-size: 14px; font-weight: 700; color: var(--mh-ink-soft); }
.mh-tier-per { font-size: 12.5px; color: var(--mh-ink-soft); }
.mh-tier ul {
	list-style: none; padding: 20px 0 0; margin: 20px 0 24px;
	border-top: 1px solid var(--mh-line);
	font-size: 13.5px; color: var(--mh-ink-soft);
}
.mh-tier li { padding: 5px 0 5px 18px; position: relative; }
.mh-tier li::before { content: "\2713"; position: absolute; left: 0; color: var(--mh-teal-ink); }
.mh-tier .mh-btn { margin-top: auto; justify-content: center; }
.mh-pricing-note { margin-top: 24px; font-size: 13px; color: var(--mh-ink-soft); }
@media (max-width: 960px) { .mh-tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mh-tiers { grid-template-columns: 1fr; } }

/* ---------- free vs pro: a real table, paired with the heading ---------- */
.mh-compare-grid {
	display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; align-items: start;
}
.mh-compare-head p {
	margin-top: 16px; color: var(--mh-ink-soft); font-size: 17px; max-width: 34ch;
}
@media (max-width: 980px) {
	.mh-compare-grid { grid-template-columns: 1fr; gap: 36px; }
}
.mh-table-scroll { overflow-x: auto; }
.mh-compare {
	width: 100%; border-collapse: collapse;
	font-size: 15px; min-width: 440px;
}
.mh-compare th, .mh-compare td { text-align: left; padding: 14px 14px; }
.mh-compare thead th {
	font-size: 13px; font-weight: 700; color: var(--mh-ink);
	border-bottom: 1px solid var(--mh-ink);
	vertical-align: bottom;
}
.mh-compare thead th span {
	display: block; font-family: var(--mh-mono); font-size: 11px;
	font-weight: 400; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mh-ink-soft); margin-top: 4px;
}
.mh-compare thead th:not(:first-child),
.mh-compare tbody td { width: 104px; text-align: center; }
.mh-compare tbody th {
	font-weight: 400; color: var(--mh-ink);
	border-bottom: 1px solid var(--mh-line);
	/* same left padding as the "Capability" header cell, so they line up */
}
.mh-compare tbody td { border-bottom: 1px solid var(--mh-line); }
.mh-compare tbody tr:last-child th,
.mh-compare tbody tr:last-child td { border-bottom: 0; }
/* the Pro column is the one being sold — give it a quiet ground */
.mh-compare thead th:last-child,
.mh-compare tbody td:last-child { background: var(--mh-surface); }
.mh-compare thead th:last-child { border-radius: 8px 8px 0 0; }
.mh-compare tbody tr:last-child td:last-child { border-radius: 0 0 8px 8px; }
.mh-yes { color: var(--mh-teal-ink); font-weight: 700; font-size: 17px; }
.mh-no { color: var(--mh-ink-soft); opacity: .45; }

/* ---------- final CTA ---------- */
.mh-final { background: var(--mh-navy); color: var(--mh-on-navy); }
.mh-final-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.mh-final h2 { font-size: clamp(26px, 3.2vw, 38px); max-width: 20ch; }
.mh-final p { color: var(--mh-on-navy-soft); margin-top: 14px; max-width: 44ch; }
.mh-final .mh-cta { margin-top: 0; justify-content: flex-end; }
@media (max-width: 860px) {
	.mh-final-grid { grid-template-columns: 1fr; gap: 28px; }
	.mh-final .mh-cta { justify-content: flex-start; }
}
