/* M65 SEO Agency – SEO Lead Platform */

:root {
	--m65-navy-950: #040914;
	--m65-navy-900: #071024;
	--m65-navy-800: #0a1630;
	--m65-navy-700: #10224a;
	--m65-blue: #1673ff;
	--m65-blue-600: #0b5fe6;
	--m65-blue-300: #6aa6ff;
	--m65-blue-50: #eaf2ff;
	--m65-ink: #0f172a;
	--m65-text: #334155;
	--m65-muted: #64748b;
	--m65-line: #e2e8f0;
	--m65-bg: #f3f6fb;
	--m65-white: #fff;
	--m65-radius: 14px;
	--m65-radius-sm: 8px;
	--m65-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
	--m65-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--m65-gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.m65 {
	margin: 0;
	font-family: var(--m65-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--m65-text);
	background: var(--m65-bg);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.m65 > main { flex: 1 0 auto; }

.m65 img { max-width: 100%; height: auto; }
.m65 a { color: var(--m65-blue-600); text-decoration: none; }
.m65 a:hover { text-decoration: underline; }
.m65 h1, .m65 h2, .m65 h3 { color: var(--m65-ink); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }
.m65 :focus-visible { outline: 3px solid var(--m65-blue-300); outline-offset: 2px; }

.m65-icon { width: 1.15em; height: 1.15em; flex: none; }
.m65-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m65-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--m65-ink); padding: 8px 14px; border-radius: 6px; }
.m65-skip:focus { left: 8px; }
.m65-muted { color: var(--m65-muted); }

.m65-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--m65-gutter); }
.m65-container--wide { max-width: 1640px; }
.m65-section { padding-top: 40px; padding-bottom: 64px; }
.m65-section--tight { padding-top: 24px; }

/* Buttons --------------------------------------------------------------- */

.m65-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	font: 600 15px/1.2 var(--m65-font); letter-spacing: .02em;
	padding: 13px 22px; border-radius: var(--m65-radius-sm);
	border: 1.5px solid transparent; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
	text-decoration: none !important; white-space: nowrap;
}
.m65-btn:active { transform: translateY(1px); }
.m65-btn--primary { background: var(--m65-blue); color: #fff !important; box-shadow: 0 6px 18px rgba(22, 115, 255, .28); }
.m65-btn--primary:hover { background: var(--m65-blue-600); }
.m65-btn--outline { background: rgba(7, 16, 36, .35); color: #fff !important; border-color: var(--m65-blue); }
.m65-btn--outline:hover { background: rgba(22, 115, 255, .18); border-color: var(--m65-blue-300); }
.m65-btn--outline-dark { background: #fff; color: var(--m65-ink) !important; border-color: var(--m65-line); }
.m65-btn--outline-dark:hover { border-color: var(--m65-blue); color: var(--m65-blue-600) !important; }
.m65-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border-color: rgba(255, 255, 255, .22); }
.m65-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.m65-btn--dark { background: var(--m65-navy-800); color: #fff !important; }
.m65-btn--dark:hover { background: var(--m65-navy-700); }
.m65-btn--text { background: none; color: var(--m65-muted) !important; padding-left: 10px; padding-right: 10px; }
.m65-btn--text:hover { color: var(--m65-ink) !important; }
.m65-btn--sm { font-size: 14px; padding: 9px 15px; }
.m65-btn--xs { font-size: 13px; padding: 6px 14px; box-shadow: none; }
.m65-btn--block { width: 100%; }

/* Inner page header ----------------------------------------------------- */

.m65-header { background: var(--m65-navy-900); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255, 255, 255, .06); }
body.admin-bar .m65-header { top: 32px; }
.m65-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.m65-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; text-decoration: none !important; }
.m65-brand__mark { width: 52px; height: auto; }
.m65-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.m65-brand__text strong { font-size: 17px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.m65-brand__text small { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--m65-blue-300); }

.m65-nav { display: flex; align-items: center; gap: 6px; }
.m65-nav > a:not(.m65-btn) { color: rgba(255, 255, 255, .82); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 6px; }
.m65-nav > a:not(.m65-btn):hover, .m65-nav > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.m65-nav .m65-btn { margin-left: 8px; }
.m65-nav-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 8px; padding: 8px; cursor: pointer; }
.m65-nav-toggle .m65-icon { width: 22px; height: 22px; display: block; }

/* Page heading band */
.m65-pagehead { background: linear-gradient(135deg, var(--m65-navy-800), var(--m65-navy-700)); color: rgba(255, 255, 255, .8); padding: 44px 0 40px; position: relative; overflow: hidden; }
.m65-pagehead::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 140%; background: radial-gradient(closest-side, rgba(22, 115, 255, .28), transparent); pointer-events: none; }
.m65-pagehead .m65-container { position: relative; z-index: 1; }
.m65-pagehead h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin: 0; overflow-wrap: anywhere; }
.m65-pagehead--hero { padding: 64px 0 76px; }
.m65-pagehead--hero h1 { font-size: clamp(32px, 5vw, 52px); }
.m65-pagehead__lead { max-width: 640px; font-size: 17px; margin: 14px 0 0; }
.m65-pagehead--compact { padding: 28px 0; }
.m65-pagehead--compact h1 { font-size: clamp(24px, 3vw, 32px); }
.m65-pagehead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.m65-pagehead__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.m65-pagehead__actions form { margin: 0; }
.m65-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--m65-blue-300); margin: 0 0 8px; }
.m65-backlink { display: inline-block; color: var(--m65-blue-300) !important; font-size: 14px; margin-bottom: 6px; }

/* Cards */
.m65-card { background: #fff; border: 1px solid var(--m65-line); border-radius: var(--m65-radius); box-shadow: var(--m65-shadow); padding: clamp(20px, 3vw, 32px); }
.m65-card--dark { background: linear-gradient(160deg, var(--m65-navy-800), var(--m65-navy-700)); border-color: transparent; color: rgba(255, 255, 255, .82); }
.m65-card--dark h2 { color: #fff; }
.m65-prose > :first-child { margin-top: 0; }
.m65-prose > :last-child { margin-bottom: 0; }

/* Homepage hero ---------------------------------------------------------- */

body.m65-home { background: var(--m65-navy-950); }
.m65-topbar { position: absolute; top: 0; right: 0; left: 0; z-index: 5; display: flex; justify-content: flex-end; padding: 26px clamp(16px, 4vw, 64px); }
body.admin-bar .m65-topbar { top: 32px; }
.m65-topbar__email { display: inline-flex; align-items: center; gap: 12px; color: #fff !important; font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.m65-topbar__email .m65-icon { width: 28px; height: 28px; color: var(--m65-blue); }
.m65-topbar__email:hover span { text-decoration: underline; }

.m65-hero {
	position: relative; isolation: isolate;
	min-height: max(100svh, 760px);
	display: flex; align-items: center; justify-content: center;
	padding: 96px var(--m65-gutter) 72px;
	background: var(--m65-navy-950) var(--m65-hero-bg) 62% center / cover no-repeat;
	color: rgba(255, 255, 255, .9);
	text-align: center;
}
.m65-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse 48% 62% at 50% 46%, rgba(4, 9, 20, .62), rgba(4, 9, 20, 0) 100%),
		linear-gradient(to bottom, rgba(4, 9, 20, .25), rgba(4, 9, 20, 0) 30%, rgba(4, 9, 20, 0) 75%, rgba(4, 9, 20, .55));
}
.m65-hero__inner { width: 100%; max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.m65-hero__logo { width: clamp(132px, 13vw, 190px); height: auto; margin-bottom: clamp(18px, 2.5vw, 30px); filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .35)); }
.m65-hero__title {
	color: #fff !important; font-weight: 800 !important; letter-spacing: -.015em; line-height: 1.02 !important;
	font-size: clamp(42px, 7.2vw, 96px); margin: 0 0 clamp(14px, 2vw, 22px) !important;
	text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.m65-hero__title span { color: var(--m65-blue); }
.m65-hero__tagline {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4em 1.1em;
	margin: 0 0 clamp(16px, 2vw, 24px); color: #fff;
	font-size: clamp(12px, 1.3vw, 17px); font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
}
.m65-hero__dot { color: var(--m65-blue); letter-spacing: 0; }
.m65-hero__intro { max-width: 960px; margin: 0 0 clamp(26px, 3vw, 40px); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.75; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.m65-hero__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); width: 100%; max-width: 960px; }
.m65-btn--hero { min-height: 78px; padding: 14px 22px; font-size: clamp(14px, 1.2vw, 17px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: normal; text-align: left; border-radius: 4px; }
.m65-btn--hero .m65-btn__icon { width: 30px; height: 30px; stroke-width: 1.6; }
.m65-btn--hero.m65-btn--outline .m65-btn__icon { color: var(--m65-blue); }
.m65-btn--hero span { max-width: 13ch; }
.m65-btn--hero .m65-btn__arrow { width: 22px; height: 22px; transition: transform .15s; }
.m65-btn--hero.m65-btn--outline .m65-btn__arrow { color: var(--m65-blue); }
.m65-btn--hero:hover .m65-btn__arrow { transform: translateX(4px); }
.m65-btn--hero.m65-btn--primary { box-shadow: 0 10px 30px rgba(22, 115, 255, .35); }
.m65-btn--hero.m65-btn--outline { backdrop-filter: blur(2px); }

.m65-hero__features { list-style: none; margin: clamp(36px, 4.5vw, 56px) 0 0; padding: 0; display: flex; justify-content: center; align-items: center; }
.m65-hero__features li { display: flex; align-items: center; gap: 16px; padding: 4px clamp(20px, 3vw, 48px); text-align: left; color: #fff; font-size: clamp(13px, 1.05vw, 16px); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35; }
.m65-hero__features li span { max-width: 15ch; }
.m65-hero__features li + li { border-left: 1.5px solid rgba(255, 255, 255, .55); }
.m65-hero__features .m65-icon { width: 46px; height: 46px; color: var(--m65-blue); stroke-width: 1.7; }

body.m65-home .m65-footer { border-top: 1px solid rgba(255, 255, 255, .06); }

/* Footer ---------------------------------------------------------------- */

.m65-footer { background: var(--m65-navy-900); color: rgba(255, 255, 255, .7); font-size: 15px; margin-top: auto; }
.m65-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 44px; }
.m65-footer__brand p { max-width: 380px; margin: 16px 0 0; }
.m65-footer__heading { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.m65-footer__links { display: flex; flex-direction: column; gap: 8px; }
.m65-footer a:not(.m65-brand) { color: rgba(255, 255, 255, .78); }
.m65-footer a:not(.m65-brand):hover { color: #fff; }
.m65-footer__contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.m65-footer__contact .m65-icon { color: var(--m65-blue); }
.m65-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: 13px; }
.m65-footer__bottom p { margin: 0; }

/* Contact page ---------------------------------------------------------- */

.m65-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; margin-top: -36px; position: relative; z-index: 2; padding-top: 0; }
.m65-contact__aside { display: grid; gap: 20px; }
.m65-reseller { position: relative; transition: box-shadow .2s; }
.m65-reseller.is-highlighted { box-shadow: 0 0 0 3px var(--m65-blue), var(--m65-shadow); }
.m65-reseller h2 { font-size: 22px; }
.m65-reseller__icon { display: inline-flex; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(22, 115, 255, .18); color: var(--m65-blue-300); margin-bottom: 16px; }
.m65-reseller__icon .m65-icon { width: 28px; height: 28px; }
.m65-checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.m65-checklist li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 500; }
.m65-checklist .m65-icon { color: var(--m65-blue-300); }
.m65-contact__direct h2 { font-size: 18px; }
.m65-contact__direct a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; word-break: break-all; }

.m65-form-card { scroll-margin-top: 96px; }
.m65-form-card h2 { font-size: 24px; }
.m65-form { display: grid; gap: 18px; }
.m65-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.m65-form__field label, .m65-form__type legend { display: block; font-weight: 600; font-size: 14px; color: var(--m65-ink); margin-bottom: 6px; }
.m65-req { color: #dc2626; }
.m65-form input[type="text"], .m65-form input[type="email"], .m65-form input[type="tel"], .m65-form textarea {
	width: 100%; font: 16px/1.5 var(--m65-font); color: var(--m65-ink);
	background: #f8fafc; border: 1.5px solid var(--m65-line); border-radius: var(--m65-radius-sm);
	padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.m65-form textarea { resize: vertical; min-height: 140px; }
.m65-form input:focus, .m65-form textarea:focus { outline: none; border-color: var(--m65-blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 115, 255, .14); }
.m65-form [aria-invalid="true"] { border-color: #dc2626; background: #fff7f7; }
.m65-form__error { color: #b91c1c; font-size: 14px; margin: 6px 0 0; }
.m65-form__type { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.m65-form__type legend { width: 100%; padding: 0; }
.m65-form__type label { position: relative; cursor: pointer; }
.m65-form__type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.m65-form__type span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--m65-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--m65-text); transition: all .15s; }
.m65-form__type input:checked + span { border-color: var(--m65-blue); background: var(--m65-blue-50); color: var(--m65-blue-600); }
.m65-form__type input:focus-visible + span { outline: 3px solid var(--m65-blue-300); outline-offset: 2px; }
.m65-form__note { font-size: 13px; color: var(--m65-muted); margin: 0; }
.m65-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.m65-alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--m65-radius-sm); padding: 16px 18px; margin-bottom: 18px; }
.m65-alert p { margin: 0; }
.m65-alert--success { background: #ecfdf3; border: 1px solid #a7f3c8; color: #065f46; }
.m65-alert--success .m65-icon { color: #059669; width: 24px; height: 24px; }
.m65-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* Lead dashboard -------------------------------------------------------- */

.m65-toolbar { padding: 20px 22px; display: grid; gap: 16px; }
.m65-toolbar form { margin: 0; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.m65-toolbar__search { padding-top: 16px; border-top: 1px solid var(--m65-line); }
.m65-filter { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.m65-filter--grow { flex: 1 1 240px; }
.m65-filter--actions { flex-direction: row; min-width: 0; gap: 6px; }
.m65-filter label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m65-muted); margin: 0; }
.m65-filter select, .m65-filter input {
	font: 14px/1.4 var(--m65-font); color: var(--m65-ink);
	height: 40px; padding: 0 12px; border: 1.5px solid var(--m65-line); border-radius: var(--m65-radius-sm); background-color: #fff;
}
.m65-filter select { padding-right: 34px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.m65-filter select:focus, .m65-filter input:focus { outline: none; border-color: var(--m65-blue); box-shadow: 0 0 0 3px rgba(22, 115, 255, .14); }
.m65-filter .m65-btn { height: 40px; }

.m65-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 2px 12px; }

.m65-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; line-height: 1.3; }
.m65-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m65-status--none { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.m65-status--blue { background: #e0edff; color: #1d4ed8; border-color: #c7dcff; }
.m65-status--yellow { background: #fef6d8; color: #92400e; border-color: #fde68a; }
.m65-status--gold { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.m65-status--red { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

.m65-chip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; background: var(--m65-blue-50); color: var(--m65-blue-600); margin: 1px 4px 1px 0; }

.m65-table-card { padding: 0; overflow-x: auto; }
.m65-leadtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.m65-leadtable th { background: #f8fafc; color: var(--m65-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-align: left; padding: 12px 9px; border-bottom: 1px solid var(--m65-line); white-space: nowrap; }
.m65-leadtable td { padding: 12px 9px; border-bottom: 1px solid #eef2f7; vertical-align: middle; color: var(--m65-text); }
.m65-leadtable tbody tr { transition: background-color .12s; }
.m65-leadtable tbody tr:hover { background: #f8fbff; }
.m65-leadtable tbody tr:last-child td { border-bottom: 0; }
.m65-leadtable tbody tr > td:first-child { border-left: 4px solid transparent; padding-left: 14px; }
.m65-container--wide.m65-section, .m65-container--wide.m65-pagehead__row { padding-left: clamp(16px, 2vw, 28px); padding-right: clamp(16px, 2vw, 28px); }
.m65-row--blue > td:first-child { border-left-color: #3b82f6 !important; }
.m65-row--yellow > td:first-child { border-left-color: #f59e0b !important; }
.m65-row--gold > td:first-child { border-left-color: #16a34a !important; }
.m65-row--gold { background: #f6fef9; }
.m65-row--red > td:first-child { border-left-color: #ef4444 !important; }
.m65-row--red td { color: var(--m65-muted); }
.m65-leadtable__org { min-width: 135px; max-width: 220px; overflow-wrap: anywhere; }
.m65-leadtable__org a { color: var(--m65-ink); font-weight: 600; }
.m65-leadtable__email a, .m65-leadtable__web a { max-width: 150px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.m65-leadtable .date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.m65-leadtable .telephone { min-width: 122px; max-width: 150px; overflow-wrap: normal; word-break: normal; }
.m65-leadtable .telephone a { color: inherit; }
.m65-leadtable__action { text-align: right; }
.m65-muted-empty { color: var(--m65-muted); }
.m65-row--empty td { padding: 40px 14px; text-align: center; color: var(--m65-muted); }

.m65-pagination { margin-top: 24px; }
.m65-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; justify-content: center; }
.m65-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--m65-radius-sm); background: #fff; border: 1px solid var(--m65-line); color: var(--m65-ink); font-weight: 500; font-size: 14px; }
.m65-pagination a.page-numbers:hover { border-color: var(--m65-blue); color: var(--m65-blue-600); text-decoration: none; }
.m65-pagination .page-numbers.current { background: var(--m65-blue); border-color: var(--m65-blue); color: #fff; }
.m65-pagination .page-numbers.dots { background: none; border: 0; }

.m65-gate { max-width: 560px; margin: 0 auto; text-align: center; padding: 44px 32px; }
.m65-gate__mark { width: 84px; padding: 18px; box-sizing: content-box; background: var(--m65-navy-800); border-radius: 18px; margin-bottom: 20px; }
.m65-gate h1 { font-size: 26px; }
.m65-gate__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* Single lead */
.m65-lead__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.m65-lead__summary { grid-column: 1 / -1; }
.m65-lead__grid h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--m65-muted); }
.m65-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 24px; }
.m65-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--m65-muted); margin-bottom: 4px; }
.m65-meta dd { margin: 0; color: var(--m65-ink); font-weight: 500; overflow-wrap: anywhere; }
.m65-meta--rows { grid-template-columns: 1fr; gap: 0; }
.m65-meta--rows > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.m65-meta--rows > div:last-child { border-bottom: 0; }
.m65-meta--rows dt { margin: 0; padding-top: 2px; }
.m65-lead__calendar { margin-top: 20px; }
.m65-lead .error { color: #b91c1c; }

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1360px) {
	/* Lead table becomes stacked cards */
	.m65-leadtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.m65-leadtable, .m65-leadtable tbody, .m65-leadtable tr, .m65-leadtable td { display: block; width: 100%; }
	.m65-table-card { background: transparent; border: 0; box-shadow: none; overflow: visible; }
	.m65-leadtable tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
	.m65-leadtable tbody tr { background: #fff; border: 1px solid var(--m65-line); border-left: 5px solid #cbd5e1; border-radius: var(--m65-radius); box-shadow: var(--m65-shadow); padding: 14px 18px 16px; display: flex; flex-direction: column; }
	.m65-leadtable tbody tr:hover { background: #fff; }
	.m65-leadtable tbody tr > td:first-child { border-left: 0; }
	.m65-row--blue { border-left-color: #3b82f6 !important; }
	.m65-row--yellow { border-left-color: #f59e0b !important; }
	.m65-row--gold { border-left-color: #16a34a !important; }
	.m65-row--red { border-left-color: #ef4444 !important; }
	.m65-leadtable td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; align-items: baseline; justify-items: start; }
	.m65-leadtable td::before { content: attr(data-label); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m65-muted); }
	.m65-leadtable td.m65-leadtable__service { order: -2; display: block; padding-bottom: 2px; }
	.m65-leadtable td.m65-leadtable__service::before { display: none; }
	.m65-leadtable td.m65-leadtable__org { order: -1; display: block; font-size: 17px; padding: 2px 0 8px; margin-bottom: 4px; border-bottom: 1px solid #eef2f7; }
	.m65-leadtable td.m65-leadtable__org::before { display: none; }
	.m65-leadtable td.m65-leadtable__action { display: block; margin-top: auto; padding-top: 12px; text-align: left; }
	.m65-leadtable td.m65-leadtable__action::before { display: none; }
	.m65-leadtable__action .m65-btn { width: 100%; padding: 10px 14px; font-size: 14px; }
	.m65-leadtable td { overflow-wrap: anywhere; min-width: 0; max-width: none; }
	.m65-leadtable td.telephone, .m65-leadtable td.m65-leadtable__org { min-width: 0; max-width: none; }
	.m65-leadtable tbody tr > td:first-child { padding-left: 0; }
	.m65-leadtable__email a, .m65-leadtable__web a { max-width: 100%; }
	.m65-row--empty { grid-column: 1 / -1; }
	.m65-row--empty td { display: block; }
	.m65-row--empty td::before { display: none; }
}

@media (max-width: 960px) {
	.m65-nav-toggle { display: inline-flex; }
	.m65-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--m65-gutter) 18px; background: var(--m65-navy-900); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 30px rgba(0, 0, 0, .3); display: none; }
	.m65-nav.is-open { display: flex; }
	.m65-nav > a:not(.m65-btn) { padding: 12px 10px; }
	.m65-nav .m65-btn { margin: 8px 0 0; }
	.m65-header__bar { position: relative; }

	.m65-hero__actions { grid-template-columns: 1fr; max-width: 440px; }
	.m65-btn--hero { min-height: 64px; justify-content: flex-start; }
	.m65-btn--hero span { max-width: none; flex: 1; }

	.m65-contact { grid-template-columns: 1fr; }
	.m65-contact__aside { order: 2; }
	.m65-footer__grid { grid-template-columns: 1fr 1fr; }
	.m65-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	body.admin-bar .m65-topbar { top: 46px; }
	body.admin-bar .m65-header { top: 0; position: relative; }
}

@media (max-width: 640px) {
	.m65-header__bar { min-height: 64px; }
	.m65-brand__mark { width: 44px; }
	.m65-brand__text strong { font-size: 15px; }
	.m65-brand__text small { font-size: 10.5px; }

	.m65-topbar { justify-content: center; padding: 18px 16px; }
	.m65-topbar__email { font-size: 15px; }
	.m65-topbar__email .m65-icon { width: 22px; height: 22px; }
	.m65-hero { background-image: var(--m65-hero-bg-mobile); background-position: center; padding-top: 84px; padding-bottom: 48px; min-height: 100svh; }
	.m65-hero::before { background: linear-gradient(to bottom, rgba(4, 9, 20, .55), rgba(4, 9, 20, .72) 45%, rgba(4, 9, 20, .82)); }
	.m65-hero__tagline { font-size: 11px; letter-spacing: .16em; gap: .3em .55em; }
	.m65-hero__intro br { display: none; }
	.m65-hero__features { flex-direction: column; gap: 14px; align-items: flex-start; }
	.m65-hero__features li { padding: 0; }
	.m65-hero__features li + li { border-left: 0; }
	.m65-hero__features .m65-icon { width: 36px; height: 36px; }

	.m65-form__row { grid-template-columns: 1fr; }
	.m65-contact { margin-top: -24px; }

	.m65-toolbar form > .m65-filter { flex: 1 1 calc(50% - 7px); min-width: 0; }
	.m65-toolbar form > .m65-filter--grow { flex-basis: 100%; }
	.m65-toolbar form > .m65-filter--actions { flex-basis: 100%; }
	.m65-toolbar form > .m65-filter--actions .m65-btn--primary, .m65-toolbar form > .m65-filter--actions .m65-btn--dark { flex: 1; }
	.m65-filter select, .m65-filter input { width: 100%; }
	.m65-pagehead__actions { width: 100%; }
	.m65-pagehead__actions > * { flex: 1; }
	.m65-pagehead__actions .m65-btn, .m65-pagehead__actions form .m65-btn { width: 100%; }

	.m65-lead__grid { grid-template-columns: 1fr; }
	.m65-meta--rows > div { grid-template-columns: 1fr; gap: 2px; }

	.m65-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.m65-pagination .page-numbers { min-width: 36px; height: 36px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.m65-header, .m65-footer, .m65-noprint, .m65-skip, #wpadminbar { display: none !important; }
	body.m65 { background: #fff; }
	.m65-pagehead { background: none !important; color: #000; padding: 0 0 12px; }
	.m65-pagehead h1 { color: #000; }
	.m65-pagehead::after { display: none; }
	.m65-card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}
