/* ==========================================================================
   Kosárbarát – landing page styles
   Pure CSS, no build step. Palette deliberately avoids any shop branding.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License; see fonts/OFL-*.txt) ---------- */

/* Bricolage Grotesque, latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque, latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Figtree, latin-ext */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Figtree, latin */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #10231c;
  --ink-soft: #3d5249;
  --muted: #66786f;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --line: #e4e0d4;

  --green: #1f7a57;
  --green-dark: #145c41;
  --green-deep: #0d3b2a;
  --mint: #d9f2e3;
  --mint-soft: #ecf8f1;
  --lime: #c8f169;
  --lime-soft: #eefbd2;
  --lilac: #e6e1ff;
  --lilac-dark: #5b4bc4;
  --sky: #dceefb;
  --sky-dark: #2f6f9f;
  --tan: #c9a27a;
  --tan-dark: #a8805a;
  --red: #c8463d;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(16, 35, 28, 0.06), 0 2px 8px rgba(16, 35, 28, 0.05);
  --shadow: 0 2px 6px rgba(16, 35, 28, 0.05), 0 12px 32px rgba(16, 35, 28, 0.08);
  --shadow-l: 0 4px 12px rgba(16, 35, 28, 0.06), 0 24px 60px rgba(16, 35, 28, 0.14);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--green-dark);
}
a:hover {
  color: var(--green);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--lilac-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

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

.section {
  padding-block: var(--section);
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.section-head p {
  margin-top: 18px;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.fine {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

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

.btn {
  --bg: var(--green);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  box-shadow: 0 6px 18px rgba(31, 122, 87, 0.28);
}
.btn:hover {
  color: var(--fg);
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 122, 87, 0.34);
}
.btn:active {
  transform: translateY(0);
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.btn:hover svg {
  transform: translateX(3px);
}

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.btn-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.9375rem;
  box-shadow: none;
}
.btn-block {
  width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-line linear both;
    animation-timeline: scroll();
    animation-range: 0 120px;
  }
  @keyframes header-line {
    to {
      border-bottom-color: var(--line);
      box-shadow: 0 6px 24px rgba(16, 35, 28, 0.06);
    }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover {
  color: var(--ink);
}
.logo svg {
  width: 36px;
  height: 36px;
  flex: none;
}

/* Content links sit right after the logo; language and sign-up go to the right edge. */
.nav {
  display: flex;
  gap: 4px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.nav a:hover {
  background: var(--mint);
  color: var(--ink);
}

/* Features dropdown: a <details> (closing behaviour in assets/nav.js). */
.nav-menu {
  position: relative;
}
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.nav-menu[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.nav-menu summary:hover,
.nav-menu[open] summary {
  background: var(--mint);
  color: var(--ink);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-l);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-s);
}
.nav-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--mint-soft);
  color: var(--green);
  transition: background-color 0.2s ease;
}
.nav-dropdown a:hover .nav-icon {
  background: var(--paper);
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.nav-dropdown-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--green) !important;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
}
.lang a,
.lang span {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}
.lang [aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

/* Mobile menu: a <details> in the header actions; the panel spans the header's width below it. */
.mobile-menu {
  display: none;
}
.mobile-menu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu[open] summary {
  background: var(--mint);
}
.burger,
.burger::before,
.burger::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}
.burger {
  position: relative;
}
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before {
  top: -6px;
}
.burger::after {
  top: 6px;
}
.mobile-menu[open] .burger {
  background: transparent;
}
.mobile-menu[open] .burger::before {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu[open] .burger::after {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px var(--gutter) 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 40px rgba(16, 35, 28, 0.12);
}
.mobile-panel nav {
  display: grid;
}
.mobile-heading {
  margin: 8px 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 12px;
}
.mobile-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: var(--radius-s);
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.mobile-panel a:hover {
  background: var(--mint-soft);
  color: var(--ink);
}
.mobile-panel .mobile-all {
  color: var(--green);
}
.mobile-link {
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
  font-size: 1.0625rem;
}
.mobile-all + .mobile-link {
  margin-top: 8px;
}
.mobile-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
}
.mobile-panel .lang a {
  display: inline;
  min-height: 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--muted);
}

@media (max-width: 960px) {
  .nav,
  .header-actions > .lang {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}
@media (max-width: 480px) {
  .header-inner,
  .header-actions {
    gap: 10px;
  }
  .logo {
    font-size: 1.0625rem;
  }
  .logo svg {
    width: 30px;
    height: 30px;
  }
  .header-cta {
    padding-inline: 14px;
  }
}
@media (max-width: 440px) {
  .header-cta {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .header-inner,
  .header-actions {
    gap: 6px;
  }
}
@media (max-width: 340px) {
  .header-cta {
    display: none;
  }
}

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

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(200, 241, 105, 0.55), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  /* the video gets the wider column, so it holds its own next to the text */
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 56px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-s);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.pill .dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
}
.pill .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(31, 122, 87, 0.5);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 122, 87, 0.45);
  }
  80%,
  100% {
    box-shadow: 0 0 0 10px rgba(31, 122, 87, 0);
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: -0.025em;
}
.hero .lead {
  margin-top: 22px;
  font-size: clamp(1.25rem, 1.6vw, 1.3rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  flex: none;
}

/* Hero video: the website cut of the promo (no headlines, no CTA), on both languages */

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow-l);
}
.hero-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 59, 42, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-sound:hover {
  background: var(--green-deep);
}
.video-sound:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
.video-sound[hidden] {
  display: none;
}
.video-sound svg {
  width: 18px;
  height: 18px;
  flex: none;
}
@media (max-width: 480px) {
  .video-sound {
    right: 8px;
    bottom: 8px;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    font-size: 0.6875rem;
  }
  .video-sound svg {
    width: 15px;
    height: 15px;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-video {
    margin-top: 8px;
    border-radius: var(--radius);
  }
}
@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Problem ---------- */

.problem {
  background: var(--green-deep);
  color: #e8f3ed;
  overflow: hidden;
}
.problem .section-head p {
  color: #b9d2c6;
}
.problem h2 {
  color: #fff;
}

.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

.problem-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}
.problem-grid .section-head {
  margin-bottom: 0;
}

.panel-dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 40px);
}

/* Problem scene: a courier passes three houses, one parcel (= one delivery fee) at each door */
.houses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.houses li {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
}
.houses .house {
  width: min(100%, 96px);
  height: auto;
  aspect-ratio: 64 / 56;
}
.houses .h-1 .house {
  color: var(--lime);
}
.houses .h-2 .house {
  color: #a99cf0;
}
.houses .h-3 .house {
  color: #8fc3ea;
}
.houses .parcel {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201, 162, 122, 0.25);
  color: #e7cfa9;
  animation: drop 9s ease-out infinite;
}
.houses .h-2 .parcel {
  animation-delay: 1.4s;
}
.houses .h-3 .parcel {
  animation-delay: 2.8s;
}
.houses .parcel svg {
  width: 22px;
  height: 22px;
}
@keyframes drop {
  0%,
  8% {
    transform: translateY(-14px);
    opacity: 0;
  }
  14%,
  100% {
    transform: none;
    opacity: 1;
  }
}
.tag-ship {
  display: grid;
  justify-items: center;
  padding: 5px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.tag-ship strong {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--green-deep);
  white-space: nowrap;
}

.road {
  position: relative;
  height: 44px;
  margin-top: 16px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 50%, transparent 50%) left 50% / 22px 2px repeat-x,
    rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.truck {
  position: absolute;
  left: 12px;
  bottom: 4px;
  width: 64px;
  height: 36px;
  animation: drive 9s linear infinite;
}
@keyframes drive {
  from {
    left: -72px;
  }
  to {
    left: 100%;
  }
}

.panel-total {
  margin-top: 28px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}
.panel-total span {
  color: #b9d2c6;
}
.panel-total strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--lime);
  letter-spacing: -0.02em;
}

@media (max-width: 900px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- How it works ---------- */

.section-paper {
  background: var(--paper);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
}
/* Route from each step's icon to the next one */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 80px;
  right: -8px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 6px, transparent 6px 14px);
  opacity: 0.45;
}
.step-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--c, var(--mint));
  color: var(--ci, var(--green-dark));
}
.step-icon svg {
  width: 30px;
  height: 30px;
}
.step-icon::after {
  content: counter(step);
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font: 800 0.8125rem/26px var(--font-display);
  text-align: center;
  box-shadow: 0 0 0 3px var(--paper);
}
.step:nth-child(2) {
  --c: var(--lilac);
  --ci: var(--lilac-dark);
}
.step:nth-child(3) {
  --c: var(--sky);
  --ci: var(--sky-dark);
}
.step:nth-child(4) {
  --c: var(--lime-soft);
  --ci: var(--green-dark);
}
.step:nth-child(5) {
  --c: #f3e9dd;
  --ci: var(--tan-dark);
}
.step h3 {
  font-size: 1.1875rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
  }
  .step::before {
    display: none;
  }
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .step {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
  }
  .step:not(:last-child)::before {
    display: block;
    top: 76px;
    bottom: -20px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--green) 0 6px, transparent 6px 14px);
  }
  .step-icon {
    margin: 0;
    grid-row: span 2;
  }
}

/* ---------- Audiences: organizing vs. joining ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.aud {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
}
.aud-org {
  background: var(--green);
  color: #fff;
}
.aud-join {
  background: var(--lilac);
  color: var(--ink);
}
.aud .badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.aud-org .badge {
  background: var(--lime);
  color: var(--green-deep);
}
.aud-join .badge {
  background: var(--ink);
  color: #fff;
}
.aud h3 {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  margin-bottom: 28px;
  max-width: 20ch;
}
.aud ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.aud li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}
.aud li svg {
  width: 26px;
  height: 26px;
  margin-top: 1px;
}
.aud-org li svg {
  color: var(--lime);
}
.aud-join li svg {
  color: var(--lilac-dark);
}
.aud ul {
  margin-bottom: auto;
}
/* The waitlist button on the left, the feature page link on the right. When
   they don't fit on one row, wrap-reverse puts the link on the row above, inset
   by the button's side padding so its text lines up with the button's. */
.aud-actions {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 32px;
}
.aud-more {
  padding-left: 26px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.aud-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aud-org .aud-more,
.aud-org .aud-more:hover {
  color: #fff;
}
.aud-join .aud-more {
  color: var(--lilac-dark);
}
.aud-join .aud-more:hover {
  color: #4a3bb0;
}
.aud-org .aud-cta {
  --bg: var(--lime);
  --fg: var(--green-deep);
  box-shadow: none;
}
.aud-org .aud-cta:hover {
  background: #d6f78a;
}
.aud-join .aud-cta {
  --bg: var(--lilac-dark);
  box-shadow: none;
}
.aud-join .aud-cta:hover {
  background: #4a3bb0;
}

/* One outcome per perspective, drawn as a bar rather than a screen */
.aud-visual {
  margin-top: auto;
  padding: 20px;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}
.aud-org .aud-visual {
  background: rgba(13, 59, 42, 0.45);
}
.aud-join .aud-visual {
  background: rgba(255, 255, 255, 0.65);
}

/* Organizer: three carts add up past the free-delivery threshold */
.pool-bar {
  position: relative;
  display: flex;
  gap: 3px;
  height: 40px;
  margin-top: 30px;
}
.pool-seg {
  flex: 0 0 calc(var(--w) - 2px);
  display: flex;
  align-items: center;
  padding-inline: 10px;
  overflow: hidden;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}
.pool-seg:nth-child(1) {
  background: var(--lime);
}
.pool-seg:nth-child(2) {
  background: #c9c0ff;
}
.pool-seg:nth-child(3) {
  background: #9fd0f2;
}
.pool-line {
  position: absolute;
  left: var(--at);
  top: -30px;
  bottom: -6px;
  border-left: 2px dashed #fff;
}
.pool-line span {
  position: absolute;
  top: -2px;
  right: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  color: #dbe9e1;
}
.pool-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 18px;
  font-weight: 600;
  color: #dbe9e1;
}
.pool-total s {
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-decoration-thickness: 2px;
}
.pool-total strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--lime);
}

/* Joiner: a small item alone vs. inside someone's order */
.mo-label {
  margin-bottom: 14px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.mo-chart {
  display: grid;
  gap: 12px;
}
.mo-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 700;
}
.mo-bar {
  display: flex;
  min-height: 32px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}
/* Labels wrap inside the bar on narrow cards instead of being clipped. */
.mo-bar > span {
  display: flex;
  align-items: center;
  padding: 4px 10px;
}
.mo-item {
  flex: 0 0 var(--w, 50%);
  min-width: max-content;
  white-space: nowrap;
  border-radius: 9px;
  background: var(--lilac-dark);
  color: #fff;
}
.mo-pad {
  flex: 1;
  margin-left: 3px;
  border-radius: 9px;
  background: repeating-linear-gradient(-45deg, #dcd6f5 0 6px, #ebe7fb 6px 12px);
  color: var(--ink-soft);
}
.mo-note {
  color: var(--lilac-dark);
}

.aud-note {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 820px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .pool-bar {
    margin-top: 46px;
  }
  .pool-line {
    top: -46px;
  }
  .pool-line span {
    width: 10em;
    white-space: normal;
    text-align: right;
    line-height: 1.25;
  }
  .mo-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Trust ---------- */

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.trust-card .ti {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--mint);
  color: var(--green-dark);
}
.trust-card:nth-child(2) .ti {
  background: var(--sky);
  color: var(--sky-dark);
}
.trust-card:nth-child(3) .ti {
  background: var(--lilac);
  color: var(--lilac-dark);
}
.trust-card .ti svg {
  width: 28px;
  height: 28px;
}
.trust-card h3 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}
.trust-card p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
/* Each card's link takes its icon's colour, and sits at the bottom so the three line up. */
.trust-more {
  align-self: flex-start;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.trust-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.trust-card .trust-more {
  margin-top: auto;
  padding-top: 18px;
}
.trust-card:nth-child(2) .trust-more {
  color: var(--sky-dark);
}
.trust-card:nth-child(3) .trust-more {
  color: var(--lilac-dark);
}

/* Reputation: the badges carousel under the cards, on the feature pages' showcase mint. */
.trust-badges {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 20px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-l);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.trust-badges h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  margin-bottom: 10px;
}
.trust-badges p {
  color: var(--ink-soft);
  max-width: 42ch;
}
.trust-badges .trust-more {
  display: inline-block;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .trust-cards,
  .trust-badges {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--cream);
  transition: background-color 0.2s ease;
}
.faq details[open] {
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--paper);
  transition: transform 0.3s ease;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--ink-soft);
}

/* The FAQ page: topic links under the title, one group per topic. */
.faq-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.faq-topics a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-s);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.faq-topics a:hover {
  color: var(--green-dark);
}
.faq-all a {
  font-weight: 700;
  text-decoration: none;
}
.faq-groups {
  display: grid;
  gap: clamp(48px, 7vw, 88px);
}
.faq-group {
  scroll-margin-top: 96px;
}
.faq-group .section-head {
  margin-bottom: 0;
}
.faq-group .section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.faq-group .section-head a {
  font-weight: 700;
  text-decoration: none;
}
.faq-cta {
  max-width: 640px;
  text-align: center;
}
.faq-cta h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.faq-cta p {
  margin: 14px 0 28px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Waitlist ---------- */

.waitlist {
  overflow: clip;
}
.waitlist-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: 36px;
  background: var(--green-deep);
  color: #fff;
  overflow: clip;
  isolation: isolate;
}
.waitlist-card .intro {
  align-self: start;
  position: sticky;
  top: 112px;
}
.waitlist-card h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: #fff;
}
.waitlist-card .intro > p {
  margin-top: 18px;
  color: #b9d2c6;
  font-size: 1.125rem;
}

.pilot-steps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 400px;
  counter-reset: pilot;
}
.pilot-steps li {
  counter-increment: pilot;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: center;
  color: #dbe9e1;
  font-weight: 600;
}
.pilot-steps li::before {
  content: counter(pilot);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(200, 241, 105, 0.14);
  box-shadow: inset 0 0 0 1.5px var(--lime);
  color: var(--lime);
  font: 800 0.9375rem var(--font-display);
}
.pilot-steps li:last-child::before {
  background: var(--lime);
  color: var(--green-deep);
}

.form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-l);
}
.field {
  display: grid;
  gap: 10px;
}
.field > label,
.field legend {
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0;
}
/* A fieldset's legend sits outside its grid, so the gap above doesn't apply. */
.field legend {
  margin-bottom: 10px;
}
.field .opt {
  font-weight: 500;
  color: var(--muted);
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.input:focus {
  outline: none;
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 122, 87, 0.15);
}
.input:user-invalid {
  border-color: #c2413b;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}
.choice input:hover + span {
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.choice input:checked + span {
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--green);
  color: var(--ink);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--lilac-dark);
  outline-offset: 2px;
}

/* On phones the pill rows wrap into a ragged block several rows high; an
   even grid of smaller chips takes about half the height. */
@media (max-width: 560px) {
  .form {
    gap: 14px;
  }
  .field legend {
    margin-bottom: 8px;
  }
  /* The "(optional…)" note gets its own line rather than wrapping mid-phrase. */
  .field .opt {
    display: block;
    font-size: 0.875rem;
  }
  .choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .choice span {
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
  }
}

.form .fine {
  margin-top: -4px;
}

.form-error {
  color: #b3261e;
  font-weight: 600;
}
.form-error[hidden] {
  display: none;
}

.success {
  display: none;
  text-align: left;
}
.form-wrap.is-done .form {
  display: none;
}
.form-wrap.is-done .success {
  display: grid;
}
.success {
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-l);
  animation: pop 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
}
.success .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--green-deep);
}
.success .check svg {
  width: 28px;
  height: 28px;
}
.success h3 {
  font-size: 1.625rem;
}
.success p {
  color: var(--ink-soft);
}
.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share a,
.share button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: 600 0.9375rem var(--font-body);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.share a:hover,
.share button:hover {
  background: var(--mint);
  color: var(--ink);
}
.share svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .waitlist-card {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }
  .waitlist-card .intro {
    position: static;
  }
}

/* ---------- Legal pages (privacy notice, imprint) ---------- */

.legal {
  padding-block: clamp(28px, 5vw, 56px) var(--section);
}
.legal .wrap {
  max-width: 840px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.legal-card {
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--radius-l);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}
.legal .updated {
  margin-top: 12px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.legal h2 {
  font-size: 1.375rem;
  margin: 40px 0 14px;
}
.legal h3 {
  font-size: 1.0625rem;
  margin: 24px 0 8px;
}
.legal-card > p:not(.updated) {
  margin-top: 12px;
  color: var(--ink-soft);
}
.legal-card > p:first-of-type:not(.updated) {
  margin-top: 28px;
  font-size: 1.125rem;
}
.legal ul {
  margin: 12px 0 0;
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}
.legal strong {
  color: var(--ink);
}
.legal dl {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 10px 24px;
  margin: 0;
}
.legal dt {
  font-weight: 700;
}
.legal dd {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.legal th,
.legal td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal td {
  color: var(--ink-soft);
}
.legal td:first-child {
  width: 40%;
  color: var(--ink);
  font-weight: 600;
}

/* Details the operator must fill in before launch */
.fill {
  padding: 0 4px;
  border-radius: 4px;
  background: #fff4d6;
  outline: 1px dashed #c99a2e;
  color: #7a5a12;
  font-weight: 600;
}

@media (max-width: 560px) {
  .legal dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .legal dd {
    margin-bottom: 12px;
  }
  .legal td:first-child {
    width: auto;
  }
}

/* ---------- Features ---------- */

.feat-hero {
  padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px);
  text-align: center;
}
.feat-hero .wrap {
  max-width: 920px;
}
.feat-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  letter-spacing: -0.025em;
}
.feat-hero .accent {
  color: var(--green);
}
.feat-lead {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.feat-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.feat-list {
  padding-top: 0;
}

/* Feature icon: on the cards and the highlight tiles. */
.feat-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--green-dark);
}
.feat-icon svg {
  width: 26px;
  height: 26px;
}
.pill-feature {
  padding-left: 6px;
}
.pill-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.pill-icon svg {
  width: 17px;
  height: 17px;
}

.feat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.feat-card:hover {
  color: var(--ink);
  border-color: var(--mint);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feat-card h2,
.feat-card h3 {
  font-size: 1.375rem;
}
.feat-card p {
  margin-top: 10px;
  color: var(--ink-soft);
}
.feat-explore {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--green);
}

.feat-label {
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}
.feat-showcase {
  padding-top: 0;
}
.feat-visual {
  max-width: 620px;
  margin-inline: auto;
}
.feat-highlights {
  padding-top: 0;
}
.feat-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.feat-tile {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.feat-tile h2 {
  font-size: 1.25rem;
}
.feat-tile p {
  margin-top: 10px;
  color: var(--ink-soft);
}
.section-head .feat-label {
  margin-top: 0;
  font-size: 0.8125rem;
  color: var(--green);
}
.steps.feat-steps {
  grid-template-columns: repeat(4, 1fr);
}
.feat-answer {
  max-width: 820px;
}
.feat-answer h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.feat-answer > p:not(.feat-label) {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.feat-answer > .feat-answer-more {
  font-weight: 700;
}
.feat-answer-more a {
  text-decoration: none;
}
/* Spotlights: text beside an illustration, alternating sides. */
.feat-spot-section {
  padding-block: clamp(48px, 7vw, 88px);
}
.feat-spot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.feat-spot.is-flipped .feat-spot-text {
  order: 2;
}
.feat-spot .feat-visual {
  width: 100%;
  margin: 0;
}
.feat-spot-text h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
}
.feat-spot-text > p:not(.feat-label) {
  margin-top: 16px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.feat-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feat-points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.feat-points svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}
/* Badge catalog: groups of cards, each with its tiers or when it's earned. */
.feat-catalog {
  padding-top: 0;
}
.feat-catalog-group + .feat-catalog-group {
  margin-top: clamp(40px, 6vw, 64px);
}
.feat-catalog-group > h3 {
  font-size: 1.5rem;
}
.feat-catalog-group > p {
  max-width: 640px;
  margin-top: 8px;
  color: var(--ink-soft);
}
/* Four badges to a row, two on narrow screens. */
.feat-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 720px) {
  .feat-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Centered on larger screens, above the full-width rows of badges. */
@media (min-width: 721px) {
  .feat-catalog .section-head,
  .feat-catalog-group > p {
    margin-inline: auto;
  }
  .feat-catalog .section-head,
  .feat-catalog-group > h3,
  .feat-catalog-group > p {
    text-align: center;
  }
  .feat-catalog .feat-tiers {
    justify-content: center;
  }
}
/* A levelling badge's tiers, left to right, ending in the ones not revealed yet. */
.feat-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.feat-tiers li {
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.feat-tiers .viz-medal {
  width: 48px;
  height: 48px;
}
.feat-tiers .viz-medal svg {
  width: 22px;
  height: 22px;
}
.feat-tiers .is-mystery {
  color: var(--muted);
}
.feat-tiers .is-mystery .viz-medal {
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--line);
  color: var(--muted);
}
.feat-catalog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 22px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  text-align: center;
}
.feat-catalog-card .viz-medal {
  margin-bottom: 16px;
}
.feat-catalog-card.is-secret .viz-medal {
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--lime);
  color: var(--lime);
}
/* A badge for an event not revealed yet: an empty, dashed slot. */
.feat-catalog-card.is-mystery {
  background: transparent;
  box-shadow: none;
  outline: 2px dashed var(--line);
  outline-offset: -2px;
}
.feat-catalog-card.is-mystery .viz-medal {
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--line);
  color: var(--muted);
}
.feat-catalog-card h4 {
  font-size: 1.1875rem;
}
.feat-catalog-card > p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.feat-more-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: none;
}
.feat-more-head a {
  font-weight: 700;
  text-decoration: none;
}

/* Sketched feature illustrations (components/visuals/). */
.viz-panel {
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--radius-l);
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 1px var(--mint);
}
.viz {
  display: grid;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.viz-community {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.viz-avatars {
  display: flex;
}
.viz-avatars span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-deep);
}
.viz-avatars span:first-child {
  margin-left: 0;
}
.viz-avatars span:nth-child(2) {
  background: #e6e1ff;
}
.viz-avatars span:nth-child(3) {
  background: #dceefb;
}
.viz-community-text {
  display: grid;
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted);
}
.viz-community-text strong {
  font-size: 1rem;
  color: var(--ink);
}
.viz-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.viz-lock svg {
  width: 14px;
  height: 14px;
}
.viz-badge {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}
.viz-medal {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 4px var(--mint);
}
.viz-medal svg {
  width: 26px;
  height: 26px;
}
.viz-medal {
  position: relative;
}
/* Secret shop badges: for the right combination of shops, not revealed. */
.viz-badge.is-secret .viz-medal {
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--lime);
  color: var(--lime);
}
/* Levelling badges move up from the green entry level through the metals. */
.viz-medal.is-bronze {
  background: linear-gradient(145deg, #d39a6a, #9a5b31);
  box-shadow: 0 0 0 4px #f3e0cf;
}
.viz-medal.is-silver {
  background: linear-gradient(145deg, #dfe4e8, #8d979f);
  box-shadow: 0 0 0 4px #eef1f3;
  color: #2f3b42;
}
.viz-medal.is-gold {
  background: linear-gradient(145deg, #f5d66a, #c38f17);
  box-shadow: 0 0 0 4px #fbf0c6;
  color: #5a3c00;
}
/* Example badges drifting left to right. The list is rendered twice and the
   track moves by half its width, so the loop is seamless; each badge carries
   its own right margin so both halves are exactly the same width. */
.viz-carousel {
  overflow: hidden;
  padding-block: 8px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.viz-carousel-track {
  display: flex;
  width: max-content;
  /* The same speed whatever the number of badges. */
  animation: viz-marquee calc(var(--count) * 4.5s) linear infinite;
}
.viz-carousel:hover .viz-carousel-track {
  animation-play-state: paused;
}
.viz-carousel .viz-badge {
  flex: none;
  width: 128px;
  margin-right: 12px;
}
.feat-visual.is-wide {
  max-width: none;
}
.viz-carousel .viz-badge.is-mystery {
  background: transparent;
  box-shadow: none;
  outline: 2px dashed var(--line);
  outline-offset: -2px;
  color: var(--muted);
}
.viz-carousel .is-mystery .viz-medal {
  background: var(--cream);
  box-shadow: 0 0 0 4px var(--line);
  color: var(--muted);
}
.viz-carousel .viz-medal {
  width: 64px;
  height: 64px;
}
@keyframes viz-marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.viz-community-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.viz-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mint);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark);
}

/* App-like cards: admin requests, the feed and the privacy setting. */
.viz-card {
  gap: 0;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-s);
}
.viz-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.viz-card-head strong {
  font-size: 1rem;
  color: var(--ink);
}
.viz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.viz-row + .viz-row {
  border-top: 1px solid var(--line);
}
.viz-row.is-done {
  border-radius: var(--radius-s);
  background: var(--mint-soft);
}
.viz-avatar {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--green-deep);
}
.viz-row:nth-child(3) .viz-avatar {
  background: var(--lilac);
}
.viz-row:nth-child(4) .viz-avatar {
  background: var(--sky);
}
.viz-row:nth-child(5) .viz-avatar {
  background: var(--lime-soft);
}
.viz-avatar-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 2px var(--paper);
}
.viz-avatar-icon svg {
  width: 12px;
  height: 12px;
}
.viz-row-text {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.viz-row-text > strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.viz-event {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.viz-event strong {
  color: var(--ink);
}
.viz-actions {
  display: flex;
  gap: 6px;
}
.viz-btn {
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}
.viz-btn-primary {
  background: var(--green);
  box-shadow: none;
  color: #fff;
}
.viz-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green-dark);
}
.viz-status svg {
  width: 16px;
  height: 16px;
}
.viz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 12px;
  border-radius: var(--radius-s);
  box-shadow: inset 0 0 0 1px var(--line);
}
.viz-option.is-on {
  background: var(--mint-soft);
  box-shadow: inset 0 0 0 2px var(--green);
}
.viz-option-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink-soft);
}
.viz-option.is-on .viz-option-icon {
  background: var(--mint);
  color: var(--green-dark);
}
.viz-option-icon svg {
  width: 20px;
  height: 20px;
}
.viz-radio {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
}
.viz-option.is-on .viz-radio {
  box-shadow: inset 0 0 0 6px var(--green);
}
.viz-field {
  display: grid;
  grid-template-columns: 32px minmax(88px, 0.55fr) 1fr;
  align-items: center;
  gap: 4px 12px;
  padding: 12px;
}
.viz-field + .viz-field {
  border-top: 1px solid var(--line);
}
.viz-field-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--green);
}
.viz-field-icon svg {
  width: 18px;
  height: 18px;
}
.viz-field-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.viz-field-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.viz-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.8125rem;
}
.viz-seg span {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
}
.viz-seg .is-on {
  background: var(--paper);
  box-shadow: var(--shadow-s);
  color: var(--green-dark);
}
.viz-code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
/* Per-item controls get their own column, so prices line up beside them. */
.viz-request {
  --controls: 54px;
  padding: 12px;
}
.viz-request-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: calc(var(--controls) + 12px);
  font-size: 0.9375rem;
}
.viz-amount {
  margin-left: auto;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.viz-items {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 52px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.viz-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto var(--controls);
  align-items: center;
  gap: 12px;
}
.viz-item-price {
  white-space: nowrap;
}
.viz-item-controls {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.viz-icon-btn {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.viz-icon-btn svg {
  width: 14px;
  height: 14px;
}
.viz-icon-btn.is-set {
  background: var(--green);
  box-shadow: none;
  color: #fff;
}
.viz-icon-btn-decline.is-set {
  background: var(--red);
}
.viz-request-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.viz-ledger-end {
  display: grid;
  justify-items: end;
  gap: 6px;
}
.viz-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}
.viz-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.viz-chip.is-on {
  background: var(--mint);
  box-shadow: none;
  color: var(--green-dark);
}
.viz-chip svg {
  width: 12px;
  height: 12px;
}
.viz-chip-action {
  box-shadow: inset 0 0 0 1px var(--muted);
  color: var(--ink-soft);
}
.viz-btn.is-waiting {
  opacity: 0.45;
}
.viz-card-note {
  margin: 0;
  padding: 10px 12px 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.viz-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 4px;
  padding: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.viz-search {
  display: flex;
  flex: 1;
  align-self: center;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  max-width: 280px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.viz-search svg {
  width: 16px;
  height: 16px;
}
.viz-row-text .viz-chip {
  justify-self: start;
  margin-top: 4px;
}
.viz-rank {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.viz-card-head + .viz-row .viz-rank {
  background: var(--lime);
  color: var(--green-deep);
}
.viz-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}
.viz-profile .viz-avatar {
  width: 56px;
  height: 56px;
  font-size: 1.25rem;
}
/* Always three columns, so long names wrap or break inside a badge. */
.viz-profile-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
}
.viz-profile-badges .viz-badge {
  gap: 6px;
  padding: 14px 6px;
  hyphens: auto;
  overflow-wrap: anywhere;
  background: var(--mint-soft);
  box-shadow: none;
  font-size: 0.8125rem;
}
.viz-profile-badges .viz-medal {
  width: 60px;
  height: 60px;
}

/* Order stages: open, locked, ordered. */
.viz-stages {
  display: flex;
  flex: 1;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.viz-stages li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
}
.viz-stages li:last-child {
  flex: none;
}
.viz-stages li:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.viz-stages li.is-done::after {
  background: var(--green);
}
.viz-stages .is-done,
.viz-stages .is-current {
  color: var(--ink);
}
.viz-stage-dot {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line);
}
.viz-stages .is-done .viz-stage-dot {
  background: var(--green);
  box-shadow: none;
  color: #fff;
}
.viz-stages .is-current .viz-stage-dot {
  box-shadow: inset 0 0 0 6px var(--green);
}
.viz-stage-dot svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .feat-spot {
    grid-template-columns: 1fr;
  }
  .feat-spot.is-flipped .feat-spot-text {
    order: 0;
  }
}
@media (max-width: 1080px) {
  .steps.feat-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .feat-tiles {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .steps.feat-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .viz-lock,
  .viz-actions .viz-btn:not(.viz-btn-primary) {
    display: none;
  }
  .viz-field {
    grid-template-columns: 32px 1fr;
  }
  .viz-field-icon {
    grid-row: span 2;
  }
  .viz-row > .viz-field-icon {
    display: none;
  }
  .viz-items {
    margin-left: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 0.45);
  font-size: 0.875rem;
  color: var(--muted);
}
/* Five tracks: the brand takes two, link columns one each, Legal the last. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}
.footer-brand {
  grid-column: span 2;
}
.footer-brand p {
  max-width: 20rem;
  margin-top: 16px;
}
.footer-legal {
  grid-column: 5;
}
.footer-heading {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--ink);
}
.footer-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: grid;
  gap: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.footer-bottom .disclaimer {
  max-width: 760px;
  font-size: 0.8125rem;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand,
  .footer-legal {
    grid-column: auto;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  /* The badge carousel stands still: scroll it by hand instead. */
  .viz-carousel {
    overflow-x: auto;
    mask-image: none;
  }
}

/* ---------- Analytics consent (only rendered when a GA ID is set) ---------- */

.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-link-btn:hover {
  color: var(--ink);
}
.footer-link-btn[hidden] {
  display: none;
}

.consent {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 16px;
  max-width: 768px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-l);
  font-size: 0.9375rem;
  animation: consent-in 0.3s ease-out;
}
.consent[hidden] {
  display: none;
}
@keyframes consent-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.consent-title {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.consent-text {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.consent-text a {
  color: inherit;
  text-underline-offset: 4px;
}
.consent-text a:hover {
  color: var(--ink);
}
.consent-details {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--cream);
}
.consent-details[hidden] {
  display: none;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.consent-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}
.consent-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.consent-actions [hidden] {
  display: none;
}
@media (max-width: 560px) {
  .consent-actions {
    flex-direction: column-reverse;
  }
}

.btn-text {
  --bg: transparent;
  --fg: var(--ink);
}
.btn-text:hover {
  color: var(--ink);
  background: var(--line);
  box-shadow: none;
  transform: none;
}

/* A checkbox drawn as an on/off switch. */
.switch {
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: var(--line);
  appearance: none;
  cursor: pointer;
  transition: background 0.15s;
}
.switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.switch:checked {
  background: var(--green);
}
.switch:checked::before {
  transform: translateX(18px);
}
.switch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.switch:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
