/* bookedbyjohan.com
   One stylesheet for index.html and 404.html.
   Colors: violet is the "sent" DM bubble and the booked calendar block.
   Rust marks where leads usually leak. Nothing else gets color. */

:root {
  --paper: #F7F6FB;
  --surface: #FFFFFF;
  --ink: #1D1933;
  --muted: #57536B;
  --line: #DDD9E8;
  --violet: #5B34E6;
  --violet-ink: #4B26D1;
  --violet-wash: #ECE8FD;
  --on-violet: #FFFFFF;
  --leak: #A8361A;
  --leak-wash: #FCEDE6;
  --bubble-in: #EDEBF3;
  --final-bg: #1D1933;
  --final-ink: #F4F2FA;
  --final-muted: #C9C5DA;
  --shadow: 0 1px 0 rgba(29, 25, 51, .04), 0 12px 32px -12px rgba(43, 28, 110, .22);

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  --step-3: clamp(2rem, 1.25rem + 3.4vw, 3.5rem);

  --gutter: 1.25rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14121D;
    --surface: #1D1A29;
    --ink: #EEEBF7;
    --muted: #ADA8C2;
    --line: #34304A;
    --violet: #6545EE;
    --violet-ink: #B3A2FF;
    --violet-wash: #2A2450;
    --on-violet: #FFFFFF;
    --leak: #FF9B73;
    --leak-wash: #331C16;
    --bubble-in: #2A2738;
    --final-bg: #221D3A;
    --final-ink: #F4F2FA;
    --final-muted: #C9C5DA;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-wrap: break-word;
}

@media (min-width: 900px) {
  body { font-size: 1.125rem; }
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
h2 { font-size: var(--step-2); font-weight: 750; letter-spacing: -.015em; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.005em; }

p { margin: 0; }
p + p { margin-top: .75em; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--violet-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }

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

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: .75rem; top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { top: .75rem; }

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

@media (min-width: 700px) {
  :root { --gutter: 2rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 20px -10px rgba(91, 52, 230, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(91, 52, 230, .9); }
.btn:active { transform: translateY(0); }

.btn-small {
  min-height: 2.5rem;
  padding: .45rem 1rem;
  font-size: .9375rem;
  box-shadow: none;
}
.btn-small:hover { box-shadow: none; }

.btn-on-dark { box-shadow: 0 10px 28px -10px rgba(140, 115, 255, .7); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -.01em;
}
.wordmark .mark { width: 1.75rem; height: 1.75rem; color: var(--violet); flex: none; }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.25rem, 1.5rem + 4vw, 5rem) var(--section-y); }

.hero-grid {
  display: grid;
  gap: 2.75rem;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
  }
  .hero-copy { padding-top: 1.5rem; }
}

.hero-copy h1 { max-width: 15ch; }
.h1-line { display: block; }
.h1-line + .h1-line { margin-top: .12em; }

.lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
}
@media (min-width: 900px) { .lede { font-size: 1.25rem; } }

.cta-block { margin-top: 1.75rem; }
.cta-block .btn { width: 100%; }
@media (min-width: 520px) { .cta-block .btn { width: auto; } }

.cta-note {
  margin-top: .85rem;
  max-width: 30rem;
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.5;
}
.cta-note strong, .final strong { letter-spacing: .02em; }

.hero-offer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: 30rem;
  font-size: var(--step--1);
}
.hero-offer a { font-weight: 700; }

/* ---------- The example DM thread (the one bold thing on the page) ---------- */

.thread {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 0 1rem 1.25rem;
  max-width: 26rem;
  width: 100%;
  justify-self: center;
}

.thread-top {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem .25rem .85rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--violet-wash);
  color: var(--violet-ink);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--violet);
}

.thread-who { display: grid; line-height: 1.25; min-width: 0; }
.thread-handle { font-weight: 700; font-size: .9375rem; }
.thread-sub { font-size: .8125rem; color: var(--muted); }

.example-tag {
  display: inline-block;
  margin-left: auto;
  padding: .2rem .6rem;
  border: 1.5px dashed var(--muted);
  border-radius: 6px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.thread-caption {
  margin: .75rem .25rem 1rem;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.msgs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.msg { font-size: .9375rem; line-height: 1.4; }

.msg.in, .msg.out {
  max-width: 82%;
  padding: .55rem .85rem;
  border-radius: 20px;
}

.msg.in {
  align-self: flex-start;
  background: var(--bubble-in);
  color: var(--ink);
  border-bottom-left-radius: 6px;
}

.msg.out {
  align-self: flex-end;
  background: var(--violet);
  color: var(--on-violet);
  border-bottom-right-radius: 6px;
}

.msg.in + .msg.out, .msg.out + .msg.in, .msg.event + .msg { margin-top: .35rem; }

.msg.event {
  align-self: center;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
  padding: .25rem .5rem .4rem;
}
.msg.event strong { color: var(--ink); letter-spacing: .03em; }

.stamp {
  display: block;
  margin-top: .35rem;
  font-size: .75rem;
  font-weight: 600;
  opacity: .9;
}

.link-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .55rem;
  padding: .55rem .7rem;
  border-radius: 12px;
  background: rgba(20, 10, 70, .22);
  font-weight: 700;
}
.link-card svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* The calendar slot the thread lands in */
.booked {
  display: grid;
  grid-template-columns: auto 1fr;
  margin-top: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: 1rem;
}

.booked-when {
  display: grid;
  align-content: start;
  padding-right: .85rem;
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--muted);
  font-size: .8125rem;
  text-align: right;
  min-width: 4.25rem;
}
.booked-day { font-weight: 700; color: var(--ink); font-size: .9375rem; }

.booked-body {
  background: var(--violet-wash);
  border-left: 4px solid var(--violet);
  border-radius: 4px 10px 10px 4px;
  padding: .6rem .85rem .7rem;
}
.booked-title { font-weight: 700; color: var(--ink); }
.booked-meta { margin-top: .15rem; font-size: .8125rem; color: var(--muted); }

/* One orchestrated moment: the thread plays once, when it scrolls into view.
   Only runs with JS (which adds .js on <html>) and when motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .thread[data-play]:not(.play) .msg { opacity: 0; }
  .js .thread[data-play].play .msg {
    animation: msg-in .38s cubic-bezier(.2, .7, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 480ms + 150ms);
  }
  .js .thread[data-play].play .booked { animation-name: slot-in; animation-duration: .5s; }
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes slot-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section-alt { background: var(--surface); }

.section h2 { max-width: 24ch; }

.section-lede {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--muted);
}

/* Leaks: a real sequence, in the order a lead moves through it */
.leaks {
  list-style: none;
  margin-top: 2.25rem;
  counter-reset: stage;
  border-left: 2px solid var(--line);
  margin-left: .55rem;
}

.leak {
  counter-increment: stage;
  position: relative;
  display: grid;
  gap: .6rem;
  padding: 0 0 2rem 1.6rem;
}
.leak:last-child { padding-bottom: .25rem; }

.leak::before {
  content: counter(stage);
  position: absolute;
  left: -1.05rem;
  top: -.1rem;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--violet);
  color: var(--violet-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9375rem;
}

.leak-stage { padding-top: .15rem; }
.leak p + p { margin-top: 0; }

.leak-usual, .leak-fix {
  max-width: 34rem;
  padding: .7rem .9rem;
  border-radius: 12px;
  line-height: 1.45;
}

.leak-usual {
  background: var(--leak-wash);
  color: var(--ink);
}
.leak-fix {
  background: var(--violet-wash);
  color: var(--ink);
}

.leak-label {
  display: block;
  margin-bottom: .15rem;
  font-size: .8125rem;
  font-weight: 700;
}
.leak-usual .leak-label { color: var(--leak); }
.leak-fix .leak-label { color: var(--violet-ink); }

.leak-usual .leak-label::before,
.leak-fix .leak-label::before {
  content: "";
  display: inline-block;
  width: .55rem; height: .55rem;
  margin-right: .4rem;
  border-radius: 50%;
  vertical-align: .05em;
}
.leak-usual .leak-label::before { border: 2px dashed var(--leak); }
.leak-fix .leak-label::before { background: var(--violet); }

@media (min-width: 900px) {
  .leaks { margin-left: 1rem; }
  .leak {
    grid-template-columns: 13rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding-left: 2.25rem;
  }
  .leak-usual, .leak-fix { max-width: none; height: 100%; }
}

.rules {
  margin-top: 3rem;
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  max-width: 44rem;
}
.rules ul { margin-top: .85rem; list-style: none; display: grid; gap: .6rem; }
.rules li { position: relative; padding-left: 1.6rem; }
.rules li::before {
  content: "";
  position: absolute;
  left: .1rem; top: .45em;
  width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--violet);
  border-bottom: 2.5px solid var(--violet);
  transform: rotate(-45deg);
}

/* Weekly work, styled like recurring calendar events */
.weekly-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .weekly-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; align-items: start; }
}

.recurring { list-style: none; margin-top: 2rem; display: grid; gap: .75rem; }
.recurring li {
  display: grid;
  gap: .2rem;
  padding: .8rem 1rem .85rem;
  background: var(--violet-wash);
  border-left: 4px solid var(--violet);
  border-radius: 4px 12px 12px 4px;
}
.rec-when {
  font-size: .875rem;
  font-weight: 700;
  color: var(--violet-ink);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.rec-when::before {
  content: "";
  width: .95rem; height: .95rem; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11v-1a4 4 0 0 1 4-4h14'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v1a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rec-what { color: var(--ink); }
.recurring p + p { margin-top: 0; }

.report { margin: 0; }
.report figcaption {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: .85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}
.report figcaption .example-tag { margin-left: 0; }

.report-card {
  background: var(--paper);
  border: 1.5px dashed var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
}
.report-title { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }

.funnel { margin: 1rem 0 1.1rem; display: grid; gap: .1rem; }
.funnel div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}
.funnel dt { color: var(--muted); font-size: .9375rem; }
.funnel dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.report-note { font-size: .9375rem; }
.report-note + .report-note { margin-top: .5rem; }

/* Fit */
.fit-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .fit-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.fit { padding: 1.25rem; border-radius: 16px; border: 1px solid var(--line); }
.fit-yes { background: var(--violet-wash); border-color: transparent; }
.fit-no { background: transparent; }
.fit ul { margin-top: .85rem; list-style: none; display: grid; gap: .6rem; }
.fit li { position: relative; padding-left: 1.6rem; }
.fit-yes li::before {
  content: "";
  position: absolute; left: .1rem; top: .45em;
  width: .9rem; height: .5rem;
  border-left: 2.5px solid var(--violet);
  border-bottom: 2.5px solid var(--violet);
  transform: rotate(-45deg);
}
.fit-no li::before, .fit-no li::after {
  content: "";
  position: absolute; left: .15rem; top: .72em;
  width: .95rem; height: 2.5px;
  background: var(--leak);
  transform: rotate(45deg);
}
.fit-no li::after { transform: rotate(-45deg); }

/* Offer */
.spots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-top: 1.5rem;
}
.spots-text { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.spots-text strong { color: var(--violet-ink); }

.spots-slots { display: flex; gap: .5rem; }
.slot {
  display: grid;
  place-items: center;
  min-width: 4.5rem;
  padding: .35rem .6rem;
  border-radius: 4px 10px 10px 4px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
}
.slot-open {
  border: 1.5px dashed var(--violet);
  color: var(--violet-ink);
}
.slot-taken {
  background: var(--violet);
  border: 1.5px solid var(--violet);
  color: var(--on-violet);
}

.offer-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 760px) { .offer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

.offer-col {
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.offer-col ul { margin-top: .85rem; padding-left: 1.15rem; display: grid; gap: .55rem; }
.offer-col li::marker { color: var(--violet-ink); }

.after {
  margin-top: 2rem;
  max-width: 40rem;
  padding-left: 1rem;
  border-left: 4px solid var(--ink);
}
.after p { margin-top: .5rem; }

/* About */
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) {
  .about-grid { grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; align-items: start; }
}

.portrait {
  width: 7.5rem; height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--violet-wash);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--violet);
  display: grid;
  place-items: center;
  margin-left: 7px;
}
.portrait span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.25rem;
  color: var(--violet-ink);
  line-height: 1;
}
@media (min-width: 760px) { .portrait { width: 12rem; height: 12rem; margin-top: .5rem; } .portrait span { font-size: 5rem; } }

.about-copy { max-width: 40rem; }
.about-copy h2 + p { margin-top: 1rem; }
.about-copy h3 { margin-top: 2rem; }
.about-copy h3 + p { margin-top: .5rem; color: var(--muted); }

.trust { margin-top: 1rem; list-style: none; counter-reset: t; display: grid; gap: .6rem; }
.trust li {
  counter-increment: t;
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: start;
  font-weight: 600;
}
.trust li::before {
  content: counter(t);
  display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: var(--violet);
  color: var(--on-violet);
  font-size: .8125rem;
  font-weight: 800;
  margin-top: .05rem;
}

/* Audit steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.steps li {
  counter-increment: step;
  padding: 1.25rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2rem; height: 2rem;
  margin-bottom: .85rem;
  border-radius: 50%;
  border: 2px solid var(--violet);
  color: var(--violet-ink);
  font-family: var(--font-display);
  font-weight: 800;
}
.steps p { margin-top: .4rem; color: var(--muted); }

.you-do { margin-top: 2.5rem; max-width: 42rem; }
.you-do p { margin-top: .5rem; }
.cta-inline { margin-top: 2.5rem; }

/* FAQ */
.faq-list { margin-top: 1.75rem; max-width: 46rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 650;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .65rem; height: .65rem;
  border-right: 2.5px solid var(--violet-ink);
  border-bottom: 2.5px solid var(--violet-ink);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 1.2rem; max-width: 40rem; color: var(--muted); }

/* Final call to action */
.final {
  background: var(--final-bg);
  color: var(--final-ink);
  padding-block: var(--section-y);
}
.final-inner { max-width: 40rem; }
.final h2 { color: var(--final-ink); }
.final p { margin-top: 1rem; color: var(--final-muted); }
.final .btn { margin-top: 1.75rem; width: 100%; background: #6E4CF5; }
@media (min-width: 520px) { .final .btn { width: auto; } }
.final .final-small { margin-top: .75rem; font-size: var(--step--1); }
.final :focus-visible { outline-color: #CFC4FF; }

/* Footer */
.site-footer { padding-block: 2rem 2.5rem; font-size: var(--step--1); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-row p + p { margin-top: 0; }

/* 404 */
.lost { padding-block: clamp(3rem, 2rem + 6vw, 7rem); }
.lost-inner { max-width: 34rem; }
.lost .thread { margin-top: 2.5rem; justify-self: start; margin-inline: 0; }
.lost p.lede { margin-top: 1rem; }
.lost .cta-block { margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Calculator: "What those leaks cost". Brought over from the first version. */
.calc { margin-top: 2.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.fields { display: grid; gap: 1.35rem; align-content: start; }
.field { display: grid; gap: .5rem; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.field-top label { font-weight: 600; min-width: 0; }
.field-top output { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--violet-ink); white-space: nowrap; }
.field input[type="range"] { width: 100%; accent-color: var(--violet); min-height: 28px; }
.board {
  background: var(--final-bg);
  color: var(--final-ink);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  align-content: start;
}
.stat { display: grid; gap: .2rem; }
.stat-n { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-n small { font-size: var(--step--1); font-weight: 600; color: var(--final-muted); }
.stat-l { color: var(--final-muted); font-size: var(--step--1); }
.board-foot { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--final-muted); font-size: .8125rem; }
@media (min-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 3.5rem; align-items: start; }
}
