/* Design tokens mirror zevahit.com (src/styles/global.css in the site repo). */
:root {
  --ink: #12151c;
  --ink-soft: #1c212c;
  --paper: #f4f5f3;
  --paper-raised: #ffffff;
  --slate: #5b6472;
  --slate-line: #dcdfdb;
  --slate-line-dark: #333a47;
  --teal: #0f6b62;
  --teal-bg: #e4f0ee;
  --gold: #b8862e;
  --red: #a32b2b;
  --red-bg: #f6e4e2;
  --neutral-bg: #eceeea;

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --container: 1180px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.875rem;
}

.skip:focus {
  top: 12px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--raised {
  background: var(--paper-raised);
}

.section--ink {
  background: var(--ink);
  color: #eceae4;
}

.section--ink h2 {
  color: #fff;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- Header / footer ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 245, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-line);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo img,
.footer__logo {
  height: 28px;
  width: auto;
}

.header__cta {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.footer {
  background: var(--ink);
  color: #b7bcc5;
  padding: 48px 0 24px;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--slate-line-dark);
}

.footer__logo {
  height: 26px;
  margin-bottom: 14px;
}

.footer__brand p {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.footer__brand a {
  color: #8fd7cc;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.footer__links a {
  color: #b7bcc5;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 20px;
  font-size: 0.8125rem;
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section--ink .eyebrow {
  color: #8fd7cc;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--slate);
  font-size: 1.0625rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--slate-line);
}

.btn--secondary:hover {
  border-color: var(--ink);
}

.section--ink .btn--primary {
  background: var(--teal);
}

.section--ink .btn--primary:hover {
  background: #148578;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  background: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge--accept {
  background: var(--teal-bg);
  color: var(--teal);
}

.badge--reject {
  background: var(--red-bg);
  color: var(--red);
}

.badge--running {
  background: var(--neutral-bg);
  color: var(--slate);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--slate-line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--slate);
}

/* ---------- Hero + form ---------- */

.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
}

.hero__row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.375rem);
  margin-bottom: 20px;
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero__note {
  font-size: 0.9375rem;
  color: var(--slate);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  max-width: 460px;
}

.tool {
  background: var(--paper-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
  padding: 22px;
}

.tool__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--slate-line);
}

.tool__label {
  font-size: 0.8125rem;
  color: var(--slate);
}

.field {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.tool textarea {
  display: block;
  width: 100%;
  min-height: 11rem;
  resize: vertical;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.tool textarea:focus {
  border-color: var(--teal);
}

.tool__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--slate);
}

.count.is-over {
  color: var(--red);
  font-weight: 500;
}

.options {
  margin: 18px 0;
  padding: 0;
  min-width: 0;
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.option {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.option + .option {
  border-top: 1px solid var(--slate-line);
}

.option input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--teal);
}

.option__title {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
}

.option__help {
  display: block;
  font-size: 0.8125rem;
  color: var(--slate);
}

.option.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: var(--red);
}

.form-error[hidden] {
  display: none;
}

.tool .btn {
  width: 100%;
}

.tool__fine {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* ---------- Job / results panel ---------- */

.results-area {
  padding-bottom: clamp(32px, 5vw, 56px);
}

#job-area:empty {
  display: none;
}

/* Leave room for the sticky header when the panel is scrolled into view. */
#job-area {
  scroll-margin-top: 88px;
}

.job {
  background: var(--paper-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.job--failed {
  border-left: 2px solid var(--red);
}

.job__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--slate-line);
}

.job__title {
  font-size: 1.25rem;
}

.job__tally {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
}

.job__body {
  padding: 22px;
}

.job__body p + p {
  margin-top: 8px;
}

.job__detail {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--slate);
  overflow-wrap: anywhere;
}

.progress {
  position: relative;
  height: 2px;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--slate-line);
}

.progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 30%;
  background: var(--teal);
  animation: progress-slide 1.4s ease-in-out infinite;
}

@keyframes progress-slide {
  to {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .progress span {
    left: 0;
    width: 100%;
    opacity: 0.4;
    animation: none;
  }
}

/* ---------- Results table ---------- */

.ledger-wrap {
  overflow-x: auto;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.ledger th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  border-bottom: 1px solid var(--slate-line);
}

.ledger th:first-child,
.ledger td:first-child {
  padding-left: 22px;
}

.ledger th:last-child,
.ledger td:last-child {
  padding-right: 22px;
}

.ledger th.num {
  text-align: right;
}

.ledger td {
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--slate-line);
}

.ledger tbody tr:last-child td {
  border-bottom: 0;
}

.ledger td.num {
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.ledger .c-domain {
  min-width: 236px;
}

.ledger .domain {
  display: block;
  max-width: 300px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.ledger .country {
  display: block;
  font-size: 0.75rem;
  color: var(--slate);
}

.ledger .c-reasons {
  min-width: 240px;
}

.reasons {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--slate);
}

.reasons li + li {
  margin-top: 2px;
}

.reasons + .tag {
  margin-top: 6px;
}

/* The nine-column table needs about 1120px; below that each row becomes a stacked block. */
@media (max-width: 1140px) {
  .ledger-wrap {
    overflow: visible;
  }

  .ledger thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .ledger,
  .ledger tbody {
    display: block;
  }

  .ledger tr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--slate-line);
  }

  .ledger tbody tr:last-child {
    border-bottom: 0;
  }

  .ledger td,
  .ledger td:first-child,
  .ledger td:last-child,
  .ledger tbody tr:last-child td {
    display: block;
    padding: 0;
    border: 0;
  }

  .ledger td.num {
    text-align: left;
  }

  .ledger td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    color: var(--slate);
  }

  .ledger .c-domain {
    grid-column: 1 / span 2;
    min-width: 0;
  }

  .ledger .c-verdict {
    grid-column: 3;
    justify-self: end;
  }

  .ledger .c-domain::before,
  .ledger .c-verdict::before,
  .ledger .c-reasons::before {
    display: none;
  }

  .ledger td.c-reasons {
    grid-column: 1 / -1;
    min-width: 0;
    padding-top: 12px;
    border-top: 1px dashed var(--slate-line);
  }

  .ledger .domain {
    max-width: none;
  }
}

/* ---------- What the tool checks ---------- */

.checks {
  border-top: 1px solid var(--slate-line);
}

.check {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 6px 40px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--slate-line);
}

.check h3 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.check p {
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--slate);
}

.check__rule {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--teal);
  text-align: right;
}

/* ---------- Reading the result ---------- */

.verdicts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.verdict {
  padding: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.verdict .badge {
  margin-bottom: 12px;
}

.verdict p {
  font-size: 0.9375rem;
  color: var(--slate);
}

.sample__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.sample__note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--slate);
}

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

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex-shrink: 0;
  font-family: var(--font-mono);
  color: var(--teal);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 22px 20px;
}

.faq__answer p {
  max-width: 640px;
  font-size: 0.9375rem;
  color: var(--slate);
}

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

.cta__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.cta p {
  max-width: 500px;
  font-size: 1.0625rem;
  color: #b7bcc5;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__row {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .check {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .check__rule {
    text-align: left;
  }

  .verdicts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }

  .tool {
    padding: 18px;
  }
}

/* ---------- Account bits: header, quota line, plans ---------- */

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__user {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: var(--slate);
}

.header__link {
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--slate);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.header__link:hover {
  color: var(--ink);
}

.quota {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--slate);
}

.quota:empty {
  display: none;
}

.quota a,
.form-error a {
  color: var(--teal);
  font-weight: 500;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.plans {
  max-width: 460px;
  margin-top: 24px;
  background: var(--paper-raised);
  border: 1px solid var(--slate-line);
  border-radius: var(--radius);
}

.plans__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  font-size: 0.875rem;
}

.plans__row + .plans__row {
  border-top: 1px solid var(--slate-line);
}

.plans__row .mono {
  font-size: 0.8125rem;
  color: var(--teal);
  text-align: right;
}

.cf-turnstile {
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .header__user {
    display: none;
  }

  .header__actions {
    gap: 12px;
  }
}
