/* Popeki Talents — the only stylesheet. Built on the Popeki logo system:
   thick ink outlines, rounded tiles, hard "sticker" shadows, orange + water green.
   Edit tokens, not components. */

@font-face {
  font-family: 'Bricolage';
  src: url(../fonts/bricolage-grotesque-latin-600-normal.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url(../fonts/bricolage-grotesque-latin-700-normal.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url(../fonts/bricolage-grotesque-latin-800-normal.woff2) format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url(../fonts/public-sans-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url(../fonts/public-sans-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url(../fonts/public-sans-latin-600-normal.woff2) format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url(../fonts/public-sans-latin-700-normal.woff2) format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* colour: sampled from the Popeki logo system */
  --ink: #0c1210; /* outlines, text, dark surfaces */
  --page: #f6f5f0; /* page background */
  --cream: #fef1e1; /* Popi's tile, warm surfaces */
  --paper: #fff;
  --orange: #f97216; /* Popi: primary action, highlights */
  --orange-hi: #ff9a4d; /* top sheen on orange */
  --rust: #b93f0e; /* orange wordmark: text on light, links */
  --peach: #fdba74; /* Popi's face: soft fills */
  --green: #17a34a; /* the water: data, success, scores */
  --green-hi: #4ade80; /* water highlights */
  --green-soft: #ddf5e4;
  --slate: #4b524f; /* secondary text */
  --danger: #c62828;

  /* depth: the sticker look */
  --line: 2.5px solid var(--ink);
  --line-thin: 1.5px solid var(--ink);
  --lift-sm: 3px 3px 0 var(--ink);
  --lift: 5px 5px 0 var(--ink);
  --lift-lg: 8px 8px 0 var(--ink);

  /* type */
  --font-head: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 2rem;
  --step-4: clamp(2.4rem, 5.4vw, 3.8rem);

  /* space & shape */
  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.5rem;
  --s6: 2rem;
  --s7: 3rem;
  --s8: 4.5rem;
  --r-sm: 10px; /* inputs, buttons, chips */
  --r: 18px; /* panels, like the logo tiles */
  --wrap: 74rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--font-body);
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  margin: 0 0 var(--s4);
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--step-4);
  font-weight: 800;
}
h2 {
  font-size: var(--step-3);
  font-weight: 800;
}
h3 {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 var(--s4);
  max-width: 65ch;
}
a {
  color: var(--rust);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
img,
svg {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: var(--s4);
}
.page {
  padding-block: var(--s6) var(--s8);
}
.page-title {
  font-size: var(--step-3);
}
.stack > * + * {
  margin-top: var(--s5);
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
}
.row-between {
  justify-content: space-between;
}
.row-center {
  justify-content: center;
}
.text-center {
  text-align: center;
}
.grid {
  display: grid;
  gap: var(--s5);
}
/* lets a wide table scroll inside its panel instead of widening the page */
.grid > * {
  min-width: 0;
}
@media (min-width: 48rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-side {
    grid-template-columns: 21rem 1fr;
    align-items: start;
  }
}
.narrow {
  max-width: 46rem;
}
.muted {
  color: var(--slate);
}
.small {
  font-size: var(--step--1);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header / footer ---------- */
.site-header {
  background: var(--page);
  border-bottom: var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--ink);
}
.brand-popi {
  width: 46px;
  height: auto;
}
.brand-word {
  width: 98px;
  height: auto;
}
.brand-product {
  font: 700 var(--step-1)/1 var(--font-head);
  color: var(--rust);
  padding-left: var(--s2);
  border-left: var(--line-thin);
  margin-left: var(--s1);
}
.nav {
  display: flex;
  gap: var(--s1);
  white-space: nowrap;
  align-items: center;
  font-size: var(--step--1);
  font-weight: 600;
}
.nav a,
.nav .nav-link {
  color: var(--ink);
  text-decoration: none;
  padding: var(--s2) var(--s3);
  border-radius: 999px;
  border: 2px solid transparent;
}
.nav a:hover {
  border-color: var(--ink);
}
.nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
.nav form {
  margin: 0;
}
.nav-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.nav-btn:hover {
  border-color: var(--ink);
}
.lang {
  display: inline-flex;
  border: var(--line-thin);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}
.lang button {
  background: none;
  border: 0;
  padding: 4px 9px;
  font: 700 12px/1.4 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.org-tag {
  font-size: var(--step--1);
  font-weight: 700;
  padding: 3px var(--s3);
  border: var(--line-thin);
  border-radius: 999px;
  background: var(--cream);
  white-space: nowrap;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  border: var(--line-thin);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 700;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 15rem;
  display: grid;
  padding: var(--s2);
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--lift);
  z-index: 20;
}
.menu-panel a,
.menu-panel button {
  text-align: left;
  padding: var(--s2) var(--s3);
  border-radius: 8px;
  border: 0;
  background: none;
  font: 600 var(--step--1)/1.4 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.menu-panel a:hover,
.menu-panel button:hover {
  background: var(--cream);
}
.menu-panel hr {
  border: 0;
  border-top: 1.5px solid #e4e1d8;
  margin: var(--s1) 0;
  width: 100%;
}
.menu-mobile {
  display: none;
}
.menu-org {
  display: grid;
  gap: var(--s1);
  justify-items: start;
  padding: var(--s2) var(--s3);
  font-size: var(--step--1);
  white-space: normal;
}
@media (max-width: 68rem) {
  .nav .nav-link,
  .brand-product,
  .org-tag {
    display: none;
  }
  .menu-mobile {
    display: block;
  }
}

.site-footer {
  background: var(--ink);
  color: #c7ccc9;
  padding: var(--s6) 0;
  font-size: var(--step--1);
}
.site-footer a {
  color: var(--peach);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.footer-brand img {
  width: 40px;
}

/* water edge: the brand's signature, used under the hero and above the footer */
.water {
  height: 34px;
  background: url(../img/water.svg) repeat-x left bottom / 160px 34px;
}
.water-dark {
  background-color: var(--ink);
}
.water-page {
  background-color: var(--page);
}

/* ---------- notices ---------- */
.notice {
  padding: var(--s3) var(--s4);
  font-size: var(--step--1);
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--cream);
  box-shadow: var(--lift-sm);
}
.notice-demo {
  border: 0;
  border-bottom: var(--line);
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  background: var(--peach);
  font-weight: 600;
}
.notice-error {
  background: #fde7e7;
}
.notice-ok {
  background: var(--green-soft);
}

/* ---------- buttons: raised, and they press down ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 3rem;
  padding: 0 var(--s5);
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: 700 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--lift-sm);
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.btn-primary {
  background: linear-gradient(180deg, var(--orange-hi) 0%, var(--orange) 55%);
  color: var(--ink);
}
.btn-dark {
  background: linear-gradient(180deg, #26302c 0%, var(--ink) 60%);
  color: var(--paper);
}
.btn-green {
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green) 60%);
  color: var(--ink);
}
.btn-quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--rust);
  padding: 0 var(--s2);
  min-height: 2.5rem;
}
.btn-quiet:hover,
.btn-quiet:active {
  transform: none;
  box-shadow: none;
  text-decoration: underline;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- panels ---------- */
.panel {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  padding: var(--s5);
  box-shadow: var(--lift);
}
.panel-cream {
  background: var(--cream);
}
.panel-flush {
  padding: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: var(--line);
  background: var(--cream);
}
.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: var(--step-1);
}

/* ---------- forms ---------- */
.field {
  margin-bottom: var(--s5);
}
.field > label,
.field legend {
  display: block;
  font-weight: 700;
  margin-bottom: var(--s2);
  padding: 0;
}
.field .hint {
  display: block;
  font-size: var(--step--1);
  color: var(--slate);
  margin: calc(-1 * var(--s1)) 0 var(--s2);
}
.field .error {
  display: flex;
  gap: var(--s2);
  font-size: var(--step--1);
  color: var(--danger);
  margin-top: var(--s2);
  font-weight: 700;
}
fieldset.field {
  border: 0;
  margin-inline: 0;
  padding: 0;
}
.input {
  width: 100%;
  min-height: 3rem;
  padding: var(--s2) var(--s3);
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 3px 0 rgba(12, 18, 16, 0.07);
}
textarea.input {
  min-height: 7.5rem;
  resize: vertical;
}
.input:focus {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}
.field-invalid .input {
  border-color: var(--danger);
  background: #fff6f6;
}
.req {
  color: var(--rust);
}

.choices {
  display: grid;
  gap: var(--s3);
}
@media (min-width: 40rem) {
  .choices-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.choice {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) var(--s4);
  border: var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  font-weight: 500;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}
.choice:hover {
  box-shadow: var(--lift-sm);
  transform: translate(-1px, -1px);
}
.choice input {
  margin: 0;
  accent-color: var(--orange);
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.choice:has(input:checked) {
  background: var(--cream);
  box-shadow: var(--lift-sm);
  border-color: var(--ink);
}

/* stepper: a real sequence, so it is numbered */
.stepper {
  display: flex;
  gap: var(--s2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s6);
  counter-reset: s;
}
.stepper li {
  flex: 1;
  counter-increment: s;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.stepper li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 800 var(--step-0)/1 var(--font-head);
}
.stepper li[aria-current='step'] {
  color: var(--ink);
}
.stepper li[aria-current='step']::before {
  background: var(--orange);
  box-shadow: var(--lift-sm);
}
.stepper li.done::before {
  content: '✓';
  background: var(--green);
  color: var(--paper);
}
@media (max-width: 40rem) {
  .stepper li:not([aria-current='step']) span {
    display: none;
  }
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 2px dashed #cfcbc0;
}

/* ---------- data ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
}
@media (min-width: 48rem) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  padding: var(--s4) var(--s5);
  box-shadow: var(--lift);
}
.stat strong {
  display: block;
  font: 800 var(--step-3)/1.05 var(--font-head);
}
.stat span {
  color: var(--slate);
  font-size: var(--step--1);
  font-weight: 500;
}
.stat-orange {
  background: linear-gradient(160deg, var(--orange-hi), var(--orange) 70%);
}
.stat-green {
  background: linear-gradient(160deg, var(--green-hi), var(--green) 70%);
}
.stat-orange span,
.stat-green span {
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.table th {
  text-align: left;
  font-weight: 700;
  padding: var(--s3) var(--s5);
  border-bottom: var(--line);
  white-space: nowrap;
  background: var(--page);
}
.table td {
  padding: var(--s3) var(--s5);
  border-bottom: 1.5px solid #e4e1d8;
  vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--cream);
}
.table a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.table a:hover {
  text-decoration: underline;
}

.chip {
  display: inline-block;
  padding: 3px var(--s3);
  border: var(--line-thin);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  margin: 0 var(--s1) var(--s1) 0;
}
.chip-level {
  background: var(--ink);
  color: var(--paper);
}
.chip-ok {
  background: var(--peach);
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: var(--line);
  display: grid;
  place-items: center;
  font: 800 var(--step-0)/1 var(--font-head);
  background: var(--peach);
  flex: none;
}
.avatar-green {
  background: var(--green-hi);
}
.avatar-orange {
  background: var(--orange);
}

/* registry entry: the product's signature object */
.entry {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border-bottom: 1.5px solid #e4e1d8;
  background: var(--paper);
}
.entry:last-child {
  border-bottom: 0;
}
.entry h3 {
  margin: 0 0 2px;
  font: 700 var(--step-0)/1.3 var(--font-body);
  letter-spacing: 0;
}
.entry p {
  margin: 0 0 var(--s2);
  font-size: var(--step--1);
  color: var(--slate);
}

/* match result */
.match {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: var(--s4);
  padding: var(--s5);
  border-bottom: 1.5px solid #e4e1d8;
}
.match:last-child {
  border-bottom: 0;
}
.score {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: var(--line);
  display: grid;
  place-items: center;
  font: 800 var(--step-1)/1 var(--font-head);
  background: conic-gradient(var(--green) calc(var(--v) * 1%), #e4e1d8 0);
  position: relative;
  box-shadow: var(--lift-sm);
}
.score::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: var(--line-thin);
}
.score span {
  position: relative;
}
.match h3 {
  margin: 0 0 var(--s2);
  font: 700 var(--step-0)/1.3 var(--font-body);
  letter-spacing: 0;
}
.why {
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
  color: var(--slate);
  display: grid;
  gap: 2px;
}
.why li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 800;
}

/* ---------- home ---------- */
.hero {
  background: radial-gradient(
    120% 90% at 85% 10%,
    #ffe2c2 0%,
    var(--cream) 45%,
    var(--page) 100%
  );
  padding-top: var(--s7);
}
.hero .wrap {
  display: grid;
  gap: var(--s6);
  align-items: center;
  padding-bottom: var(--s7);
}
@media (min-width: 58rem) {
  .hero .wrap {
    grid-template-columns: 1fr 1.05fr;
  }
}
.hero h1 {
  max-width: 15ch;
}
.hero-copy p {
  font-size: var(--step-1);
  line-height: 1.5;
  color: #2b3330;
}
.hero-art {
  position: relative;
}
.hero-art .scene {
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--lift-lg);
  width: 100%;
  height: auto;
}
.hero-art .peek {
  position: absolute;
  left: -22px;
  bottom: -26px;
  width: 92px;
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.features {
  padding-block: var(--s8) var(--s7);
}
.features .grid {
  margin-top: var(--s6);
}
.feature {
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--lift);
  padding: var(--s5);
}
.feature img {
  height: 120px;
  width: auto;
  margin-bottom: var(--s4);
}
.feature h3 {
  margin-bottom: var(--s2);
}
.feature p {
  color: var(--slate);
  margin: 0;
}

.offline {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s7) var(--s8);
}
.offline .wrap {
  display: grid;
  gap: var(--s6);
  align-items: center;
}
@media (min-width: 52rem) {
  .offline .wrap {
    grid-template-columns: 1fr 1.4fr;
  }
}
.offline-art {
  background: radial-gradient(circle at 50% 45%, var(--cream) 0%, #f3d9b8 100%);
  border: 2.5px solid var(--paper);
  border-radius: var(--r);
  padding: var(--s6);
}
.offline-art img {
  margin: 0 auto;
  width: 100%;
  max-width: 300px;
}
.offline p {
  color: #c7ccc9;
}
.steps {
  list-style: none;
  counter-reset: k;
  padding: 0;
  margin: var(--s5) 0 0;
  display: grid;
  gap: var(--s4);
}
.steps li {
  counter-increment: k;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: var(--s4);
  align-items: start;
}
.steps li::before {
  content: counter(k);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2.5px solid var(--paper);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font: 800 var(--step-1)/1 var(--font-head);
}
.steps h3 {
  margin: 4px 0 var(--s1);
}
.steps p {
  margin: 0;
}

.trial {
  padding-block: var(--s8);
}
.trial .why {
  font-size: var(--step-0);
  color: var(--ink);
  gap: var(--s2);
}
.trial-art {
  width: 220px;
  margin-top: var(--s6);
}
@media (max-width: 48rem) {
  .trial-art {
    display: none;
  }
}

/* ---------- app chrome ---------- */
.messages {
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.solo-card .messages {
  margin-bottom: var(--s4);
}
.notice-trial {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}
.notice-trial strong {
  font-family: var(--font-head);
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--s5);
}
.page-head h1 {
  margin: 0;
}
.page-head p {
  margin: var(--s2) 0 0;
}
.back {
  display: inline-flex;
  gap: var(--s2);
  font-weight: 600;
  font-size: var(--step--1);
  margin-bottom: var(--s3);
}
.btn-danger {
  background: linear-gradient(180deg, #f26b6b 0%, var(--danger) 60%);
  color: var(--paper);
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0 var(--s4);
  font-size: var(--step--1);
}

/* badges: status words, never colour alone */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px var(--s3);
  border: var(--line-thin);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
  background: var(--paper);
  white-space: nowrap;
}
.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.badge-ok {
  color: #0e7a36;
  background: var(--green-soft);
}
.badge-wait {
  color: #9a4a00;
  background: var(--cream);
}
.badge-off {
  color: var(--slate);
  background: #eceae4;
}
.badge-bad {
  color: var(--danger);
  background: #fde7e7;
}

/* filters + pagination */
.filters {
  display: grid;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-bottom: var(--line);
  background: var(--cream);
}
@media (min-width: 52rem) {
  .filters {
    grid-template-columns: 2fr repeat(4, 1fr) auto;
    align-items: end;
  }
}
.filters .field {
  margin: 0;
}
.filters label {
  font-size: var(--step--1);
}
.result-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  font-size: var(--step--1);
  font-weight: 600;
  border-bottom: 1.5px solid #e4e1d8;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4) var(--s5);
  border-top: var(--line);
  font-size: var(--step--1);
  font-weight: 600;
}

/* key–value details (profile) */
.kv {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) 1fr;
  margin: 0;
}
.kv dt,
.kv dd {
  padding: var(--s3) var(--s5);
  border-bottom: 1.5px solid #e4e1d8;
  margin: 0;
}
.kv dt {
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--slate);
}
.kv > :nth-last-child(-n + 2) {
  border-bottom: 0;
}
@media (max-width: 36rem) {
  .kv {
    grid-template-columns: 1fr;
  }
  .kv dt {
    border-bottom: 0;
    padding-bottom: 0;
  }
}
.profile-top {
  display: flex;
  gap: var(--s4);
  align-items: center;
}
.avatar-lg {
  width: 4.5rem;
  height: 4.5rem;
  font-size: var(--step-2);
  box-shadow: var(--lift-sm);
}

/* copy-to-clipboard field */
.copy {
  display: flex;
  gap: var(--s2);
}
.copy .input {
  font-family: var(--font-body);
  font-weight: 600;
  background: var(--cream);
}

/* upload */
.drop {
  display: grid;
  place-items: center;
  gap: var(--s3);
  text-align: center;
  padding: var(--s6) var(--s5);
  border: 2.5px dashed var(--ink);
  border-radius: var(--r);
  background: var(--cream);
}
.drop > * {
  min-width: 0;
  max-width: 100%;
}
.drop input[type='file'] {
  font: inherit;
}
.drop img {
  width: 96px;
}

/* empty states, confirmations, errors, auth: one centred card with an illustration */
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s2);
  padding: var(--s7) var(--s5);
}
.empty img {
  width: 168px;
  margin-bottom: var(--s3);
}
.empty h2 {
  font-size: var(--step-2);
  margin: 0;
}
.empty p {
  color: var(--slate);
  margin: 0 auto var(--s3);
}
.solo {
  min-height: calc(100vh - 4.25rem);
  display: grid;
  place-items: center;
  padding: var(--s6) var(--s4);
  background: radial-gradient(
    90% 70% at 50% 0%,
    var(--cream) 0%,
    var(--page) 70%
  );
}
.solo-card {
  width: min(28rem, 100%);
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--lift-lg);
  padding: var(--s6) var(--s5);
}
.solo-card .solo-art {
  width: 120px;
  margin: calc(-1 * var(--s8)) auto var(--s3);
}
.solo-card h1 {
  font-size: var(--step-3);
  text-align: center;
}
.solo-card > p {
  text-align: center;
  color: var(--slate);
  margin-inline: auto;
}
.solo-foot {
  text-align: center;
  margin-top: var(--s4);
  font-size: var(--step--1);
}
.code-big {
  font: 800 clamp(4rem, 14vw, 7rem)/1 var(--font-head);
  color: var(--orange);
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 5px 5px 0 var(--ink);
}
.code-art {
  width: 110px;
  margin: var(--s4) auto;
}

/* summary list (registration review, import result) */
.summary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
}
.summary li {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: var(--line-thin);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.summary strong {
  font-family: var(--font-head);
}

/* settings: section nav */
.side-nav {
  display: grid;
  gap: var(--s1);
  position: sticky;
  top: 5.5rem;
}
.side-nav a {
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.side-nav a:hover {
  border-color: var(--ink);
}
.side-nav a[aria-current='page'] {
  background: var(--ink);
  color: var(--paper);
}
.section + .section {
  margin-top: var(--s6);
}

/* legal pages */
.prose h2 {
  font-size: var(--step-2);
  margin-top: var(--s6);
}
.prose li {
  margin-bottom: var(--s2);
  max-width: 65ch;
}

/* email preview (design reference only) */
.email {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.email-head {
  background: var(--cream);
  border-bottom: var(--line);
  padding: var(--s4) var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.email-head img {
  width: 40px;
}
.email-body {
  padding: var(--s5);
}

/* print: "Imprimer" replaces a PDF library */
@media print {
  .site-header,
  .site-footer,
  .notice-demo,
  .no-print,
  .btn,
  .water {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .panel {
    box-shadow: none;
  }
}

/* registration step 4: project fields only when "Oui" is chosen (no JavaScript) */
form:has(input[name='has_project'][value='Non']:checked) .project-fields {
  display: none;
}

/* spacing utilities: last, so that they win over component margins */
.mt-5 {
  margin-top: var(--s5);
}
.mb-5 {
  margin-bottom: var(--s5);
}
.pad-5 {
  padding: var(--s5);
}
.m-0 {
  margin: 0;
}
.nowrap {
  white-space: nowrap;
}
.mt-2 {
  margin-top: var(--s2);
}
.gap-3 {
  gap: var(--s3);
}
.link-plain {
  color: inherit;
}
.choice-sm {
  padding: 4px 10px;
  font-size: var(--step--1);
}
.mt-4 {
  margin-top: var(--s4);
}
.mw-40 {
  max-width: 40rem;
}
.row-end {
  justify-content: flex-end;
}
.empty-tight {
  padding-block: var(--s4);
}
.mt-3 {
  margin-top: var(--s3);
}
.mb-4 {
  margin-bottom: var(--s4);
}
.gap-4 {
  gap: var(--s4);
}
.inline {
  display: inline;
}
