/* Revisr waitlist. Colours match the Revisr app. */
:root {
  --primary: #315b70;
  --primary-hover: #29485b;
  --text: #34434d;
  --muted: #56697a;
  --link: #466d82;
  --line: #dfe5e8;
  --tint: #f4f7f8;
}

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

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

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

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

header.site {
  padding: 24px 0 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo:hover {
  color: var(--primary-hover);
}

.hero {
  padding: 56px 0 24px;
}

h1 {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.lede {
  font-size: 18px;
  color: var(--text);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-hover);
  color: #fff;
}

.badge {
  display: inline-block;
  min-height: 28px;
  padding: 4px 14px;
  border-radius: 18px;
  text-wrap: balance;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.badge:hover {
  background: var(--primary-hover);
  color: #fff;
}

.hero .button {
  margin: 8px 0 16px;
}

section {
  padding: 40px 0;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin: 0 0 20px;
  padding-left: 44px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.steps strong {
  display: block;
  color: var(--text);
}

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

#signup {
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}

.form-box iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.fallback {
  margin: 8px 0 0;
  font-size: 14px;
}

.fallback a {
  display: inline-block;
  padding: 4px 0;
}

.spots {
  padding-top: 8px;
}

.spots h2 {
  font-size: 18px;
}

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

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

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: block;
  min-height: 48px;
  padding: 12px 28px 12px 0;
  position: relative;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
}

details[open] summary::after {
  content: "\2212";
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

footer a {
  display: inline-block;
  padding: 4px 0;
}

.sep {
  padding: 0 6px;
}

/* Privacy page */
.doc {
  padding-top: 40px;
  padding-bottom: 24px;
}

.doc h1 {
  font-size: 28px;
}

.doc h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 18px;
}

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

.back {
  display: inline-block;
  padding: 4px 0;
}

@media (min-width: 640px) {
  h1 {
    font-size: 44px;
  }
  .doc h1 {
    font-size: 36px;
  }
  .hero {
    padding-top: 80px;
  }
  .lede {
    font-size: 20px;
  }
}
