/* checkifemailisvalid.com — one input, one answer. */

:root {
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f9fafb;
  --ok: #16a34a;
  --ok-bg: #f0fdf4;
  --bad: #dc2626;
  --bad-bg: #fef2f2;
  --warn: #d97706;
  --warn-bg: #fffbeb;
  --meh: #6b7280;
  --meh-bg: #f9fafb;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 400 16px/1.65 var(--sans);
  color: var(--text);
  background: #fff;
}

a { color: var(--accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* header — barely there */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
}

.wordmark {
  font: 500 0.95rem var(--mono);
  color: var(--text);
  text-decoration: none;
}

.wordmark span { color: var(--muted); }

header nav { display: flex; gap: 1rem; align-items: center; }

header nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

header nav a:hover { color: var(--accent); }

header nav a.signup {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  font-weight: 500;
}

header nav a.signup:hover {
  background: var(--accent);
  color: #fff;
}

/* the checker — the whole point of the page */

.checker {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
}

.checker h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

.tagline {
  color: var(--muted);
  margin: 0 0 2.2rem;
  font-size: 1.02rem;
}

#check {
  display: flex;
  width: min(680px, 100%);
  gap: 0.6rem;
  flex-direction: column;
}

@media (min-width: 540px) {
  #check { flex-direction: row; }
}

#email {
  flex: 1;
  min-width: 0;
  font: 400 1.15rem var(--sans);
  color: var(--text);
  padding: 0.95rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(31, 41, 55, 0.06);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

#email:hover { box-shadow: 0 2px 10px rgba(31, 41, 55, 0.1); }

#email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#check button {
  font: 500 1.05rem var(--sans);
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 0.95rem 2rem;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

#check button:hover { background: var(--accent-dark); }

#check button:disabled { opacity: 0.6; cursor: wait; }

.hint {
  font: 400 0.82rem var(--mono);
  color: var(--muted);
  margin: 1.1rem 0 0;
}

/* progress */

.progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.6rem 0 0;
  font: 400 0.9rem var(--mono);
  color: var(--muted);
}

.pulse {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent);
  animation: civ-pulse 1.1s ease-in-out infinite;
}

@keyframes civ-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  *, *::before, *::after { transition-duration: 0.001s !important; }
}

/* the answer */

.answer { width: min(680px, 100%); }

.verdict {
  margin-top: 1.6rem;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
}

.verdict.ok { background: var(--ok-bg); border-color: #bbf7d0; }
.verdict.bad { background: var(--bad-bg); border-color: #fecaca; }
.verdict.warn { background: var(--warn-bg); border-color: #fde68a; }
.verdict.meh { background: var(--meh-bg); }
.verdict.err { background: var(--bad-bg); border-color: #fecaca; }

.verdict .headline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font: 500 1.05rem var(--mono);
  margin: 0 0 0.35rem;
  word-break: break-all;
}

.verdict.ok .headline { color: var(--ok); }
.verdict.bad .headline { color: var(--bad); }
.verdict.warn .headline { color: var(--warn); }
.verdict.meh .headline { color: var(--meh); }

.verdict .reason {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--text);
}

.verdict .tags {
  margin: 0 0 0.9rem;
  font: 400 0.82rem var(--mono);
  color: var(--muted);
  word-spacing: 0.3rem;
}

.verdict .quota {
  margin: 0 0 0.9rem;
  font: 400 0.8rem var(--mono);
  color: var(--muted);
}

.verdict .go {
  display: inline-block;
  font: 500 0.95rem var(--sans);
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
}

.verdict .go:hover { background: var(--accent-dark); }

.verdict .fail { margin: 0 0 0.4rem; color: var(--bad); font-weight: 500; }

/* status dots (shared with legend) */

.dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  flex: none;
}

.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
.dot.meh { background: var(--meh); }

/* the calm column below the fold */

.doc {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  border-top: 1px solid var(--line);
}

.doc section { padding-top: 3rem; }

.doc h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.doc p { margin: 0 0 1rem; }

.doc ol { padding-left: 1.3rem; margin: 0; }

.doc ol li { margin-bottom: 0.7rem; }

.doc code {
  font: 400 0.88em var(--mono);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
}

/* legend */

.legend { margin: 0 0 1rem; }

.legend > div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.legend dt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.legend dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* pricing table */

.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0.5rem 0 1.4rem;
}

.plans th, .plans td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.plans th {
  font: 500 0.78rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plans td:nth-child(2), .plans td:nth-child(3) { font-family: var(--mono); }

.plans .popular td { background: #eff6ff; }

.plans .tag {
  font: 500 0.7rem var(--mono);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}

.center { text-align: center; }

.cta {
  display: inline-block;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  padding: 0.8rem 1.6rem;
}

.cta:hover { background: var(--accent-dark); }

/* faq */

#faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}

#faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.6rem 0;
  list-style: none;
  position: relative;
  padding-right: 1.8rem;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font: 400 1.2rem var(--mono);
}

#faq details[open] summary::after { content: "−"; }

#faq details p { color: var(--muted); margin: 0 0 0.8rem; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
}

.foot-head {
  font: 500 0.75rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.8rem;
}

footer ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
}

footer ul a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

footer ul a:hover { color: var(--accent); }

footer .copy {
  font: 400 0.8rem var(--mono);
  color: var(--muted);
  margin: 0;
}

/* legal pages */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.legal h1 { font-size: 1.7rem; font-weight: 600; }

.legal h2 { font-size: 1.15rem; font-weight: 600; margin-top: 2rem; }

.legal .updated { font: 400 0.85rem var(--mono); color: var(--muted); }
