/*
 * sagarti.co.il — the app's "clear day" look on the web (apps/mobile/src/ui/tokens.ts):
 * a white page, content bare in hairline rows, tonal grey cards only for what must hold
 * together, ink text, cobalt the one action colour, orange only for what listens.
 * Light only, whatever the visitor's setting: the brand and the app's screens are shown as
 * they look on a white page.
 */

@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-hebrew-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Rubik";
  src: url("/assets/fonts/rubik-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  color-scheme: only light;
  --bg: #ffffff;
  --surface: #f2f3f5;
  --border: #d8dbe1;
  --text: #0b1220;
  --text-muted: #454e60;
  --accent: #1c3ad0;
  --link: #1c3ad0;
  --on-accent: #ffffff;
  --accent-muted: #ebefff;
  --signal: #ff5a1f;
  --positive: #05663f;
  --cover-ink: #f3eee4;
  --surface-raised: #e7e9ed;
  --text-faint: #6b7384;
  --accent-border: #c9d2fb;
  --warning: #8f3203;
  --warning-muted: #fff0e6;
  --negative: #9a1828;
  --owed: #8f3203;
  --dock-selected: #ebefff;
  --on-dock-selected: #1c3ad0;
  --on-positive: #ffffff;

  --page: min(1120px, 100% - 40px);
  --radius-card: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}


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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

/* Numbers, times and phones read left to right inside Hebrew. */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  width: var(--page);
  margin-inline: auto;
}

/* ── Top bar ─────────────────────────────────────────────────────────── */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.bar__name {
  display: block;
  color: var(--link);
  line-height: 0;
}

.bar__name svg {
  width: 112px;
  height: auto;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

.button svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.button--quiet {
  background: var(--accent-muted);
  color: var(--link);
}

.button--large {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 19px;
}

.button--on-cobalt {
  background: var(--on-accent);
  color: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-block: 40px 88px;
}

.hero__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18em 0.28em;
  margin: 0;
  font-size: clamp(60px, 8.6vw, 104px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* What the app is, in the words people search for, above the line it says it in. */
.hero__eyebrow {
  flex-basis: 100%;
  margin-bottom: 0.25em;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
}

.hero__stamp {
  display: block;
  width: 1.95em;
  height: auto;
  margin-block-start: 0.08em;
  color: var(--link);
}

.hero__lede {
  max-width: 30ch;
  margin: 28px 0 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--text-muted);
}

.hero__lede strong {
  color: var(--text);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 36px;
}

/* The stamp lands once the title is set: the second beat of "I said it. I closed it." */
@media (prefers-reduced-motion: no-preference) {
  .hero__stamp {
    animation: stamp-in 420ms 520ms var(--ease-out) both;
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.6) rotate(6deg);
  }
  70% {
    opacity: 1;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── The demo: a job said aloud becomes a slip, and the slip is stamped ── */

.demo__card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
}

.demo__heard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  /* Three lines of the longest sentence, so the slip below never jumps. */
  min-height: 96px;
}

.demo__echo {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--link);
}

.demo__echo svg {
  position: relative;
  width: 100%;
  height: 100%;
}

/* The mark's own outline ripples out from it while it listens: a circle with its top-left
   quarter squared off. Physical corners on purpose; the mark is not mirrored in RTL. */
.ripple {
  --ripple-color: var(--signal);
  --ripple-dur: 1.6s;
  position: relative;
}

.ripple::before,
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--ripple-color);
  border-radius: 0 50% 50% 50%;
  opacity: 0;
}

.is-listening .ripple::before,
.ripple.is-rippling::before {
  animation: ripple var(--ripple-dur) var(--ease-out) infinite;
}

.is-listening .ripple::after,
.ripple.is-rippling::after {
  animation: ripple var(--ripple-dur) calc(var(--ripple-dur) / 2) var(--ease-out) infinite;
}

@keyframes ripple {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

.demo__said {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
  transition: color 400ms ease;
}

.word {
  transition: opacity 160ms ease;
}

.word.is-pending {
  opacity: 0;
}

.demo.is-heard .demo__said {
  color: var(--text-muted);
}

.slip {
  position: relative;
  margin: 24px 0 0;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}

.slip__row {
  display: grid;
  grid-template-columns: 4.5em 1fr;
  gap: 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--border);
}

.slip__row:last-of-type {
  border-bottom: 0;
}

.slip__row dt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.slip__row dd {
  margin: 0;
  font-weight: 500;
  transition:
    opacity 280ms ease,
    transform 280ms var(--ease-out);
}

/* Stamped over the slip's top corner, half on the paper, as a real stamp lands. */
.slip__stamp {
  position: absolute;
  inset-inline-end: -12px;
  inset-block-start: -26px;
  width: 120px;
  height: auto;
  color: var(--link);
}

.slip__row.is-pending dd {
  opacity: 0;
  transform: translateY(6px);
}

/* ── A day with the app ──────────────────────────────────────────────── */

.section {
  padding-block: 72px;
  border-top: 1px solid var(--border);
}

.section__title {
  max-width: 22ch;
  margin: 0 0 40px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section__lede {
  max-width: 52ch;
  margin: -24px 0 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Features: what the app does, each beside the app's own screen for it ── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 64px;
  padding-block: 48px;
}

.feature + .feature {
  border-top: 1px solid var(--border);
}

.feature__when {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--link);
}

.feature__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.feature__body {
  max-width: 34ch;
  margin: 0;
  color: var(--text-muted);
}

.feature__note {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--text-muted);
}

/* The stage the app's screen stands on: a tonal panel, the app's white screen on it. */
.feature__stage {
  position: relative;
  contain: layout;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 420px;
  margin: 0;
  padding: 40px 32px;
  border-radius: 32px;
  background: var(--surface);
}

/* ── The hero's visual: the phone on the Echo's rings ──────────────────── */

/* The rings reach past the page's edge; the page never scrolls sideways for them. */
main {
  overflow-x: clip;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding-block: 24px;
}

/* The logo's shape, a circle with one corner squared, drawn large and faint behind the phone:
   the word said aloud, carrying out. Each ring brightens in turn, outward. */
.hero__rings {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1000px;
  height: 1000px;
  translate: -50% -50%;
  overflow: visible;
  pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 40%, transparent 78%);
}

.hero__rings path {
  fill: none;
  stroke: var(--accent-border);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 560px;
  height: 560px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-muted), transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__rings path {
    animation: ring-wave 4.8s ease-in-out infinite;
  }

  .hero__rings path:nth-child(2) {
    animation-delay: 0.45s;
  }

  .hero__rings path:nth-child(3) {
    animation-delay: 0.9s;
  }
}

@keyframes ring-wave {
  0%,
  100% {
    opacity: 0.5;
  }
  30% {
    opacity: 1;
  }
}

.hero__device {
  position: relative;
}

/* What the hero's phone is doing: a job said into the mic, a message on its way. */
.hero__said {
  position: absolute;
  inset-inline-start: -176px;
  bottom: 74px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 270px;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow:
    0 1px 2px rgb(11 18 32 / 0.08),
    0 18px 40px -12px rgb(11 18 32 / 0.25);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.hero__said p {
  margin: 0;
}

.hero__said-echo {
  flex: none;
  width: 30px;
  height: 30px;
  color: var(--link);
}

.hero__said-echo svg {
  width: 100%;
  height: 100%;
}

.ui-bubble.hero__sent {
  position: absolute;
  inset-inline-end: -58px;
  top: 300px;
  inset-inline-start: auto;
  bottom: auto;
  z-index: 2;
  max-width: none;
  font-size: 16px;
}

.hero__ticks {
  margin-inline-start: 8px;
  color: #53bdeb;
  font-size: 12px;
  letter-spacing: -0.2em;
}

/* ── The device ──────────────────────────────────────────────────────── */

/* A phone as the hand knows it: a thin brushed-metal band, a black bezel, the island, the
   side buttons, and a soft shadow where it rests. The screen is laid out at the phone's
   real width (402pt) and zoomed to fit. */
.phone {
  --zoom: 0.8;
  position: relative;
  padding: 3px;
  border-radius: calc(56px * var(--zoom) + 3px);
  background: linear-gradient(
    150deg,
    #f1f2f5 0%,
    #b8bcc5 22%,
    #e6e8ec 46%,
    #9da2ac 72%,
    #d9dce2 100%
  );
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.7),
    0 0 0 1px rgb(11 18 32 / 0.12),
    0 2px 4px rgb(11 18 32 / 0.08),
    0 40px 70px -24px rgb(11 18 32 / 0.38),
    0 24px 30px -22px rgb(11 18 32 / 0.3);
}

/* The side buttons: power on one side, the action button and volume on the other. */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8e939d, #d6d9de);
}

.phone::before {
  right: -3px;
  top: 27%;
  height: 11%;
}

.phone::after {
  left: -3px;
  top: 19%;
  height: 4%;
  box-shadow:
    0 calc(var(--zoom) * 70px) 0 #b9bdc5,
    0 calc(var(--zoom) * 70px + 8%) 0 #b9bdc5;
}

.phone__screen {
  position: relative;
  width: 402px;
  height: 874px;
  overflow: hidden;
  border: 12px solid #0a0a0c;
  border-radius: 56px;
  background: var(--bg);
  zoom: var(--zoom);
  box-sizing: content-box;
}

/* The Dynamic Island. */
.phone__screen::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 4;
  width: 124px;
  height: 36px;
  translate: -50% 0;
  border-radius: 20px;
  background: #0a0a0c;
}

.phone--hero {
  --zoom: 0.86;
}

/* ── App UI, after the app's components (sizes are the app's own) ────── */

.ic {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}

.ui-status {
  direction: ltr;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 4px 30px 0 46px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ui-status__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb {
  fill: currentColor;
}

.sb--signal {
  width: 18px;
  height: 12px;
}

.sb--wifi {
  width: 16px;
  height: 12px;
}

.sb--battery {
  width: 27px;
  height: 13px;
}

.ui-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 14px;
}

.ui-top__name {
  width: 92px;
  height: auto;
  color: var(--link);
}

:where(.ui-sheet, .phone, .ui-notice) p {
  margin: 0;
}

.ui-muted {
  color: var(--text-muted);
}

.ui-faint {
  color: var(--text-faint);
}

.ui-strong {
  font-weight: 600;
  line-height: 1.35;
}

.ui-caption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.ui-negative {
  color: var(--negative);
}

.ui-owed {
  color: var(--owed);
}

.ui-next {
  margin: 0 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  line-height: 1.4;
}

.ui-next__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.ui-next__time {
  margin-top: 4px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  text-align: start;
}

.ui-next__name {
  font-size: 22px;
  font-weight: 700;
}

.ui-next__address {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ui-next__address .ic {
  width: 21px;
  height: 21px;
  color: var(--text-muted);
}

.ui-next__address small {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
}

.ui-next__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-raised);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.ui-btn .ic {
  width: 20px;
  height: 20px;
}

.ui-btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.ui-btn--tinted {
  background: var(--accent-muted);
  color: var(--link);
}

.ui-btn--small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.ui-btn--wide {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
}

.ui-heading {
  margin: 24px 20px 10px;
  font-size: 20px;
  font-weight: 600;
}

.ui-heading--flush {
  margin: 0 0 10px;
}

.ui-card {
  margin: 0 20px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-block: 10px;
}

/* Hairlines go between a list's rows, whatever wraps them; a folded row takes its line along. */
:is(.ui-card, .ui-list) > * + * {
  border-top: 1px solid var(--border);
}

:is(.ui-card, .ui-list) > .m-fold.is-folded,
:is(.ui-card, .ui-list) > .m-fold.is-folded + * {
  border-top-color: transparent;
}

.ui-row__text {
  flex: 1;
  min-width: 0;
}

.ui-links {
  display: flex;
  gap: 18px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
}

.ui-links span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ui-links .ic {
  width: 19px;
  height: 19px;
}

/* The count on what waits: orange, the figure in ink. */
.ui-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--signal);
  color: #0b1220;
  font-size: 14px;
  font-weight: 600;
}

.ui-amount {
  font-size: 18px;
  font-weight: 600;
}

.phone .ui-amount {
  font-size: 20px;
}

/* The floating dock with the raised orange mic. */
.ui-dock {
  position: absolute;
  inset-inline: 16px;
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 68px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgb(11 18 32 / 0.08);
  z-index: 1;
}

.phone__screen::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg) 45%, transparent);
}

.ui-dock__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 52px;
  border-radius: 26px;
  font-size: 12px;
  color: var(--text-muted);
}

.ui-dock__tab .ic {
  width: 25px;
  height: 25px;
}

.ui-dock__tab.is-selected {
  background: var(--dock-selected);
  color: var(--on-dock-selected);
  font-weight: 600;
}

.ui-dock__mic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 80px;
  margin-top: -30px;
  font-size: 12px;
  font-weight: 600;
}

.ui-dock__mic > span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--signal);
  color: #ffffff;
  box-shadow:
    0 0 0 5px var(--bg),
    0 8px 18px rgb(11 18 32 / 0.18);
}

.ui-dock__mic .ic {
  width: 28px;
  height: 28px;
}

/* ── Screens on a feature stage ──────────────────────────────────────── */

.ui-sheet {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.4;
}

.ui-title {
  font-size: 22px;
  font-weight: 700;
}

.ui-large {
  font-size: 32px;
  font-weight: 700;
}

.ui-list {
  margin-top: 12px;
}

.ui-row--money {
  flex-wrap: wrap;
}

.ui-row__actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.ui-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 14px 0 18px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ui-segment span {
  padding: 6px;
  border-radius: 999px;
  color: var(--text-muted);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.ui-segment .is-selected {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(11 18 32 / 0.12);
}

.ui-figure {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  text-align: start;
}

/* WhatsApp's own message, as the payment request opens in it. */
.ui-bubble {
  position: absolute;
  inset-inline-start: -28px;
  bottom: -44px;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: #d9fdd3;
  color: #111b21;
  font-size: 15px;
  box-shadow: 0 6px 20px rgb(11 18 32 / 0.14);
}

/* On the way: the next job's card, and the sheet its WhatsApp button opens over it. */

.feature__stage--way {
  gap: 0;
}

.ui-way {
  padding-bottom: 48px;
  border-radius: 28px;
  background: var(--surface);
}

.ui-way .ui-next__time {
  font-size: 34px;
}

.ui-bottom-sheet {
  margin-top: -28px;
  padding-top: 12px;
  border-radius: 28px 28px var(--radius-card) var(--radius-card);
  box-shadow: 0 -10px 30px rgb(11 18 32 / 0.12);
}

.ui-grabber {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 3px;
  background: var(--border);
}

.ui-bottom-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui-row--send {
  min-height: 52px;
  border-radius: 12px;
}

.ui-row--send .ic {
  color: var(--link);
}

.ui-btn--wide.ui-btn--quiet {
  min-height: 46px;
  margin-top: 8px;
}

/* A customer's page, in a phone: the native bar, the name as the page's lead, the actions,
   the account at a glance, then addresses, notes and history, over the sticky new-job button. */

.feature__stage--phone {
  padding-block: 32px;
}

.phone--feature .phone__screen {
  height: 920px;
}

.phone--feature {
  --zoom: 0.74;
}

.phone--feature .phone__screen::after {
  height: 120px;
}

.ui-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 6px 16px;
}

.ui-nav__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
}

.ui-nav__title {
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.ui-page {
  padding: 4px 20px 120px;
}

.ui-lead {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.ui-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.ui-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
  border-radius: 22px;
  background: var(--accent-muted);
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
}

.ui-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
  padding-block: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.ui-stats > div {
  padding-inline: 16px;
}

.ui-stats > div + div {
  border-inline-start: 1px solid var(--border);
}

.ui-stat {
  font-size: 18px;
  font-weight: 600;
  text-align: start;
}

.ui-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ui-group-title {
  margin: 24px 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.ui-text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--link);
}

.ui-text-action .ic {
  width: 19px;
  height: 19px;
}

.ui-card--flush {
  margin: 0;
}

.ui-card__text {
  padding-block: 12px;
}

/* A closed job's money: the figure, and under it whether it came in. */
.ui-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.ui-pay small {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
}

.ui-pay.is-paid {
  color: var(--text-muted);
}

.ui-pay.is-paid small {
  color: var(--positive);
}

.ui-pay .ic {
  width: 14px;
  height: 14px;
}

.ui-sticky {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 20px 34px;
}

.ui-sticky .ui-btn--wide {
  margin-top: 0;
}

/* The message sent from the sheet, as WhatsApp shows it: in the space the sheet left. */
.ui-bubble--way {
  inset-inline-start: auto;
  inset-inline-end: 14%;
  bottom: 30%;
  font-size: 17px;
  transform-origin: bottom left;
}

/* Held at its full height, so the page below stays put when a paid row folds away. */
.feature__stage--money {
  min-height: 560px;
  justify-content: flex-start;
}

/* Offline: the app's warning banner, a closed job's row, and the ink toast that confirms it. */
.ui-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--warning-muted);
  color: var(--warning);
  font-size: 14px;
  font-weight: 500;
}

.ui-banner-space {
  padding-bottom: 18px;
}

.ui-banner .ic {
  width: 20px;
  height: 20px;
}

.ui-toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--text);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
}

.ui-toast__action {
  color: var(--signal);
  font-weight: 600;
}

/* Parts: the screen of parts used, its on/off switch, the range, and the totals. */
.ui-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

/* The platform switch, on. */
.ui-switch {
  position: relative;
  flex: none;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: #34c759;
}

.ui-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 22px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
}

.ui-segment--four {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 6px;
}

.ui-center {
  text-align: center;
}

.ui-qty {
  font-size: 22px;
  font-weight: 600;
}

.ui-parts .ui-row {
  min-height: 60px;
}

/* Close-out */

.ui-quote {
  margin-top: 16px;
  color: var(--text-muted);
}

.ui-close__amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  transition: border-color 220ms ease;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.1;
}

.ui-close__shekel {
  font-size: 36px;
  color: var(--text-muted);
}

.ui-eyebrow {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.ui-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ui-choice__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.ui-choice__item.is-paid {
  border-color: var(--positive);
  background: var(--positive);
  color: var(--on-positive);
}

.ui-choice__item .ic {
  display: none;
  width: 20px;
  height: 20px;
}

.ui-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ui-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}

.ui-chip.is-chosen {
  background: var(--accent);
  color: var(--on-accent);
}

.ui-close__stamp {
  position: absolute;
  inset-inline-end: -18px;
  top: -22px;
  width: 132px;
  height: auto;
  color: var(--link);
}

/* Evening */

.ui-notice {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  padding: 14px 16px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 8px 28px rgb(11 18 32 / 0.12);
  font-size: 15px;
  line-height: 1.4;
}

.ui-notice__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.ui-notice__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.ui-row--job {
  gap: 14px;
}

.ui-time {
  width: 3.2em;
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 32px 64px;
  }

  .feature {
    grid-template-columns: 1fr;
    padding-block: 40px;
  }

  .feature__stage {
    min-height: 0;
    padding: 32px 20px;
  }

  .hero__visual {
    padding-block: 8px 24px;
  }

  .phone--hero {
    --zoom: 0.74;
  }

  .hero__said {
    inset-inline-start: -12px;
    bottom: 96px;
    width: 230px;
    font-size: 14px;
  }

  .ui-bubble.hero__sent {
    inset-inline-end: -12px;
    top: 250px;
  }
}

@media (max-width: 480px) {
  .feature__stage {
    margin-inline: -20px;
    border-radius: 0;
    padding: 36px 16px 44px;
  }

  .feature__stage--money .ui-bubble {
    inset-inline-start: 8px;
  }

  .ui-close__stamp {
    inset-inline-end: -6px;
  }

  body {
    font-size: 17px;
  }

  .bar .button {
    padding-inline: 18px;
  }

  .demo__card {
    padding: 20px;
  }

  .slip {
    padding-inline: 16px;
  }

  .slip__stamp {
    width: 92px;
  }

  .section {
    padding-block: 56px;
  }

  .hero__cta .button {
    width: 100%;
  }
}

/* ── Questions: hairline rows that open in place, no script ─────────── */

.faq {
  max-width: 760px;
  border-bottom: 1px solid var(--border);
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary .ic {
  color: var(--text-faint);
  transition: rotate 200ms var(--ease-out);
}

.faq details[open] summary .ic {
  rotate: 180deg;
}

.faq summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 8px;
}

.faq details p {
  max-width: 60ch;
  margin: -6px 0 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Closing call: the welcome cover's cobalt ────────────────────────── */

.cover {
  margin-block: 24px 0;
  padding: 72px 24px;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}

.cover__echo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: var(--cover-ink);
}

.cover__title {
  margin: 0 auto;
  max-width: 26ch;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.cover__body {
  max-width: 40ch;
  margin: 16px auto 32px;
  color: #c9d2ff;
}

.cover :focus-visible {
  outline-color: #ffffff;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 32px 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer a {
  color: var(--text-muted);
}

/* ── Legal pages ─────────────────────────────────────────────────────── */

.doc {
  max-width: 720px;
  padding-block: 40px 80px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.doc__updated {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 15px;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

.doc h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.doc p,
.doc li {
  color: var(--text);
}

.doc ul,
.doc ol {
  padding-inline-start: 1.4em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .card {
  margin: 24px 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.doc .card > :first-child {
  margin-top: 0;
}

.doc .card > :last-child {
  margin-bottom: 0;
}

/* ── Narrow screens ──────────────────────────────────────────────────── */


/* ── Motion: each section acts out its feature while it is on screen (assets/site.js) ──
   The markup is the finished state; a scene only moves between states. Under reduced
   motion no scene runs, so the page stays as drawn. */

/* A row that folds open and shut. */
.m-fold {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 520ms var(--ease-out),
    opacity 360ms ease;
}

.m-fold > * {
  min-height: 0;
  overflow: hidden;
  transition: padding 520ms var(--ease-out);
}

.m-fold.is-folded > * {
  padding-block: 0;
}

.m-fold.is-folded {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* A press: the control gives under the finger, and a ring spreads from it. */
.is-tap {
  animation: tap 520ms var(--ease-out);
}

@keyframes tap {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent);
  }
  35% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 14px transparent;
  }
}

.ui-row--send.is-tap {
  background: var(--accent-muted);
}

/* A count that changes says so. */
.is-pop {
  animation: pop 420ms var(--ease-out);
}

@keyframes pop {
  40% {
    transform: scale(1.35);
  }
}

/* Things that arrive: a message, a sheet, a notification. */
.m-pop {
  transition:
    opacity 260ms ease,
    transform 420ms var(--ease-out);
  transform-origin: bottom left;
}

.m-pop.is-out {
  opacity: 0;
  transform: scale(0.8) translateY(10px);
}

.m-sheet {
  transition:
    opacity 280ms ease,
    transform 480ms var(--ease-out);
}

.m-sheet.is-out {
  opacity: 0;
  transform: translateY(40%);
}

.m-drop {
  transition:
    opacity 300ms ease,
    transform 520ms var(--ease-out);
}

.m-drop.is-out {
  opacity: 0;
  transform: translateY(-28px) scale(0.97);
}

.m-rise {
  transition:
    opacity 320ms ease,
    transform 420ms var(--ease-out);
}

.m-rise.is-out {
  opacity: 0;
  transform: translateY(10px);
}

.m-stamp {
  transition:
    opacity 160ms ease,
    transform 300ms var(--ease-out);
}

.m-stamp.is-out {
  opacity: 0;
  transform: scale(1.6) rotate(8deg);
}

/* The choices on the close-out move as they are picked. */
.ui-chip {
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.ui-choice__item.is-paid .ic,
.ui-choice__item.is-unpaid .ic {
  display: block;
}

.ui-choice__item.is-unpaid {
  border-color: var(--warning);
  background: var(--warning);
  color: #ffffff;
}

.ui-close__amount.is-typing {
  border-color: var(--accent);
}

/* The closing section's mark listens, as the recorder does. */
.cover__mark {
  --ripple-color: rgb(243 238 228 / 0.7);
  --ripple-dur: 2.4s;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
}

@media (prefers-reduced-motion: reduce) {
  .ripple.is-rippling::before,
  .ripple.is-rippling::after {
    animation: none;
  }
}
