/*
  The public site's system (landing, waitlist pages): Apple's product-page language in the
  BaliBot brand. Loaded after tokens.css, app.css and motion.css only (base.html's
  app_styles block is empty on these pages). landing-hero.css adds the hero and the closing
  band; each section group adds its own sheet (landing-story/features/trust.css).

  Rules every section follows:
  - Bands: white (.lp-sec), #f5f5f7 (.lp-sec-alt), one black moment (.lp-sec-dark).
  - Radius: tiles, cards and device screens 28px; inner panels 18px; inputs 14px; buttons,
    segmented controls and chips are full pills.
  - Type: Rubik 600 for headlines (letter-spacing 0, as Apple sets non-Latin scripts),
    Heebo for text. One accent: teal, for actions and links only. Peach is rare.
  - Motion: one reveal (.lp-rv, played by landing.js), static under reduced motion and
    without JS. Logical properties only (inline-start is the right edge in Hebrew).
  - Contrast: text is --text or --text-2 (both pass WCAG AA on every band). --text-3
    (#86868b) is for text of 24px and up, icons and decoration only: it fails AA under
    24px on white and on #f5f5f7.
  - Safe areas: --lp-w and --lp-w-wide keep clear of a notch or rounded corners in
    landscape (the viewport draws edge to edge: viewport-fit=cover).
*/

/* ------------------------------------------------------------------ tokens */
.lp {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --line: #d2d2d7;
  --line-strong: #86868b;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #12665c;
  --accent-hover: #0e5a51;
  --accent-ink: #0e5a51;
  --accent-soft: #e4f2ef;
  --accent-soft-2: #c9e6df;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --lp-tile: #f5f5f7;
  --lp-glass: rgb(255 255 255 / 0.8);
  --lp-glass-solid: rgb(255 255 255 / 0.96);
  --lp-hair: rgb(0 0 0 / 0.14);
  --lp-platter: #e8e8ed;
  --lp-seg-ink: #424245;
  --lp-thumb: #ffffff;
  --lp-screen: #ffffff;
  --lp-screen-2: #f2f2f5;
  --lp-bubble-me: #e9e9eb;
  --lp-bubble-bot: #fff8ee;
  --lp-bot-ink: #20342f;
  --lp-bubble-bot-edge: rgb(18 102 92 / 0.1);
  /* WhatsApp's own colours, for the WhatsApp screen only (product shot fidelity) */
  --lp-wa-bg: #efeae2;
  --lp-wa-in: #ffffff;
  --lp-wa-out: #d9fdd3;
  --lp-wa-ink: #111b21;
  --lp-wa-meta: #54656f;
  --lp-wa-meta-out: #54656f;
  --lp-wa-day: #ffffff;
  --lp-frame: #1d1d1f;
  --lp-frame-edge: #4a4a4e;
  --lp-shadow: 0 40px 80px -36px rgb(0 0 0 / 0.32), 0 10px 24px -14px rgb(0 0 0 / 0.14);
  --lp-shadow-sm: 0 18px 40px -20px rgb(0 0 0 / 0.24), 0 2px 6px rgb(0 0 0 / 0.04);
  --lp-glow: rgb(18 102 92 / 0.13);
  --lp-band: #000000;
  --lp-hl-from: #0e5a51;
  --lp-hl-to: #2f9c8a;

  /* the slogan is the page's one largest line (about 92px at 1440, over the chapters' 80) */
  --lp-fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 6rem);
  --lp-fs-h2: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  /* a utility header (channels, plans, questions) is one step quieter than a chapter's */
  --lp-fs-h2-sm: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  --lp-fs-eyebrow: clamp(1.1875rem, 1.04rem + 0.6vw, 1.75rem);
  --lp-fs-intro: clamp(1.1875rem, 1.08rem + 0.47vw, 1.5rem);
  --lp-fs-tile: clamp(1.0625rem, 0.97rem + 0.38vw, 1.3125rem);
  --lp-fs-body: 1.0625rem;

  --lp-safe-x: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --lp-w: min(87.5vw, 980px, 100vw - 32px - 2 * var(--lp-safe-x));
  --lp-w-wide: min(87.5vw, 1260px, 100vw - 32px - 2 * var(--lp-safe-x));
  --lp-pad: clamp(6rem, 4.6rem + 6vw, 10rem);
  --lp-head-gap: clamp(2.5rem, 1.6rem + 3.75vw, 5rem);
  --lp-gap: clamp(12px, 8px + 0.9vw, 20px);
  --lp-tile-pad: clamp(26px, 20px + 1.4vw, 40px);
  --lp-r-tile: 28px;
  --lp-r-panel: 18px;
  --lp-r-input: 14px;
  --lp-r-pill: 999px;
  --lp-nav-h: 52px;
  --lp-ease: cubic-bezier(0, 0, 0.5, 1);
  --lp-ease-io: cubic-bezier(0.4, 0, 0.6, 1);
  --lp-spring: cubic-bezier(0.3, 1.35, 0.5, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp {
    color-scheme: dark;
    --bg: #000000;
    --bg-alt: #0f0f10;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --surface-3: #3a3a3c;
    --line: #38383a;
    --line-strong: #6e6e73;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #86868b;
    --accent: #17786b;
    --accent-hover: #1c8a7b;
    --accent-ink: #7fd3c4;
    --accent-soft: #0f2a26;
    --accent-soft-2: #17403a;
    --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ink);
    --lp-tile: #1c1c1e;
    --lp-glass: rgb(22 22 23 / 0.8);
    --lp-glass-solid: rgb(22 22 23 / 0.96);
    --lp-hair: rgb(255 255 255 / 0.16);
    --lp-platter: #1c1c1e;
    --lp-seg-ink: #a1a1a6;
    --lp-thumb: #3a3a3c;
    --lp-screen: #0d0d0f;
    --lp-screen-2: #1c1c1e;
    --lp-bubble-me: #2c2c2e;
    --lp-bubble-bot: #22302c;
    --lp-bot-ink: #e6efec;
    --lp-bubble-bot-edge: rgb(255 255 255 / 0.06);
    --lp-wa-bg: #0b141a;
    --lp-wa-in: #202c33;
    --lp-wa-out: #005c4b;
    --lp-wa-ink: #e9edef;
    --lp-wa-meta: #aebac1;
    --lp-wa-meta-out: rgb(255 255 255 / 0.75);
    --lp-wa-day: #182229;
    --lp-frame: #2c2c2e;
    --lp-frame-edge: #5a5a5e;
    --lp-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.04);
    --lp-shadow-sm: 0 18px 40px -18px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.06);
    --lp-glow: rgb(23 120 107 / 0.3);
    --lp-band: #0b0b0c;
    --lp-hl-from: #7fd3c4;
    --lp-hl-to: #3fae9b;
  }
}
:root[data-theme="dark"] .lp {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #0f0f10;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --line: #38383a;
  --line-strong: #6e6e73;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #17786b;
  --accent-hover: #1c8a7b;
  --accent-ink: #7fd3c4;
  --accent-soft: #0f2a26;
  --accent-soft-2: #17403a;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-ink);
  --lp-tile: #1c1c1e;
  --lp-glass: rgb(22 22 23 / 0.8);
  --lp-glass-solid: rgb(22 22 23 / 0.96);
  --lp-hair: rgb(255 255 255 / 0.16);
  --lp-platter: #1c1c1e;
  --lp-seg-ink: #a1a1a6;
  --lp-thumb: #3a3a3c;
  --lp-screen: #0d0d0f;
  --lp-screen-2: #1c1c1e;
  --lp-bubble-me: #2c2c2e;
  --lp-bubble-bot: #22302c;
  --lp-bot-ink: #e6efec;
  --lp-bubble-bot-edge: rgb(255 255 255 / 0.06);
  --lp-wa-bg: #0b141a;
  --lp-wa-in: #202c33;
  --lp-wa-out: #005c4b;
  --lp-wa-ink: #e9edef;
  --lp-wa-meta: #aebac1;
  --lp-wa-meta-out: rgb(255 255 255 / 0.75);
  --lp-wa-day: #182229;
  --lp-frame: #2c2c2e;
  --lp-frame-edge: #5a5a5e;
  --lp-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.04);
  --lp-shadow-sm: 0 18px 40px -18px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.06);
  --lp-glow: rgb(23 120 107 / 0.3);
  --lp-band: #0b0b0c;
  --lp-hl-from: #7fd3c4;
  --lp-hl-to: #3fae9b;
}
@media (max-width: 833px) {
  .lp { --lp-nav-h: 48px; }
}

/* ------------------------------------------------------------------ base */
/* an anchor jump lands its band right under the nav (no strip of the band before it) */
html:has(> body.lp) { background: #ffffff; scroll-padding-top: 52px; }
@media (max-width: 833px) {
  html:has(> body.lp) { scroll-padding-top: 48px; }
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):has(> body.lp) { background: #000000; }
}
html[data-theme="dark"]:has(> body.lp) { background: #000000; }
@media (prefers-reduced-motion: no-preference) {
  html:has(> body.lp) { scroll-behavior: smooth; }
}
body.lp { background: var(--bg); color: var(--text); font-size: var(--lp-fs-body); line-height: 1.6; }
.lp main { overflow-x: clip; }
.lp [hidden] { display: none !important; }
.lp h1, .lp h2, .lp h3 { letter-spacing: 0; }
.lp ::selection { background: var(--accent-soft-2); }
/* the ring is a box-shadow (app.css), which forced colours (Windows contrast themes) drop:
   a transparent outline is invisible here and becomes a system colour there */
.lp :focus-visible { outline: 2px solid transparent; outline-offset: 2px; }
/* app.css's .btn-primary sets its own box-shadow after app.css's :focus-visible ring, at
   the same weight, and so hid the ring on every filled button: keep its top highlight and
   add the ring back */
.lp .btn-primary:focus-visible { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), var(--focus); }
/* the skip link's target is not a control: no ring across the page under the nav */
.lp main[tabindex="-1"]:focus,
.lp main[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
@media (forced-colors: active) {
  .lp [role="tab"][aria-selected="true"],
  .lp [aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* ------------------------------------------------------------------ bands and layout */
.lp-sec { position: relative; padding-block: var(--lp-pad); background: var(--bg); color: var(--text); }
.lp-sec-alt { background: var(--bg-alt); --lp-tile: var(--surface); }
/* the one dark moment: black in light mode; near-black with a teal glow in dark mode */
.lp-sec-dark {
  isolation: isolate;
  background: var(--lp-band);
  color-scheme: dark;
  --bg: var(--lp-band);
  --surface: #1d1d1f;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --line: #424245;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent-ink: #7fd3c4;
  --lp-tile: #1d1d1f;
  --lp-hair: rgb(255 255 255 / 0.16);
  --lp-bubble-me: #2c2c2e;
  --lp-bubble-bot: #22302c;
  --lp-bot-ink: #e6efec;
  --lp-bubble-bot-edge: rgb(255 255 255 / 0.06);
}
.lp-sec-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, var(--lp-dark-glow, transparent), transparent 70%);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-sec-dark { --lp-dark-glow: rgb(23 120 107 / 0.22); }
}
:root[data-theme="dark"] .lp-sec-dark { --lp-dark-glow: rgb(23 120 107 / 0.22); }
.lp-sec-flush { padding-block-end: 0; }
/* two neighbours on the same band read as one band: the second skips its top padding
   (e.g. the questions and the closing waitlist card, both white) */
.lp-sec:not(.lp-sec-alt):not(.lp-sec-dark) + .lp-sec:not(.lp-sec-alt):not(.lp-sec-dark),
.lp-sec-alt + .lp-sec-alt { padding-block-start: 0; }
.lp-wrap { width: var(--lp-w); margin-inline: auto; }
.lp-wrap-wide { width: var(--lp-w-wide); margin-inline: auto; }

/* section header: optional eyebrow, the headline, a grey intro with one phrase in ink */
.lp-head {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 10px + 0.8vw, 22px);
  margin-block-end: var(--lp-head-gap);
  text-align: center;
}
.lp-head-start { justify-items: start; text-align: start; }
.lp-eyebrow {
  font-family: var(--font-display);
  font-size: var(--lp-fs-eyebrow);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
}
.lp-h2 {
  max-width: 15em;
  font-size: var(--lp-fs-h2);
  font-weight: 600;
  line-height: 1.07;
  text-wrap: balance;
}
/* utility headers (the channels gallery, the plans, the questions) sit one step under a
   chapter headline, as Apple sets "Get the highlights." under its chapter heads */
#channels .lp-h2, #plans .lp-h2, #faq .lp-h2 { font-size: var(--lp-fs-h2-sm); }
.lp-intro {
  max-width: 34em;
  font-size: var(--lp-fs-intro);
  font-weight: 500;
  line-height: 1.42;
  color: var(--text-2);
  text-wrap: balance;
}
/* the one phrase in ink stays on one line where the column is wide enough (each is four
   words or fewer); on phones it may wrap, or it would push past the screen's edge */
.lp-intro strong { font-weight: 600; color: var(--text); }
@media (min-width: 735px) {
  .lp-intro strong { white-space: nowrap; }
}

/* the tile surface every section's cards share */
.lp-tile {
  position: relative;
  overflow: clip;
  border-radius: var(--lp-r-tile);
  background: var(--lp-tile);
  padding: var(--lp-tile-pad);
}

/* "learn more": a text link with a chevron pointing forward (left, in Hebrew) */
.lp-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--accent-ink);
  font-size: inherit;
  text-decoration: none;
}
.lp-more:hover { text-decoration: underline; }
.lp-more .icon { width: 0.9em; height: 0.9em; transition: translate 0.3s var(--lp-ease); }
.lp-more:hover .icon { translate: -2px 0; }
@media (pointer: coarse) {
  .lp-more { padding-block: 11px; margin-block: -11px; }
}

/* footnote mark (lp.fn): one unbreakable piece, so it never drops a stray empty line */
.lp-fn {
  position: relative;
  top: -0.1em;
  margin-inline-start: 0.12em;
  font-size: 0.6em;
  line-height: 0;
  white-space: nowrap;
  vertical-align: super;
}
.lp-fn a { position: relative; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.lp-fn a:hover { color: var(--text); text-decoration: underline; }
/* a thumb-sized target around the small number, without moving the text */
@media (pointer: coarse) {
  .lp-fn a::after { content: ""; position: absolute; inset: -16px -10px; }
}

/* ------------------------------------------------------------------ reveal */
/* The end state is the default (reduced motion, no JS). landing.js adds .is-in. */
/* It plays early (landing.js: once a block is 8% above the viewport's bottom edge), so
   whatever a visitor stops on is already there. Section heads rise less and faster. */
@media (prefers-reduced-motion: no-preference) {
  html.js .lp-rv {
    transition:
      opacity 0.9s var(--lp-ease),
      translate 0.7s var(--lp-ease);
    transition-delay: calc(var(--i, 0) * 0.13s);
  }
  html.js .lp-rv:not(.is-in) { opacity: 0; translate: 0 28px; }
  html.js .lp-head > .lp-rv {
    transition-duration: 0.5s;
    transition-delay: calc(var(--i, 0) * 0.08s);
  }
  html.js .lp-head > .lp-rv:not(.is-in) { translate: 0 12px; }
  /* revealed by keyboard focus (landing.js): there at once, never a hidden focused control */
  html.js .lp-rv.lp-rv-now { transition: none !important; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 734px) {
  html.js .lp-rv:not(.is-in) { translate: 0 20px; }
  html.js .lp-head > .lp-rv:not(.is-in) { translate: 0 12px; }
}

/* ------------------------------------------------------------------ local nav */
/* brand | links | theme | the pill, on the text column's edges. Below 834px the links and
   a named theme switch move into a sheet the menu button opens (landing.js). */
.lp-nav-sentinel { height: 1px; margin-block-end: -1px; }
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--lp-nav-h);
  color: var(--text);
  --lp-fill: rgb(118 118 128 / 0.12);
  --lp-fill-thumb: #ffffff;
  --lp-thumb-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.04);
  /* the small "soon" line: darker than --text-2, so it keeps AA where the frosted bar
     picks up the closing card's teal */
  --lp-soon: #545458;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-nav {
    --lp-soon: #a1a1a6;
    --lp-fill: rgb(118 118 128 / 0.24);
    --lp-fill-thumb: #636366;
    --lp-thumb-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  }
}
:root[data-theme="dark"] .lp-nav {
  --lp-soon: #a1a1a6;
  --lp-fill: rgb(118 118 128 / 0.24);
  --lp-fill-thumb: #636366;
  --lp-thumb-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}
/* over the black band the bar turns dark too (landing.js: .is-on-dark), as Apple's does */
.lp-nav.is-on-dark {
  color-scheme: dark;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --lp-soon: #a1a1a6;
  --line: #424245;
  --accent-ink: #7fd3c4;
  --lp-glass: rgb(22 22 23 / 0.8);
  --lp-glass-solid: rgb(22 22 23 / 0.96);
  --lp-hair: rgb(255 255 255 / 0.12);
  --lp-fill: rgb(118 118 128 / 0.24);
  --lp-fill-thumb: #636366;
  --lp-thumb-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}
.lp-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background-color 0.32s var(--lp-ease-io) 0.12s;
}
.lp-nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--lp-hair);
}
.lp-nav.is-stuck::before,
.lp-nav.is-open::before {
  background: var(--lp-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lp-nav.is-stuck::before, .lp-nav.is-open::before { background: var(--lp-glass-solid); }
}
/* the bar's content shares the page's text column: logo, headlines and footer on one edge */
.lp-nav-in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--lp-w);
  height: 100%;
  margin-inline: auto;
}
.lp-nav-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.lp-nav-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.lp-nav-name { display: grid; line-height: 1.1; }
.lp-nav-name bdi { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.lp-nav-soon { font-size: 12px; color: var(--lp-soon); }
.lp-nav-sheet { display: flex; align-items: center; margin-inline-start: auto; }
.lp-nav-links { display: flex; align-items: center; gap: 24px; }
.lp-nav-brand, .lp-nav-soon, .lp-nav-links a { transition: color 0.32s var(--lp-ease-io); }
.lp-nav-links a {
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  opacity: 0.8;
  transition:
    opacity 0.1s linear,
    color 0.32s var(--lp-ease-io);
}
.lp-nav-links a:hover { opacity: 1; }
.lp-nav-links .lp-nav-team {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line);
  color: var(--text-2);
}
.lp-nav-menu {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline-start: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
/* the ring sits inside the button: the bar is only 48px tall */
.lp-nav-menu:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-ink); }
.lp-nav-menu .icon { grid-area: 1 / 1; width: 22px; height: 22px; }
/* list while closed, x while open */
.lp-nav-menu .lp-i-close, .lp-nav.is-open .lp-nav-menu .lp-i-open { display: none; }
.lp-nav.is-open .lp-nav-menu .lp-i-close { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .lp-nav-menu .icon { animation: lp-icon-in 0.2s var(--lp-ease); }
}
@keyframes lp-icon-in {
  from { opacity: 0; rotate: -45deg; scale: 0.6; }
}
.lp-nav-cta {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--lp-r-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.1s linear;
}
.lp-nav-cta:hover { background: var(--accent-hover); }
/* the pill stays small; its target is thumb-sized */
.lp-nav-cta::after { content: ""; position: absolute; inset: -8px -6px; }
.lp-nav-scrim { display: none; }
/* the page holds still under the open phone menu (landing.js); the gutter keeps a classic
   scrollbar's width, so nothing shifts sideways */
html.lp-menu-open { overflow: hidden; scrollbar-gutter: stable; }

/* the theme switch (macros/landing.html theme_control): Apple's segmented control, a
   translucent platter and one white thumb (#636366 in the dark) that slides under the
   chosen option. Icons in the bar; icons and names at the top of the phone sheet. */
.lp-theme { flex: none; }
.lp-theme-seg {
  --k: 1;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2px;
  border-radius: var(--lp-r-pill);
  background: var(--lp-fill);
}
.lp-theme-seg:has([value="light"][aria-pressed="true"]) { --k: 0; }
.lp-theme-seg:has([value="dark"][aria-pressed="true"]) { --k: 2; }
.lp-theme-seg::before {
  content: "";
  position: absolute;
  inset-block: 2px;
  inset-inline-start: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: var(--lp-r-pill);
  background: var(--lp-fill-thumb);
  box-shadow: var(--lp-thumb-shadow);
  translate: calc(var(--k) * -100%) 0;
}
.lp-theme-seg:not(:has([aria-pressed="true"]))::before { display: none; }
/* without :has() the chosen button carries the thumb itself (no slide) */
@supports not selector(:has(*)) {
  .lp-theme-seg::before { display: none; }
  .lp-theme button[aria-pressed="true"] { background: var(--lp-fill-thumb); box-shadow: var(--lp-thumb-shadow); }
}
.lp-theme button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: var(--lp-r-pill);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s linear;
}
.lp-theme button:hover,
.lp-theme button[aria-pressed="true"] { color: var(--text); }
.lp-theme .icon { flex: none; width: 15px; height: 15px; }
/* thumb-sized targets on touch screens, the control's look unchanged */
@media (pointer: coarse) {
  .lp-theme-bar button::after { content: ""; position: absolute; inset: -10px 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-theme-seg::before { transition: translate 0.32s cubic-bezier(0.28, 0.11, 0.32, 1); }
}
.lp-theme-sheet { display: none; }
/* while the theme switches in place, nothing else animates (landing.js) */
html.lp-theming *, html.lp-theming *::before, html.lp-theming *::after { transition: none !important; }

@media (max-width: 833px) {
  .lp-nav-in { gap: 8px; }
  html.js .lp-nav-menu { display: grid; }
  .lp-theme-bar { display: none; }
  /* without the script there is no menu: the bar keeps the small switch */
  html:not(.js) .lp-theme-bar { display: block; margin-inline-start: auto; }
  /* the sheet: full width under the bar, its content on the page's text edge */
  .lp-nav-sheet {
    position: fixed;
    top: var(--lp-nav-h);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 14px calc((100% - var(--lp-w)) / 2) 20px;
    border-block-end: 1px solid var(--lp-hair);
    background: var(--lp-glass-solid);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .lp-nav.is-open .lp-nav-sheet { display: flex; }
  /* a short landscape screen scrolls the sheet itself, never the page under it */
  .lp-nav-sheet { max-height: calc(100dvh - var(--lp-nav-h)); overflow-y: auto; overscroll-behavior: contain; }
  .lp-theme-sheet { display: block; margin-block-end: 6px; }
  .lp-theme-sheet .lp-theme-seg { padding: 3px; }
  .lp-theme-sheet .lp-theme-seg::before { inset-block: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / 3); }
  .lp-theme-sheet button {
    gap: 5px;
    height: 38px;
    padding: 0 4px;
    color: var(--text);
    font-size: 15px;
    white-space: nowrap;
  }
  .lp-theme-sheet button[aria-pressed="true"] { font-weight: 600; }
  .lp-theme-sheet .icon { width: 17px; height: 17px; }
  .lp-nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  /* the page under an open sheet dims; a tap on it closes the menu (landing.js) */
  .lp-nav-scrim {
    position: fixed;
    inset: var(--lp-nav-h) 0 0;
    z-index: -2;
    display: block;
    background: rgb(0 0 0 / 0.24);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.24s var(--lp-ease-io),
      visibility 0s linear 0.24s;
  }
  .lp-nav.is-open .lp-nav-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.24s var(--lp-ease-io);
  }
  .lp-nav-links a {
    padding-block: 13px;
    border-block-end: 1px solid var(--line);
    font-size: 17px;
    opacity: 1;
  }
  .lp-nav-links a:last-child { border-block-end: 0; }
  .lp-nav-links .lp-nav-team { padding-inline-start: 0; border-inline-start: 0; }
}
/* small phones: the names alone fit a third of the sheet */
@media (max-width: 379px) {
  .lp-theme-sheet .icon { display: none; }
}
@media (max-width: 833px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lp-nav-scrim { background: rgb(0 0 0 / 0.5); }
}
@media (max-width: 833px) {
  :root[data-theme="dark"] .lp-nav-scrim { background: rgb(0 0 0 / 0.5); }
}
@media (max-width: 833px) and (prefers-reduced-motion: no-preference) {
  .lp-nav.is-open .lp-nav-sheet { animation: lp-sheet 0.32s var(--lp-ease) both; }
}
@keyframes lp-sheet {
  from { opacity: 0; translate: 0 -8px; }
}

/* ------------------------------------------------------------------ waitlist form (wl-) */
/* partials/waitlist_card.html, in three slots: hero (one pill: the email and the button,
   consent below), final and page (email, business type, pilot wish, consent, button). */
.wl { position: relative; color: var(--text); text-align: start; }
.wl-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wl-form { display: grid; gap: 16px; }
.wl-row { display: grid; gap: 16px; }
.wl-field { display: grid; gap: 6px; }
.wl-label { font-size: 14px; font-weight: 500; color: var(--text); }
.wl .wl-input,
.wl .wl-select {
  min-height: 52px;
  border-color: var(--line-strong);
  border-radius: var(--lp-r-input);
  background-color: var(--surface);
  font-size: 17px;
}
.wl .wl-input:focus-visible,
.wl .wl-select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft-2); }
.wl .wl-input[aria-invalid="true"], .wl .wl-select[aria-invalid="true"] { border-color: var(--danger); }
/* the select draws its own chevron (the sprite's caret), inset like the field's text */
.wl-select-wrap { position: relative; display: grid; }
.wl .wl-select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline: 16px 48px;
  cursor: pointer;
}
.wl-select-wrap > .icon {
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--text-2);
  translate: 0 -50%;
  pointer-events: none;
}
.wl-error,
.wl-alert {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}
.wl-error .icon, .wl-alert .icon { width: 16px; height: 16px; margin-block-start: 1px; }
.wl-alert { padding: 10px 14px; border-radius: var(--lp-r-input); background: var(--danger-soft); }
.wl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.wl-check .check {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.wl-check a { position: relative; color: var(--accent-ink); white-space: nowrap; }
@media (pointer: coarse) {
  .wl-check a::after { content: ""; position: absolute; inset: -12px -4px; }
  /* a one-line choice (the pilot wish) is a thumb-sized row; the consent is two lines and
     more already */
  .wl-check:not(.wl-consent) { min-height: 44px; align-items: center; margin-block: -6px; }
  .wl-check:not(.wl-consent) .check { margin-block-start: 0; }
}
.wl-consent { font-size: 14px; }
.wl .wl-submit { min-height: 52px; padding: 0 26px; font-size: 17px; font-weight: 500; }
.wl-submit .when-busy { display: none; }
.htmx-request .wl-submit .when-busy { display: inline; }

/* hero: one pill holds the labelled field and the button; the consent line sits below */
.wl-hero .wl-form { justify-items: center; gap: 12px; }
.wl-hero .wl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0; width: min(100%, 480px); }
.wl-hero .wl-row::before {
  content: "";
  grid-area: 1 / 1 / 3 / 3;
  border: 1px solid var(--line-strong);
  border-radius: var(--lp-r-pill);
  background: var(--surface);
  transition:
    border-color 0.15s linear,
    box-shadow 0.15s linear;
}
.wl-hero .wl-row:hover::before { border-color: var(--text-2); }
.wl-hero .wl-row:has(.wl-input:focus-visible)::before {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft-2);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.wl-hero .wl-row:has([aria-invalid="true"])::before { border-color: var(--danger); }
.wl-hero .wl-field-email { display: contents; }
.wl-hero .wl-label {
  grid-area: 1 / 1;
  padding: 9px 24px 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.3;
}
.wl-hero .wl-input {
  grid-area: 2 / 1;
  min-height: 0;
  padding: 1px 24px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
.wl-hero .wl-input:focus-visible { box-shadow: none; }
.wl-hero .wl-submit {
  grid-area: 1 / 2 / 3 / 3;
  align-self: center;
  min-height: 46px;
  margin: 6px;
  padding: 0 22px;
}
.wl-hero .wl-row .wl-error { grid-area: 3 / 1 / 4 / 3; padding: 8px 24px 0; }
/* the consent and its error line up under the field's text, inside the pill's width */
.wl-hero .wl-consent,
.wl-hero .wl-form > .wl-error {
  width: min(100%, 480px);
  padding-inline: 22px 8px;
}
.wl-hero .wl-alert { width: min(100%, 480px); }
@media (max-width: 420px) {
  .wl-hero .wl-label, .wl-hero .wl-input { padding-inline: 20px; }
  .wl-hero .wl-consent, .wl-hero .wl-form > .wl-error { padding-inline: 18px 4px; }
  .wl-hero .wl-submit { padding: 0 16px; font-size: 16px; }
}

/* the full form (closing band, standalone page) */
.wl-final .wl-submit, .wl-page .wl-submit { width: 100%; }

/* success: one state for every outcome; a short check that lands */
.wl-done { display: grid; justify-items: center; gap: 6px; text-align: center; }
.wl-done-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-block-end: 8px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
}
.wl-done-icon .icon { width: 28px; height: 28px; }
.wl-done-title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  outline: none;
}
.wl-done-body { max-width: 26rem; color: var(--text-2); }
.wl-hero .wl-done {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  column-gap: 14px;
  row-gap: 0;
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 12px 22px 12px 14px;
  border-radius: var(--lp-r-panel);
  background: var(--accent-soft);
  text-align: start;
}
.wl-hero .wl-done-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
.wl-hero .wl-done-icon .icon { width: 22px; height: 22px; }
.wl-hero .wl-done-title { font-size: 19px; }
.wl-hero .wl-done-body { font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .wl-done-icon {
    animation:
      wl-pop 0.55s var(--lp-spring) both,
      wl-ring 0.9s 0.3s ease-out both;
  }
  .wl-done-icon .icon { animation: wl-tick 0.45s 0.2s var(--lp-spring) both; }
  .wl-done-title, .wl-done-body { animation: wl-rise 0.6s 0.25s var(--lp-ease) both; }
  .wl-done-body { animation-delay: 0.35s; }
}
@keyframes wl-pop {
  from { opacity: 0; scale: 0.4; }
}
@keyframes wl-ring {
  from { box-shadow: 0 0 0 0 rgb(18 102 92 / 0.4); }
  to { box-shadow: 0 0 0 18px rgb(18 102 92 / 0); }
}
@keyframes wl-tick {
  from { opacity: 0; rotate: -40deg; scale: 0.3; }
}
@keyframes wl-rise {
  from { opacity: 0; translate: 0 10px; }
}

/* ------------------------------------------------------------------ standalone pages */
/* /waitlist, /waitlist/unsubscribe: the landing's look, one card on the alt band */
body.lp-page { background: var(--bg-alt); }
.lp-page-head {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--lp-nav-h);
  border-block-end: 1px solid var(--lp-hair);
}
.lp-page-head .brand { color: var(--text); font-weight: 600; }
.lp-page-main {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 24px;
  min-height: calc(100dvh - var(--lp-nav-h));
  padding-block: clamp(32px, 6vw, 72px);
}
.lp-page-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(87.5vw, 560px);
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--lp-r-tile);
  background: var(--surface);
  text-align: center;
}
.lp-page-face { margin-block-end: 8px; }
.lp-page-title { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 600; line-height: 1.1; }
.lp-page-lead {
  max-width: 28rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.5;
}
.lp-page-card .wl { width: 100%; margin-block-start: 16px; }
.lp-page-card > .wl-alert { width: 100%; text-align: start; }
.lp-page-card .wl-done { margin-block: 8px; }
.wl-unsub-form { margin-block-start: 12px; }
.lp-page-back { font-size: 15px; }
