/* My Free Checker (myfreechecker.com): the one stylesheet for every page.
   The pages carry no <style> blocks, no style="" attributes and no scripts, so this
   file is the only styling the Content-Security-Policy (style-src 'self') allows.
   System fonts only: nothing is downloaded from anywhere else. */

:root {
  --ink: #22203d;
  --ink-2: #4a4766;
  --indigo: #3d3791;
  --indigo-deep: #2b2670;
  --mist: #f2f1f7;
  --paper: #ffffff;
  --haze: #dedbee;
  --tint: #e8e6f4;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--round);
  font-weight: 700;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: 1.3125rem;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--indigo);
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--indigo-deep);
  text-decoration-thickness: 0.125em;
}

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

/* A link that stands on its own line: a taller tap area on phones. */
.action {
  display: inline-block;
  padding-block: 0.5rem;
  font-weight: 600;
}

/* Header */

.site-head {
  padding-block: 1rem 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

/* The logo (generated by tools/make_logo.py): the bubble-and-tick mark, then the wordmark as outlines. */
.logo {
  display: block;
  width: auto;
  height: 2.125rem;
}

.logo-bubble {
  fill: var(--indigo);
}

.logo-tick {
  fill: none;
  stroke: var(--paper);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-word {
  fill: var(--ink);
}

a.brand:hover .logo-word {
  fill: var(--indigo-deep);
}

/* Lander */

.lander {
  display: grid;
  gap: 2rem;
  padding-block: 1.25rem 3rem;
}

.bubble {
  display: block;
  width: 5.5rem;
  height: auto;
  margin-bottom: 1.5rem;
}

/* An incoming message: a light bubble (the logo keeps the strong indigo). */
.bubble-body {
  fill: var(--paper);
  stroke: var(--haze);
  stroke-width: 2;
}

.dot {
  fill: var(--indigo);
}

/* The one moving thing: the dots "type" three times (under 5 seconds), then rest. */
@media (prefers-reduced-motion: no-preference) {
  .dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: typing 1.4s ease-in-out 3;
  }

  .dot-2 {
    animation-delay: 0.18s;
  }

  .dot-3 {
    animation-delay: 0.36s;
  }
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 0.45;
    transform: translateY(-5px);
  }
}

.panel {
  padding: 1.5rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--haze);
  border-radius: 1.25rem;
}

.panel h2 {
  margin-bottom: 1.25rem;
}

.steps {
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 1.5rem 3rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.375rem;
  bottom: 0.375rem;
  left: calc(1rem - 1px);
  width: 2px;
  background: var(--haze);
  border-radius: 1px;
}

.step-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--paper);
  border: 2px solid var(--indigo);
  border-radius: 50%;
  color: var(--indigo);
  font-family: var(--round);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

.step-done .step-mark {
  background: var(--indigo);
  color: var(--paper);
}

.step-mark svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  padding-top: 0.125rem;
  font-weight: 700;
}

.step-title + p {
  margin-top: 0.25rem;
}

.optout {
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  background: var(--tint);
  border-radius: 0.75rem;
}

.lander-notes {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: 1rem;
}

.lander-notes p + p {
  margin-top: 0.75rem;
}

/* Privacy notice and 404 */

.doc {
  padding-block: 1.25rem 3.5rem;
}

.doc > * {
  max-width: 38rem;
}

.doc h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  line-height: 1.15;
}

.doc h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.625rem;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 0.75rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.375rem;
}

.lede {
  color: var(--ink-2);
  font-size: 1.1875rem;
}

.updated {
  color: var(--ink-2);
  font-size: 1rem;
}

/* Footer */

.site-foot {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--haze);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.foot-grid {
  display: grid;
  gap: 0.75rem;
}

.foot-brand {
  color: var(--ink);
  font-family: var(--round);
  font-weight: 700;
}

.foot-links a {
  display: inline-block;
  padding-block: 0.6875rem;
}

/* The company's legal details: plain small print, last in reading order. */
.foot-legal {
  max-width: 38rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.foot-legal p + p {
  margin-top: 0.5rem;
}

@media (min-width: 48em) {
  .wrap {
    padding-inline: 2rem;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 2rem;
  }

  .foot-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 60em) {
  .lander {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "intro panel"
      "notes panel";
    align-items: start;
    column-gap: 4.5rem;
    row-gap: 2.5rem;
    padding-block: 4rem 5rem;
  }

  .lander-intro {
    grid-area: intro;
  }

  .next {
    grid-area: panel;
  }

  .lander-notes {
    grid-area: notes;
  }

  .lander h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .logo {
    height: 2.5rem;
  }

  .bubble {
    width: 7rem;
    margin-bottom: 2rem;
  }

  .panel {
    padding: 2rem;
  }

  .doc {
    padding-block: 3.5rem 5rem;
  }

  .doc h1 {
    font-size: 2.5rem;
  }
}
