/* ============================================================
   EmailVerificationSoftware.com — enterprise SaaS theme
   Sora (display) + IBM Plex Sans (body), violet on refined greys
   ============================================================ */

:root {
  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --violet-ink: #5b21b6;
  --violet-tint: #f5f3ff;
  --violet-line: #ddd6fe;

  --ink: #0f172a;
  --slate: #334155;
  --grey: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --ok: #15803d;
  --ok-tint: #f0fdf4;
  --bad: #b91c1c;
  --bad-tint: #fef2f2;
  --warn: #b45309;
  --warn-tint: #fffbeb;
  --mute: #475569;
  --mute-tint: #f1f5f9;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -16px rgba(15, 23, 42, .18);
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 .6em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
a { color: var(--violet-deep); }
a:hover { color: var(--violet-ink); }

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

.skip {
  position: absolute; left: -200vw; top: 0;
  background: var(--violet); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .72rem 1.4rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--violet-ink); border-color: var(--violet-line); }
.btn--ghost:hover { border-color: var(--violet); background: var(--violet-tint); color: var(--violet-ink); }
.btn--invert { background: #fff; color: var(--violet-ink); }
.btn--invert:hover { background: var(--violet-tint); color: var(--violet-ink); }
.btn--sm { padding: .5rem 1rem; font-size: .88rem; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(124, 58, 237, .45);
  outline-offset: 2px;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.topbar--raised {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, .12);
}
.topbar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.topbar__mark { flex: none; }
.topbar__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--ink);
  white-space: nowrap;
}
.topbar__name strong { font-weight: 800; }
.topbar__nav {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
}
.topbar__nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.topbar__nav a:hover { color: var(--violet-deep); }
.topbar__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}
.topbar__login {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
}
.topbar__login:hover { color: var(--violet-deep); }
.topbar__toggle {
  margin-left: auto;
  width: 42px; height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.topbar__toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.topbar--open .topbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar--open .topbar__toggle span:nth-child(2) { opacity: 0; }
.topbar--open .topbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 919px) {
  .topbar--open .topbar__nav,
  .topbar--open .topbar__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.1rem 1.25rem;
  }
  .topbar--open .topbar__nav { top: 100%; }
  .topbar--open .topbar__actions {
    top: calc(100% + 232px);
    flex-direction: row;
    align-items: center;
    box-shadow: 0 20px 32px -20px rgba(15, 23, 42, .25);
  }
}

@media (min-width: 920px) {
  .topbar__nav { display: flex; }
  .topbar__actions { display: flex; }
  .topbar__toggle { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(900px 480px at 82% -12%, rgba(124, 58, 237, .13), transparent 62%),
    radial-gradient(700px 420px at -8% 108%, rgba(124, 58, 237, .07), transparent 60%),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.2rem 1.25rem 3.4rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}
.hero__kicker {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-deep);
  margin-bottom: 1rem;
}
.hero__copy h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: .55em;
}
.hero__sub {
  font-size: 1.08rem;
  max-width: 34rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 1.6rem 0 1rem;
}
.hero__note {
  font-size: .85rem;
  color: var(--grey);
}

/* animated entrance */
.hero__copy > * { animation: rise .55s ease both; }
.hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero__copy > *:nth-child(4) { animation-delay: .18s; }
.hero__copy > *:nth-child(5) { animation-delay: .24s; }
.checker { animation: rise .55s ease .2s both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Checker widget ---------- */

.checker {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem 1.5rem;
}
.checker__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.1rem;
}
.checker__pill {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--violet-ink);
  background: var(--violet-tint);
  border: 1px solid var(--violet-line);
  border-radius: 999px;
  padding: .25rem .7rem;
}
.checker__title {
  font-size: 1.05rem;
  margin: 0;
}
.checker__form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.checker__input {
  flex: 1 1 200px;
  font: inherit;
  padding: .7rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  min-width: 0;
}
.checker__input:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.checker__btn { flex: none; }
.checker__hint {
  font-size: .82rem;
  color: var(--grey);
  margin: .7rem 0 0;
}

.checker__progress {
  margin-top: 1rem;
  padding: .8rem 1rem .8rem 2.4rem;
  border-radius: 10px;
  background: var(--violet-tint);
  border: 1px solid var(--violet-line);
  color: var(--violet-ink);
  font-size: .92rem;
  position: relative;
}
.checker__progress::before {
  content: '';
  position: absolute;
  left: .85rem; top: 50%;
  width: 14px; height: 14px;
  margin-top: -8px;
  border: 2.5px solid var(--violet-line);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.checker__progress--error { background: var(--bad-tint); border-color: #fecaca; color: var(--bad); }
.checker__progress--error::before { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.checker__result {
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
}
.checker__result--ok { background: var(--ok-tint); border-color: #bbf7d0; }
.checker__result--bad { background: var(--bad-tint); border-color: #fecaca; }
.checker__result--warn { background: var(--warn-tint); border-color: #fde68a; }
.checker__result--mute { background: var(--mute-tint); border-color: var(--line); }

.checker__verdict {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .35rem;
}
.checker__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  flex: none;
}
.checker__dot--ok { background: var(--ok); }
.checker__dot--bad { background: var(--bad); }
.checker__dot--warn { background: var(--warn); }
.checker__dot--mute { background: var(--mute); }
.checker__status {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--ink);
}
.checker__email {
  font-size: .9rem;
  color: var(--grey);
  word-break: break-all;
}
.checker__reason { font-size: .92rem; margin-bottom: .6rem; }
.checker__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .8rem;
}
.chip {
  font-size: .76rem;
  font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--slate);
}
.chip--warn { border-color: #fde68a; background: var(--warn-tint); color: var(--warn); }
.chip--bad { border-color: #fecaca; background: var(--bad-tint); color: var(--bad); }
.chip--brand { border-color: var(--violet-line); background: var(--violet-tint); color: var(--violet-ink); }
.checker__quota { font-size: .82rem; color: var(--grey); margin-bottom: .8rem; }
.checker__cta { display: inline-block; }

/* ---------- Stats strip ---------- */

.stats { border-top: 1px solid var(--line); background: var(--bg-soft); }
.stats__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
@media (min-width: 760px) { .stats__inner { grid-template-columns: repeat(4, 1fr); } }
.stats__item { text-align: center; }
.stats__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}
.stats__item span { font-size: .85rem; color: var(--grey); }

/* ---------- Generic sections ---------- */

.section__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.section__inner--narrow { max-width: 820px; }
.section__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}
.section__lead {
  max-width: 44rem;
  color: var(--grey);
  margin-bottom: 2.2rem;
}

/* ---------- How it works ---------- */

.how { background: var(--bg); }
.how__grid {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 820px) { .how__grid { grid-template-columns: repeat(3, 1fr); } }
.how__step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.how__step:hover { border-color: var(--violet-line); box-shadow: var(--shadow); }
.how__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  color: var(--violet);
  background: var(--violet-tint);
  border-radius: 8px;
  padding: .3rem .6rem;
  margin-bottom: 1rem;
}
.how__step h3 { font-size: 1.1rem; }
.how__step p { font-size: .95rem; margin: 0; }

/* ---------- Tables ---------- */

.features { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.matrix, .vs {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .94rem;
}
.matrix th, .matrix td, .vs th, .vs td {
  padding: .85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.matrix thead th {
  background: var(--violet-tint);
  color: var(--violet-ink);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.matrix tbody th { font-weight: 500; color: var(--ink); }
.matrix td { text-align: center; width: 16%; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }

.tick {
  display: inline-block;
  color: var(--violet);
  font-weight: 700;
  font-size: 1.05rem;
}
.dash { color: #cbd5e1; }

.vs thead th {
  font-family: var(--font-display);
  font-size: .88rem;
  background: var(--bg-soft);
}
.vs tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.vs__us { background: var(--violet-tint); }
.vs thead .vs__us { color: var(--violet-ink); border-top: 3px solid var(--violet); }
.vs tbody .vs__us { color: var(--violet-ink); font-weight: 500; }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }

/* ---------- Use cases ---------- */

.cases__grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.6rem;
}
@media (min-width: 820px) { .cases__grid { grid-template-columns: repeat(3, 1fr); } }
.cases__card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  background: #fff;
}
.cases__card h3 { font-size: 1.08rem; }
.cases__card p { font-size: .95rem; margin: 0; }

/* ---------- Pricing ---------- */

.pricing { background: var(--bg-soft); border-top: 1px solid var(--line); }
.pricing__free {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  background: linear-gradient(110deg, var(--violet-ink), var(--violet));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.6rem;
}
.pricing__free h3 { color: #fff; font-size: 1.2rem; margin-bottom: .2em; }
.pricing__free p { color: rgba(255, 255, 255, .85); margin: 0; }
.pricing__free .btn--primary { background: #fff; color: var(--violet-ink); }
.pricing__free .btn--primary:hover { background: var(--violet-tint); }

.pricing__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.3rem;
  text-align: center;
}
.plan--popular { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.plan__badge {
  position: absolute;
  top: -0.8rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--violet);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .8rem;
  white-space: nowrap;
}
.plan__name { font-size: .95rem; margin-bottom: .4rem; }
.plan__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 .15rem;
}
.plan__credits { font-weight: 600; color: var(--slate); margin: 0 0 .2rem; }
.plan__per { font-size: .8rem; color: var(--grey); margin: 0; }

/* ---------- API ---------- */

.api { background: var(--ink); }
.api__inner {
  display: grid;
  gap: 2rem;
}
@media (min-width: 920px) { .api__inner { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.api .section__title { color: #fff; }
.api__copy p { color: #cbd5e1; max-width: 32rem; }
.api__copy a { color: #c4b5fd; }
.api__copy a:hover { color: #ddd6fe; }
.api__copy .btn--ghost { border-color: #475569; color: #e2e8f0; }
.api__copy .btn--ghost:hover { border-color: #c4b5fd; background: rgba(124, 58, 237, .15); color: #fff; }
.api__code {
  background: #1e1b34;
  border: 1px solid #312e57;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  overflow-x: auto;
  margin: 0;
}
.api__code code {
  font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.7;
  color: #c4b5fd;
  white-space: pre;
}

/* ---------- FAQ ---------- */

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: .8rem;
  padding: 0 1.3rem;
}
.faq__item[open] { border-color: var(--violet-line); }
.faq__item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 1.05rem 1.8rem 1.05rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: .1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--violet);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding-bottom: 1.1rem; margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */

.band {
  background: linear-gradient(110deg, var(--violet-ink), var(--violet) 70%);
}
.band__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.6rem 1.25rem;
  text-align: center;
}
.band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.band p { color: rgba(255, 255, 255, .85); margin-bottom: 1.6rem; }

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

.footer { background: var(--ink); color: #94a3b8; }
.footer__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__col--brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer__col--brand { grid-column: auto; } }
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: .6rem;
}
.footer__logo strong { font-weight: 800; }
.footer__blurb { font-size: .88rem; max-width: 18rem; }
.footer__col h3 {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #cbd5e1;
  margin-bottom: .9rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .55rem; }
.footer__col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .9rem;
}
.footer__col a:hover { color: #c4b5fd; }
.footer__base {
  border-top: 1px solid #1e293b;
  text-align: center;
}
.footer__base p {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem;
  font-size: .82rem;
}

/* ---------- Legal pages ---------- */

.docpage {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
.docpage h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.docpage h2 { font-size: 1.2rem; margin-top: 2.2em; }
.docpage .docpage__updated { color: var(--grey); font-size: .9rem; margin-bottom: 2rem; }
.docpage ul { padding-left: 1.3rem; }
.docpage li { margin-bottom: .4rem; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
