/* NearlyNew: site styles. One file, no build step.
   Icons: Lucide (ISC, see /assets/LICENSE-Lucide-ISC.txt).
   Font: "NN Sans", our Latin + ₹ subset of IBM Plex Sans 3.005 (OFL 1.1, see
   /assets/fonts/LICENSE-NN-Sans-OFL.txt). Renamed because "Plex" is a Reserved Font Name. */

@font-face {
  font-family: "NN Sans";
  src: url("/assets/fonts/nn-sans-v1-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NN Sans";
  src: url("/assets/fonts/nn-sans-v1-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NN Sans";
  src: url("/assets/fonts/nn-sans-v1-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Headings (h1, h2 and the big titles): "NN Display", our Latin + ₹ subset of Montserrat at
   600 (OFL 1.1, see /assets/fonts/LICENSE-NN-Display-OFL.txt). A round, geometric face. */
@font-face {
  font-family: "NN Display";
  src: url("/assets/fonts/nn-display-v1-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Arial Bold, scaled to Montserrat SemiBold's widths and line metrics. */
@font-face {
  font-family: "NN Display fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600;
  size-adjust: 107.28%;
  ascent-override: 90.23%;
  descent-override: 23.4%;
  line-gap-override: 0%;
}

/* Metric-matched fallbacks, so the swap barely moves the layout. Widths are matched per
   weight (Arial Bold is much wider than Plex SemiBold). Arial covers macOS, iOS and Windows;
   Android has no Arial, so it gets Roboto. */
@font-face {
  font-family: "NN Sans fallback";
  src: local("Arial"), local("ArialMT");
  font-weight: 400 500;
  size-adjust: 101.17%;
  ascent-override: 101.32%;
  descent-override: 27.18%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "NN Sans fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 97.3%;
  ascent-override: 105.35%;
  descent-override: 28.26%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "NN Sans fallback Android";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 101.39%;
  ascent-override: 101.1%;
  descent-override: 27.12%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Colour: white page, cool neutral greys, near-black ink, one teal accent (the logo's). */
  --bg: #ffffff;
  --bg-sunk: #f4f5f7;
  --surface: #ffffff;
  --ink: #111418;
  --ink-2: #4b5563;
  --line: #e3e6ea;
  --line-strong: #7d8590;
  --brand: #0f766e;
  --brand-strong: #0b5e58;
  --brand-ink: #0b5e58;
  --brand-tint: #e6f2ef;
  --on-brand: #ffffff;
  --warm: #8a4b00;
  --warm-tint: #fcf1de;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --focus: #0f766e;

  /* The black bands (the same in both themes): the homepage, the results page's top, the
     footer. Colour comes only as light: mint, falling on what matters. */
  --mint: #9fe3d2;
  --mint-rgb: 159 227 210;
  --glow-rgb: 20 184 166; /* the light itself: saturated teal (mint is for text on black) */
  --night: #000000;
  --night-ink: #e9eeec;
  --night-ink-2: #a6adab;
  --night-line: rgb(255 255 255 / 0.12);

  --shadow-1: 0 1px 2px rgb(17 20 24 / 0.05), 0 4px 12px rgb(17 20 24 / 0.04);
  --shadow-2: 0 1px 2px rgb(17 20 24 / 0.06), 0 16px 40px -12px rgb(17 20 24 / 0.16);

  /* Type */
  --font: "NN Sans", "NN Sans fallback", "NN Sans fallback Android", system-ui, -apple-system,
    "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-display: "NN Display", "NN Display fallback", var(--font);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --text-xs: 0.8125rem;   /* 13 */
  --text-sm: 0.9375rem;   /* 15 */
  --text-md: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem); /* 16 to 17 */
  --text-lg: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);  /* 17 to 19 */
  --text-h3: 1.125rem;
  --text-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);   /* 26 to 38 */
  --text-h1: clamp(2.25rem, 1.65rem + 2.6vw, 3.5rem);     /* 36 to 56 */

  /* Space: 4px base */
  --s-1: 0.25rem;  --s-2: 0.5rem;  --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;   --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;     --s-10: 8rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);

  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-xl: 16px;
  --radius-card: 28px; /* the homepage's poster cards */

  --wrap: 72rem;
  --gutter: clamp(1rem, 0.6rem + 2.2vw, 2rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* entrances: quick start, long soft landing */
  --dur-1: 150ms;
  --dur-2: 220ms;
  --dur-3: 300ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Neutral (very slightly cool) darks; cards sit one step lighter than the page. */
    --bg: #0f1012;
    --bg-sunk: #16181b;
    --surface: #1b1d21;
    --ink: #eceef1;
    --ink-2: #a4abb4;
    --line: #2a2e34;
    --line-strong: #6c747f;
    /* Dark accent = the logo's mint, so both themes come from the mark. */
    --brand: #9fe3d2;
    --brand-strong: #c2f0e4;
    --brand-ink: #9fe3d2;
    --brand-tint: #13302b;
    --on-brand: #05201c;
    --warm: #f0b45e;
    --warm-tint: #33270f;
    --danger: #ff9a8b;
    --danger-tint: #3a1714;
    --focus: #9fe3d2;

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-2: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 56px -16px rgb(0 0 0 / 0.65);
  }
}

/* The homepage is black from top to bottom, in both themes (the visitor's light or dark setting
   still picks WhatsApp's theme inside the demo phones). Every other page follows the setting. */
:root:has(> body.home) { color-scheme: dark; }
.home {
  --bg: #000000;
  --bg-sunk: #0c0e0f;
  --surface: #0f1213;
  --surface-2: #171b1c;
  --ink: #f1f4f3;
  --ink-2: #a6adab;
  --line: rgb(255 255 255 / 0.1);
  --line-strong: rgb(255 255 255 / 0.4);
  --brand: #9fe3d2;
  --brand-strong: #c2f0e4;
  --brand-ink: #9fe3d2;
  --brand-tint: #102823;
  --on-brand: #05201c;
  --warm: #f0b45e;
  --warm-tint: #33270f;
  --danger: #ff9a8b;
  --danger-tint: #3a1714;
  --focus: #9fe3d2;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 56px -16px rgb(0 0 0 / 0.65);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, h2 { font-family: var(--font-display); letter-spacing: -0.02em; }

/* Only 400, 500 and 600 ship; keep bold text on the real SemiBold. */
b, strong { font-weight: 600; }

p, li, figcaption, summary { text-wrap: pretty; }
p { margin: 0; }

a {
  color: var(--brand-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

a, button, summary, select, input, label { touch-action: manipulation; }

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

svg { flex: none; }

.icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.sprite { display: none; }

/* Brand glyphs (WhatsApp, Telegram) are filled shapes, not strokes. */
.icon-brand { fill: currentColor; stroke: none; }

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

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-3);
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

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

[id] { scroll-margin-top: var(--s-5); }
main:focus { outline: none; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
/* Official logo mark: fixed colours (teal tile works on light and dark). */
.brand-mark {
  width: 30px;
  height: 30px;
}
.nw { white-space: nowrap; }
.brand-word b { font-weight: inherit; color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 52px;
  padding: 0 1.375rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.125rem; height: 1.125rem; }

.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }

/* The main action on the dark screens: mint, dark text. */
.btn-mint { background: var(--mint); color: #05201c; }
.btn-mint:hover { background: #c2f0e4; }
.btn-mint:focus-visible { outline-color: var(--mint); }

/* Second choice beside a primary button: the same size, outlined. */
.btn-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary .icon { color: var(--brand); }

.btn-quiet {
  min-height: 44px;
  padding: 0 1rem;
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
}
.btn-quiet:hover { border-color: var(--line-strong); }
.btn-quiet .icon { color: var(--brand); }

/* Square, icon only (the header's WhatsApp and Telegram): named by aria-label. */
.btn-icon { width: 44px; padding: 0; }

.btn[aria-disabled="true"] { cursor: progress; opacity: 0.8; }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-btn:hover { text-decoration-thickness: 2px; }

/* ---------- Header ----------
   Stays at the top; header.js slides it away while you scroll down (.is-away) and back when you
   scroll up, and adds a hairline once the page has scrolled (.is-solid). On the homepage it lies
   over the black hero, see-through with white text, until you scroll. Without the script it is
   simply part of the page there (absolute), so it never sits see-through over white. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  transition: transform var(--dur-3) var(--ease), background-color var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
}
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }
.site-header.is-away { transform: translateY(-100%); }
.home .site-header { position: absolute; inset: 0 0 auto; }
.home .site-header.is-live { position: fixed; }
.home .site-header:not(.is-solid) { background: transparent; }
.home .site-header:not(.is-solid) .brand { color: #ffffff; }
.home .site-header:not(.is-solid) .brand-word b { color: var(--mint); }
.home .site-header:not(.is-solid) .brand-mark { border-radius: 7px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.3); }
.home .site-header:not(.is-solid) .nav a { color: rgb(255 255 255 / 0.78); }
.home .site-header:not(.is-solid) .nav a:hover { color: #ffffff; }
.home .site-header:not(.is-solid) .btn-quiet {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}
.home .site-header:not(.is-solid) .btn-quiet:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.14); }
.home .site-header:not(.is-solid) .btn-quiet .icon { color: #ffffff; }
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 76px;
}
.nav { display: none; margin-left: auto; }
.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-6);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }
/* The header's buttons: Add to Chrome where the extension leads, then WhatsApp and Telegram
   as icons, everywhere. */
.header-cta { display: flex; gap: var(--s-2); margin-left: auto; }
@media (min-width: 880px) {
  .nav { display: block; }
  .nav ~ .header-cta { margin-left: var(--s-6); }
}

/* ---------- Hero ----------
   Search-first, on black (both themes), lit from above: a mint beam falls on the search box,
   the way a spotlight picks out one subject on a dark stage. The line above, the headline, one
   sentence, the search box (dark glass, mint button) and examples, then one card with the other
   ways to use it (the extension where it leads, WhatsApp and Telegram). The header (76px) lies
   over its top. overflow: clip keeps the light inside it. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: min(100svh, 56rem);
  padding-block: calc(76px + clamp(2.5rem, 1rem + 5vw, 5rem)) clamp(4rem, 2.5rem + 6vw, 7rem);
  overflow: clip;
  background: var(--night);
  color: #ffffff;
  text-align: center;
}
@media (max-width: 959px) { .hero { min-height: 0; } }
/* The beam: a narrow cone of mint from above the top edge, brightest where it starts, fading
   out by the search box. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6rem;
  left: 50%;
  width: min(90rem, 220vw);
  height: calc(100% + 6rem);
  translate: -50% 0;
  background:
    radial-gradient(30% 20% at 50% 2%, rgb(var(--glow-rgb) / 0.9), transparent 75%),
    conic-gradient(at 50% 0%, transparent 0deg 157deg, rgb(var(--glow-rgb) / 0.32) 169deg,
      rgb(var(--mint-rgb) / 0.42) 180deg, rgb(var(--glow-rgb) / 0.32) 191deg, transparent 203deg 360deg);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
  filter: blur(20px);
  pointer-events: none;
}
/* Where the beam lands: a pool of light around the search box, and a wide, low glow at the
   foot of the screen, as on a lit stage. */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 25% -10% -10%;
  background:
    radial-gradient(42% 36% at 50% 50%, rgb(var(--glow-rgb) / 0.3), transparent 72%),
    radial-gradient(60% 22% at 50% 100%, rgb(var(--glow-rgb) / 0.22), transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: calc(48rem + 2 * var(--gutter)); }

/* Plain line of context above the headline: no pill, no icon. */
.eyebrow {
  margin-bottom: var(--s-4);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
}
.hero .eyebrow { margin-bottom: var(--s-4); color: rgb(255 255 255 / 0.7); letter-spacing: 0.01em; }

.hero h1 {
  margin-inline: auto;
  color: #ffffff;
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .accent { display: block; color: var(--mint); } /* "For less." on its own line */

.lead {
  max-width: 34rem;
  margin: var(--s-4) auto 0;
  color: rgb(255 255 255 / 0.74);
  font-size: var(--text-lg);
  line-height: 1.55;
}

.hero .finder { margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.5rem); }

/* Examples under the box: glass pills that open a search. */
.hero-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: rgb(255 255 255 / 0.62);
  font-size: var(--text-sm);
}
.hero-try > span { margin-right: var(--s-1); }
.try-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.try-chip:hover { border-color: rgb(255 255 255 / 0.4); background: rgb(255 255 255 / 0.12); }
.try-chip:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

/* The other ways to use it, as one card under the search: the mark, two lines, the buttons
   (glass pills: second to the search). */
.hero-also {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3) var(--s-4);
  max-width: 46rem;
  margin: clamp(2.5rem, 1.5rem + 3vw, 3.5rem) auto 0;
  padding: var(--s-4);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 22px;
  background: rgb(255 255 255 / 0.04);
  text-align: left;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero-also .brand-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16); }
.hero-also-title { color: #ffffff; font-size: var(--text-sm); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.hero-also-text { color: rgb(255 255 255 / 0.62); font-size: var(--text-xs); line-height: 1.45; }
.hero-also-btns { display: flex; flex-wrap: wrap; gap: var(--s-2); grid-column: 1 / -1; }
.hero-also .btn { min-height: 44px; padding: 0 1rem; font-size: var(--text-sm); }
@media (min-width: 720px) {
  .hero-also { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); }
  .hero-also-btns { grid-column: auto; flex-wrap: nowrap; }
}
@media (max-width: 479px) {
  .hero-also-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-also .btn { padding-inline: var(--s-3); }
}
.btn-glass {
  min-height: 48px;
  border-color: rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: #ffffff;
}
.btn-glass:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.14); }
.btn-glass:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.btn-glass .icon { color: #ffffff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}
.cta-note {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.cta-note li { display: inline-flex; align-items: center; gap: 0.375rem; }
.cta-note .icon { width: 1rem; height: 1rem; color: var(--brand); stroke-width: 2.5; }
@media (max-width: 479px) {
  .cta-row .btn { width: 100%; }
}

/* ---------- Search (the hero's box and its answer) ----------
   One field for a model name or a pasted shop link, its button inside the field on wider screens
   and under it on phones. The answer opens right below, as one card: what was searched, the sizes
   to narrow it to, the offers (each a link to the shop), and the bot for alerts. search.js. */
.finder { max-width: 36rem; margin-top: var(--s-6); }
.finder-label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
}
/* The field and its button share one outline: 12px outside, 8px button 4px inside it. */
.finder-bar {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-1) var(--ease);
}
.finder-bar:hover { border-color: var(--ink-2); }
.finder-bar.is-invalid { border-color: var(--danger); }
.finder-field {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}
.finder-glyph {
  position: absolute;
  left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-2);
  pointer-events: none;
}
.finder-input {
  width: 100%;
  min-height: 50px;
  padding: 0 2.875rem 0 2.75rem;
  border: 0;
  border-radius: var(--radius-m);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: iPhones zoom into anything smaller */
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}
.finder-input::placeholder { color: var(--ink-2); opacity: 1; }
.finder-input::-webkit-search-cancel-button,
.finder-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
/* The ring goes round the whole bar (the field's own would sit inside it). */
@supports selector(:has(*)) {
  .finder-input:focus { outline: none; }
  .finder-bar:has(.finder-input:focus-visible) {
    border-color: var(--brand);
    outline: 3px solid var(--focus);
    outline-offset: 1px;
  }
}
.finder-clear {
  position: absolute;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-m);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  transition: color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.finder-clear:hover { background: var(--bg-sunk); color: var(--ink); }
.finder-clear:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.finder-clear[hidden] { display: none; }
.finder-clear .icon { width: 1.125rem; height: 1.125rem; }
.finder-go { flex: none; min-width: 9.75rem; min-height: 50px; padding: 0 1.25rem; border-radius: var(--radius-m); } /* fits "Checking…" too */
.finder-go[aria-disabled="true"] { opacity: 1; }
.finder-error { margin-top: var(--s-2); }
.finder-error[hidden] { display: none; }
.finder-hint {
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
}
/* Inline examples: text-sized, like links in a sentence (WCAG's inline exception), with a
   taller hit area than they look. */
.finder-try {
  margin: -0.375rem 0;
  padding: 0.375rem 0;
  border: 0;
  background: none;
  color: var(--brand-ink);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.finder-try:hover { text-decoration-thickness: 2px; }
@media (max-width: 479px) {
  .finder-bar {
    display: grid;
    gap: var(--s-3);
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .finder-field {
    min-height: 54px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--surface);
    box-shadow: var(--shadow-1);
  }
  .finder-bar.is-invalid { border: 0; }
  .finder-bar.is-invalid .finder-field { border-color: var(--danger); }
  .finder-go { width: 100%; min-height: 52px; }
  @supports selector(:has(*)) {
    .finder-bar:has(.finder-input:focus-visible) { outline: none; }
    .finder-field:has(.finder-input:focus-visible) {
      border-color: var(--brand);
      outline: 3px solid var(--focus);
      outline-offset: 1px;
    }
  }
}

/* The answer: one card under the box. */
.finder-out {
  position: relative;
  max-width: 36rem;
  margin-top: var(--s-5);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  scroll-margin-top: var(--s-4);
}
.finder-out[hidden] { display: none; }
.finder-out:focus { outline: none; }
.fo-head { padding: var(--s-4) var(--s-5); }
.fo-title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.fo-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  margin-top: var(--s-1);
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.fo-save,
.fo-kind {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-s);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
}
.fo-save { background: var(--brand-tint); color: var(--brand-ink); }
.fo-kind { background: var(--bg-sunk); color: var(--ink-2); }

/* Sizes to narrow it to: a toggle group, the picked one tinted and ticked. */
.fo-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.fo-choices-label {
  margin-right: var(--s-1);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 500;
}
.fo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease);
}
@media (pointer: coarse) { .fo-chip { min-height: 44px; } }
.fo-chip:hover { border-color: var(--ink); }
.fo-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.fo-chip .icon { display: none; width: 0.9375rem; height: 0.9375rem; stroke-width: 2.5; }
.fo-chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.fo-chip[aria-pressed="true"] .icon { display: inline-block; }
.fo-chip:disabled { cursor: progress; opacity: 0.55; }

/* Offers: each row is the link to the shop's page. */
.fo-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.fo-offer + .fo-offer { border-top: 1px solid var(--line); }
.fo-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease);
}
.fo-link:hover { background: var(--bg-sunk); }
.fo-link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.fo-body { display: grid; gap: 0.1875rem; min-width: 0; }
.fo-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.125rem;
  color: var(--brand-ink);
  font-size: var(--text-xs);
  font-weight: 500;
}
.fo-pick .icon { width: 0.9375rem; height: 0.9375rem; }
.fo-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.fo-price {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.fo-from { margin-right: 0.25rem; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }
.fo-shop { font-weight: 500; }
.fo-details, .fo-note { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }
.fo-note { display: flex; align-items: flex-start; gap: 0.375rem; }
.fo-note .icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.1875rem; }
.fo-go {
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--brand-ink);
  transition: border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.fo-go .icon { width: 1.125rem; height: 1.125rem; }
.fo-link:hover .fo-go { border-color: var(--line-strong); transform: translate(1px, -1px); }

.fo-per { margin-left: 0.125rem; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; }

/* Near you: ask where (location or a typed town), then rentals there and OLX ads near it, each
   in its own bordered list inside the card. */
.fo-near {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5) var(--s-5);
  border-top: 1px solid var(--line);
}
.fo-near-head { display: flex; align-items: center; gap: var(--s-2); min-height: 28px; }
.fo-near-head > .icon { flex: none; width: 1.125rem; height: 1.125rem; color: var(--brand-ink); }
.fo-near-title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.fo-near-change { margin: -0.5rem 0 -0.5rem auto; font-size: var(--text-sm); }
.fo-near-text { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }
.fo-near-error[hidden] { display: none; }
.fo-near-ask { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.fo-locate { flex: none; }
.fo-locate[aria-disabled="true"] .icon:not(.spin) { display: none; }
.fo-town { display: flex; flex: 1 1 15rem; gap: var(--s-2); min-width: 0; }
.fo-town .input { min-height: 44px; padding: 0.5rem 0.875rem; }
.fo-town .btn { flex: none; }
.fo-sub {
  margin-top: var(--s-1);
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.4;
}
.fo-near .fo-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.fo-near .fo-link { padding: var(--s-3) var(--s-4); }
.fo-near .fo-price { font-size: 1.1875rem; }
.fo-used { display: grid; gap: var(--s-3); }
.fo-used-wait { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); }
.fo-used-wait .icon { flex: none; width: 1rem; height: 1rem; color: var(--brand-ink); }
.fo-safety { display: flex; align-items: flex-start; gap: 0.375rem; color: var(--ink-2); font-size: var(--text-xs); line-height: 1.5; }
.fo-safety .icon { flex: none; width: 0.9375rem; height: 0.9375rem; margin-top: 0.125rem; color: var(--brand-ink); }

/* Under the offers: the honest caveat, and the bot for what a page can't do. */
.fo-foot {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
}
.fo-foot p { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }
.fo-foot b { color: var(--ink); font-weight: 500; }
.fo-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fo-actions .btn { min-height: 44px; }

/* Nothing to show (none, unsure, unsupported, busy, error): icon, line, what to do next. */
.fo-msg {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-1) var(--s-3);
  padding: var(--s-5);
}
.fo-msg > .icon { grid-row: span 3; width: 1.375rem; height: 1.375rem; margin-top: 0.0625rem; color: var(--brand-ink); }
.fo-msg.is-error > .icon { color: var(--danger); }
.fo-msg-title { font-size: var(--text-h3); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.fo-msg-body { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }
.fo-msg .fo-actions { margin-top: var(--s-2); }
.fo-msg .fo-choices { grid-column: 2; margin-top: var(--s-2); }

/* Checking: a thin bar runs along the card's top edge; the rows wait as quiet placeholders. */
.fo-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  overflow: hidden;
}
.fo-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  opacity: 0.35;
}
.fo-skel {
  display: grid;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
}
.fo-skel span { display: block; height: 0.875rem; border-radius: 4px; background: var(--bg-sunk); }
.fo-skel span:nth-child(1) { width: 30%; height: 1.375rem; }
.fo-skel span:nth-child(2) { width: 64%; }
.fo-skel span:nth-child(3) { width: 42%; }
.fo-wait { color: var(--ink-2); font-size: var(--text-sm); }
/* Narrowing to a size: the offers stay, dimmed, until the new ones replace them. */
.finder-out.is-loading .fo-list,
.finder-out.is-loading .fo-near,
.finder-out.is-loading .fo-foot { opacity: 0.45; transition: opacity var(--dur-2) var(--ease); }

@media (max-width: 479px) {
  .fo-head, .fo-link, .fo-foot, .fo-skel, .fo-near { padding-inline: var(--s-4); }
  /* Phones: the rentals and ads lists run to the card's edges, like the offers above them. */
  .fo-near .fo-list { margin-inline: calc(-1 * var(--s-4)); border-inline: 0; border-radius: 0; }
  .fo-near .fo-link { padding-inline: var(--s-4); }
  .fo-link { column-gap: var(--s-3); }
  .fo-locate { width: 100%; }
  .fo-msg { padding: var(--s-4); }
  .fo-actions .btn { flex: 1 1 0; }
}

/* /check (edge/check.js): the same answer card as a page of its own, for AI assistants and
   shared links. Sizes are links there, the picked one marked aria-current. */
.check { max-width: 40rem; padding-block: var(--s-6) var(--s-9); }
.check .finder { max-width: none; margin-top: 0; }
.check .finder-out { max-width: none; }
a.fo-chip { text-decoration: none; }
a.fo-chip[aria-current="true"] { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-ink); }
.fo-msg code { font-family: var(--mono); font-size: 0.875em; overflow-wrap: anywhere; }

/* ---------- The search pill (the hero, the closing and the results page) ----------
   The box as one dark glass pill on black, lit by a faint mint ring, its mint button inside. On
   phones the button goes under it, full width. White text in both themes (it always sits on
   black). */
.finder-pill { max-width: 46rem; margin-inline: auto; text-align: left; }
.finder-pill .finder-bar {
  padding: 6px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 0 60px -10px rgb(var(--mint-rgb) / 0.3),
    0 24px 60px -24px rgb(0 0 0 / 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.finder-pill .finder-bar:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.36), 0 0 60px -10px rgb(var(--mint-rgb) / 0.36), 0 24px 60px -24px rgb(0 0 0 / 0.8); }
.finder-pill .finder-bar.is-invalid { box-shadow: 0 0 0 2px #ff9a8b, 0 24px 60px -24px rgb(0 0 0 / 0.8); }
.finder-pill .finder-glyph { left: 1.125rem; color: rgb(255 255 255 / 0.66); }
.finder-pill .finder-input { min-height: 54px; padding-left: 3.125rem; color: #ffffff; font-size: 1.0625rem; caret-color: var(--mint); }
.finder-pill .finder-input::placeholder { color: rgb(255 255 255 / 0.6); }
.finder-pill .finder-clear { right: 2px; border-radius: 999px; color: rgb(255 255 255 / 0.7); }
.finder-pill .finder-clear:hover { background: rgb(255 255 255 / 0.1); color: #ffffff; }
.finder-pill .finder-clear:focus-visible { outline-color: var(--mint); }
.finder-pill .finder-go { min-height: 54px; padding: 0 1.5rem; border-radius: 999px; background: var(--mint); color: #05201c; font-weight: 600; }
.finder-pill .finder-go:hover { background: #c2f0e4; }
.finder-pill .finder-go:focus-visible { outline-color: var(--mint); }
.finder-pill .finder-error { color: #ffffff; }
.finder-pill .finder-error .icon { color: #ffb4a8; }
@supports selector(:has(*)) {
  .finder-pill .finder-bar:has(.finder-input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 3px; }
}
@media (max-width: 479px) {
  .finder-pill .finder-bar { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .finder-pill .finder-bar:hover { box-shadow: none; }
  .finder-pill .finder-bar.is-invalid { box-shadow: none; }
  .finder-pill .finder-field {
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22), 0 0 50px -12px rgb(var(--mint-rgb) / 0.3);
  }
  .finder-pill .finder-bar.is-invalid .finder-field { box-shadow: 0 0 0 2px #ff9a8b; }
  .finder-pill .finder-go { min-height: 54px; }
  @supports selector(:has(*)) {
    .finder-pill .finder-field:has(.finder-input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 3px; }
  }
}

/* ---------- Results page (/search) ----------
   A black band lit from above with the search pill, then the answer card (search.js) and,
   beside it on wide screens, the extension and how results are ranked. Below the band the page
   follows the visitor's light or dark setting: prices read best that way. */
.results-top {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: radial-gradient(50% 120% at 50% -40%, rgb(var(--glow-rgb) / 0.55), transparent 72%), var(--night);
}
.results-grid {
  display: grid;
  gap: var(--s-6);
  padding-block: clamp(1.5rem, 1rem + 2vw, 2.5rem) var(--section-y);
}
@media (min-width: 1024px) {
  .results-grid { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; gap: var(--s-7); }
  .results-side { position: sticky; top: calc(76px + var(--s-4)); }
}
.results-main { min-width: 0; }
.results-main .finder-out { max-width: none; margin-top: 0; }
.results-empty[hidden] { display: none; }
.results-empty { padding-block: var(--s-4); }
.results-empty-title { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.02em; }
.results-empty p { max-width: 36rem; margin-top: var(--s-3); color: var(--ink-2); }
.results-try { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.results-try .try-chip { border-color: var(--line); background: var(--surface); color: var(--ink); }
.results-try .try-chip:hover { border-color: var(--line-strong); background: var(--surface); }
.side-card {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.side-card + .side-card { margin-top: var(--s-4); }
.side-card h2 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }
.side-card p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); }
.side-card .btn { margin-top: var(--s-4); }
.side-list { display: grid; gap: var(--s-3); margin: var(--s-3) 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: var(--text-sm); }
.side-list li { display: flex; align-items: flex-start; gap: var(--s-3); }
.side-list .icon { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; color: var(--brand); }

/* ---------- Phone demo ----------
   The figure itself (one per feature screen); the phone, the chat and the replay are at the end of this file and in
   demo-wa.js. */
.chat {
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.home .section { border-top: 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
/* Quiet, sentence-case label (only the 404 page uses one). */
.kicker {
  margin-bottom: var(--s-3);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.section-head p:not(.kicker) {
  margin-top: var(--s-4);
  color: var(--ink-2);
  font-size: var(--text-lg);
  line-height: 1.55;
}

/* A section's opening on the homepage: a big heading on the left, one or two sentences (and
   any buttons) on the right, both resting on the same line. Stacked on phones. */
.split-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}
@media (min-width: 900px) {
  .split-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: var(--s-8); }
}
.split-head h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.split-side > p { max-width: 32rem; color: var(--ink-2); font-size: var(--text-lg); line-height: 1.55; }
.split-side > p + p { margin-top: var(--s-3); }

/* ---------- Promises ----------
   Right after the hero, four statements, each alone on a black screen in its own colour of
   light: a beam from above and a pool of light on the floor under the words. With scroll-driven
   animations (and no reduced motion; see Motion) the screen stays put while you scroll and the
   statements take turns, each fading up out of black and back into it. Elsewhere they are
   simply four screens, one after another. */
.promises { position: relative; background: var(--night); }
.promise {
  --light: var(--mint-rgb); /* text accents */
  --glow: var(--glow-rgb);  /* the light */
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(84svh, 48rem);
  padding: var(--section-y) var(--gutter);
  overflow: clip;
  text-align: center;
}
/* As four screens (no scroll-driven animations, or reduced motion): a band of black between
   them, so one light never runs into the next. */
.promise + .promise { margin-top: 14svh; }
.promise-2 { --light: 160 205 255; --glow: 37 99 235; }
.promise-3 { --light: 255 200 140; --glow: 234 88 12; }
.promise-4 { --light: 205 190 255; --glow: 124 58 237; }
/* The light from above: its source at the top edge, a beam, and the wide field it throws
   around the words. */
.promise::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(34% 22% at 50% 0%, rgb(var(--glow) / 0.95), transparent 75%),
    conic-gradient(at 50% -2%, transparent 0deg 156deg, rgb(var(--glow) / 0.38) 168deg,
      rgb(var(--light) / 0.4) 180deg, rgb(var(--glow) / 0.38) 192deg, transparent 204deg 360deg),
    radial-gradient(62% 50% at 50% 48%, rgb(var(--glow) / 0.42), rgb(var(--glow) / 0.12) 55%, transparent 80%);
  filter: blur(14px);
  pointer-events: none;
}
/* The floor: where the beam lands, a bright ellipse under the words. */
.promise::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 4%;
  width: min(70rem, 170vw);
  height: 30%;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(var(--light) / 0.5), rgb(var(--glow) / 0.45) 40%, rgb(var(--glow) / 0.1) 75%, transparent);
  filter: blur(10px);
  pointer-events: none;
}
.promise-copy { max-width: 46rem; }
.promise-kicker {
  margin-bottom: var(--s-4);
  color: rgb(var(--light));
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.promise h2 {
  color: #ffffff;
  text-shadow: 0 2px 30px rgb(0 0 0 / 0.35);
  font-size: clamp(2.375rem, 1.2rem + 4.6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.promise h2 .h-line { display: block; color: rgb(var(--light)); }
.promise p:not(.promise-kicker) {
  max-width: 34rem;
  margin: var(--s-5) auto 0;
  color: rgb(255 255 255 / 0.84);
  font-size: var(--text-lg);
  line-height: 1.55;
}
.promise code {
  padding: 0.0625rem 0.3125rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.875em;
}
.doc code, .faq code {
  padding: 0.0625rem 0.3125rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-sunk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.875em;
}

/* ---------- Feature screens (How it works) ----------
   One idea per screen, on plain black (both themes): a small label, a big heading, one
   sentence, and beside it (under it on phones) a phone playing its part of the chat
   (demo-wa.js), lit by one soft glow; or, on the last, the extension's recording.
   .scene-flip puts the phone on the left. */
.night { background: var(--night); color: var(--night-ink); }
.night h2, .night h3 { color: #ffffff; }
.night a:not(.btn) { color: var(--mint); }

.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  padding-block: var(--section-y);
  overflow-x: clip; /* the phone's glow (.wa::before) */
}
@media (min-width: 960px) { .scene { min-height: min(100svh, 62rem); } }

.scene-grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) {
  .scene-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .scene-flip .scene-copy { order: 1; }
  .scene-grid .scene-copy { justify-self: center; }
}
.scene-copy { max-width: 33rem; }
.scene-kicker {
  margin-bottom: var(--s-4);
  color: var(--mint);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scene h2 {
  font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.scene h2 .h-line { display: block; } /* the second sentence on its own line */
.scene-text { margin-top: var(--s-5); color: var(--night-ink-2); font-size: var(--text-lg); line-height: 1.55; }
.scene-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  margin-top: var(--s-5);
  font-weight: 500;
  text-decoration: none;
}
.scene-link:hover { text-decoration: underline; }
.scene-link .icon { width: 1.125rem; height: 1.125rem; transition: transform var(--dur-2) var(--ease); }
.scene-link:hover .icon { transform: translateX(3px); }
.scene-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.split-side .scene-actions { margin-top: var(--s-5); }
.scene-small { margin-top: var(--s-3); color: var(--night-ink-2); font-size: var(--text-sm); }
@media (max-width: 479px) {
  .scene-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .scene-actions .btn { padding-inline: var(--s-3); }
  .scene-actions.on-computer { grid-template-columns: 1fr; }
}
.scene .chat { max-width: 21rem; }
.scene .wa { max-width: 20rem; }
/* Short laptop screens (1366×768, 1280×720): the whole phone fits in the window, so the chat's
   newest message, at its bottom, is never below the fold. It shrinks with the window's height
   (the phone is 430:902), but no smaller than 16.5rem. */
@media (min-width: 960px) and (max-height: 780px) {
  .scene .wa { max-width: clamp(16.5rem, (100vh - 4rem) * 430 / 902, 20rem); }
}
/* The recording, under the opening, in a laptop lit from behind by the same soft teal. */
.scene-ext .split-head { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.ext-stage { position: relative; isolation: isolate; }
.ext-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -16% -10% -6%;
  background: radial-gradient(closest-side, rgb(var(--glow-rgb) / 0.5), rgb(var(--glow-rgb) / 0.18) 62%, transparent);
  filter: blur(40px);
  pointer-events: none;
}

/* Shown only where .on-computer isn't ("Which product leads"): phones and tablets. */
.on-touch { display: none; }
@media not all and (hover: hover) and (pointer: fine) { .on-touch { display: block; } }

/* ---------- Where to use it ----------
   Three poster cards: a wide one, then two side by side. Each is a dark card with a big title,
   a line, its buttons and a bright picture of the channel on a solid colour (decoration). The
   wide one is the product that leads ("Which product leads"): the Chrome extension on a
   computer, the chat (WhatsApp and Telegram, two identical buttons) on phones, where the
   extension's card goes last. A card lays itself out by its own width (a container query): the
   picture beside the words when wide, above them when narrow. */
.channel-grid {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .channel-ext { grid-column: 1 / -1; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .channel-ext { order: 1; grid-column: auto; }
  .channel-chat { order: -1; grid-column: 1 / -1; }
}
:root[data-ext="no"] .channel-ext { order: 1; grid-column: auto; }
:root[data-ext="no"] .channel-chat { order: -1; }
@media (min-width: 760px) { :root[data-ext="no"] .channel-chat { grid-column: 1 / -1; } }
.channel {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.channel-in { display: grid; height: 100%; }
.channel-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.5rem, 4cqw, 2.75rem); }
.channel-label { color: var(--brand-ink); font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; }
.channel h3 {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.4cqw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.channel-body > p:not(.channel-label, .channel-note) { max-width: 26rem; margin: var(--s-3) 0 var(--s-6); color: var(--ink-2); font-size: var(--text-md); }
/* The buttons (or, on phones, where the extension works) sit at the card's foot. */
.channel-btns { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: auto; }
.channel-note { margin-top: auto; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.channel .btn { min-height: 48px; padding-inline: 1.125rem; }
.btn-dark { border-color: rgb(255 255 255 / 0.22); background: rgb(255 255 255 / 0.06); color: var(--ink); }
.btn-dark:hover { border-color: rgb(255 255 255 / 0.5); background: rgb(255 255 255 / 0.12); }
.btn-dark .icon { color: var(--ink); }
@container (min-width: 44rem) {
  .channel-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 26rem; }
  .channel-in .channel-art { order: 1; aspect-ratio: auto; }
  .channel-body { justify-content: center; }
}
@container (max-width: 22rem) {
  .channel-btns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .channel-btns .btn { padding-inline: var(--s-3); }
}

/* The pictures: drawings of each channel, big, on a solid colour (the same for WhatsApp and
   Telegram: they share a card). */
.channel-art {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(1.25rem, 5cqw, 3rem);
  overflow: hidden;
  font-size: clamp(0.8125rem, 0.6rem + 1.1cqw, 1.0625rem);
  line-height: 1.3;
}
.art-ext { background: radial-gradient(90% 80% at 30% 0%, #60a5fa, transparent 70%), linear-gradient(160deg, #2563eb, #1e3a8a); }
.art-chat { background: radial-gradient(90% 80% at 70% 0%, #5eead4, transparent 70%), linear-gradient(160deg, #0d9488, #134e4a); }
.art-web { background: radial-gradient(90% 80% at 30% 0%, #fdba74, transparent 70%), linear-gradient(160deg, #ea580c, #7c2d12); }
.mock-browser {
  width: min(100%, 30em);
  overflow: hidden;
  border-radius: 0.8em;
  background: #ffffff;
  box-shadow: 0 2em 4em -1.5em rgb(0 0 0 / 0.6);
  color: #111418;
}
.mock-bar { display: flex; gap: 0.35em; padding: 0.6em 0.8em; background: #eef0f2; }
.mock-bar i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #c5cad0; }
.mock-page { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 0.5em 1em; padding: 1em 1.1em 1.2em; }
.mock-thumb { grid-row: span 4; border-radius: 0.5em; background: linear-gradient(160deg, #e3e6ea, #cfd4da); }
.mock-line { width: 80%; height: 0.6em; border-radius: 0.3em; background: #e3e6ea; }
.mock-line-2 { width: 55%; }
.mock-price { font-size: 1.25em; font-weight: 600; }
.mock-btn { justify-self: start; padding: 0.45em 0.9em; border-radius: 999px; background: #0f766e; color: #ffffff; font-size: 0.85em; font-weight: 500; }
.mock-chat { display: grid; gap: 0.6em; width: min(100%, 22em); }
.mock-out, .mock-in { max-width: 82%; padding: 0.55em 0.85em; border-radius: 1em; box-shadow: 0 0.6em 1.4em -0.7em rgb(0 0 0 / 0.5); }
.mock-out { justify-self: end; background: #d9fdd3; color: #111b21; border-bottom-right-radius: 0.3em; }
.mock-in { justify-self: start; background: #ffffff; color: #111b21; border-bottom-left-radius: 0.3em; }
.mock-in b { font-weight: 600; }
.mock-in small { display: block; color: #667781; font-size: 0.8em; }
.mock-search {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: min(100%, 24em);
  padding: 0.45em 0.45em 0.45em 0.9em;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2em 4em -1.5em rgb(0 0 0 / 0.6);
  color: #111418;
}
.mock-search .icon { width: 1.1em; height: 1.1em; color: #4b5563; }
.mock-search > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-go { flex: none; padding: 0.45em 0.9em; border-radius: 999px; background: #0f766e; color: #ffffff; font-size: 0.85em; font-weight: 500; }

/* ---------- Live list ----------
   Real searches from /feed.json, rendered by /assets/js/live.js; hidden until there are some.
   A strip of cards under the section's opening, newest first, like a row of reviews; on narrow
   screens a stack. Cards sit in fixed slots (live.js sets each card's --x and --y, and the
   list's height), so a new search slides in at the start without moving the page. */
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--s-4);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0;
}
.live.is-stale .live-dot { background: var(--line-strong); }

.live-list {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.live-card {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  transform: translate(var(--x, 0px), var(--y, 0px));
}
.live-list.is-row .live-card { right: auto; width: var(--w); }
.live-card.is-leaving { pointer-events: none; }
.live-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
}
/* Side by side: a taller card, the price big. */
.is-row .live-item {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: 22px;
}
.is-row .live-icon { display: none; }
/* Beside the section's text: try it yourself, on WhatsApp or Telegram. */
.live-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
@media (max-width: 479px) { .live-cta { display: grid; grid-template-columns: 1fr 1fr; } .live-cta .btn { padding-inline: var(--s-3); } }
.live-icon { line-height: 0; }
.live-icon .brand-mark { width: 40px; height: 40px; }
.live-body { display: grid; gap: 0.125rem; min-width: 0; }
.live-top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--ink-2);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.live-app { font-weight: 500; }
.live-name, .live-deal {
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.live-name { font-weight: 600; }
.live-deal { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live-deal b { color: var(--ink); font-weight: 600; }
.live-saving { color: var(--brand-ink); font-weight: 500; }
.live-saving::before { content: " · "; color: var(--ink-2); }
.is-row .live-body { gap: var(--s-2); }
.is-row .live-name {
  display: -webkit-box;
  min-height: 2.8em;
  font-size: var(--text-md);
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.is-row .live-deal { display: grid; align-content: start; gap: 0.125rem; min-height: 3.75rem; margin-top: var(--s-2); white-space: normal; } /* room for the price and its saving, so every card is the same height */
.is-row .live-deal b { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; }
.is-row .live-saving::before { content: none; }

/* ---------- Extension recording ---------- */
/* The recording (a real check with the extension on Flipkart, /assets/js/ext-video.js): the
   screen's own pixels, in a laptop on the homepage (below). The <img> under it is the answer as
   the video frames it, shown until the video plays and then faded over; light in both themes,
   like the page it shows. 2304 px wide, so never upscaled in the 1152 px column on a 2x screen. */
/* Never taller than the window, less a little room (on 1366×768 and 1280×720 laptops the full
   1152px width would be 720px tall, more than the window, so part of it was always cut off). */
.ext-shot {
  position: relative;
  max-width: calc((100vh - 3rem) * 1440 / 900);
  max-width: calc((100svh - 3rem) * 1440 / 900);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 1440 / 900;
  border-radius: var(--radius-l);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-2);
}
.ext-shot img,
.ext-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ext-shot video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.ext-shot.is-playing video { opacity: 1; }
/* iOS draws a play button over a video it won't autoplay (Low Power Mode): never here. */
.ext-shot video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.ext-shot video::-webkit-media-controls { display: none !important; }
/* Phones: a crop around the extension's panel (its own encode), so its text stays readable. */
@media (max-width: 640px) {
  .ext-shot { max-width: 27rem; margin-inline: auto; aspect-ratio: 408 / 640; }
}

/* On the homepage the recording sits in a laptop drawn in CSS: a black bezel with a camera dot,
   an aluminium rim, and a base wider than the lid with its notch. A bright screen in a dark
   room, lit like the demo phones, instead of a white rectangle on black. The recording itself
   is untouched. Sized by the laptop's own width (cqw), at most 60rem, and never taller than the
   window (about 2:3 with the base). On phones (the portrait crop) only the bezel. */
.laptop {
  container-type: inline-size;
  width: calc(100% / 1.14); /* room for the wider base */
  max-width: min(60rem, (100svh - 6rem) * 1.5);
  margin-inline: auto;
}
.laptop-lid {
  position: relative;
  padding: 1.8cqw 1.8cqw 2.4cqw;
  border-radius: 2.6cqw 2.6cqw 0.8cqw 0.8cqw;
  background: #0b0c0e;
  box-shadow:
    inset 0 0 0 0.16cqw #3b3e43,
    inset 0 0 0 0.4cqw #16181b,
    0 0 0 1px rgb(255 255 255 / 0.06),
    0 40px 90px -40px rgb(0 0 0 / 0.9);
}
.laptop-lid::before { /* the camera */
  content: "";
  position: absolute;
  top: 0.75cqw;
  left: 50%;
  width: 0.55cqw;
  height: 0.55cqw;
  border-radius: 50%;
  background: #1f2328;
  box-shadow: inset 0 0 0 0.12cqw #2c3138;
  translate: -50% 0;
}
.laptop .ext-shot {
  max-width: none;
  border-radius: 0.5cqw;
  box-shadow: none;
}
.laptop-base {
  position: relative;
  width: 114%;
  height: 2.1cqw;
  margin-left: -7%;
  border-radius: 0.3cqw 0.3cqw 1.8cqw 1.8cqw / 0.3cqw 0.3cqw 1.4cqw 1.4cqw;
  background: linear-gradient(180deg, #4a4d52 0%, #2a2c30 18%, #17181b 60%, #0b0c0d 100%);
  box-shadow: 0 30px 60px -18px rgb(0 0 0 / 0.95);
}
.laptop-base::before { /* the notch for opening the lid */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 0.75cqw;
  border-radius: 0 0 0.9cqw 0.9cqw;
  background: #121316;
  translate: -50% 0;
}
/* The screen's own light, falling on the desk in front of it. */
.laptop-base::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 100%;
  left: 10%;
  right: 10%;
  height: 7cqw;
  background: radial-gradient(50% 50% at 50% 0%, rgb(255 255 255 / 0.1), rgb(var(--glow-rgb) / 0.08) 45%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
}
@media (max-width: 640px) {
  .laptop { width: 100%; max-width: 24rem; }
  .laptop-lid { padding: 1.6cqw; border-radius: 4cqw; }
  .laptop-lid::before, .laptop-base { display: none; }
  .laptop .ext-shot { border-radius: 2.6cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .ext-shot video { display: none; }
}

/* Form */
.waitlist { margin-top: var(--s-5); }
.waitlist fieldset {
  display: grid;
  gap: var(--s-4);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.waitlist legend { padding: 0; }
.waitlist.is-done fieldset { display: none; }

.field { display: grid; gap: 0.375rem; }
.field label { font-size: var(--text-sm); font-weight: 500; }
.optional { color: var(--ink-2); font-weight: 400; }

.input,
.select select {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.3;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input::placeholder { color: var(--ink-2); opacity: 1; }
.input:hover, .select select:hover { border-color: var(--ink-2); }
.input:focus-visible, .select select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--brand);
  border-radius: var(--radius-m);
}
.input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; padding: 0.6875rem 0.875rem; }
.waitlist fieldset:disabled .input,
.waitlist fieldset:disabled select,
.waitlist fieldset:disabled .btn { opacity: 0.55; cursor: not-allowed; }

.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select .icon {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink-2);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
}
.field-error .icon { display: none; width: 1rem; height: 1rem; margin-top: 0.125rem; }
.field-error.is-shown .icon { display: inline-block; }

.consent { color: var(--ink-2); font-size: var(--text-xs); line-height: 1.55; }

.form-actions { display: grid; gap: var(--s-3); }
@media (min-width: 480px) {
  .form-actions { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s-4); }
}
.form-actions .btn { width: 100%; }
@media (min-width: 480px) { .form-actions .btn { width: auto; } }

.preview-note {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  color: var(--warm);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.45;
}
.preview-note .icon { width: 0.9375rem; height: 0.9375rem; margin-top: 0.0625rem; }
.preview-note[hidden] { display: none; }

.spin { display: none; }
.btn[aria-disabled="true"] .spin { display: inline-block; }

.result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-4) 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.result:focus { outline: none; }
.result:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.result[hidden] { display: none; }
.result > .icon { width: 1.375rem; height: 1.375rem; margin-top: 0.0625rem; }
.result-title { font-weight: 600; line-height: 1.4; }
.result-body { margin-top: var(--s-1); color: var(--ink-2); font-size: var(--text-sm); }
.result-body + .result-body { margin-top: var(--s-2); }
.result-actions { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-1); font-size: var(--text-sm); }
.result-actions a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 44px; font-weight: 600; }
.result-actions .icon { width: 1rem; height: 1rem; }

.result-success { border-color: var(--brand); background: var(--brand-tint); }
.result-success > .icon { color: var(--brand-ink); }
.result-preview > .icon { color: var(--warm); }
.result-error { border-color: var(--danger); background: var(--danger-tint); }
.result-error > .icon { color: var(--danger); }
.pill-preview {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: var(--radius-s);
  background: var(--warm-tint);
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 500;
  vertical-align: 0.1em;
}

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

/* ---------- FAQ ----------
   The heading on the left (it stays in view while the questions scroll past on wide screens),
   the questions on the right. */
.faq-grid { display: grid; gap: var(--s-6); }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: start; }
  .faq-head { position: sticky; top: calc(76px + var(--s-5)); }
}
.faq-head h2 {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.faq-head p { max-width: 26rem; margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-lg); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-4);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary .icon { color: var(--ink-2); transition: transform var(--dur-2) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { max-width: 62ch; padding-bottom: var(--s-5); color: var(--ink-2); }
.faq .answer p + p { margin-top: var(--s-3); }

/* ---------- Closing ----------
   The hero's light again: black, a mint beam from above onto the search box, a big line, the
   box, and the chat and extension buttons as glass pills. */
.closing {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: calc(var(--section-y) * 1.25) var(--section-y);
  background: var(--night);
  color: #ffffff;
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(90rem, 220vw);
  height: 100%;
  translate: -50% 0;
  background:
    radial-gradient(30% 20% at 50% 0%, rgb(var(--glow-rgb) / 0.85), transparent 75%),
    conic-gradient(at 50% -4%, transparent 0deg 158deg, rgb(var(--glow-rgb) / 0.3) 170deg,
      rgb(var(--mint-rgb) / 0.38) 180deg, rgb(var(--glow-rgb) / 0.3) 190deg, transparent 202deg 360deg),
    radial-gradient(50% 30% at 50% 62%, rgb(var(--glow-rgb) / 0.22), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
  filter: blur(18px);
  pointer-events: none;
}
.closing h2 {
  max-width: 14em;
  margin-inline: auto;
  color: #ffffff;
  font-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.closing .finder { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.closing .cta-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
}
.closing .cta-note { justify-content: center; margin-top: var(--s-5); color: rgb(255 255 255 / 0.66); }
.closing .cta-note .icon { color: var(--mint); }
@media (max-width: 479px) {
  .closing .cta-pair { display: grid; grid-template-columns: 1fr 1fr; }
  .closing .cta-pair .btn { padding-inline: var(--s-3); }
}

/* ---------- Footer ----------
   A site map on black (both themes): the brand, popular checks, the ways to use NearlyNew,
   help. */
.site-footer {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) var(--s-6);
  border-top: 1px solid var(--night-line);
  background: var(--night);
  color: var(--night-ink-2);
  font-size: var(--text-sm);
}
.site-footer .brand { color: #ffffff; }
.site-footer .brand-word b { color: var(--mint); }
.site-footer .brand-mark { border-radius: 7px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.site-footer :focus-visible { outline-color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.footer-brand { grid-column: 1 / -1; max-width: 22rem; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}
.footer-tag { margin-top: var(--s-2); color: var(--night-ink); }
.footer-small { margin-top: var(--s-2); }
.footer-col h2 {
  margin-bottom: var(--s-2);
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--night-ink-2);
  text-decoration: none;
}
.footer-col a:hover,
.footer-bottom a:hover { color: #ffffff; text-decoration: underline; }
.footer-col a[aria-current="page"] { color: #ffffff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s-5);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: var(--s-4);
  border-top: 1px solid var(--night-line);
  font-size: var(--text-xs);
}

/* ---------- Phone CTA bar ----------
   Floating WhatsApp and Telegram buttons below 880px (no nav there, and the header scrolls
   away). /assets/js/cta-bar.js shows them between the hero's buttons and the closing ones, never
   on top of either. Without the script they stay hidden. */
.cta-bar { display: none; }
@media (max-width: 879px) {
  .cta-bar:not([hidden]) {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 50;
    padding: 0 var(--gutter) max(var(--s-3), env(safe-area-inset-bottom));
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease-out),
      visibility 0s linear var(--dur-3);
  }
  .cta-bar.is-shown {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .cta-bar .btn {
    display: flex;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
    box-shadow: var(--shadow-2);
    pointer-events: auto;
  }
  /* Out of the way while someone types in the waitlist form (the keyboard is up). */
  body:has(.waitlist :focus) .cta-bar { visibility: hidden; opacity: 0; }
}
@media (max-width: 879px) {
  /* Phones: WhatsApp and Telegram, half the width each. */
  .cta-bar-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
    max-width: 28rem;
    margin-inline: auto;
  }
  .cta-bar-pair .btn { padding-inline: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bar:not([hidden]) { transform: none; transition: none; }
}

/* ---------- Privacy page ---------- */
.doc { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) var(--section-y); }
.doc-inner { max-width: 42rem; margin-inline: auto; }
.doc h1 {
  font-size: clamp(2.125rem, 1.75rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.doc-intro { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-lg); line-height: 1.55; }
.doc-meta { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--text-xs); }
.doc h2 {
  margin: var(--s-7) 0 var(--s-3);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.doc p + p { margin-top: var(--s-3); }
.doc ul + p { margin-top: var(--s-4); }
.doc ul { display: grid; gap: var(--s-3); margin: var(--s-3) 0 0; padding-left: 1.25rem; }
.doc li::marker { color: var(--brand); }
.doc li b, .doc p b { font-weight: 600; color: var(--ink); }

.summary-card {
  margin-top: var(--s-6);
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.summary-card h2 { margin: 0 0 var(--s-3); font-size: 1.0625rem; line-height: 1.35; }
.checks { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.doc .checks { margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.checks .icon { width: 1.125rem; height: 1.125rem; margin-top: 0.1875rem; color: var(--brand); stroke-width: 2.5; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 3rem + 8vw, 9rem); text-align: center; }
.notfound .kicker { margin-bottom: var(--s-4); }
.notfound h1 { font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.02em; }
.notfound p:not(.kicker) { max-width: 32rem; margin: var(--s-4) auto 0; color: var(--ink-2); font-size: var(--text-lg); }
.notfound .cta-row { justify-content: center; }
@media (max-width: 479px) { .notfound .cta-row .btn { width: 100%; } }

/* ---------- Motion ----------
   All of it is optional decoration. With reduced motion, or in a browser without a feature,
   everything simply shows in its final state. Only transform and opacity animate (plus the FAQ
   height), so nothing shifts the layout. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero entrance on load: the light comes up out of black (the beam first, then where it
     lands), and the lines rise in one after another. */
  .hero::before { animation: light-up 1.8s var(--ease-out) both; }
  .hero::after { animation: light-up 1.8s var(--ease-out) 300ms both; }
  .hero-inner > * { animation: rise-lg 800ms var(--ease-out) both; }
  .hero-inner > :nth-child(2) { animation-delay: 90ms; }
  .hero-inner > :nth-child(3) { animation-delay: 180ms; }
  .hero-inner > :nth-child(4) { animation-delay: 280ms; }
  .hero-inner > :nth-child(5) { animation-delay: 360ms; }
  .hero-inner > :nth-child(6) { animation-delay: 460ms; }

  /* Scroll-driven, where it exists. The hero's content fades and sinks back as you scroll away
     from it. The promises: the screen stays put (sticky) while you scroll on, and each
     statement fades up out of black, holds, and fades back into it before the next; the first
     is already lit as the screen arrives (so a link to #trust lands on it), the last stays lit
     as the screen leaves. Without support, or with reduced motion, they are four screens. */
  @supports (animation-timeline: view()) {
    .hero { view-timeline: --hero block; }
    .hero-inner { animation: hero-away linear both; animation-timeline: --hero; animation-range: exit 0% exit 80%; }

    .promises { height: calc(100svh + 4 * 70svh); view-timeline: --promises block; }
    .promises-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
    .promise {
      position: absolute;
      inset: 0;
      min-height: 0;
      margin: 0;
      padding-block: 0;
      animation: promise linear both;
      animation-timeline: --promises;
    }
    .promise-1 { animation-name: promise-first; animation-range: entry 60% contain 25%; }
    .promise-2 { animation-range: contain 25% contain 50%; }
    .promise-3 { animation-range: contain 50% contain 75%; }
    .promise-4 { animation-name: promise-last; animation-range: contain 75% exit 60%; }
  }

  /* Search: the answer card rises into place, its offers one after another (search.js sets
     --i); the progress bar sweeps; placeholders breathe. */
  .results-main > .finder-out { animation: rise var(--dur-3) var(--ease-out) both; }
  .fo-offer { animation: rise 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .fo-progress::before { right: auto; width: 40%; opacity: 1; animation: fo-sweep 1.3s var(--ease) infinite; }
  .fo-skel span { animation: fo-breathe 1.2s ease-in-out infinite alternate; }
  .finder-go[aria-disabled="true"] .spin { animation: spin 0.9s linear infinite; }
  .fo-spin { animation: spin 0.9s linear infinite; }

  .result { animation: rise var(--dur-2) var(--ease) both; }
  .btn[aria-disabled="true"] .spin { animation: spin 0.9s linear infinite; }

  /* Section reveals: /assets/js/motion.js adds .reveal to blocks below the fold, then .is-in when
     each scrolls into view. Without the script nothing is hidden. */
  /* Live list: a new card drops in from above its slot, the others glide down a slot, and the
     oldest fades out. Cards waiting for the list to come on screen drop in one after another
     (live.js staggers --delay). The live dot breathes. */
  .live-card {
    transition: transform 560ms var(--ease-out) var(--delay, 0ms),
      opacity 400ms var(--ease-out) var(--delay, 0ms);
  }
  .live-card.is-waiting, .live-card.is-entering {
    opacity: 0;
    transform: translate(calc(var(--x, 0px) + var(--dx, 0px)), calc(var(--y, 0px) + var(--dy, -14px))) scale(0.98);
  }
  .live-card.is-leaving {
    opacity: 0;
    transform: translate(calc(var(--x, 0px) - var(--dx, 0px)), calc(var(--y, 0px) - var(--dy, -14px))) scale(0.98);
  }
  .is-row .live-card { --dx: -18px; --dy: 0px; }
  .live-dot::after { animation: live-ping 2.4s var(--ease-out) infinite; }
  .live.is-stale .live-dot::after { animation: none; }

  .reveal { opacity: 0; transform: translateY(24px); }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 700ms var(--ease-out) var(--reveal-delay, 0ms),
      transform 700ms var(--ease-out) var(--reveal-delay, 0ms);
  }

  /* Headings that light up as you scroll: dim while low on the screen, then bright from the top
     line down as they rise to the middle. Only where scroll-driven animations exist; elsewhere
     (and with reduced motion, in print and in forced colours) they are simply bright. The text
     is filled with a moving gradient, not recoloured, so the heading's own colour stays. */
  @supports (animation-timeline: view()) {
    .lit {
      --lit-on: var(--ink);
      --lit-off: color-mix(in srgb, var(--ink) 28%, transparent);
      background: linear-gradient(180deg, var(--lit-on) 45%, var(--lit-off) 55%) 0 100% / 100% 220% no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: lit linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 42%;
    }
    .night .lit { --lit-on: #ffffff; --lit-off: rgb(255 255 255 / 0.26); }
  }

  /* FAQ answers slide open and shut. Needs interpolate-size (Chromium only for now); other
     browsers open them instantly, as before. The clip margin keeps link focus rings visible. */
  @supports (interpolate-size: allow-keywords) and selector(::details-content) {
    .faq details { interpolate-size: allow-keywords; }
    .faq details::details-content {
      height: 0;
      overflow: clip;
      overflow-clip-margin: 8px;
      opacity: 0;
      transition: height var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease),
        content-visibility var(--dur-3) allow-discrete;
    }
    .faq details[open]::details-content { height: auto; opacity: 1; }
  }

  /* Page to page (home, privacy, 404): the old page fades out and the new one rises in, instead
     of a blank flash. Browsers without cross-document view transitions just navigate as usual. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 250ms var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in 500ms var(--ease-out) both; }
}
@media print {
  .lit { background: none; -webkit-text-fill-color: currentColor; }
  .reveal { opacity: 1; transform: none; }
  .live-card.is-waiting { opacity: 1; transform: translate(var(--x, 0px), var(--y, 0px)); }
  .promise { opacity: 1 !important; }
}
@keyframes live-ping {
  0% { opacity: 0.45; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(2.8); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
/* Starts at 0.01, not 0: Chrome never counts text first painted fully transparent as the
   Largest Contentful Paint, so the hero headline would lose LCP to whatever paints later (the
   chat demo, seconds in). 1% is invisible. */
@keyframes rise-lg {
  from { opacity: 0.01; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes lit { from { background-position: 0 100%; } to { background-position: 0 0; } }
@keyframes light-up { from { opacity: 0; } }
@keyframes hero-away { to { opacity: 0; transform: translateY(-4rem) scale(0.97); } }
@keyframes promise {
  0% { opacity: 0; }
  32%, 68% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes promise-first {
  0% { opacity: 0; }
  34%, 78% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes promise-last {
  0% { opacity: 0; }
  32%, 100% { opacity: 1; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fo-sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes fo-breathe { to { opacity: 0.5; } }

@media (forced-colors: active) {
  .btn, .result, .live-item, .channel, .hero-also { border: 1px solid CanvasText; }
  .promise::before, .promise::after, .hero::before, .hero::after, .closing::before { display: none; }
  .lit { background: none !important; -webkit-text-fill-color: CanvasText !important; }
}

/* ============================================================================================ */
/* Phone demo: a WhatsApp chat with the bot on an iPhone, one per feature screen, each replaying
   its part in a loop (/assets/js/demo-wa.js; the markup and what it shows: the comment above
   the first phone in index.html). Drawn in CSS: the phone, the status bar, WhatsApp's header,
   chat, input bar and list sheet. WhatsApp's light or dark theme follows the site's. Everything
   inside the phone is sized in em from the phone's width (a container query), so it scales as
   one picture. Each phone's markup is its part of the chat in its final layout. Without the
   script it shows from the top (its data-pre messages left out); with reduced motion, a still
   frame. The script adds .wa-live (messages hidden), shows each one ([data-m] gets .is-in) at
   set times, turns your ticks blue (.is-read), shows "typing…" (.is-typing), presses buttons
   (.is-press), opens a list's sheet ([data-sheet] gets .is-open), moves the clock, and sets
   --wa-y, how far the chat has scrolled. Only transform and opacity animate. */

.wa {
  --wa-bg: #efeae2;
  --wa-doodle: rgb(84 64 32 / 0.09);
  --wa-bar: #f6f6f6;
  --wa-hair: rgb(0 0 0 / 0.1);
  --wa-ink: #111b21;
  --wa-ink-2: #667781;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-out-meta: #667781;
  --wa-link: #027eb5;
  --wa-btn: #027eb5;
  --wa-tick: #53bdeb;
  --wa-green: #1daa61;
  --wa-q: #1fa855;
  --wa-quote-bg: rgb(0 0 0 / 0.05);
  --wa-quote-line: #b5bdc2;
  --wa-chip: #ffffff;
  --wa-chip-ink: #54656f;
  --wa-field: #ffffff;
  --wa-press: rgb(0 0 0 / 0.08);
  --wa-sheet-bg: #ffffff;
  --wa-shadow: 0 1px 0.5px rgb(11 20 26 / 0.13);
  --m-land: #ece7dc; --m-road: #ffffff; --m-water: #a9d3df; --m-park: #cfe6c4; --m-pin: #e5483c;
  --wa-glow-1: rgb(159 227 210 / 0.75);
  --wa-glow-2: rgb(190 214 255 / 0.65);
  --wa-glow-3: rgb(255 220 184 / 0.55);
  position: relative;
  isolation: isolate;
  max-width: 19.5rem;
  container-type: inline-size;
}
@media (prefers-color-scheme: dark) {
  .wa {
    --wa-bg: #0b141a;
    --wa-doodle: rgb(255 255 255 / 0.045);
    --wa-bar: #1f2c34;
    --wa-hair: rgb(255 255 255 / 0.1);
    --wa-ink: #e9edef;
    --wa-ink-2: #8696a0;
    --wa-in: #202c33;
    --wa-out: #005c4b;
    --wa-out-meta: rgb(255 255 255 / 0.6);
    --wa-link: #53bdeb;
    --wa-btn: #53bdeb;
    --wa-green: #21c063;
    --wa-q: #06cf9c;
    --wa-quote-bg: rgb(0 0 0 / 0.2);
    --wa-quote-line: #5f6f78;
    --wa-chip: #182229;
    --wa-chip-ink: #8696a0;
    --wa-field: #2a3942;
    --wa-press: rgb(255 255 255 / 0.08);
    --wa-sheet-bg: #1f2c34;
    --wa-shadow: 0 1px 0.5px rgb(0 0 0 / 0.3);
    --m-land: #242f3e; --m-road: #3a4656; --m-water: #17263c; --m-park: #263c3f; --m-pin: #e5483c;
    --wa-glow-1: rgb(15 118 110 / 0.42);
    --wa-glow-2: rgb(64 92 170 / 0.24);
    --wa-glow-3: rgb(159 227 210 / 0.1);
  }
}

/* On the black homepage the glow is one soft teal light in both themes, and the phone always has
   the dark theme's hairline edge (a black phone on black needs it). */
.home .wa {
  --wa-glow-1: rgb(15 118 110 / 0.55);
  --wa-glow-2: rgb(var(--mint-rgb) / 0.14);
  --wa-glow-3: rgb(15 118 110 / 0.3);
}
.home .wa-device {
  box-shadow:
    inset 0 0 0 0.7cqw #4a4a4e,
    inset 0 0 0 1cqw #161618,
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 40px 70px -30px rgb(0 0 0 / 0.8);
}

/* The glow behind the phone (as before): three soft blobs blurred into one cloud, 6% wider than
   the figure on each side so it shows past the phone. On a 320px screen that is past the screen's
   edge; .scene clips it there, so the page never scrolls sideways. */
.wa::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4% -6% 0;
  background:
    radial-gradient(70% 40% at 18% 24%, var(--wa-glow-1), transparent 72%),
    radial-gradient(60% 46% at 90% 50%, var(--wa-glow-2), transparent 72%),
    radial-gradient(66% 36% at 24% 84%, var(--wa-glow-3), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}

/* ---------- The phone ---------- */
.wa-device {
  position: relative;
  aspect-ratio: 430 / 902;
  padding: 3.3cqw;
  border-radius: 16.5cqw;
  background: #0a0a0b;
  box-shadow:
    inset 0 0 0 0.7cqw #3a3a3d,
    inset 0 0 0 1cqw #161618,
    0 2px 4px rgb(0 0 0 / 0.18),
    0 40px 70px -30px rgb(0 0 0 / 0.5);
}
@media (prefers-color-scheme: dark) {
  .wa-device {
    box-shadow:
      inset 0 0 0 0.7cqw #4a4a4e,
      inset 0 0 0 1cqw #161618,
      0 0 0 1px rgb(255 255 255 / 0.12),
      0 40px 70px -30px rgb(0 0 0 / 0.8);
  }
}
/* Side buttons: action and volume on the left, power on the right. */
.wa-device::before,
.wa-device::after {
  content: "";
  position: absolute;
  width: 0.9cqw;
  border-radius: 0.5cqw;
  background: #2e2e31;
}
.wa-device::before { left: -0.7cqw; top: 22%; height: 15%; box-shadow: 0 -9cqw 0 #2e2e31; }
.wa-device::after { right: -0.7cqw; top: 27%; height: 11%; }

.wa-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  border-radius: 13.2cqw;
  background: var(--wa-bg);
  color: var(--wa-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
  font-size: 3.75cqw;
  line-height: 1.3;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
.wa-screen svg { flex: none; }
.wa-ico {
  width: 1.55em;
  height: 1.55em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status bar, with the Dynamic Island. */
.wa-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.1em;
  padding: 0.55em 1.85em 0 2.1em;
  background: var(--wa-bar);
  color: var(--wa-ink);
}
.wa-clock { font-size: 1.12em; font-weight: 600; letter-spacing: 0; }
.wa-island {
  position: absolute;
  top: 0.62em;
  left: 50%;
  width: 7.6em;
  height: 2.2em;
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}
.wa-sys { display: flex; align-items: center; gap: 0.32em; }
.wa-sys svg { height: 0.82em; width: auto; fill: currentColor; }
.wa-sys .wa-batt-shell { fill: none; stroke: currentColor; stroke-opacity: 0.4; }

/* WhatsApp's header: back, avatar, name ("typing…" under it), video and voice call. */
.wa-top {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.35em 1em 0.55em 0.45em;
  border-bottom: 1px solid var(--wa-hair);
  background: var(--wa-bar);
}
.wa-top .wa-ico:first-child { width: 1.75em; height: 1.75em; stroke-width: 2.2; }
.wa-top .wa-ico + .wa-ico { margin-left: 0.85em; }
.wa-avatar {
  width: 2.45em;
  height: 2.45em;
  overflow: hidden;
  border-radius: 50%;
  line-height: 0;
}
.wa-avatar .brand-mark { width: 100%; height: 100%; }
.wa-who { display: grid; flex: 1; min-width: 0; }
.wa-name { font-size: 1.06em; font-weight: 600; }
.wa-typing {
  max-height: 0;
  overflow: hidden;
  color: var(--wa-ink-2);
  font-size: 0.8em;
  opacity: 0;
  transition: max-height var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease);
}
.wa-screen.is-typing .wa-typing { max-height: 1.4em; opacity: 1; }

/* ---------- The chat ---------- */
.wa-view {
  position: relative;
  overflow: hidden;
}
/* The wallpaper stays put while the messages scroll, as in the app. */
.wa-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--wa-doodle);
  -webkit-mask: url("/assets/img/wa-doodle.svg") 0 0 / 11em repeat;
  mask: url("/assets/img/wa-doodle.svg") 0 0 / 11em repeat;
}
.wa-thread {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0.55em 0.85em 0.8em;
  transform: translateY(var(--wa-y, 0px));
}
.wa-day {
  align-self: center;
  margin: 0.15em 0 0.35em;
  padding: 0.28em 0.75em;
  border-radius: 0.6em;
  background: var(--wa-chip);
  box-shadow: var(--wa-shadow);
  color: var(--wa-chip-ink);
  font-size: 0.78em;
  font-weight: 500;
}
.wa-row { display: flex; }
.wa-row-out { justify-content: flex-end; }
.wa-row-in + .wa-row-out,
.wa-row-out + .wa-row-in { margin-top: 0.35em; }

.wa-bubble {
  position: relative;
  max-width: 84%;
  padding: 0.4em 0.62em 0.42em;
  border-radius: 1.1em;
  background: var(--wa-in);
  box-shadow: var(--wa-shadow);
  overflow-wrap: anywhere;
}
.wa-out { background: var(--wa-out); }
.wa-text p + p,
.wa-text p + blockquote,
.wa-text blockquote + p { margin-top: 1.15em; }
.wa-text b { font-weight: 600; }
.wa-text blockquote {
  margin: 0;
  padding-left: 0.6em;
  border-left: 0.2em solid var(--wa-quote-line);
}
.wa-url { color: var(--wa-link); }
.wa-url-long { word-break: break-all; }

/* The time (and your ticks) sit at the end of the last line: a spacer keeps room for them. */
.wa-text:is(p)::after,
.wa-text > p:last-child::after {
  content: "";
  display: inline-block;
  width: 3.5em;
}
.wa-out .wa-text::after { width: 4.6em; }
.wa-body { position: relative; }
.wa-time {
  position: absolute;
  right: 0.85em;
  bottom: 0.55em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--wa-ink-2);
  font-size: 0.7em;
  line-height: 1;
  white-space: nowrap;
}
.wa-body .wa-time { right: 0.25em; bottom: 0.15em; }
.wa-out .wa-time { color: var(--wa-out-meta); }
.wa-ticks {
  width: 1.55em;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color var(--dur-2) var(--ease);
}
.wa-row.is-read .wa-ticks { color: var(--wa-tick); }

/* Bubble tails, iOS style: on the bottom corner. */
.wa-tail.wa-out { border-bottom-right-radius: 0.3em; }
.wa-tail.wa-in,
.wa-reply.wa-tail { border-bottom-left-radius: 0.3em; }
.wa-tail::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 0.62em;
  height: 0.62em;
}
.wa-tail.wa-out::after {
  right: -0.5em;
  background: var(--wa-out);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 0.62em, #000 0.64em);
  mask: radial-gradient(circle at 100% 0, transparent 0.62em, #000 0.64em);
}
.wa-tail.wa-in::after,
.wa-reply.wa-tail::after {
  left: -0.5em;
  background: var(--wa-in);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 0.62em, #000 0.64em);
  mask: radial-gradient(circle at 0 0, transparent 0.62em, #000 0.64em);
}

/* Interactive messages: the button sits in the bubble, under a hairline. */
.wa-int { min-width: 64%; padding-bottom: 0; }
.wa-act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  margin: 0.45em -0.62em 0;
  padding: 0.62em;
  border-top: 1px solid var(--wa-hair);
  border-radius: 0 0 1.1em 1.1em;
  color: var(--wa-btn);
  font-weight: 500;
  transition: background-color var(--dur-1) var(--ease);
}
.wa-act svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wa-tail .wa-act { border-bottom-left-radius: 0.3em; }

/* Reply buttons: one under another, under the message. */
.wa-stack { display: grid; gap: 0.18em; min-width: 64%; max-width: 84%; }
.wa-stack .wa-bubble { max-width: none; }
.wa-reply {
  position: relative;
  padding: 0.6em;
  border-radius: 1.1em;
  background: var(--wa-in);
  box-shadow: var(--wa-shadow);
  color: var(--wa-btn);
  font-weight: 500;
  text-align: center;
  transition: background-color var(--dur-1) var(--ease);
}
.wa-act.is-press,
.wa-reply.is-press { background-color: color-mix(in srgb, var(--wa-in), var(--wa-ink) 9%); }

/* Your reply to a button or a list quotes the message it answers. */
.wa-quote {
  display: grid;
  margin: 0.05em -0.3em 0.35em;
  padding: 0.32em 0.55em 0.38em;
  border-left: 0.24em solid var(--wa-q);
  border-radius: 0.5em;
  background: var(--wa-quote-bg);
  font-size: 0.86em;
  line-height: 1.3;
}
.wa-quote b { color: var(--wa-q); font-weight: 600; }
.wa-quote span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--wa-ink-2);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* Your location: the map fills the bubble, the time sits on it. */
.wa-media { width: 64%; padding: 0.2em; }
.wa-map { display: block; width: 100%; height: auto; border-radius: 0.95em; }
.wa-map .m-land { fill: var(--m-land); }
.wa-map .m-water { fill: var(--m-water); }
.wa-map .m-park { fill: var(--m-park); }
.wa-map .m-road { fill: none; stroke: var(--m-road); stroke-width: 5; }
.wa-map .m-road-big { stroke-width: 9; }
.wa-map .m-pin { fill: var(--m-pin); }
.wa-map .m-dot { fill: #fff; }
/* As on a photo: the bottom of the map darkens under the time so it reads on any map. */
.wa-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0.2em 0.2em;
  height: 2.6em;
  border-radius: 0 0 0.95em 0.95em;
  background: linear-gradient(transparent, rgb(0 0 0 / 0.42));
}
.wa-time-over {
  z-index: 2;
  right: 0.9em;
  bottom: 0.8em;
  color: #fff !important;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}

/* Input bar: attach, the message field (with stickers), camera, voice. Room for the home bar. */
.wa-input {
  display: flex;
  align-items: center;
  gap: 0.95em;
  padding: 0.5em 1em 2.15em;
  border-top: 1px solid var(--wa-hair);
  background: var(--wa-bar);
}
.wa-field {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  height: 2.35em;
  padding: 0 0.5em;
  border: 1px solid var(--wa-hair);
  border-radius: 1.2em;
  background: var(--wa-field);
}
.wa-field .wa-ico { width: 1.35em; height: 1.35em; }
.wa-homebar {
  position: absolute;
  z-index: 6;
  bottom: 0.55em;
  left: 50%;
  width: 36%;
  height: 0.34em;
  border-radius: 99px;
  background: var(--wa-ink);
  transform: translateX(-50%);
}

/* The list: a sheet from the bottom with a row per choice. */
.wa-sheet {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: rgb(0 0 0 / 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-3) var(--ease), visibility 0s linear var(--dur-3);
}
.wa-sheet-card {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  max-height: 74%;
  border-radius: 1.2em 1.2em 0 0;
  background: var(--wa-sheet-bg);
  transform: translateY(100%);
  transition: transform 420ms var(--ease-out);
}
.wa-sheet.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.wa-sheet.is-open .wa-sheet-card { transform: none; }
.wa-sheet-head {
  position: relative;
  padding: 0.95em;
  font-weight: 600;
  text-align: center;
}
.wa-sheet-head .wa-ico { position: absolute; left: 0.9em; top: 50%; width: 1.35em; height: 1.35em; transform: translateY(-50%); }
.wa-sheet-rows { flex: 0 1 auto; min-height: 0; overflow: hidden; margin: 0; padding: 0; list-style: none; }
.wa-sheet-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.82em 1.15em;
  border-top: 1px solid var(--wa-hair);
  transition: background-color var(--dur-1) var(--ease);
}
.wa-sheet-rows i {
  width: 1.2em;
  height: 1.2em;
  border: 0.13em solid var(--wa-ink-2);
  border-radius: 50%;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease);
}
.wa-sheet-rows li.is-press { background: var(--wa-press); }
.wa-sheet-rows li.is-press i {
  border-color: var(--wa-green);
  background: radial-gradient(circle, var(--wa-green) 0.3em, transparent 0.33em);
}
.wa-sheet-foot {
  padding: 0.8em 0 2.6em;
  border-top: 1px solid var(--wa-hair);
  color: var(--wa-ink-2);
  font-size: 0.8em;
  text-align: center;
}

/* ---------- The replay (only with the script) ----------
   Without it, a phone shows its own part from the top: the chat before it (data-pre) is left
   out. */
.wa-screen:not(.wa-live) [data-pre] { display: none; }
.wa-live .wa-thread {
  transition: transform 640ms var(--ease-out), opacity 400ms var(--ease);
}
.wa-live [data-m] {
  opacity: 0;
  transform: translateY(0.7em) scale(0.97);
  transition: opacity 240ms var(--ease), transform 420ms cubic-bezier(0.3, 1.3, 0.5, 1);
}
.wa-live .wa-row-out[data-m] { transform-origin: 100% 100%; }
.wa-live .wa-row-in[data-m] { transform-origin: 0 100%; }
.wa-live [data-m].is-in { opacity: 1; transform: none; }
.wa-live.is-out .wa-thread { opacity: 0; }
.wa-reset *,
.wa-reset { transition: none !important; }

@media (forced-colors: active) {
  .wa-bubble, .wa-reply, .wa-day { border: 1px solid CanvasText; }
}
@media print {
  .wa::before { display: none; }
}

/* ---------- Which product leads ----------
   On a computer with a mouse or trackpad, the Chrome extension leads: its button comes first and
   filled (.ext-lead), with WhatsApp and Telegram beside it, outlined and named without "Open
   in". On phones and tablets the bot leads (.bot-lead), since Chrome there can't add
   extensions: WhatsApp and Telegram, both filled, the same in every way. The inline script in
   <head> sets data-ext="no" in browsers that can't add a Chrome extension (Safari, Firefox: no
   navigator.userAgentData) and on phones, so the bot leads there too. Without the script, the
   pointer alone decides. .on-computer: the extension's own store button and its line, only
   where a Chrome extension can be added. .btn-chat: a WhatsApp or Telegram button that is
   filled when the bot leads and outlined beside the extension. */
@media (hover: hover) and (pointer: fine) {
  :root:not([data-ext="no"]) .bot-lead { display: none !important; }
  :root:not([data-ext="no"]) .btn-chat {
    border-color: var(--line-strong);
    background: var(--surface);
    color: var(--ink);
  }
  :root:not([data-ext="no"]) .btn-chat:hover { border-color: var(--ink); background: var(--surface); }
  :root:not([data-ext="no"]) .btn-chat .icon { color: var(--brand); }
  :root:not([data-ext="no"]) .open-in { display: none; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .ext-lead, .on-computer { display: none !important; }
}
:root[data-ext="no"] .ext-lead { display: none !important; }

/* The extension's button names the browser it installs into: "Add to Edge" in Edge, "Add to
   Firefox" in Firefox (the inline script, or store.js, sets data-browser), "Add to Chrome"
   everywhere else. store.js points the links at that browser's own store. */
.br-edge { display: none; }
:root[data-browser="edge"] .br-chrome { display: none; }
:root[data-browser="edge"] .br-edge { display: inline; }
.br-firefox { display: none; }
:root[data-browser="firefox"] .br-chrome { display: none; }
:root[data-browser="firefox"] .br-firefox { display: inline; }
