/* ProofMail website. One column, plain words, no scripts, nothing loaded from other companies. */

:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --ink: #18212b;
  --muted: #56616f;
  --line: #e6e1d6;
  --accent: #0d7a52;
  --accent-hover: #0a6142;
  --accent-ink: #ffffff;
  --accent-soft: #e3f3ea;
  --ok-bg: #d9f7e8;
  --ok-ink: #165c3d;
  --bad-bg: #ffe9e7;
  --bad-ink: #a32a20;
  --stamp: #0d7a52;
  --shadow: 0 1px 2px rgba(24, 33, 43, 0.05), 0 10px 30px rgba(24, 33, 43, 0.07);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11161b;
    --card: #182027;
    --ink: #e9edf0;
    --muted: #a4aeb9;
    --line: #29323b;
    --accent: #45d29a;
    --accent-hover: #6fe0b3;
    --accent-ink: #062517;
    --accent-soft: #15382a;
    --ok-bg: #123f2c;
    --ok-ink: #8be8bd;
    --bad-bg: #4a1c18;
    --bad-ink: #ffb4ab;
    --stamp: #45d29a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--card);
  padding: 8px 12px;
  z-index: 10;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

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

.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

/* Type */

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 850;
}

h2 {
  font-size: clamp(26px, 4.5vw, 34px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 14px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(18px, 2.6vw, 21px);
  color: var(--muted);
}

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

.small {
  font-size: 14px;
}

/* Sections */

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.hero {
  padding-top: 64px;
  background: radial-gradient(1100px 420px at 50% -8%, var(--accent-soft), transparent 72%);
}

.steps + p,
.checks + p {
  margin-top: 20px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 26px 0 8px;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
}

/* The ticket panel illustration */

.showcase {
  position: relative;
  margin: 40px 0 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 8px;
  margin: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-title {
  font-weight: 750;
}

.panel-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 6px;
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.log li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.log li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.log .when {
  color: var(--muted);
}

.log .status {
  text-align: right;
}

.log .reason {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.lozenge {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.lozenge.ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.lozenge.bad {
  background: var(--bad-bg);
  color: var(--bad-ink);
}

.caption {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
}

.stamp {
  position: absolute;
  top: -46px;
  right: -14px;
  width: 112px;
  height: 112px;
  color: var(--stamp);
  opacity: 0.9;
  transform: rotate(-14deg);
  pointer-events: none;
}

@media (max-width: 600px) {
  .log li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .panel-tag {
    display: none;
  }

  .log .when {
    grid-column: 1 / -1;
    font-size: 13px;
  }

  .stamp {
    width: 84px;
    height: 84px;
    top: -40px;
    right: -4px;
  }
}

/* The email illustration */

.mail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 28px 0 0;
  overflow: hidden;
}

.mail-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: grid;
  gap: 2px;
}

.mail-head b {
  color: var(--ink);
  display: inline-block;
  min-width: 64px;
}

.mail-body {
  padding: 18px 20px 6px;
  font-size: 16px;
}

.mail-body blockquote {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--line);
}

.mail-foot {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Feature list */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}

.icon svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3,
.doc .steps h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

/* Callout and price */

.callout {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 24px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.price {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

/* Checklist */

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 32px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 6px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FAQ */

.faq {
  margin-top: 20px;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Document pages (setup, privacy, terms, support) */

.doc {
  padding: 48px 0 64px;
}

.doc h2 {
  font-size: 24px;
  margin-top: 36px;
}

.doc h3 {
  margin-top: 24px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 14px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0 18px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
}

.doc th {
  width: 34%;
}

code {
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 6px;
}
