/* Miceo — miceo.co
   One typeface (Bricolage Grotesque, self-hosted), plum brand colour from the app,
   marigold only where something is gained. No JavaScript anywhere on the site. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --ink: #24163a;
  --plum: #5b2a86;
  --plum-deep: #3d1a5e;
  --lilac: #f1eaf8;
  --lilac-line: #d9cdea;
  --marigold: #f2b01e;
  --muted: #5f5670;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.75rem, 7.2vw, 5.75rem);

  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure,
table {
  margin: 0;
  padding: 0;
}

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

a:hover {
  color: var(--plum-deep);
}

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
  color: var(--white);
}

/* ---------- header ---------- */

.site-head {
  padding-block: 1.25rem;
}

.site-head .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 1.9rem;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--plum);
  text-decoration: none;
}

.wordmark span {
  color: var(--marigold);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: var(--step--1);
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 0.16em;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.96;
  letter-spacing: -0.015em;
  color: var(--plum-deep);
  text-wrap: balance;
}

.hero .lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34rem;
}

.hero .note {
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 32rem;
}

.actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-block;
  background: var(--plum);
  color: var(--white);
  font-weight: 650;
  font-size: var(--step-0);
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
}

.button:hover {
  background: var(--plum-deep);
  color: var(--white);
}

.button.on-plum {
  background: var(--marigold);
  color: var(--ink);
}

.button.on-plum:hover {
  background: var(--white);
  color: var(--ink);
}

/* ---------- search-result example (hero) ---------- */

.result {
  background: var(--lilac);
  border-radius: 28px;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}

.result input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.result-switch {
  display: inline-flex;
  background: var(--white);
  border-radius: 999px;
  padding: 4px;
  font-size: var(--step--1);
  font-weight: 600;
}

.result-switch label {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}

#view-now:checked ~ .result-switch label[for="view-now"],
#view-suggested:checked ~ .result-switch label[for="view-suggested"] {
  background: var(--plum);
  color: var(--white);
}

#view-now:focus-visible ~ .result-switch label[for="view-now"],
#view-suggested:focus-visible ~ .result-switch label[for="view-suggested"] {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

.snippet {
  display: none;
  margin-top: 1rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1.1rem 1.25rem 1.25rem;
  /* A search result is set in Arial, so this one is too. */
  font-family: Arial, Helvetica, sans-serif;
}

#view-now:checked ~ .snippet-now,
#view-suggested:checked ~ .snippet-suggested {
  display: block;
}

.snippet .site {
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #202124;
}

.snippet .site b {
  display: block;
  font-weight: 400;
  font-size: 0.875rem;
}

.snippet .site span {
  color: #4d5156;
}

.snippet .title {
  margin-top: 0.45rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1a0dab;
}

.snippet .desc {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: #4d5156;
}

.evidence {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.evidence div {
  background: var(--white);
  border-radius: 14px;
  padding: 0.8rem 1rem;
}

.evidence dt {
  font-size: var(--step--1);
  color: var(--muted);
}

.evidence dd {
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 85%;
  line-height: 1.15;
  color: var(--plum-deep);
}

.result figcaption {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ---------- bands ---------- */

.band {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.band.tint {
  background: var(--lilac);
}

.band.plum {
  background: var(--plum-deep);
  color: var(--white);
}

.band h2 {
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-wrap: balance;
}

.band .intro {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: var(--step-1);
  line-height: 1.45;
}

.band.plum .intro {
  color: #e6d9f5;
}

/* ---------- quick wins table ---------- */

.wins {
  margin-top: 2.25rem;
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
}

.table-note {
  margin-top: 0.9rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.wins th,
.wins td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.25rem;
}

.wins thead th {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--lilac-line);
}

.wins tbody tr + tr td,
.wins tbody tr + tr th {
  border-top: 1px solid var(--lilac-line);
}

.wins tbody th {
  font-weight: 650;
}

.wins .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wins .pos {
  display: inline-block;
  min-width: 2.2em;
  text-align: center;
  background: var(--marigold);
  color: var(--ink);
  font-weight: 750;
  border-radius: 8px;
  padding: 0.05em 0.45em;
}

/* ---------- how it works ---------- */

.steps {
  margin-top: 2.5rem;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--plum);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  color: var(--plum);
}

.steps h3 {
  margin-top: 0.6rem;
  font-size: var(--step-1);
  font-weight: 750;
  line-height: 1.2;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--muted);
}

/* ---------- what it checks ---------- */

.checks {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
}

.checks dt,
.checks dd {
  padding-block: 1.15rem;
  border-top: 1px solid var(--lilac-line);
}

.checks dt {
  font-size: var(--step-1);
  font-weight: 750;
  font-stretch: 88%;
  color: var(--plum-deep);
  padding-right: 1.5rem;
}

.checks dd {
  max-width: 44rem;
}

/* ---------- promises ---------- */

.promises {
  margin-top: 2.5rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
}

.promises li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--marigold);
}

.promises h3 {
  font-size: var(--step-1);
  font-weight: 750;
  line-height: 1.2;
}

.promises p {
  margin-top: 0.35rem;
  color: #e6d9f5;
}

.promises a {
  color: var(--white);
}

/* ---------- closing ---------- */

.closing .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}

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

.site-foot {
  padding-block: 2.5rem 3rem;
  font-size: var(--step--1);
  color: var(--muted);
  border-top: 1px solid var(--lilac-line);
}

.site-foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
}

.site-foot nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

/* ---------- document pages (privacy, terms, support) ---------- */

.doc {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.doc .wrap {
  max-width: 46rem;
}

.doc h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--plum-deep);
}

.doc .updated {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: var(--step--1);
}

.doc .summary {
  margin-top: 1.75rem;
  background: var(--lilac);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}

.doc .summary ul {
  margin-top: 0.5rem;
}

.doc h2 {
  margin-top: 2.75rem;
  font-size: var(--step-2);
  font-weight: 750;
  font-stretch: 85%;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 0.85rem;
}

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

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

.doc table {
  margin-top: 1.25rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

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

.doc thead th {
  border-top: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.doc tbody th {
  font-weight: 650;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- small screens ---------- */

@media (max-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .site-nav {
    gap: 1rem;
    font-size: 0.8125rem;
  }

  .steps,
  .promises {
    grid-template-columns: minmax(0, 1fr);
  }

  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .checks dt {
    padding-bottom: 0;
  }

  .checks dd {
    border-top: 0;
    padding-top: 0.35rem;
  }

  .closing .wrap,
  .site-foot .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The table becomes a list of labelled cards. */
  .wins {
    background: transparent;
    border-radius: 0;
  }

  .wins thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .wins tbody tr {
    display: block;
    background: var(--white);
    border-radius: 16px;
    padding: 1rem 1.1rem;
  }

  .wins tbody tr + tr {
    margin-top: 0.75rem;
  }

  .wins tbody th,
  .wins tbody td {
    display: block;
    padding: 0;
    border: 0;
  }

  .wins tbody tr + tr td,
  .wins tbody tr + tr th {
    border-top: 0;
  }

  .wins tbody td {
    margin-top: 0.4rem;
  }

  .wins tbody td::before {
    content: attr(data-label) ": ";
    color: var(--muted);
  }
}

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

.doc code {
  font-family: inherit;
  font-weight: 650;
}
