/* Email Deliverability Checker — same tool-page shell as the rest of the site
   (hero → tool card → content cards → final CTA), amber accent so it reads as
   a diagnostic rather than a converter. */

:root { --tk: #ea580c; --tk-dark: #9a3412; --tk-soft: #fff7ed; --tk-line: #fed7aa; --tk-ink: #7c2d12; }

.tk-hero { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); padding: 52px 0 40px; border-bottom: 1px solid var(--tk-line); }
.tk-hero h1 { color: var(--tk-ink); font-size: 2.3rem; font-weight: 800; letter-spacing: -.5px; }
.tk-hero .lead-copy { max-width: 720px; font-size: 1.08rem; color: #475569; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 100px; background: #fff; border: 1px solid #fdba74; font-size: .82rem; font-weight: 600; color: var(--tk); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: .85rem; color: #334155; }
.hero-facts i { color: var(--tk); margin-right: 4px; }

.tool-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 4px 24px rgba(15,23,42,.06); padding: 28px; max-width: 920px; margin: -28px auto 0; position: relative; }

/* ── input ── */
.edc-form { display: flex; gap: 10px; flex-wrap: wrap; }
.edc-form input[type=text] { flex: 1; min-width: 240px; font-size: 1.05rem; padding: 14px 18px; border: 2px solid #e2e8f0; border-radius: 12px; }
.edc-form input[type=text]:focus { outline: none; border-color: var(--tk); box-shadow: 0 0 0 4px rgba(234,88,12,.12); }
.btn-tk { background: var(--tk); border-color: var(--tk); color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 12px; }
.btn-tk:hover, .btn-tk:focus { background: var(--tk-dark); border-color: var(--tk-dark); color: #fff; }
.btn-tk:disabled { background: #94a3b8; border-color: #94a3b8; }
.edc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 12px; font-size: .82rem; color: #64748b; }
.edc-meta i { color: #16a34a; }
.edc-samples { margin-top: 10px; font-size: .82rem; color: #64748b; }
.edc-samples button { background: none; border: 0; color: var(--tk); font-weight: 600; text-decoration: underline; padding: 0 2px; }

.spin { display: inline-block; animation: edcspin 1s linear infinite; }
@keyframes edcspin { to { transform: rotate(360deg); } }

/* ── score ── */
.edc-score { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px; border-radius: 16px; margin-bottom: 18px; border: 1px solid; }
.edc-score.g-a { background: #f0fdf4; border-color: #bbf7d0; }
.edc-score.g-b { background: #f0fdf4; border-color: #bbf7d0; }
.edc-score.g-c { background: #fffbeb; border-color: #fde68a; }
.edc-score.g-d { background: #fff7ed; border-color: #fed7aa; }
.edc-score.g-f { background: #fef2f2; border-color: #fecaca; }
.edc-grade { width: 74px; height: 74px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 900; color: #fff; flex-shrink: 0; }
.g-a .edc-grade { background: linear-gradient(145deg,#22c55e,#15803d); }
.g-b .edc-grade { background: linear-gradient(145deg,#4ade80,#16a34a); }
.g-c .edc-grade { background: linear-gradient(145deg,#facc15,#ca8a04); }
.g-d .edc-grade { background: linear-gradient(145deg,#fb923c,#ea580c); }
.g-f .edc-grade { background: linear-gradient(145deg,#f87171,#dc2626); }
.edc-score-body { flex: 1; min-width: 220px; }
.edc-score-domain { font-size: 1.15rem; font-weight: 800; color: #0f172a; word-break: break-all; }
.edc-score-verdict { font-size: .93rem; color: #334155; margin-top: 4px; line-height: 1.6; }
.edc-score-num { font-size: .8rem; color: #64748b; margin-top: 6px; }

/* ── per-check rows ── */
.edc-check { border: 1px solid #e2e8f0; border-radius: 14px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.edc-check-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.edc-check-head:hover { background: #f8fafc; }
.edc-badge { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .9rem; color: #fff; }
.s-pass .edc-badge { background: #16a34a; }
.s-warn .edc-badge { background: #d97706; }
.s-fail .edc-badge { background: #dc2626; }
.s-unknown .edc-badge { background: #94a3b8; }
.edc-check-title { font-weight: 700; color: #0f172a; font-size: .95rem; }
.edc-check-sum { font-size: .85rem; color: #64748b; line-height: 1.5; }
.edc-check-chev { margin-left: auto; color: #94a3b8; transition: transform .18s; flex-shrink: 0; }
.edc-check.open .edc-check-chev { transform: rotate(180deg); }
.edc-check-body { display: none; padding: 0 16px 16px; border-top: 1px solid #f1f5f9; }
.edc-check.open .edc-check-body { display: block; }
.edc-rec { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; word-break: break-all; margin: 12px 0; line-height: 1.6; }
.edc-issues { margin: 12px 0 0; padding-left: 20px; }
.edc-issues li { color: #7c2d12; font-size: .88rem; line-height: 1.65; margin-bottom: 5px; }
.edc-fix { background: var(--tk-soft); border: 1px solid var(--tk-line); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: #7c2d12; line-height: 1.65; margin-top: 12px; }
.edc-fix strong { color: var(--tk-dark); }
.edc-kv { font-size: .85rem; color: #475569; margin: 2px 0; }
.edc-kv b { color: #0f172a; }

.alert-slim { font-size: .88rem; padding: 12px 14px; border-radius: 12px; }
.privacy-line { font-size: .8rem; color: #64748b; margin: 16px 0 0; text-align: center; }
.privacy-line i { color: #16a34a; }

/* ── content ── */
.content-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px; margin-top: 32px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.content-card h2 { font-weight: 800; color: var(--tk-ink); font-size: 1.6rem; margin-bottom: 14px; }
.content-card h3 { font-weight: 700; font-size: 1.1rem; color: #0f172a; margin-top: 22px; }
.content-card p, .content-card li { color: #475569; line-height: 1.75; }
.content-card code { background: #f1f5f9; color: #0f172a; padding: 1px 6px; border-radius: 5px; font-size: .88em; word-break: break-all; }
.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; padding: 0 0 18px 52px; }
.step-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--tk-soft); color: var(--tk); border: 1px solid var(--tk-line); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.example-box { background: var(--tk-soft); border: 1px solid var(--tk-line); border-radius: 14px; padding: 18px 20px; margin-top: 8px; }
.example-box p:last-child { margin-bottom: 0; }
.tip-grid .tip { height: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.tip-grid .tip h3 { margin-top: 0; font-size: 1rem; }
.tip-grid .tip p { font-size: .9rem; margin: 0; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(135deg,#fff7ed,#ffedd5); border: 1px solid var(--tk-line); border-radius: 16px; padding: 20px 22px; margin-top: 22px; }
.cta-inline p { margin: 0; color: var(--tk-ink); font-weight: 600; }
.related-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px; text-decoration: none; color: #1e293b; height: 100%; transition: border-color .15s, box-shadow .15s; }
.related-links a:hover { border-color: var(--tk); box-shadow: 0 4px 16px rgba(234,88,12,.12); }
.related-links i { font-size: 1.3rem; color: var(--tk); }
.related-links strong { display: block; font-size: .92rem; }
.related-links span { font-size: .8rem; color: #64748b; }
.accordion-button:not(.collapsed) { background: var(--tk-soft); color: var(--tk-ink); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(234,88,12,.2); }
.final-cta { background: linear-gradient(135deg,#7c2d12,#9a3412); border-radius: 20px; padding: 40px 28px; text-align: center; color: #fff; margin-top: 32px; }
.final-cta p { color: #ffedd5; }
.rec-table td, .rec-table th { vertical-align: middle; font-size: .9rem; }
.rec-table code { font-size: .82em; }

@media (max-width: 575px) {
  .tk-hero { padding: 36px 0; }
  .tk-hero h1 { font-size: 1.65rem; }
  .tool-card { padding: 16px; border-radius: 16px; margin-top: -20px; }
  .content-card { padding: 22px 18px; border-radius: 16px; }
  .content-card h2 { font-size: 1.35rem; }
  .edc-form input[type=text], .edc-form .btn-tk { width: 100%; }
  .edc-score { padding: 16px; gap: 14px; }
  .edc-grade { width: 58px; height: 58px; font-size: 1.7rem; }
}
