:root {
  --ink: #14171a;
  --muted: #5b6470;
  --line: #e3e6ea;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --accent: #1d5cff;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px / 1.62 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

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

header.site,
footer.site,
main > section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
header.site nav a:hover {
  color: var(--ink);
}

main > section {
  padding-top: 56px;
  padding-bottom: 8px;
}

.hero {
  padding-top: 64px !important;
  max-width: 860px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.lede {
  font-size: 18px;
  color: #2b3138;
  margin: 0 0 16px;
}
.lede.small {
  font-size: 16px;
  color: var(--muted);
}

.section-lede {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.button {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.button:hover {
  border-color: #c7ccd3;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button.primary:hover {
  background: #1749cc;
  border-color: #1749cc;
}

.fine {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.check {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.check .num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.check p {
  margin: 0 0 10px;
  color: #2b3138;
}
.check .detail {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.steps {
  padding-left: 20px;
  max-width: 70ch;
}
.steps li {
  margin-bottom: 12px;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tier .price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 6px;
}
.tier .price .once {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.tier .tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.tier ul {
  padding-left: 18px;
  margin: 0 0 20px;
  font-size: 14px;
}
.tier li {
  margin-bottom: 7px;
}
.tier .button {
  margin-top: auto;
  text-align: center;
}

.nots {
  padding-left: 20px;
  max-width: 72ch;
}
.nots li {
  margin-bottom: 10px;
}

form.order {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--soft);
}

form.order label,
form.order legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}
form.order label:first-of-type {
  margin-top: 0;
}

form.order input[type="email"],
form.order input[type="text"],
form.order textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd1d8;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
}

form.order fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
form.order .radio {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 500;
  margin: 0 0 8px;
}
form.order button {
  margin-top: 20px;
}

.callout {
  border-left: 4px solid var(--accent);
  background: var(--soft);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
}
.callout p {
  margin: 0 0 8px;
}
.callout p:last-child {
  margin: 0;
}

/* A rejected order form comes back with ?error=; the Worker paints this in. */
.form-error {
  max-width: 560px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #f0b4b4;
  border-left: 4px solid #c62828;
  border-radius: 8px;
  background: #fdf3f3;
  color: #8a1c1c;
  font-size: 15px;
}

.narrow {
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.legal-page h2 {
  font-size: 19px;
  margin-top: 32px;
}
.legal-page p,
.legal-page li {
  color: #2b3138;
}
.updated {
  color: var(--muted);
  font-size: 14px;
}

footer.site {
  margin-top: 72px;
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
footer.site p {
  margin: 0 0 6px;
}
footer.site .legal {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
footer.site .fine {
  max-width: 80ch;
}

@media (max-width: 480px) {
  main > section {
    padding-top: 40px;
  }
  .hero {
    padding-top: 44px !important;
  }
  form.order {
    padding: 18px;
  }
  header.site nav {
    gap: 12px;
  }
}
