/* popquiz.fun. One sheet for every page: the home page's sections, the guides
   and the legal pages. Colours and type are BRAND.md's: amber, ink, cream,
   Bricolage Grotesque for display, Figtree for text. */

:root {
  --amber: #f9ab00;
  --amber-soft: #ffe3a0;
  --ink: #1a1a1a;
  --cream: #fff6dc;
  --soft: #5a5244;
  --berry: #e5487b;
  --green: #14915a;
  --hair: #ece4cf;
  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--stick, 72px) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--amber);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-weight: 800;
}
.skip:focus {
  left: 8px;
}
[hidden] {
  display: none !important;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  font: 800 18px/1.1 var(--display);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn.pri {
  background: var(--amber);
  box-shadow: 5px 5px 0 var(--ink);
}
.btn.dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--amber);
}
.btn.pri:hover,
.btn.dark:hover {
  transform: translate(-2px, -2px);
}
.btn.pri:hover {
  box-shadow: 7px 7px 0 var(--ink);
}
.btn.dark:hover {
  box-shadow: 7px 7px 0 var(--amber);
}
.btn.pri:active,
.btn.dark:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn svg {
  flex: none;
}
.micro {
  font-size: 14px;
  font-weight: 700;
  color: var(--soft);
}
/* On amber, the soft brown falls short of 4.5:1; a deeper one clears it. */
.hero .micro {
  color: #463f33;
}

/* laptop / phone switch: the CSS default is desktop; site.js adds .is-phone
   when the device can't install a Chrome extension. */
.only-phone {
  display: none !important;
}
.is-phone .only-phone {
  display: revert !important;
}
.is-phone .btn.only-phone {
  display: inline-flex !important;
}
.is-phone .pinbar b {
  display: none !important;
}
.is-phone .only-desk {
  display: none !important;
}

/* header */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-block: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 22px/1 var(--display);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo svg {
  width: 34px;
  height: 34px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
  font-weight: 700;
  font-size: 15px;
}
.links a {
  text-decoration: none;
}
.links a:hover,
.links a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
}
@media (max-width: 720px) {
  .links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
}

/* ---------- home ---------- */
.home {
  background: var(--amber);
}
.hero {
  position: relative;
  padding: 26px 0 88px;
  overflow: hidden;
}
.hero .wrap {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: center;
}
.hero .copy {
  position: relative;
  z-index: 2;
  flex: 1 1 540px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(46px, 7.4vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero h1 span {
  display: inline-block;
  padding: 0 0.12em 0.04em;
  color: #fff;
  background: var(--ink);
  transform: rotate(-2deg);
  border-radius: 12px;
}
.hero .lead {
  font-size: 21px;
  font-weight: 600;
  max-width: 580px;
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
/* The starburst sits behind the quiz card, centred on it and big enough to
   fill the space around it. The polygon's own centre is a little off its box
   (the shadow layer), hence the nudge. */
.burst-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160%;
  max-width: none;
  aspect-ratio: 1;
  z-index: -1;
  opacity: 0.95;
  translate: -51% -51%;
  animation: spin 80s linear infinite;
  pointer-events: none;
}
.sticker {
  position: absolute;
  top: -48px;
  right: -40px;
  z-index: 2;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  animation: wobble 4s ease-in-out infinite;
}
.sticker svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sticker b {
  position: relative;
  font: 800 24px/1 var(--display);
  transform: rotate(-10deg);
}
.hero-card {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin-block: 40px;
  flex: 1 1 380px;
  min-width: 0;
  max-width: 470px;
  transform: rotate(4deg);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes wobble {
  50% {
    transform: rotate(8deg) scale(1.04);
  }
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

/* the drawn Slides window, shared by the hero and "See it work" */
.slidewin {
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.slidewin .bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 9px 12px;
  background: #f1f3f4;
  border-bottom: 1.5px solid #e2e2e2;
  font-size: 12px;
  color: var(--soft);
}
.slidewin .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
}
.slide {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 268px;
}
.hero-card .slide .q {
  padding-right: 40px;
}
.slide .q {
  font: 800 26px/1.1 var(--display);
  letter-spacing: -0.02em;
}
.slide .meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--soft);
}
.timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
}
.timer i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--berry);
  animation: pulse 1s ease-in-out infinite;
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
}
.opt > i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  font-style: normal;
  font-size: 11px;
  background: var(--amber);
  border-radius: 5px;
}
.opt span,
.opt em {
  position: relative;
  z-index: 1;
}
.opt em {
  margin-left: auto;
  font-style: normal;
}
.opt .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--amber-soft);
  transform-origin: left;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.opt.right {
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
}
.opt.right > i {
  background: #fff;
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
/* The hero's guess-the-number slide, after the reveal: drawn like the real one. */
.numplot {
  position: relative;
  height: 112px;
  margin: 8px 6px 0;
}
.numplot .dots {
  position: absolute;
  inset: 0 0 22px;
  --dot: 11px;
}
.numplot .dot {
  position: absolute;
  bottom: calc(var(--row) * var(--dot) * 1.15 + 3px);
  width: var(--dot);
  height: var(--dot);
  margin-left: calc(var(--dot) / -2);
  border-radius: 50%;
  background: #cfc9bd;
}
.numplot .dot.won-3 {
  background: var(--amber);
  transform: scale(1.3);
}
.numplot .dot.won-2 {
  background: var(--amber);
  transform: scale(1.15);
}
.numplot .dot.won-1 {
  background: #f9cf73;
}
.numplot .mark {
  position: absolute;
  top: 0;
  bottom: 22px;
  width: 0;
}
.numplot .mark b {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 3px 9px;
  font: 900 14px/1 var(--display);
  background: var(--amber);
  border-radius: 99em;
  font-variant-numeric: tabular-nums;
}
.numplot .mark i {
  position: absolute;
  top: 18px;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: var(--amber);
  border-radius: 99em;
}
.numplot .axis {
  position: absolute;
  inset: auto 0 0;
  height: 22px;
  border-top: 2px solid #e3ddcf;
}
.numplot .tick {
  position: absolute;
  top: 5px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.numplot .tick:first-child {
  transform: none;
}
.numplot .tick:last-child {
  transform: translateX(-100%);
}
.ring {
  flex: none;
  white-space: nowrap;
}
.winners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.winners span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 3px;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  background: #fff;
  border: 1.5px solid #ece6d8;
  border-radius: 99em;
}
.winners b {
  padding: 2px 6px;
  font-size: 11px;
  background: var(--amber);
  border-radius: 99em;
}
.winners em {
  font-style: normal;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--amber);
  border-block: 3px solid var(--ink);
}
.ticker ul {
  display: flex;
  gap: 48px;
  width: max-content;
  margin: 0;
  padding: 16px 0;
  list-style: none;
  font: 800 28px/1 var(--display);
  white-space: nowrap;
  animation: tick 34s linear infinite;
}
.ticker li::after {
  content: ' \2736';
  margin-left: 48px;
}
@keyframes tick {
  to {
    transform: translateX(-50%);
  }
}

.sec {
  padding: 88px 0;
  border-bottom: 3px solid var(--ink);
}
.sec.cream {
  background: var(--cream);
}
.sec.white {
  background: #fff;
}
.head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 740px;
  margin-bottom: 32px;
}
.head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.02;
}
.head p {
  font-size: 19px;
  color: var(--soft);
}
.kicker {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  margin-bottom: 26px;
}
.switch {
  display: inline-flex;
  padding: 5px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
}
.switch button,
.chips button {
  font: 800 16px var(--body);
  color: var(--ink);
  cursor: pointer;
}
.switch button {
  padding: 11px 22px;
  background: none;
  border: 0;
  border-radius: 999px;
}
.switch button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 15px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.chips button[aria-pressed='true'] {
  background: var(--amber);
  box-shadow: 3px 3px 0 var(--ink);
}
.chips button:disabled {
  opacity: 0.4;
  cursor: default;
}
.show {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
}
.show .stage {
  flex: 1 1 560px;
  min-width: 0;
}
.show .say {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.show .say h3 {
  font-size: 30px;
}
.show .say p {
  font-size: 18px;
  color: var(--soft);
}
.view[hidden] {
  display: none !important;
}
.flat .q {
  font: 800 30px/1.1 var(--display);
}
.flat ul {
  margin: 14px 0 0;
  padding-left: 22px;
  font-size: 19px;
  line-height: 1.8;
  color: var(--soft);
}
.cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: center;
  padding: 24px 10px;
}
.cloud b {
  font-family: var(--display);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop {
  from {
    transform: scale(0.2);
    opacity: 0;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cards div {
  padding: 12px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.cards div:nth-child(2) {
  animation-delay: 0.12s;
  background: var(--cream);
}
.cards div:nth-child(3) {
  animation-delay: 0.24s;
}
.cards div:nth-child(4) {
  animation-delay: 0.36s;
  background: var(--amber-soft);
}
.phones {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: -26px;
  position: relative;
}
.ph {
  width: 116px;
  padding: 10px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ph b {
  font: 800 13px var(--display);
}
.ph .p {
  padding: 5px 7px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}
.ph .p.on {
  background: var(--amber);
}
/* the stage: room under the slide for the phones that overlap its foot, so
   they never cover an answer */
.show .slide {
  padding-bottom: 48px;
}
.show .slide .meta {
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 2px;
}
.show .slide .meta > span {
  white-space: nowrap;
}
.meta .pill {
  padding: 1px 9px;
  font-weight: 800;
  color: var(--ink);
  background: var(--amber-soft);
  border-radius: 99em;
}
/* True or false: two big answers side by side */
.tf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tf .opt {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-height: 104px;
  padding: 10px 12px;
  font: 800 24px/1 var(--display);
}
.tf .opt em {
  align-self: flex-end;
  margin-left: 0;
  font: 800 15px var(--body);
}
/* Type the answer: the answer, then what the room typed */
.typed {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  background: var(--amber);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.typed b {
  font: 800 26px/1.05 var(--display);
  letter-spacing: -0.01em;
}
.typed span {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.opt.ok .fill {
  background: var(--amber);
}
.opt.miss {
  opacity: 0.55;
}
/* Put in order: the right order, each with where the room put it */
.order {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.order .opt {
  min-height: 44px;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.order .opt.right {
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}
.place {
  position: relative;
  z-index: 1;
  flex: none;
  min-width: 46px;
  font: 900 17px/1 var(--display);
  font-variant-numeric: tabular-nums;
}
.place small {
  display: block;
  margin-top: 2px;
  font: 800 10px/1.1 var(--body);
  color: var(--soft);
  white-space: nowrap;
}
.opt.right .place small {
  color: var(--ink);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
/* The final leaderboard: a podium, second, first, third */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 10px;
  margin-top: 6px;
  border-bottom: 2px solid var(--ink);
}
.pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pod.p2 {
  animation-delay: 0.3s;
}
.pod.p1 {
  animation-delay: 0.65s;
}
.pod b {
  max-width: 100%;
  font: 800 19px/1.05 var(--display);
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.pod.p1 b {
  font-size: 25px;
}
.pod em {
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.pod i {
  padding: 2px 9px;
  font: 800 11px/1.4 var(--body);
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  border-radius: 99em;
}
.pod span {
  display: grid;
  place-items: center;
  align-self: stretch;
  margin-top: 6px;
  font: 900 22px/1 var(--display);
  text-transform: uppercase;
  color: var(--soft);
  background: var(--cream);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.pod.p1 span {
  height: 88px;
  color: var(--ink);
  background: var(--amber);
}
.pod.p2 span {
  height: 64px;
}
.pod.p3 span {
  height: 44px;
}
.also {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  font-weight: 700;
  font-size: 14px;
}
.also b {
  margin-right: 2px;
  color: var(--soft);
}
.also em {
  font-style: normal;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 761px) {
  /* nine kinds: two even rows (five, then four) beside the switch on a laptop */
  .chips {
    max-width: 680px;
  }
}
@media (max-width: 760px) {
  /* nine kinds: one row that scrolls sideways, edge to edge, not five rows of chips */
  .controls {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
  }
  .switch {
    align-self: flex-start;
  }
  .chips {
    flex-wrap: nowrap;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 8px;
    overflow-x: auto;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 44px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 44px), transparent);
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chips button {
    flex: none;
    white-space: nowrap;
  }
  .show .slide {
    padding: 18px 18px 44px;
  }
  .phones {
    gap: 8px;
    margin-top: -24px;
  }
  .ph {
    flex: 1 1 0;
    min-width: 0;
    max-width: 116px;
  }
  .tf .opt {
    min-height: 88px;
    font-size: 21px;
  }
  .typed b {
    font-size: 22px;
  }
  .pod b {
    font-size: 15px;
  }
  .pod.p1 b {
    font-size: 19px;
  }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.step .n {
  font: 800 46px/1 var(--display);
  color: var(--amber);
  -webkit-text-stroke: 2px var(--ink);
}
.step .pic {
  display: grid;
  place-items: center;
  height: 136px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.step h3 {
  font-size: 22px;
}
.step p {
  color: var(--soft);
}
.mini-tiles {
  display: grid;
  grid-template-columns: repeat(2, 64px);
  gap: 6px;
}
.mini-tiles span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
}
.mini-tiles span.on {
  background: var(--amber);
}
.chromebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 800;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.join-pic {
  display: flex;
  gap: 12px;
  align-items: center;
}
.join-pic .code {
  font: 800 30px/1 var(--display);
  letter-spacing: 0.08em;
}
.qr {
  display: block;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 7px;
}
.more {
  margin-top: 26px;
  font-weight: 800;
}

.tablebox {
  overflow-x: auto;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ink);
}
.compare {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.compare col.c-label {
  width: 22%;
}
.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid var(--hair);
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font: 800 19px/1.2 var(--display);
  background: var(--cream);
  border-bottom: 2.5px solid var(--ink);
}
.compare tbody th {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
}
.compare tbody tr:hover > * {
  background: #fffcf3;
}
/* the Pop Quiz column, framed */
.compare .us {
  background: #fff1c7;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
}
.compare thead th.us {
  background: var(--amber);
}
.compare tbody tr:hover > .us {
  background: #ffeab0;
}
.ours {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font: 800 11px/1.4 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
}
.verdict.yes svg,
.verdict.no svg {
  flex: none;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  color: #fff;
}
.verdict.yes svg {
  background: var(--green);
}
.verdict.no svg {
  background: var(--berry);
}
.compare .note {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--soft);
}
.compare-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
}
.compare-foot .micro {
  flex: 1 1 420px;
}
.srcs {
  font-size: 14px;
}
.srcs summary {
  cursor: pointer;
  font-weight: 800;
}
.srcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  margin-top: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.srcs-grid div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.srcs-grid a {
  color: var(--soft);
}
.matrix {
  display: none;
}
@media (max-width: 760px) {
  .tablebox.wide {
    display: none;
  }
  /* the phone's matrix: a narrow column per tool, every verdict in view */
  .matrix {
    display: block;
  }
  .mbox {
    overflow: hidden;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .compare-mini {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
  }
  .compare-mini th,
  .compare-mini td {
    padding: 10px 3px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1.5px solid var(--hair);
  }
  .compare-mini thead th {
    padding: 10px 2px;
    font: 800 13px/1.1 var(--display);
    letter-spacing: -0.01em;
    background: var(--cream);
    border-bottom: 2.5px solid var(--ink);
  }
  .compare-mini thead th:first-child {
    width: 35%;
  }
  .compare-mini tbody th {
    padding: 10px 6px 10px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
  }
  .compare-mini .us {
    background: #fff1c7;
    border-left: 2.5px solid var(--ink);
    border-right: 2.5px solid var(--ink);
  }
  .compare-mini thead th.us {
    background: var(--amber);
  }
  .compare-mini tbody tr:last-child > * {
    border-bottom: 0;
  }
  .mv {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.15;
  }
  .mv svg {
    flex: none;
    padding: 4px;
    box-sizing: content-box;
    border-radius: 50%;
  }
  .mv.yes svg {
    color: #fff;
    background: var(--green);
  }
  .mv.no svg {
    color: #fff;
    background: var(--berry);
  }
  .mv.warn svg {
    color: var(--ink);
    background: var(--amber);
  }
  .mrow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    padding: 0;
    font: inherit;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .mrow svg {
    flex: none;
    margin-top: 3px;
    color: var(--soft);
    transition: transform 0.2s ease;
  }
  .mrow[aria-expanded='true'] svg {
    transform: rotate(180deg);
  }
  .compare-mini tr.more td {
    padding: 10px 12px 12px;
    text-align: left;
    font-size: 13px;
    line-height: 1.4;
    color: var(--soft);
    background: #fffaf0;
  }
  .compare-mini tr.more ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .compare-mini tr.more b {
    margin-right: 4px;
    color: var(--ink);
  }
  .matrix .tap {
    margin-top: 10px;
  }
}

.faq {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font: 800 19px/1.3 var(--display);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 26px;
  line-height: 0.9;
}
.faq details[open] summary::after {
  content: '\2212';
}
.faq details > div {
  padding: 0 20px 18px;
  color: var(--soft);
}

.close {
  padding: 92px 0;
  background: var(--ink);
  color: #fff;
}
.close h2 {
  color: #fff;
  font-size: clamp(38px, 5.6vw, 74px);
  text-align: center;
}
.close .sub {
  margin: 14px auto 36px;
  text-align: center;
  font-size: 19px;
  color: #e9dfc4;
}
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.path {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 3px solid var(--amber);
  border-radius: 22px;
}
.path .label {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd77a;
}
.path h3 {
  color: var(--amber);
  font-size: 28px;
}
.path p {
  color: #e9dfc4;
}
.path .btn {
  align-self: flex-start;
}
.path .micro {
  color: #cfc5ab;
}
.path .row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #ffd77a;
}
.live i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ddc84;
  animation: pulse 1.6s ease-in-out infinite;
}
.is-phone .paths .phone-path {
  order: -1;
}

.pinbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  background: var(--ink);
  color: #fff;
  border-top: 3px solid var(--amber);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.pinbar.up {
  transform: none;
}
/* On a laptop the pinned header carries the install button; the bar at the
   bottom is for phones, where the thumb is. */
.is-phone .pinbar {
  display: block;
}
.pinbar .wrap {
  display: flex;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
}
.pinbar b {
  font: 800 18px/1.2 var(--display);
}
.pinbar .x {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: none;
  border: 2px solid #555;
  border-radius: 10px;
  cursor: pointer;
}
.pinbar .go {
  display: flex;
  gap: 12px;
  align-items: center;
}
.is-phone .pinbar b {
  font-size: 15px;
}

@media (max-width: 760px) {
  .hero {
    padding-bottom: 64px;
  }
  .hero-card {
    transform: none;
  }
  .burst-bg {
    width: 150%;
    opacity: 0.35;
  }
  .steps,
  .paths {
    grid-template-columns: 1fr;
  }
  .sec {
    padding: 64px 0;
  }
  .slide .q {
    font-size: 22px;
  }
  .sticker {
    right: -6px;
    width: 86px;
    height: 86px;
  }
  .pinbar b {
    display: none;
  }
  .pinbar .go {
    flex: 1;
  }
  .pinbar .go .btn {
    flex: 1;
  }
}

/* ---------- footer ---------- */
.foot {
  padding: 48px 0 110px;
  background: var(--cream);
  border-top: 3px solid var(--ink);
  font-size: 15px;
}
.foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 60px;
  justify-content: space-between;
}
.foot .brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 56px;
}
.foot nav div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot nav b {
  font: 800 15px var(--display);
}
.foot nav a {
  color: var(--soft);
  text-decoration: none;
}
.foot nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot .fine {
  margin-top: 36px;
  font-size: 13px;
  color: var(--soft);
}

/* ---------- article pages ---------- */
.page-head {
  padding: 34px 0 44px;
  background: var(--amber);
  border-bottom: 3px solid var(--ink);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--soft);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.page-head h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1;
  max-width: 920px;
}
.page-head .byline {
  margin-top: 18px;
  font-weight: 700;
  font-size: 15px;
}
.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
  padding-block: 48px 80px;
}
.toc {
  position: sticky;
  top: calc(var(--stick, 72px) + 24px);
  max-height: calc(100vh - var(--stick, 72px) - 48px);
  overflow-y: auto;
  padding: 20px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: 15px;
}
.toc b {
  display: block;
  margin-bottom: 8px;
  font: 800 16px var(--display);
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc a {
  text-decoration: none;
  color: var(--soft);
}
.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.toc .btn {
  width: 100%;
  margin-top: 16px;
}
@media (max-width: 960px) {
  .article {
    grid-template-columns: 1fr;
    gap: 0;
  }
  /* the contents move into the pinned bar's dropdown */
  .toc {
    display: none;
  }
}
.prose {
  min-width: 0;
  max-width: 740px;
  font-size: 18px;
  line-height: 1.7;
}
.prose > * + * {
  margin-top: 1.05em;
}
.prose h2 {
  margin-top: 2.1em;
  font-size: clamp(27px, 3.2vw, 36px);
  line-height: 1.1;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: 23px;
}
.prose h4 {
  margin-top: 1.4em;
  font-size: 19px;
}
.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
  margin-top: 0.6em;
}
.prose > p:first-child {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.55;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.35em;
}
.prose li > ul,
.prose li > ol {
  margin-top: 0.35em;
}
.prose li > ul {
  list-style: none;
  padding-left: 0;
  color: var(--soft);
}
.prose li > ul li + li {
  margin-top: 0.1em;
}
.prose a {
  font-weight: 700;
}
.prose code {
  padding: 1px 6px;
  font-size: 0.9em;
  background: #fff;
  border: 1.5px solid var(--hair);
  border-radius: 6px;
}
.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
}
.prose pre code {
  padding: 0;
  background: none;
  border: 0;
}
.prose blockquote {
  margin-inline: 0;
  padding: 14px 20px;
  background: #fff;
  border-left: 6px solid var(--amber);
  border-radius: 0 12px 12px 0;
}
.prose hr {
  border: 0;
  border-top: 2px dashed var(--hair);
  margin-block: 2em;
}
.prose .table {
  overflow-x: auto;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}
.prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.prose th,
.prose td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid var(--hair);
}
.prose thead th {
  font-family: var(--display);
  background: var(--cream);
}
.prose tbody th {
  font-weight: 700;
}
.prose tr:last-child > * {
  border-bottom: 0;
}
.cta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: var(--amber);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
}
.cta-box p {
  font: 800 21px/1.2 var(--display);
}
.cta-box p span {
  display: block;
  margin-top: 4px;
  font: 600 15px/1.4 var(--body);
  color: var(--ink);
}
.shot {
  margin-inline: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
  background: #fff;
}
.shot.todo div {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--soft);
  background: repeating-linear-gradient(-45deg, #fff, #fff 12px, #fffaf0 12px, #fffaf0 24px);
  border: 2.5px dashed var(--soft);
  border-radius: 14px;
}
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--soft);
}
.updated {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 2px dashed var(--hair);
  font-size: 14px;
  color: var(--soft);
}

/* guides index */
.guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding-block: 48px 80px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.guide-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}
.guide-card h2 {
  font-size: 24px;
}
.guide-card p {
  color: var(--soft);
}
.guide-card .tag {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--amber-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* 404 */
.lost {
  padding: 90px 0 120px;
  text-align: center;
}
.lost h1 {
  font-size: clamp(44px, 7vw, 88px);
}
.lost p {
  margin: 16px auto 28px;
  max-width: 520px;
  font-size: 19px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .nav .btn,
  .pinbar,
  .toc,
  .cta-box {
    display: none !important;
  }
}

/* ---------- the pinned header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--cream);
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home .topbar {
  background: var(--amber);
}
.topbar.scrolled {
  border-bottom-color: var(--ink);
  box-shadow: 0 6px 0 rgba(26, 26, 26, 0.06);
}
.subbar {
  background: #fffbee;
  border-top: 1.5px solid var(--hair);
}
.subrow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
}
.subrow nav {
  min-width: 0;
  flex: 1;
}
.subrow .crumbs {
  margin: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.subrow .crumbs li {
  flex: none;
}
.subrow .crumbs li[aria-current] {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--soft);
}
.back {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 9px;
  transition: transform 0.12s ease;
}
.back:hover {
  transform: translateX(-2px);
}
.toc-mini {
  display: none;
  position: relative;
  flex: none;
}
.toc-mini summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 14px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.toc-mini summary::-webkit-details-marker {
  display: none;
}
.toc-mini summary::after {
  content: ' \25BE';
}
.toc-mini ol {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(320px, calc(100vw - 32px));
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 12px 12px 12px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--ink);
}
.toc-mini a {
  text-decoration: none;
}
@media (max-width: 960px) {
  .toc-mini {
    display: block;
  }
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--berry);
  transform: scaleX(var(--read, 0));
  transform-origin: left;
}
.home .progress {
  display: none;
}

/* where you are, in the contents list */
.toc a[aria-current='true'] {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
}

/* a link on each heading, for sharing a section */
.prose .hash {
  margin-left: 6px;
  font-weight: 700;
  color: var(--soft);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.prose h2:hover .hash,
.prose h3:hover .hash,
.prose .hash:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .prose .hash {
    display: none;
  }
}
/* the heading you jumped to, for a moment */
.prose :target {
  animation: flash 1.6s ease;
}
@keyframes flash {
  0%,
  40% {
    background: var(--amber-soft);
    box-shadow: 0 0 0 8px var(--amber-soft);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 8px transparent;
  }
}

/* back to the top */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.25s ease;
}
.to-top.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.bar-up .to-top {
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

/* sections settle in as they scroll into view. Only what starts below the
   fold is held back, and only once the script has run, so a page with no
   script, a thumbnail or a reader who prefers less motion sees it all. */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- guide building blocks ---------- */
.quick {
  padding: 20px 22px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--amber);
}
.quick > * + * {
  margin-top: 0.6em;
}
.quick-label,
.tip-label {
  font: 800 13px/1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}
.prose .quick p:not(.quick-label),
.prose .quick li {
  font-size: 18px;
  font-weight: 600;
}
.tip {
  padding: 16px 20px;
  background: var(--amber-soft);
  border-left: 6px solid var(--ink);
  border-radius: 0 14px 14px 0;
}
.tip > * + * {
  margin-top: 0.5em;
}
.tool {
  padding: 20px 22px;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.tool > * + * {
  margin-top: 12px;
}
.tool header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.prose .tool h3 {
  margin: 0;
  font-size: 24px;
}
.tool-tag {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--amber-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.tool dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.tool dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
}
.tool dd {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.45;
}
.tool-catch {
  padding-top: 10px;
  border-top: 1.5px dashed var(--hair);
  font-size: 16px;
}
.tool p {
  font-size: 16px;
}
.sources-box {
  font-size: 15px;
  color: var(--soft);
  overflow-wrap: anywhere;
}
.sources-box summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}
.sources-box[open] summary {
  margin-bottom: 8px;
}
.qcard {
  padding: 14px 18px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.qcard > * + * {
  margin-top: 6px;
}
.prose .qcard p {
  font-size: 17px;
}
.qcard p:first-child {
  font-weight: 800;
}
.reveal summary {
  display: inline-block;
  cursor: pointer;
  padding: 3px 12px;
  font-size: 14px;
  font-weight: 800;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  list-style: none;
}
.reveal summary::-webkit-details-marker {
  display: none;
}
.reveal[open] summary {
  background: var(--amber);
}
.reveal > :not(summary) {
  margin-top: 8px;
  font-weight: 700;
}
.answers-toggle {
  position: sticky;
  top: calc(var(--stick, 72px) + 12px);
  z-index: 5;
  float: right;
  margin: 0 0 12px 12px;
}

/* ---------- the 404 quiz ---------- */
.lost .kicker {
  margin-bottom: 10px;
}
.q404 {
  max-width: 680px;
  margin: 8px auto 0;
  padding: 24px;
  text-align: left;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
}
.q404-top {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.q404-q {
  font-size: clamp(24px, 3.4vw, 32px);
}
.q404-clock {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.q404-clock svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.q404-clock circle {
  fill: none;
  stroke: #e7e1d0;
  stroke-width: 4;
}
.q404-clock circle.run {
  stroke: var(--amber);
  stroke-dasharray: 119.4;
  stroke-dashoffset: calc(119.4 * (1 - var(--left, 1)));
  transition: stroke-dashoffset 1s linear;
}
.q404-clock b {
  font: 800 20px var(--display);
}
.q404-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 16px !important;
  font-size: 13px !important;
  color: var(--soft);
}
.q404-opts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.q404-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.q404-opt:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.q404-opt i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-style: normal;
  background: var(--amber);
  border-radius: 7px;
}
.q404-opt span,
.q404-opt em {
  position: relative;
  z-index: 1;
}
.q404-opt em {
  margin-left: auto;
  font-style: normal;
}
.q404-opt .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  z-index: 0;
  background: var(--amber-soft);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.q404-opt.chosen {
  box-shadow: 4px 4px 0 var(--berry);
  border-color: var(--berry);
}
.revealed .q404-opt:not(.right) {
  opacity: 0.6;
}
.revealed .q404-opt.right {
  opacity: 1;
  background: var(--amber);
  box-shadow: 4px 4px 0 var(--ink);
  animation: flashr 0.5s ease 3;
}
.revealed .q404-opt.right i {
  background: #fff;
}
@keyframes flashr {
  50% {
    background: #ffe08a;
  }
}
.q404-say {
  min-height: 1.6em;
  margin: 16px 0 0 !important;
  font-weight: 800;
  font-size: 18px !important;
}
.q404-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.verdict.warn svg {
  flex: none;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  color: var(--ink);
  background: var(--amber);
}
.compare tbody tr:first-child > * {
  background: #fffaf0;
  font-size: 16px;
}
.compare tbody tr:first-child > .us {
  background: var(--amber-soft);
}

/* The install button before the store listing exists: says so, does nothing. */
.btn.soon {
  cursor: default;
  color: var(--soft);
  background: #fffaf0;
  border-style: dashed;
  box-shadow: none;
}
.btn.soon:hover {
  transform: none;
  box-shadow: none;
}
.btn.dark.soon {
  color: #fff;
  background: #3a3a3a;
  border-color: #3a3a3a;
}
.close .btn.soon {
  color: #e9dfc4;
  background: transparent;
  border-color: #6a6250;
}
.cta-btns,
.say .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
