/* Emailfortify. Navy header, white tool cards on a cool grey page, coral eyebrows,
   status cards and step bars for results. */
:root {
    --ink: #0f1b3d;
    --ink-2: #44506e;
    --muted: #7a8199;
    --bg: #f5f6fa;
    --warm: #f4f1ec;
    --card: #ffffff;
    --line: #e2e5ee;
    --line-strong: #cfd4e2;
    --brand: #2347d6;
    --brand-dark: #1a36a8;
    --brand-soft: #eaefff;
    --accent: #f2545b;
    --nav: #0b1530;
    --nav-2: #131f42;
    --ok: #12a150;
    --ok-soft: #e7f6ee;
    --warn: #c98200;
    --warn-soft: #fdf4e1;
    --bad: #e5484d;
    --bad-soft: #fdecec;
    --unk: #6b7391;
    --unk-soft: #eef0f5;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 8px 28px rgba(15, 27, 61, .07);
    --head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.show-sm { display: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ---- */
.top { background: var(--nav); color: #fff; position: sticky; top: 0; z-index: 20; }
.top__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #3a63ff, #2347d6 60%, #f2545b); display: grid; place-items: center; }
.logo__mark svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav a, .nav summary { color: #c9d0e6; font-size: .95rem; padding: 8px 12px; border-radius: 8px; cursor: pointer; list-style: none; }
.nav a:hover, .nav summary:hover, .nav a.is-active { color: #fff; background: var(--nav-2); text-decoration: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.menu { position: relative; }
.menu__panel { position: absolute; top: 44px; left: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 260px; border: 1px solid var(--line); }
.menu__panel a { display: block; color: var(--ink); padding: 9px 12px; }
.menu__panel a:hover { background: var(--bg); color: var(--ink); }
.menu__panel small { display: block; color: var(--muted); font-size: .8rem; }
.top__actions { display: flex; gap: 10px; align-items: center; }
.top__actions a.plain { color: #c9d0e6; font-size: .95rem; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.burger svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---- buttons & forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 11px 18px; font: 600 .97rem var(--body); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--light:hover { border-color: var(--ink-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; }
.btn--danger { background: #fff; color: var(--bad); border-color: #f3c2c4; }
.btn--sm { padding: 7px 12px; font-size: .88rem; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 1.03rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; color: var(--ink-2); }
.input, input[type=email], input[type=text], input[type=password], input[type=search], select, textarea {
    width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font: 1rem var(--body); color: var(--ink); background: #fff; outline: none;
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 140px; resize: vertical; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.form-error { background: var(--bad-soft); color: #a32025; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .94rem; }
.form-ok { background: var(--ok-soft); color: #0c6b37; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .94rem; }

/* ---- page heads & tool cards ---- */
.crumbs { font-size: .85rem; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--brand); }
.eyebrow { display: inline-block; color: var(--accent); font: 700 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 720px; }
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 26px 0 22px; }
.tabs a { padding: 9px 16px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.tabs a:hover { background: #e9ecf4; text-decoration: none; }
.tabs a.is-active { background: #e6ebfb; color: var(--brand); }
.tool { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; border: 1px solid var(--line); }
.tool h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.tool .lead { margin-bottom: 22px; }
.tool__form { display: flex; gap: 12px; align-items: stretch; }
.tool__form .input { font-size: 1.05rem; padding: 14px 16px; }
.tool__form .btn { padding-left: 26px; padding-right: 26px; }
.tool__foot { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; color: var(--muted); font-size: .85rem; flex-wrap: wrap; }
.tool__foot a { font-weight: 500; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 14px; }

/* ---- hero (home) ---- */
.hero { background: radial-gradient(1200px 420px at 50% -60px, #1d2c66 0%, var(--nav) 70%); color: #fff; padding: 64px 0 120px; text-align: center; }
.hero h1 { color: #fff; max-width: 860px; margin: 0 auto 14px; }
.hero .lead { color: #c3cbe6; margin: 0 auto; }
.hero .eyebrow { color: #ff8b8f; }
.hero__card { margin-top: -88px; position: relative; z-index: 2; }
.hero__stats { display: flex; gap: 28px; justify-content: center; margin-top: 26px; color: #aeb7d6; font-size: .92rem; flex-wrap: wrap; }
.hero__stats strong { color: #fff; }

/* ---- step bar (Red Sift style) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 26px 0 6px; }
.step { font: 600 .74rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.step::before { content: ''; display: block; height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 10px; transition: background .3s; }
.step.is-done { color: var(--ink); }
.step.is-done::before { background: var(--brand); }
.step.is-active { color: var(--ink); }
.step.is-active::before { background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 40%, var(--line) 40%); background-size: 250% 100%; animation: stepfill 1.2s linear infinite; }
@keyframes stepfill { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---- verdict & status cards ---- */
.result { margin-top: 22px; }
.verdict { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.verdict__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.verdict__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.verdict__label { font: 700 1.45rem var(--head); letter-spacing: -.02em; margin: 0; }
.verdict__text { color: var(--ink-2); margin: 2px 0 0; }
.verdict__email { font-family: var(--mono); font-size: .92rem; color: var(--muted); word-break: break-all; }
.verdict__score { margin-left: auto; text-align: right; flex: none; }
.verdict__score b { display: block; font: 700 1.9rem var(--head); }
.verdict__score small { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.is-deliverable .verdict__icon { background: var(--ok); } .is-deliverable { background: var(--ok-soft); border-color: #bfe6cf; }
.is-risky .verdict__icon { background: var(--warn); } .is-risky { background: var(--warn-soft); border-color: #f1dca8; }
.is-undeliverable .verdict__icon { background: var(--bad); } .is-undeliverable { background: var(--bad-soft); border-color: #f4c4c6; }
.is-unknown .verdict__icon { background: var(--unk); } .is-unknown { background: var(--unk-soft); }
.suggest { margin-top: 12px; padding: 12px 16px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.card-stat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; text-align: center; }
.card-stat__label { color: var(--muted); font-size: .82rem; margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: .86rem; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--unk { background: var(--unk-soft); color: var(--unk); }
.details { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.details table { width: 100%; border-collapse: collapse; }
.details th, .details td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.details tr:last-child th, .details tr:last-child td { border-bottom: 0; }
.details th { width: 32%; color: var(--ink-2); font-weight: 600; background: #fafbfd; }
.record { font-family: var(--mono); font-size: .9rem; background: var(--nav); color: #dfe5ff; padding: 14px 16px; border-radius: 10px; word-break: break-all; margin: 14px 0 0; }
.record__label { font-size: .8rem; color: var(--muted); margin-top: 18px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.issues { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.issues li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fafbfd; border: 1px solid var(--line); font-size: .95rem; }
.issues li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--unk); }
.issues li.is-error::before { background: var(--bad); }
.issues li.is-warning::before { background: var(--warn); }
.issues li.is-info::before { background: var(--brand); }
.issues li.is-ok::before { background: var(--ok); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.section-title h3 { margin: 0; }

/* ---- content sections ---- */
.section { padding: 72px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--warm { background: var(--warm); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section__head .lead { margin: 0 auto; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.feature__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); display: grid; place-items: center; margin-bottom: 14px; }
.feature__icon svg { width: 22px; height: 22px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cta { background: linear-gradient(180deg, #fff, #f7f9ff); border: 1px solid #d6def8; border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; align-items: center; }
.cta__left { border-right: 1px solid #d6def8; padding-right: 36px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.codebox { background: var(--nav); color: #dfe5ff; border-radius: var(--radius); padding: 22px; font-family: var(--mono); font-size: .86rem; overflow-x: auto; line-height: 1.6; white-space: pre; }
.codebox .c { color: #7f8bb3; } .codebox .k { color: #ff9ea2; } .codebox .s { color: #9fe0b8; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }
.prose { color: var(--ink-2); }
.prose h2 { color: var(--ink); margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }

.photo { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.howto { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.howto li { counter-increment: step; position: relative; padding-left: 46px; color: var(--ink-2); }
.howto li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 700 .95rem var(--head); display: grid; place-items: center; }
.howto strong { color: var(--ink); }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan--pop { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan--pop::before { content: 'Most popular'; position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan__price { font: 700 2.4rem var(--head); margin: 8px 0 0; }
.plan__price small { font: 500 1rem var(--body); color: var(--muted); }
.plan__credits { color: var(--ink-2); margin-bottom: 18px; }
.plan .checks { margin-bottom: 24px; flex: 1; }
.plan__per { color: var(--muted); font-size: .85rem; }

/* ---- app pages ---- */
.page { padding: 34px 0 72px; }
.page__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page__head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--line); }
.bar span { display: block; height: 100%; }
.bar .b-ok { background: var(--ok); } .bar .b-warn { background: #e9a51c; } .bar .b-bad { background: var(--bad); } .bar .b-unk { background: #a4aac0; }
.progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .4s; }
.meter { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; margin-top: 8px; }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 34px; text-align: center; background: #fafbfd; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.is-over, .drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.drop svg { width: 40px; height: 40px; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.drop strong { display: block; font-size: 1.05rem; margin: 10px 0 4px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend .l-ok::before { background: var(--ok); } .legend .l-warn::before { background: #e9a51c; } .legend .l-bad::before { background: var(--bad); } .legend .l-unk::before { background: #a4aac0; }
.key-reveal { font-family: var(--mono); background: var(--warn-soft); border: 1px solid #f1dca8; padding: 12px 14px; border-radius: 10px; word-break: break-all; }
.auth { max-width: 440px; margin: 48px auto 72px; }
.auth .tool h1 { font-size: 1.9rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn svg { width: 18px; height: 18px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--unk-soft); color: var(--unk); }
.badge--ok { background: var(--ok-soft); color: var(--ok); } .badge--run { background: var(--brand-soft); color: var(--brand); } .badge--bad { background: var(--bad-soft); color: var(--bad); }

/* ---- footer ---- */
.foot { background: var(--nav); color: #9aa4c7; padding: 52px 0 30px; font-size: .92rem; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot h4 { color: #fff; font-family: var(--body); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.foot a { color: #c9d0e6; display: block; padding: 3px 0; }
.foot__legal { border-top: 1px solid #1e2a52; margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot__legal a { display: inline; margin-left: 16px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
    .grid--3, .grid--4, .plans, .split, .cta, .foot__grid { grid-template-columns: 1fr; }
    .grid--2 { grid-template-columns: 1fr; }
    .cta__left { border-right: 0; padding-right: 0; border-bottom: 1px solid #d6def8; padding-bottom: 24px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .nav, .top__actions .plain { display: none; }
    .burger { display: block; margin-left: auto; }
    .top.is-open .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--nav); padding: 10px 16px 18px; border-top: 1px solid #1e2a52; }
    .top.is-open .menu__panel { position: static; box-shadow: none; margin-top: 6px; }
    .top__actions { margin-left: 0; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .tool { padding: 22px 18px; }
    .tool__form { flex-direction: column; }
    .hero { padding: 44px 0 100px; }
    .section { padding: 52px 0; }
    .verdict { flex-wrap: wrap; }
    .verdict__score { margin-left: 70px; text-align: left; }
    .steps .step { font-size: .62rem; letter-spacing: .04em; }
    .details th { width: 40%; }
    .top__actions .btn { padding: 7px 12px; font-size: .88rem; }
    .hide-sm { display: none; }
    .show-sm { display: inline; }
    .top__inner { gap: 12px; }
}
