/* ==========================================================================
   CleanApp marketing site. Shared stylesheet.
   Tokens follow docs/BRAND.md. Every colour and spacing value is a token.
   Mobile first. Breakpoints: 600px, 768px, 1024px.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #000000;
  --ink-2: #545454;
  --ink-3: #8A8A8A;
  --ink-hint: #6E6E6E;
  --ink-inverse: #FFFFFF;
  --ink-inverse-2: #B5B5B5;
  --line: #E4E4E4;
  --line-strong: #D8D8D8;
  --bg: #FFFFFF;
  --bg-subtle: #F8F8F8;
  --bg-muted: #F1F1F1;
  --lime: #CDDC39;
  --lime-text: #5C650B;
  --lime-soft: #EDF2BE;
  --lime-faint: #F8FAE7;
  --success: #0E8345;
  --warning: #B25E09;
  --danger: #D6231F;
  --info: #276EF1;
  --info-halo: rgba(39, 110, 241, 0.16);
  --dark: #141414;
  --dark-2: #1F1F1F;
  --dark-line: #2E2E2E;
  --ink-hover: #262626;

  /* Spacing, 8px rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 40px;
  --s-8: 48px;
  --s-9: 64px;
  --s-10: 80px;
  --s-11: 96px;
  --s-12: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Type */
  --font-ui: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Montserrat", var(--font-ui);
  --font-brand: "Montserrat", var(--font-ui);
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --text-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-h2: clamp(2rem, 1.35rem + 2.2vw, 3.25rem);
  --text-h1: clamp(2.25rem, 1.4rem + 3.5vw, 4.5rem);
  --text-display: clamp(2.75rem, 1.2rem + 6.4vw, 6.5rem);
  --text-price: clamp(3rem, 1.5rem + 6vw, 7rem);
  --leading-tight: 1.05;
  --leading-snug: 1.3;
  --leading-body: 1.6;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --grid-gap: clamp(16px, 2vw, 24px);
  --header-h: 72px;
  --control-h: 56px;
  --section-y: clamp(64px, 8vw, 128px);
  --measure: 64ch;

  /* Depth */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 8px 20px rgba(0, 0, 0, 0.14);
  --shadow-sheet: 0 -4px 24px rgba(0, 0, 0, 0.12);
  --shadow-phone: 0 24px 48px rgba(0, 0, 0, 0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1024px) {
  :root {
    --header-h: 80px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

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

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
}

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

.on-dark :focus-visible,
.on-dark:focus-visible {
  outline-color: var(--ink-inverse);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-4);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--ink-inverse);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: var(--s-4);
}

/* Weight helpers for the bold word plus regular phrase headline style */
.w-bold {
  font-weight: 700;
}

.w-light {
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.grid > * {
  grid-column: 1 / -1;
  min-width: 0;
}

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

.section--subtle {
  background: var(--bg-subtle);
}

.section--lined {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head--centre {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-text);
}

.on-dark .eyebrow {
  color: var(--lime);
}

.section__title {
  font-size: var(--text-h2);
}

.section__lead {
  margin-top: var(--s-4);
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.on-dark .section__lead {
  color: var(--ink-inverse-2);
}

.prose {
  max-width: var(--measure);
  color: var(--ink-2);
}

.prose p + p {
  margin-top: var(--s-4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--control-h);
  padding: 0 var(--s-5);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--ink-inverse);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:hover {
  background: var(--ink-hover);
  border-color: var(--ink-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn--secondary {
  background: var(--bg);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink);
}

.btn--inverse {
  background: var(--ink-inverse);
  border-color: var(--ink-inverse);
  color: var(--ink);
}

.btn--inverse:hover {
  background: var(--bg-muted);
  border-color: var(--bg-muted);
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.logo__mark path {
  stroke-width: 5;
}

.logo__word {
  display: inline-block;
  margin-right: -0.26em;
  font-family: var(--font-brand);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo__bold {
  font-weight: 700;
}

.logo__light {
  font-weight: 300;
}

.logo--inverse {
  color: var(--ink-inverse);
}

.logo--large .logo__mark {
  width: 36px;
  height: 36px;
}

.logo--large .logo__word {
  font-size: 18px;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav {
  display: none;
}

.nav.is-open {
  position: fixed;
  top: calc(var(--header-h) + 1px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: var(--s-4) var(--gutter) var(--s-8);
  overflow-y: auto;
  background: var(--bg);
}

.nav__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
}

.nav__list li {
  border-bottom: 1px solid var(--line);
}

.nav__link {
  display: block;
  padding: var(--s-4) 0;
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--lime-text);
}

.nav .btn {
  width: 100%;
  margin-top: var(--s-6);
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    flex: 1;
    align-items: center;
    min-width: 0;
  }

  .nav__list {
    flex-direction: row;
    gap: var(--s-1);
    margin-left: var(--s-3);
  }

  .nav__list li {
    border: 0;
  }

  .nav__link {
    padding: 10px 12px;
    border-radius: var(--r-sm);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
    transition: background-color 0.2s var(--ease);
  }

  .nav__link:hover {
    background: var(--bg-subtle);
  }

  .nav__link[aria-current="page"] {
    color: var(--ink);
    background: var(--bg-subtle);
  }

  .nav .btn {
    width: auto;
    margin: 0 0 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Store badges (inline SVG, drawn in the page)
   -------------------------------------------------------------------------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.badge {
  display: inline-block;
  border-radius: 9px;
  line-height: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.badge:hover {
  opacity: 0.84;
}

.badge:active {
  transform: translateY(1px);
}

.badge svg {
  width: auto;
  height: 48px;
}

@media (max-width: 399px) {
  .badge svg {
    height: 44px;
  }
}

.badge text {
  font-family: var(--font-ui);
  fill: var(--ink-inverse);
}

.badge__small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.badge__big {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 96px) clamp(48px, 6vw, 96px);
}

.hero__grid {
  align-items: center;
  row-gap: clamp(40px, 6vw, 64px);
}

.hero__title {
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__title .w-bold {
  display: block;
}

.hero__title .w-light {
  display: block;
  letter-spacing: -0.015em;
}

.hero__sub {
  max-width: 30ch;
  margin-top: var(--s-5);
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.hero__actions {
  margin-top: var(--s-6);
}

.hero__note {
  margin-top: var(--s-4);
  font-size: var(--text-sm);
  color: var(--ink-hint);
}

@media (min-width: 1024px) {
  .hero__copy {
    grid-column: 1 / span 6;
  }

  .hero__visual {
    grid-column: 7 / span 6;
  }
}

/* --------------------------------------------------------------------------
   Phone mockups (CSS only). The stage is a container, everything inside
   is sized in em so the whole illustration scales with its width.
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 10 / 11;
  container-type: inline-size;
  font-size: 12px;
  user-select: none;
}

/* Container query units resolve against an ancestor container, so the
   size is set on the stage's children rather than on the stage itself. */
@supports (font-size: 1cqi) {
  .stage > * {
    font-size: 2.3cqi;
  }
}

.stage__map {
  position: absolute;
  inset: -6% -14%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 3em 3em;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
}

.stage__map::before,
.stage__map::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 140%;
  height: 0.9em;
  background: var(--bg-muted);
}

.stage__map::before {
  top: 38%;
  transform: rotate(-32deg);
}

.stage__map::after {
  top: 62%;
  transform: rotate(52deg);
}

.stage__band {
  position: absolute;
  top: 47%;
  left: -18%;
  width: 136%;
  height: 5.5em;
  background: var(--lime);
  transform: rotate(-24deg);
}

.phone {
  position: absolute;
  width: 47%;
  aspect-ratio: 9 / 19.2;
  padding: 0.55em;
  border-radius: 3.2em;
  background: var(--ink);
  box-shadow: var(--shadow-phone);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  background: var(--ink);
  transform: translateX(-50%);
}

/* iPhone: Dynamic Island, uniform bezel, softer corners. */

.phone--ios {
  border-radius: 3.4em;
  padding: 0.5em;
}

.phone--ios .phone__screen {
  inset: 0.5em;
  border-radius: 2.95em;
}

.phone--ios::before {
  top: 1em;
  width: 30%;
  height: 1.4em;
  border-radius: var(--r-full);
}

.phone--ios::after {
  content: "";
  position: absolute;
  top: 28%;
  right: -0.16em;
  width: 0.16em;
  height: 4.6em;
  border-radius: 0 0.16em 0.16em 0;
  background: #3A3A3A;
}

/* Android: centred punch hole, tighter bezel, squarer corners. */

.phone--android {
  border-radius: 2.5em;
  padding: 0.36em;
}

.phone--android .phone__screen {
  inset: 0.36em;
  border-radius: 2.2em;
}

.phone--android::before {
  top: 0.95em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
}

.phone--android::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -0.15em;
  width: 0.15em;
  height: 2.6em;
  border-radius: 0 0.15em 0.15em 0;
  background: #3A3A3A;
  box-shadow: 0 3.6em 0 #3A3A3A;
}

.phone--back {
  top: 2%;
  left: 5%;
  z-index: 1;
  transform: rotate(-4deg);
}

.phone--front {
  top: 8%;
  right: 5%;
  z-index: 2;
}

.stage--single .phone {
  top: 6%;
  left: 50%;
  width: 50%;
  transform: translateX(-50%);
}

.phone__screen {
  position: absolute;
  inset: 0.55em;
  overflow: hidden;
  border-radius: 2.7em;
  background: var(--bg);
}

/* Customer app screen */

.app-customer {
  background: var(--bg-subtle);
}

.app-customer .map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #F0F0EB;
}

.map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* The brand pill and map control the customer app actually shows. */

.map__brand {
  position: absolute;
  top: 3em;
  left: 50%;
  display: flex;
  gap: 0.4em;
  align-items: center;
  padding: 0.4em 0.8em;
  border-radius: var(--r-full);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transform: translateX(-50%);
  font-size: 0.72em;
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
}

.map__brand svg {
  width: 1.5em;
  height: 1.5em;
  color: var(--ink);
}

.map__brand b {
  font-weight: 800;
}

.map__layers {
  position: absolute;
  top: 3em;
  right: 0.9em;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.map__layers svg {
  width: 1.2em;
  height: 1.2em;
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  border: 0.22em solid var(--bg);
  background: var(--ink);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-ui);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ink-inverse);
  letter-spacing: 0;
}

.pin svg {
  width: 1.1em;
  height: 1.1em;
}

.pin--1 {
  top: 22%;
  left: 16%;
}

.pin--2 {
  top: 17%;
  left: 64%;
}

.pin--3 {
  top: 40%;
  left: 72%;
}

.pin--4 {
  top: 45%;
  left: 24%;
}

.me {
  position: absolute;
  top: 32%;
  left: 47%;
  width: 1.3em;
  height: 1.3em;
  border: 0.22em solid var(--bg);
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 0.9em var(--info-halo), 0 1px 3px rgba(0, 0, 0, 0.25);
}

.sheet {
  position: absolute;
  right: 0;
  bottom: 4.3em;
  left: 0;
  padding: 1em 1.3em 1.1em;
  border-radius: 2em 2em 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-sheet);
}

.sheet__handle {
  width: 3em;
  height: 0.35em;
  margin: 0 auto 1em;
  border-radius: var(--r-full);
  background: var(--line-strong);
}

.sheet__title {
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sheet__addr {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 0.6em;
  font-size: 0.85em;
  font-weight: 400;
  color: var(--ink-2);
}

.sheet__addr svg {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.sheet__actions {
  display: grid;
  gap: 0.6em;
  margin-top: 1.1em;
}

.mini-btn {
  display: grid;
  place-items: center;
  height: 3.2em;
  border-radius: 0.8em;
  font-size: 0.95em;
  font-weight: 700;
  line-height: 1;
}

.mini-btn--dark {
  background: var(--ink);
  color: var(--ink-inverse);
}

.mini-btn--outline {
  border: 0.1em solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.55em 0 1.1em;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.tabbar__item {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  align-items: center;
  font-size: 0.6em;
  color: var(--ink-3);
}

.tabbar__item svg {
  width: 1.7em;
  height: 1.7em;
}

.tabbar__item.is-active {
  font-weight: 700;
  color: var(--ink);
}

.job--muted {
  opacity: 0.62;
}

/* Cleaner app screen */

.app-cleaner {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.app-cleaner__header {
  padding: 3.2em 1.3em 1.4em;
  background: var(--dark);
  color: var(--ink-inverse);
}

.app-cleaner__who {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.avatar {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  flex: none;
  border-radius: 50%;
  background: var(--dark-line);
  font-weight: 700;
}

.app-cleaner__name {
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.2;
}

.app-cleaner__rating {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.8em;
  font-weight: 400;
  color: var(--ink-inverse-2);
}

.app-cleaner__rating svg {
  width: 1em;
  height: 1em;
  color: var(--lime);
}

.toggle {
  position: relative;
  width: 3.6em;
  height: 2em;
  margin-left: auto;
  flex: none;
  border-radius: var(--r-full);
  background: var(--lime);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 0.25em;
  right: 0.25em;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--bg);
}

.app-cleaner__earn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
  margin-top: 1.4em;
}

.app-cleaner__amount {
  font-size: 1.9em;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lime);
}

.app-cleaner__period {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--ink-inverse-2);
}

.app-cleaner__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 1.1em 1.3em;
  border-bottom: 1px solid var(--line);
  font-size: 0.95em;
  font-weight: 700;
}

.app-cleaner__row svg {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  color: var(--ink-3);
}

.job {
  margin: 1.1em 1.3em;
  padding: 1em 1.1em;
  border: 1px solid var(--line);
  border-radius: 1em;
}

.job__label {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime-text);
}

.job__label::before {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--lime);
}

.job__title {
  margin-top: 0.5em;
  font-size: 0.95em;
  font-weight: 700;
}

.job__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3em;
  font-size: 0.8em;
  color: var(--ink-2);
}

.job__meta strong {
  color: var(--ink);
}

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

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--grid-gap);
  padding: var(--s-5) 0;
  list-style: none;
}

@media (min-width: 768px) {
  .trust__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: var(--s-6) 0;
  }
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--text-sm);
  font-weight: 700;
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-subtle);
}

.trust__icon svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--s-6) var(--grid-gap);
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .steps--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  padding-top: var(--s-5);
  border-top: 2px solid var(--ink);
}

.step__num {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lime-text);
}

.step__title {
  margin-top: var(--s-3);
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--leading-snug);
}

.step__text {
  margin-top: var(--s-2);
  color: var(--ink-2);
}

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

.features {
  display: grid;
  gap: var(--s-8) var(--grid-gap);
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature__icon {
  width: 64px;
  height: 64px;
}

.feature__title {
  margin-top: var(--s-5);
  font-size: 1.375rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-transform: uppercase;
}

.feature__text {
  max-width: 36ch;
  margin-top: var(--s-3);
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
}

.service--dark {
  background: var(--dark);
  color: var(--ink-inverse);
}

.service--light {
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.service__icon {
  width: 48px;
  height: 48px;
}

.service__title {
  margin-top: auto;
  padding-top: var(--s-8);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  text-transform: uppercase;
}

.service__title sup {
  margin-left: 2px;
  font-size: 0.34em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0;
  vertical-align: super;
}

.service__sub {
  margin-top: var(--s-2);
  font-size: var(--text-md);
  font-weight: 700;
}

.service--dark .service__sub {
  color: var(--lime);
}

.service__text {
  max-width: 40ch;
  margin-top: var(--s-3);
  color: var(--ink-2);
}

.service--dark .service__text {
  color: var(--ink-inverse-2);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pricing {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing__grid {
  align-items: end;
  row-gap: var(--s-6);
}

.pricing__price {
  font-size: var(--text-price);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing__amount {
  font-weight: 700;
}

.pricing__list {
  display: grid;
  gap: var(--s-3);
  list-style: none;
  padding: 0;
  font-size: var(--text-md);
  font-weight: 400;
}

.pricing__list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.pricing__list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--lime-text) inset;
}

@media (min-width: 1024px) {
  .pricing__price {
    grid-column: 1 / span 7;
  }

  .pricing__list {
    grid-column: 8 / span 5;
    padding-bottom: 0.3em;
  }
}

/* --------------------------------------------------------------------------
   Dark band (for cleaners)
   -------------------------------------------------------------------------- */

.band {
  padding-block: var(--section-y);
  background: var(--dark);
  color: var(--ink-inverse);
}

.band__grid {
  row-gap: var(--s-7);
}

.band__title {
  font-size: var(--text-h2);
}

.band__lead {
  max-width: 40ch;
  margin-top: var(--s-4);
  font-size: var(--text-lg);
  color: var(--ink-inverse-2);
}

.band__actions {
  margin-top: var(--s-6);
}

.checklist {
  display: grid;
  gap: var(--s-5);
  list-style: none;
  padding: 0;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.5;
}

.checklist svg {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 2px;
  color: var(--lime);
}

@media (min-width: 1024px) {
  .band__copy {
    grid-column: 1 / span 6;
  }

  .band__list {
    grid-column: 8 / span 5;
    align-self: center;
  }
}

/* --------------------------------------------------------------------------
   Download
   -------------------------------------------------------------------------- */

.apps {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.app-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.app-card__icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.app-card__name {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-card__for {
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.app-card__text {
  color: var(--ink-2);
}

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

.footer {
  padding-block: var(--s-9) var(--s-6);
  background: var(--ink);
  color: var(--ink-inverse);
}

.footer__top {
  row-gap: var(--s-8);
}

.footer__tagline {
  max-width: 28ch;
  margin-top: var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-inverse-2);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-6) var(--grid-gap);
}

@media (min-width: 768px) {
  .footer__brand {
    grid-column: 1 / span 4;
  }

  .footer__cols {
    grid-column: 6 / span 7;
  }
}

.footer__heading {
  margin-bottom: var(--s-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-inverse-2);
}

.footer__list {
  display: grid;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  font-size: var(--text-sm);
}

.footer__list a {
  color: var(--ink-inverse);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__list a:hover {
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--dark-line);
  font-size: var(--text-sm);
  color: var(--ink-inverse-2);
}

.social {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: 50%;
  color: var(--ink-inverse);
  transition: border-color 0.2s var(--ease);
}

.social a:hover {
  border-color: var(--ink-inverse);
}

.social svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   Cleaners page
   -------------------------------------------------------------------------- */

.stat {
  font-size: var(--text-h1);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat strong {
  font-weight: 700;
}

.earn__grid {
  row-gap: var(--s-7);
}

.earn__stat,
.earn__prose {
  margin-top: var(--s-6);
}

@media (min-width: 1024px) {
  .earn__copy {
    grid-column: 1 / span 6;
  }

  .earn__example {
    grid-column: 8 / span 5;
  }
}

.payout {
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.payout__title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.payout table {
  width: 100%;
  margin-top: var(--s-4);
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.payout th,
.payout td {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.payout th {
  font-weight: 700;
  color: var(--ink-2);
}

.payout th:last-child,
.payout td:last-child {
  text-align: right;
}

.payout tfoot td {
  border-bottom: 0;
  padding-top: var(--s-4);
  font-weight: 700;
  font-size: var(--text-base);
}

.payout tfoot td:last-child {
  color: var(--lime-text);
}

.payout__note {
  margin-top: var(--s-4);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.reqs {
  display: grid;
  gap: var(--grid-gap);
  list-style: none;
  padding: 0;
}

@media (min-width: 600px) {
  .reqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .reqs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.req {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.req__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--ink);
}

.req__icon svg {
  width: 22px;
  height: 22px;
}

.req__title {
  margin-top: var(--s-4);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.req__text {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  font-size: var(--text-md);
  font-weight: 700;
  line-height: var(--leading-snug);
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary svg {
  width: 24px;
  height: 24px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.faq__item[open] summary svg {
  transform: rotate(45deg);
}

.faq__body {
  max-width: 64ch;
  padding-bottom: var(--s-5);
  color: var(--ink-2);
}

.faq__body p + p {
  margin-top: var(--s-3);
}

.cta {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}

@media (min-width: 768px) {
  .cta {
    grid-template-columns: auto 1fr;
    gap: var(--s-8);
  }
}

.cta__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.cta__title {
  font-size: var(--text-h2);
}

.cta__text {
  max-width: 44ch;
  margin-top: var(--s-3);
  color: var(--ink-inverse-2);
}

.cta .badges {
  margin-top: var(--s-6);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-head {
  padding-block: clamp(48px, 6vw, 96px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  font-size: var(--text-h1);
}

.legal-head__meta {
  margin-top: var(--s-4);
  font-size: var(--text-base);
  color: var(--ink-2);
}

.legal-head__intro {
  max-width: 64ch;
  margin-top: var(--s-4);
  font-size: var(--text-lg);
  color: var(--ink-2);
}

.legal {
  row-gap: var(--s-8);
  padding-block: var(--s-8) var(--section-y);
}

.toc {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-subtle);
}

.toc__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.toc ol {
  margin-top: var(--s-3);
  padding-left: 1.4em;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.toc li + li {
  margin-top: var(--s-2);
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.legal__body {
  max-width: 70ch;
}

.legal__body section + section {
  margin-top: var(--s-8);
}

.legal__body h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal__body h3 {
  margin-top: var(--s-5);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
}

.legal__body p,
.legal__body li {
  color: var(--ink-2);
}

.legal__body p,
.legal__body ul,
.legal__body ol {
  margin-top: var(--s-4);
}

.legal__body ul,
.legal__body ol {
  padding-left: 1.4em;
}

.legal__body li + li {
  margin-top: var(--s-2);
}

.legal__body table {
  width: 100%;
  margin-top: var(--s-4);
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.legal__body th,
.legal__body td {
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  color: var(--ink-2);
}

.legal__body th {
  font-weight: 700;
  color: var(--ink);
}

.legal__body .placeholder {
  font-weight: 700;
  color: var(--warning);
}

.legal__body address {
  margin-top: var(--s-4);
  font-style: normal;
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .legal__toc {
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--header-h) + var(--s-5));
    align-self: start;
    max-height: calc(100vh - var(--header-h) - var(--s-8));
    overflow-y: auto;
  }

  .legal__body {
    grid-column: 5 / span 8;
  }
}

/* --------------------------------------------------------------------------
   Reveal on scroll (progressive, only when JS is present)
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .header,
  .footer,
  .skip-link,
  .legal__toc {
    display: none;
  }

  .legal__body {
    max-width: none;
  }
}


/* A store that is not open yet: greyed out, not a link. */
.badge--soon {
  cursor: default;
}

.badge--soon:hover {
  opacity: 1;
}

.badge--soon:active {
  transform: none;
}

.badge--soon text {
  fill: var(--ink-hint);
}

/* --------------------------------------------------------------------------
   Help centre
   -------------------------------------------------------------------------- */

.help + .help {
  padding-top: 0;
}

.help__title {
  font-size: var(--text-h3);
}

.help__contact {
  max-width: 48rem;
  margin-top: var(--s-8);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  color: var(--ink-2);
}

.help__contact-title {
  margin-bottom: var(--s-2);
  font-family: var(--font-head);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--ink);
}

.help__contact .btn {
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   Email preferences
   -------------------------------------------------------------------------- */

.prefs {
  padding-block: clamp(32px, 6vw, 96px);
  background: var(--bg-muted);
}

.prefs__card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--r-lg);
  background: var(--bg);
}

.prefs__title {
  margin-bottom: var(--s-4);
  font-size: var(--text-h3);
}

.prefs__lead {
  margin-bottom: var(--s-5);
  color: var(--ink-2);
}

.prefs__note {
  margin-bottom: var(--s-5);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.prefs__list {
  margin: 0 0 var(--s-6);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.prefs__row {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.prefs__row[hidden] {
  display: none;
}

.prefs__label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.prefs__row--locked .prefs__label {
  cursor: default;
}

.prefs__name {
  font-weight: 700;
  color: var(--ink);
}

.prefs__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--ink-2);
}

.prefs__always {
  flex: none;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-full);
  background: var(--lime-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--lime-text);
}

/* The app's switch: grey and white when off, black with a lime knob when on. */
.switch {
  position: relative;
  flex: none;
  width: 52px;
  height: 32px;
  margin: 0;
  border-radius: var(--r-full);
  background: var(--line-strong);
  cursor: pointer;
  transition: background 0.18s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}

.switch:checked {
  background: var(--ink);
}

.switch:checked::after {
  transform: translateX(20px);
  background: var(--lime);
}

.switch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.prefs__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}

.prefs__link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}

.prefs__link:disabled,
.prefs__actions .btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.prefs__status {
  min-height: 1.6em;
  margin-top: var(--s-4);
  font-size: var(--text-sm);
}

.prefs__status--ok {
  color: var(--success);
}

.prefs__status--error {
  color: var(--danger);
}

.prefs__skeleton {
  display: grid;
  gap: var(--s-3);
}

.prefs__skeleton span {
  display: block;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-muted);
  animation: prefs-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes prefs-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .switch,
  .switch::after,
  .prefs__skeleton span {
    transition: none;
    animation: none;
  }
}
