/* Loqelo pre-launch site
   Brand tokens copied from the client's UI kit (tokens.css). */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #0C2229;
  --ink2: #3D5259;
  --mute: #76898E;
  --line: #E4EAE9;
  --bg: #F4F7F6;
  --card: #FFFFFF;
  --teal: #077E88;
  --teal-d: #05626A;
  --teal-50: #E7F3F3;
  --teal-100: #CFE7E7;
  --mint: #65C8A6;
  --mint-50: #E9F7F1;
  --deep: #031C26;
  --amber: #E8912C;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(12,34,41,.06), 0 1px 1px rgba(12,34,41,.04);
  --sh-2: 0 12px 32px -12px rgba(12,34,41,.18), 0 2px 6px rgba(12,34,41,.05);
  --sh-3: 0 30px 60px -20px rgba(3,28,38,.28), 0 6px 16px rgba(3,28,38,.08);
  --fd: "Outfit", system-ui, sans-serif;
  --ft: "DM Sans", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ft);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.ico {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  font-family: var(--ft); font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn .ico { width: 18px; height: 18px; transition: transform .15s ease; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-ink { background: var(--deep); color: #fff; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ink:hover { background: #0b3140; }
.btn-teal:hover { background: var(--teal-d); }

/* ---------- Header ---------- */
.site-header { padding-top: 22px; }
.header-row { display: flex; align-items: center; gap: 32px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 4px; color: var(--mute); font-size: 14px; }
.lang .ico { width: 17px; height: 17px; margin-right: 4px; }
.lang-btn {
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  color: var(--mute); font-weight: 600; font-size: 14px;
}
.lang-btn.is-active { color: var(--teal); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vh, 48px) 0 40px; }

.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: end;
  gap: 24px 48px;
}
.hero-title {
  margin: 0;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero-title .line { display: block; }
.hero-title em { font-style: normal; color: var(--teal); }
.hero-title .dot {
  display: inline-block;
  width: .17em; height: .17em; margin-left: .04em;
  border-radius: 50%; background: var(--amber);
}
.hero-side { padding-bottom: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 8px 14px 8px 12px;
  border-radius: 999px; background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.pill .ico { width: 17px; height: 17px; color: var(--teal); }
.pill strong { font-weight: 700; }
.hero-lead {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--ink2);
  text-wrap: balance;
}

/* Photo strip */
.work-strip {
  list-style: none; margin: clamp(24px, 4vh, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px;
}
.work-tile {
  position: relative; margin: 0;
  height: clamp(180px, 31vh, 300px);
  border-radius: var(--r-l); overflow: hidden;
  background: var(--teal-50);
}
.work-tile picture, .work-tile img { width: 100%; height: 100%; }
.work-tile img { object-fit: cover; }
/* Focal points: front cleaner's face + hands, gardener + shears, mover + boxes */
.work-tile:nth-child(1) img { object-position: 62% 30%; }
.work-tile:nth-child(2) img { object-position: 50% 55%; }
.work-tile:nth-child(3) img { object-position: 55% 45%; }
.tile-tag {
  position: absolute; left: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  font-weight: 600; font-size: 14px; color: var(--ink);
  box-shadow: var(--sh-1);
}
.tile-tag .ico { width: 17px; height: 17px; color: var(--teal); }

/* Two routes */
.routes {
  --route-gap: 72px;
  position: relative;
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--route-gap);
}
.route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 18px;
  padding: 22px 24px;
  background: var(--card);
  border-radius: var(--r-l);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.route:hover { box-shadow: var(--sh-2), inset 0 0 0 1px var(--teal-100); transform: translateY(-2px); }
.route:hover .btn .ico { transform: translateX(3px); }
.route-ico {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal);
}
.route[data-role="provider"] .route-ico { background: #E6EBEC; color: var(--deep); }
.route-ico .ico { width: 26px; height: 26px; }
.route-body { display: grid; gap: 2px; min-width: 0; }
.route-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.route-title { font-family: var(--fd); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.route-text { color: var(--ink2); font-size: 15px; }

/* Signature: one thin line through the Q, spanning the gap between the two routes.
   Horizontal on wide screens, vertical when the routes stack. */
.connector {
  position: absolute; left: 50%; top: 50%;
  width: var(--route-gap); height: 34px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  pointer-events: none;
}
.connector::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 1.5px; margin-top: -0.75px;
  background: var(--teal);
}
.connector img { position: relative; width: 34px; height: 34px; }

.hero-next {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-d); font-weight: 600; font-size: 15px; text-decoration: none;
}
.hero-next .ico { width: 18px; height: 18px; }
.hero-next:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- One job, two perspectives ---------- */
.how { padding: clamp(64px, 9vh, 112px) 0; }
.how-head { max-width: 720px; }
.how-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; padding: 5px 12px;
  border-radius: 999px; background: var(--teal-50); color: var(--teal-d);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.how-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.how-title {
  margin: 0;
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
}
.how-sub { margin: 14px 0 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink2); }

.how-bar {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 13px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 15px;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.chip .ico { width: 18px; height: 18px; color: var(--teal); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--teal-100); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--teal-50); color: var(--teal-d); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn-line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-line:hover { background: var(--teal-50); }
.play-btn .ico { width: 16px; height: 16px; fill: currentColor; }

/* Job card: the customer's request */
.job-card {
  margin-top: 20px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 16px 24px 16px 16px;
  background: var(--card); border-radius: var(--r-l);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.job-thumb { display: block; width: 132px; height: 92px; border-radius: var(--r-m); overflow: hidden; background: var(--teal-50); }
.job-thumb img { width: 100%; height: 100%; object-fit: cover; }
.job-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-d);
  font-size: 13px; font-weight: 600;
}
.job-chip .ico { width: 15px; height: 15px; }
.job-request { margin: 8px 0 0; }
.job-request p {
  margin: 0;
  font-family: var(--fd); font-weight: 600;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -0.01em;
}
.job-request p::before { content: "\201C"; color: var(--teal); }
.job-request p::after { content: "\201D"; color: var(--teal); }

/* Two equal panels joined by the Q line */
.persp-tabs { display: none; }
/* Shared rows: head, step 1, step 2, step 3, button. Both panels use subgrid so
   Customer step N and Provider step N always sit on the same row. */
.persp {
  --route-gap: 72px;
  position: relative;
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto);
  column-gap: var(--route-gap); row-gap: 8px;
}
.persp-panel {
  grid-row: span 5;
  display: grid; grid-template-rows: subgrid;
  padding: 24px;
  background: var(--card); border-radius: var(--r-l);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.persp-head { display: flex; align-items: center; gap: 12px; }
.persp-head h3 { margin: 0; font-family: var(--fd); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.persp-ico {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal);
}
.persp-panel[data-side="provider"] .persp-ico { background: #E6EBEC; color: var(--deep); }
.persp-ico .ico { width: 22px; height: 22px; }

.persp-head { margin-bottom: 12px; }
.steps { grid-row: span 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: subgrid; }
.step {
  position: relative;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px;
  padding: 12px;
  border-radius: var(--r-m);
  transition: background-color .3s ease, box-shadow .3s ease;
}
/* Timeline line between step numbers */
.step:not(:last-child)::after {
  content: ""; position: absolute;
  left: 27px; top: 48px; bottom: -16px; width: 1.5px;
  background: var(--line);
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--ink2);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-family: var(--fd); font-weight: 600; font-size: 15px;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.step-title { margin: 4px 0 0; font-family: var(--fd); font-weight: 600; font-size: 18px; line-height: 1.25; }
.step-text { margin: 4px 0 0; font-size: 15px; color: var(--ink2); }
.step.is-active { background: var(--teal-50); box-shadow: inset 0 0 0 1px var(--teal-100); }
.step.is-active .step-num { background: var(--teal); color: #fff; box-shadow: none; }
.step.is-done .step-num { color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.step.is-done::after { background: var(--teal-100); }

/* Small example cards: offers (customer step 2) and matching request (provider step 1) */
.mini-card {
  position: relative; z-index: 2;
  margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s ease;
}
.step.is-active .mini-card { box-shadow: inset 0 0 0 1px var(--teal-100), var(--sh-1); }
.mini-label {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--teal-50); color: var(--teal-d);
  font-size: 12px; font-weight: 600;
}
.mini-line { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }
.mini-match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.mini-match .job-chip { padding: 2px 9px 2px 7px; font-size: 12px; }
.mini-match .job-chip .ico { width: 14px; height: 14px; }

/* Several offers: three stacked card outlines, top one labelled */
.offers { position: relative; margin: 12px 12px 12px 0; }
.offers .mini-card { margin-top: 0; }
.offers::before, .offers::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 12px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}
.offers::before { transform: translate(6px, 6px); z-index: 1; }
.offers::after { transform: translate(12px, 12px); z-index: 0; }

.persp-cta { margin-top: 16px; justify-self: start; align-self: end; }
.persp-cta:hover .ico { transform: translateX(3px); }

/* Controls that need JS stay hidden without it */
.how:not(.has-js) .chips,
.how:not(.has-js) .play-btn { display: none; }

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

/* ---------- Platform screens ---------- */
.platform { padding: 0 0 clamp(64px, 9vh, 112px); }
.shots {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.shot {
  display: flex; flex-direction: column;
  padding: 8px;
  background: var(--card); border-radius: var(--r-l);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.shot-tag {
  align-self: flex-start;
  margin: 12px 12px 0; padding: 3px 10px;
  border-radius: 999px; background: var(--teal); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.shot[data-side="provider"] .shot-tag { background: var(--deep); }
.shot-title { margin: 8px 12px 14px; font-family: var(--fd); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.shot-frame {
  border-radius: var(--r-m); overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot-frame img { width: 100%; height: auto; }
.shot-mobile { display: none; }
/* Soft edge where a crop cuts through content */
.fade-right img { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
.fade-bottom img { -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
.shot-caption { margin: 14px 12px 10px; font-size: 15px; color: var(--ink2); }
.shot-note { margin: 20px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- Promo video ---------- */
.promo { padding: 0 0 clamp(64px, 9vh, 112px); }
.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "text frame" "ctas frame" ". transcript";
  /* Two equal rows: text sits on the middle line from above, buttons from below, so the group is centred beside the video.
     The transcript gets its own row under the video, so opening it does not move the text column. */
  grid-template-rows: 1fr 1fr auto;
  column-gap: 56px; row-gap: 28px;
}
.promo-ctas { align-self: start; }
.promo-text { grid-area: text; align-self: end; }
.promo-ctas { grid-area: ctas; display: flex; flex-wrap: wrap; gap: 12px; }
.promo-ctas .btn:hover .ico { transform: translateX(3px); }
.promo-frame {
  grid-area: frame;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--deep);
  box-shadow: var(--sh-3);
}
.promo-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--deep); }
.promo-play { display: none; }
.promo-frame.has-js .promo-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center;
  width: 88px; height: 88px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.94); color: var(--teal);
  box-shadow: var(--sh-3), 0 0 0 10px rgba(255,255,255,.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-frame.has-js .promo-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.promo-play .ico { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.promo-frame.is-started .promo-play { display: none; }

/* Transcript disclosure under the video */
.promo-transcript { grid-area: transcript; margin-top: -8px; }
.promo-transcript summary {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; cursor: pointer; list-style: none;
  color: var(--teal-d); font-weight: 600; font-size: 15px;
}
.promo-transcript summary::-webkit-details-marker { display: none; }
.promo-transcript summary .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.promo-transcript[open] summary .ico { transform: rotate(180deg); }
.promo-transcript summary:hover span { text-decoration: underline; text-underline-offset: 4px; }
.transcript {
  list-style: none; margin: 4px 0 0; padding: 16px 20px;
  display: grid; gap: 8px;
  background: var(--card); border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; color: var(--ink2);
}
.transcript li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.tr-time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---------- Waitlist form ---------- */
.waitlist { padding: 0 0 clamp(64px, 9vh, 112px); }
.waitlist-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: 56px; row-gap: 24px; align-items: start;
}
.waitlist-intro { position: sticky; top: 32px; }
.waitlist-card {
  padding: 28px;
  background: var(--card); border-radius: var(--r-xl);
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line);
}
.waitlist-form { display: grid; gap: 20px; }
.waitlist-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* Role switch: two equal options, teal (customer) / ink (provider) when selected */
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px !important; border-radius: 999px !important; background: var(--bg); }
.role-option {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  color: var(--ink2); font-weight: 600; font-size: 15px; text-align: center;
  transition: background-color .15s ease, color .15s ease;
}
.role-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-option .ico { width: 18px; height: 18px; }
.role-option:has(input:checked) { color: #fff; }
.role-option[data-role-option="customer"]:has(input:checked) { background: var(--teal); }
.role-option[data-role-option="provider"]:has(input:checked) { background: var(--deep); }
.role-option:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.field > label, .field > legend { font-weight: 600; font-size: 15px; color: var(--ink); padding: 0; }
.waitlist-form input[type="email"], .waitlist-form select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 0; border-radius: var(--r-m);
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
}
.waitlist-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376898E' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.waitlist-form input[type="email"]:focus, .waitlist-form select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--teal); }
.waitlist-form [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #C2410C !important; }
.field-error { margin: 0; color: #B3400B; font-size: 14px; font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }

.role-fields { display: grid; gap: 20px; }
.role-fields[hidden] { display: none; }
.type-field legend { margin-bottom: 6px; }
.type-options { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; color: var(--ink2);
}
.choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--teal); background: var(--teal-50); color: var(--teal-d); font-weight: 600; }
.choice input, .check input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex: none; }

.consents { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 2px; }
.check:has(input[aria-invalid="true"]) input { outline: 2px solid #C2410C; outline-offset: 2px; }
.consent-help { margin: 0; font-size: 14px; color: var(--mute); }
.consent-help a { color: var(--teal-d); font-weight: 600; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nojs-note { margin: 0; padding: 10px 14px; border-radius: var(--r-s); background: #FFF4E5; color: #8A4B08; font-size: 14px; }
.waitlist-form.has-js .nojs-note { display: none; }
.waitlist-submit { justify-self: start; }
.waitlist-submit:disabled { opacity: .6; cursor: not-allowed; }

.waitlist-result {
  margin-top: 20px; padding: 16px 18px;
  border-radius: var(--r-m); background: var(--teal-50); color: var(--teal-d);
  box-shadow: inset 0 0 0 1px var(--teal-100);
  display: grid; gap: 12px; justify-items: start;
}
.waitlist-result[hidden] { display: none; }
.waitlist-result:focus { outline: 3px solid var(--mint); outline-offset: 3px; }
.waitlist-result[data-state="error"] { background: #FFF1EC; color: #9A3412; box-shadow: inset 0 0 0 1px #F8C9B5; }
.waitlist-form[hidden] + .waitlist-result { margin-top: 0; }
.result-text { margin: 0; font-weight: 600; font-size: 16px; }
.result-action[hidden] { display: none; } /* .btn sets display, so [hidden] needs help */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .routes { --route-gap: 56px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .route { grid-template-columns: auto minmax(0, 1fr); }
  .route .btn { grid-column: 1 / -1; }
  /* Desktop crops get too small to read below 1100px: use the mobile screens instead */
  .shots { gap: 16px; }
  .shot-desktop { display: none; }
  .shot-mobile { display: block; }
}

@media (max-width: 760px) {
  .site-header { padding-top: 10px; }
  .brand img { height: 30px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 18px; }
  .hero-head { grid-template-columns: 1fr; gap: 12px; }
  .hero-side { padding-bottom: 0; }
  .pill { margin-bottom: 10px; padding: 6px 12px 6px 10px; font-size: 13px; }
  .hero-lead { font-size: 16px; }
  .hero .wrap { display: flex; flex-direction: column; }

  /* Compact, equal route buttons before the photos */
  .routes { --route-gap: 44px; order: 2; margin-top: 18px; grid-template-columns: 1fr; }
  .route { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 12px; border-radius: var(--r-m); }
  .route-ico { width: 34px; height: 34px; }
  .route-ico .ico { width: 19px; height: 19px; }
  .route-kicker, .route-text { display: none; }
  .route-title { font-size: 18px; }
  .route .btn { min-height: 46px; font-size: 15px; }
  .connector { width: 26px; height: var(--route-gap); }
  .connector::before { left: 50%; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; margin: 0 0 0 -0.75px; }
  .connector img { width: 24px; height: 24px; }

  .work-strip { order: 3; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .work-tile { height: 150px; }
  .work-tile:first-child { grid-column: 1 / -1; height: 190px; }
  .tile-tag { left: 8px; bottom: 8px; font-size: 13px; padding: 6px 10px 6px 8px; }
  .hero-next { order: 4; }

  /* Preview: job card on top, then Customer / Provider tabs */
  .how { padding: 56px 0; }
  .how-bar { margin-top: 24px; flex-direction: column; align-items: stretch; }
  .chip { min-height: 40px; padding: 0 13px 0 11px; font-size: 14px; }
  .play-btn { align-self: flex-start; }
  .job-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 12px; align-items: start; }
  .job-thumb { width: 72px; height: 72px; }
  .job-request p { font-size: 18px; }
  .how.has-js .persp-tabs {
    display: flex; gap: 4px; margin-top: 16px; padding: 4px;
    background: var(--card); border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .persp-tab {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; border: 0; border-radius: 999px; cursor: pointer;
    background: none; color: var(--ink2); font-weight: 600; font-size: 15px;
  }
  .persp-tab .ico { width: 18px; height: 18px; }
  .persp-tab[aria-selected="true"] { background: var(--teal-50); color: var(--teal-d); }
  .persp { margin-top: 12px; display: block; }
  .persp .connector { display: none; }
  .persp-panel { display: block; padding: 18px; }
  .persp-panel + .persp-panel { margin-top: 12px; }
  .steps { display: grid; gap: 8px; }
  .persp-cta { display: flex; justify-self: stretch; margin-top: 16px; }
  /* With JS: tabs show one panel at a time and replace the panel headings */
  .how.has-js .persp[data-active-tab="customer"] #panel-provider,
  .how.has-js .persp[data-active-tab="provider"] #panel-customer { display: none; }
  .how.has-js .persp-panel + .persp-panel { margin-top: 0; }
  .how.has-js .persp-head { display: none; }

  /* Platform: the supplied mobile screens, stacked */
  .platform { padding-bottom: 56px; }
  .shots { margin-top: 24px; grid-template-columns: 1fr; gap: 16px; }
  .shot-desktop { display: none; }
  .shot-mobile { display: block; }
  .shot-frame { border-radius: var(--r-l); }

  /* Promo video: heading, line, video, then the two buttons stacked */
  .promo { padding-bottom: 56px; }
  .promo-grid { grid-template-columns: 1fr; grid-template-areas: "text" "frame" "transcript" "ctas"; grid-template-rows: auto; row-gap: 20px; }
  .transcript { padding: 14px 16px; font-size: 14px; }
  .promo-frame { border-radius: var(--r-l); }
  .promo-frame.has-js .promo-play { width: 68px; height: 68px; }
  .promo-play .ico { width: 26px; height: 26px; margin-left: 4px; }
  .promo-ctas { flex-direction: column; gap: 10px; }
  .promo-ctas .btn { width: 100%; }

  /* Waitlist: intro, then the form card full width */
  .waitlist { padding-bottom: 56px; }
  .waitlist-grid { grid-template-columns: 1fr; }
  .waitlist-intro { position: static; }
  .waitlist-card { padding: 18px; border-radius: var(--r-l); }
  .role-option { font-size: 14px; padding: 0 8px; gap: 6px; }
  .role-option .ico { display: none; } /* keeps both labels on one line */
  .waitlist-submit { justify-self: stretch; }
}

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