/* =============================================================
 * Email Marketing Tools — Design system
 * Brand-forward, fast, modern. Beats emailtooltester on style.
 * ============================================================= */

:root {
	--emt-primary: #2563eb;
	--emt-primary-dark: #1d4ed8;
	--emt-primary-soft: #eff6ff;
	--emt-accent: #10b981;
	--emt-warn: #f59e0b;
	--emt-danger: #ef4444;
	--emt-ink: #0f172a;
	--emt-ink-2: #334155;
	--emt-ink-3: #64748b;
	--emt-line: #e2e8f0;
	--emt-bg: #ffffff;
	--emt-bg-soft: #f8fafc;
	--emt-bg-dark: #0b1220;
	--emt-radius: 14px;
	--emt-radius-sm: 8px;
	--emt-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 4px rgba(15,23,42,.04);
	--emt-shadow: 0 6px 18px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
	--emt-shadow-lg: 0 24px 48px -12px rgba(15,23,42,.18);
	--emt-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--emt-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--emt-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--emt-ink);
	background: var(--emt-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--emt-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--emt-ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; top: -100px; left: 0; padding: 8px 16px; background: #000; color: #fff; z-index: 9999; }
.skip-link:focus { top: 0; }

/* === Layout === */
.emt-container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.emt-container--narrow { max-width: 760px; }
.emt-container--wide { max-width: 1320px; }
.emt-section { padding: 4rem 0; }
.emt-section--tight { padding: 2.5rem 0; }
.emt-section--soft { background: var(--emt-bg-soft); }
.emt-section--dark { background: var(--emt-bg-dark); color: #fff; }
.emt-section--dark h1, .emt-section--dark h2, .emt-section--dark h3 { color: #fff; }
.emt-text-center { text-align: center; }
.emt-eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--emt-primary); margin-bottom: .75rem; }
.emt-lede { font-size: 1.15rem; color: var(--emt-ink-2); }

/* === Header === */
.emt-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--emt-line); }
.emt-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.emt-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; color: var(--emt-ink); }
.emt-logo:hover { text-decoration: none; }
.emt-logo__mark { background: var(--emt-primary); color: #fff; padding: .3rem .55rem; border-radius: 8px; font-size: .85rem; letter-spacing: .04em; }
.emt-logo__text { font-size: 1rem; }
.emt-logo--light { color: #fff; }
.emt-nav__list { display: flex; gap: 1.5rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.emt-nav__item > a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 0; color: var(--emt-ink-2); font-weight: 500; font-size: .95rem; }
.emt-nav__item > a:hover { color: var(--emt-primary); text-decoration: none; }
.emt-nav__item--has-children { position: relative; }
.emt-megamenu, .emt-submenu {
	position: absolute; top: 100%; left: 0;
	background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius);
	box-shadow: var(--emt-shadow-lg); padding: 1.25rem; min-width: 720px;
	display: none; gap: 2rem;
}
.emt-megamenu { display: none; }
.emt-nav__item--has-children:hover .emt-megamenu,
.emt-nav__item--has-children:focus-within .emt-megamenu { display: grid; grid-template-columns: repeat(3, 1fr); }
.emt-submenu { min-width: 280px; }
.emt-nav__item--has-children:hover .emt-submenu,
.emt-nav__item--has-children:focus-within .emt-submenu { display: block; }
.emt-megamenu__col h4 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emt-ink-3); margin-bottom: .75rem; }
.emt-megamenu__col ul, .emt-submenu ul { list-style: none; padding: 0; margin: 0; }
.emt-megamenu__col li, .emt-submenu li { margin-bottom: .35rem; }
.emt-megamenu__col li a, .emt-submenu li a { color: var(--emt-ink); font-size: .9rem; }
.emt-nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; cursor: pointer; }
.emt-nav-toggle__bar { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--emt-ink); transition: transform .25s; }
.emt-nav-toggle__bar:nth-child(2) { top: 13px; }
.emt-nav-toggle__bar:nth-child(3) { top: 19px; }
.emt-nav-toggle__bar:nth-child(4) { top: 25px; }

@media (max-width: 980px) {
	.emt-nav-toggle { display: block; }
	.emt-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; border-bottom: 1px solid var(--emt-line); padding: 1rem; transform: translateY(-110%); transition: transform .25s ease; }
	.emt-nav.is-open { transform: none; }
	.emt-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.emt-nav__item { border-bottom: 1px solid var(--emt-line); }
	.emt-nav__item > a { padding: 1rem 0; }
	.emt-megamenu, .emt-submenu { position: static; box-shadow: none; border: 0; padding: 0 0 1rem 1rem; min-width: 0; }
	.emt-nav__item--has-children:hover .emt-megamenu { display: block; grid-template-columns: 1fr; }
}

/* === Buttons === */
.emt-btn {
	display: inline-flex; align-items: center; gap: .5rem;
	font-weight: 600; font-size: .95rem; line-height: 1;
	padding: .85rem 1.25rem; border-radius: 10px;
	border: 1px solid transparent; cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .2s, color .2s;
	text-decoration: none;
}
.emt-btn:hover { text-decoration: none; transform: translateY(-1px); }
.emt-btn--primary { background: var(--emt-primary); color: #fff; box-shadow: var(--emt-shadow-sm); }
.emt-btn--primary:hover { background: var(--emt-primary-dark); color: #fff; box-shadow: var(--emt-shadow); }
.emt-btn--ghost { background: transparent; color: var(--emt-ink); border-color: var(--emt-line); }
.emt-btn--ghost:hover { background: var(--emt-bg-soft); color: var(--emt-ink); }
.emt-btn--accent { background: var(--emt-accent); color: #fff; }
.emt-btn--accent:hover { background: #0ea371; color: #fff; }
.emt-btn--lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
.emt-btn--sm { padding: .55rem .9rem; font-size: .85rem; }
.emt-btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.emt-link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--emt-primary); }

/* === Hero === */
.emt-hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--emt-primary-soft) 0%, transparent 100%); }
.emt-hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.emt-hero h1 { margin-bottom: 1rem; }
.emt-hero__bullets { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .5rem; }
.emt-hero__bullets li { display: flex; gap: .65rem; align-items: flex-start; color: var(--emt-ink-2); }
.emt-hero__bullets li::before { content: '✓'; color: var(--emt-accent); font-weight: 800; }
.emt-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.emt-hero__art { background: #fff; border-radius: var(--emt-radius); box-shadow: var(--emt-shadow-lg); padding: 1.25rem; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--emt-ink-3); font-size: .9rem; }
@media (max-width: 880px) { .emt-hero__inner { grid-template-columns: 1fr; } }

/* === Suite app grid (hero) === */
.emt-suite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.emt-suite-tile { display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; justify-content: center; background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius); padding: 1.5rem; box-shadow: var(--emt-shadow); color: var(--emt-ink); min-height: 132px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.emt-suite-tile:hover { transform: translateY(-3px); box-shadow: var(--emt-shadow-lg); border-color: var(--emt-primary); text-decoration: none; color: var(--emt-ink); }
.emt-suite-tile__emoji { font-size: 2rem; line-height: 1; }
.emt-suite-tile__name { font-weight: 800; font-size: 1.05rem; }
.emt-suite-tile__tag { color: var(--emt-ink-3); font-size: .85rem; }
@media (max-width: 480px) { .emt-suite-grid { grid-template-columns: 1fr; } }

/* === App showcase (big alternating homepage sections) === */
.emt-appshow { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.emt-appshow h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); margin-bottom: 1rem; }
.emt-appshow__bullets { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .6rem; }
.emt-appshow__bullets li { display: flex; gap: .65rem; align-items: flex-start; color: var(--emt-ink-2); font-size: 1.05rem; }
.emt-appshow__bullets li::before { content: '✓'; color: var(--emt-accent); font-weight: 800; }
.emt-appshow__cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.emt-appshow__media { background: linear-gradient(160deg, var(--emt-primary-soft), #fff); border: 1px solid var(--emt-line); border-radius: var(--emt-radius); box-shadow: var(--emt-shadow-lg); aspect-ratio: 4/3; display: flex; flex-direction: column; gap: .75rem; align-items: center; justify-content: center; color: var(--emt-ink-3); font-size: .9rem; padding: 1.25rem; }
.emt-appshow__media-emoji { font-size: 3.5rem; line-height: 1; }
@media (min-width: 881px) { .emt-appshow--rev .emt-appshow__text { order: 2; } }
@media (max-width: 880px) { .emt-appshow { grid-template-columns: 1fr; gap: 2rem; } .emt-appshow--rev .emt-appshow__text { order: 0; } }

/* === Cards & grids === */
.emt-card { background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius); box-shadow: var(--emt-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.emt-card:hover { transform: translateY(-3px); box-shadow: var(--emt-shadow); border-color: #cbd5e1; }
.emt-card__body { padding: 1.25rem; }
.emt-card__title { font-size: 1.1rem; margin-bottom: .35rem; }
.emt-card__title a { color: var(--emt-ink); }
.emt-card__excerpt { color: var(--emt-ink-3); font-size: .92rem; margin-bottom: .75rem; }
.emt-card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.emt-post-grid, .emt-product-grid, .emt-tool-grid, .emt-feature-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Tool card */
.emt-tool-card { background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius); padding: 1.5rem; box-shadow: var(--emt-shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: .35rem; color: var(--emt-ink); }
.emt-tool-card:hover { transform: translateY(-3px); box-shadow: var(--emt-shadow); border-color: var(--emt-primary); text-decoration: none; color: var(--emt-ink); }
.emt-tool-card__icon { font-size: 2rem; line-height: 1; margin-bottom: .25rem; }
.emt-tool-card__title { font-size: 1.05rem; margin: 0; }
.emt-tool-card__desc { color: var(--emt-ink-3); font-size: .9rem; margin: 0 0 .75rem; flex: 1; }

/* Feature card */
.emt-feature { background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius); padding: 1.5rem; }
.emt-feature__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--emt-primary-soft); color: var(--emt-primary); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: .9rem; }

/* === Page header === */
.emt-page-header { margin-bottom: 2rem; }
.emt-page-header--center { text-align: center; max-width: 720px; margin-inline: auto; }
.emt-breadcrumbs { font-size: .85rem; color: var(--emt-ink-3); margin-bottom: .5rem; }
.emt-meta { color: var(--emt-ink-3); font-size: .9rem; }

/* === Prose / article content === */
.emt-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--emt-ink-2); }
.emt-prose h2 { margin-top: 2rem; }
.emt-prose h3 { margin-top: 1.5rem; }
.emt-prose ul, .emt-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.emt-prose li { margin-bottom: .35rem; }
.emt-prose blockquote { border-left: 4px solid var(--emt-primary); padding: .25rem 0 .25rem 1rem; margin: 1.5rem 0; color: var(--emt-ink); font-style: italic; }
.emt-prose img { border-radius: var(--emt-radius-sm); margin: 1.5rem 0; }
.emt-prose code { background: var(--emt-bg-soft); padding: .15em .4em; border-radius: 4px; font-family: var(--emt-font-mono); font-size: .92em; }
.emt-prose pre { background: #0b1220; color: #e2e8f0; padding: 1.25rem; border-radius: var(--emt-radius-sm); overflow: auto; }
.emt-prose pre code { background: transparent; color: inherit; padding: 0; }
.emt-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.emt-prose th, .emt-prose td { border-bottom: 1px solid var(--emt-line); padding: .65rem .75rem; text-align: left; }
.emt-prose th { background: var(--emt-bg-soft); }

/* === Footer === */
.emt-footer { background: var(--emt-bg-dark); color: #cbd5e1; padding: 4rem 0 1.5rem; }
.emt-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.emt-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.emt-footer ul { list-style: none; padding: 0; margin: 0; }
.emt-footer li { margin-bottom: .4rem; }
.emt-footer a { color: #cbd5e1; }
.emt-footer a:hover { color: #fff; }
.emt-footer__tag { color: #94a3b8; margin: 1rem 0; max-width: 320px; }
.emt-footer__newsletter { display: flex; gap: .5rem; }
.emt-footer__newsletter input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; padding: .65rem .85rem; border-radius: 8px; font-size: .9rem; }
.emt-footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .85rem; color: #94a3b8; }
.emt-footer__disclosure { max-width: 640px; }
.emt-footer__disclosure a { color: #93c5fd; }
@media (max-width: 880px) { .emt-footer__grid { grid-template-columns: 1fr 1fr; } }

/* === Inline CTA === */
.emt-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: var(--emt-primary-soft); border: 1px solid #c7d2fe; border-radius: var(--emt-radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.emt-inline-cta p { margin: 0; color: var(--emt-ink-2); font-size: .95rem; }
@media (max-width: 640px) { .emt-inline-cta { flex-direction: column; align-items: flex-start; } }

/* === Disclosure banner === */
.emt-disclosure { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: .75rem 1rem; border-radius: 10px; font-size: .9rem; margin: 1.5rem 0; }
.emt-disclosure a { color: #9a3412; text-decoration: underline; }

/* === Forms === */
.emt-field { display: block; margin-bottom: 1rem; }
.emt-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--emt-ink); }
.emt-field input, .emt-field select, .emt-field textarea, .emt-input {
	width: 100%; padding: .75rem .85rem; border: 1px solid var(--emt-line); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--emt-ink); transition: border-color .15s, box-shadow .15s;
}
.emt-field input:focus, .emt-field select:focus, .emt-field textarea:focus, .emt-input:focus { outline: none; border-color: var(--emt-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.emt-field__hint { font-size: .8rem; color: var(--emt-ink-3); margin-top: .25rem; }

/* === Searchform === */
.emt-searchform { display: flex; gap: .5rem; max-width: 480px; margin-inline: auto; }
.emt-searchform input { flex: 1; padding: .75rem 1rem; border-radius: 10px; border: 1px solid var(--emt-line); }

/* === Pagination === */
.pagination, .nav-links { display: flex; gap: .5rem; justify-content: center; margin-top: 2rem; }
.page-numbers { padding: .5rem .85rem; border: 1px solid var(--emt-line); border-radius: 8px; color: var(--emt-ink-2); }
.page-numbers.current { background: var(--emt-primary); color: #fff; border-color: var(--emt-primary); }

/* === Misc helpers === */
.emt-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.emt-badge { background: var(--emt-bg-soft); border: 1px solid var(--emt-line); color: var(--emt-ink-2); font-size: .75rem; padding: .25rem .55rem; border-radius: 999px; font-weight: 600; }
.emt-badge--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.emt-badge--warn { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.emt-badge--danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* === Stat cards === */
.emt-stat { background: #fff; border: 1px solid var(--emt-line); border-radius: var(--emt-radius); padding: 1.25rem 1.5rem; }
.emt-stat__num { font-size: 2rem; font-weight: 800; color: var(--emt-primary); }
.emt-stat__label { color: var(--emt-ink-3); font-size: .9rem; }
