/* Sabab — coming soon. Same tokens as the app (apps/mobile/src/lib/theme.ts): warm ink and paper,
   hairlines, colour only where it means something (success, WhatsApp), the green wordmark the only
   brand colour. Motion is the app's signature: icons drawn in ink, once, in answer to something. */

@font-face { font-family: Plex; src: url(/assets/fonts/IBMPlexSansArabic_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/assets/fonts/IBMPlexSansArabic_600SemiBold.ttf) format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Plex; src: url(/assets/fonts/IBMPlexSansArabic_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: PlexHe; src: url(/assets/fonts/IBMPlexSansHebrew_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: PlexHe; src: url(/assets/fonts/IBMPlexSansHebrew_600SemiBold.ttf) format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: PlexHe; src: url(/assets/fonts/IBMPlexSansHebrew_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root, [data-theme='dark'] {
  --ink: #111110; --bar: #0c0c0b; --surface: #191918; --raised: #232321;
  --line: rgba(255, 255, 250, 0.1); --line-strong: rgba(255, 255, 250, 0.2);
  --primary: #edece8; --on-primary: #111110; --emphasis: #f5f4f0;
  --selected: rgba(255, 255, 250, 0.09); --selected-line: rgba(255, 255, 250, 0.34);
  --text: #edece8; --muted: #aaa8a1; --dim: #86847d;
  --success: #2fbf95; --whatsapp: #25d366; --overlay: rgba(0, 0, 0, 0.62);
  --bezel: #050505; --bezel-edge: rgba(255, 255, 250, 0.16);
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
[data-theme='light'] {
  --ink: #f7f7f4; --bar: #ffffff; --surface: #ffffff; --raised: #efefea;
  --line: rgba(20, 18, 11, 0.1); --line-strong: rgba(20, 18, 11, 0.2);
  --primary: #14120b; --on-primary: #ffffff; --emphasis: #14120b;
  --selected: rgba(20, 18, 11, 0.06); --selected-line: rgba(20, 18, 11, 0.38);
  --text: #14120b; --muted: #55534b; --dim: #706e66;
  --success: #00795c; --whatsapp: #1da851; --overlay: rgba(20, 18, 11, 0.45);
  --bezel: #121211; --bezel-edge: rgba(20, 18, 11, 0.4);
  --shadow: 0 40px 70px -34px rgba(20, 18, 11, 0.35);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: Plex, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background: var(--ink); color: var(--text);
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}
html[lang='he'] body { font-family: PlexHe, Plex, system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
b, strong { font-weight: 700; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--emphasis); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; padding: 8px 14px; background: var(--primary); color: var(--on-primary); border-radius: 999px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }
[data-pending-lang] body > * { visibility: hidden; animation: show 0s 1.2s forwards; }
@keyframes show { to { visibility: visible; } }

/* ---------- header ---------- */
.top {
  position: fixed; inset-inline: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand img { width: 84px; height: auto; display: block; }
.lead { display: flex; align-items: center; gap: 8px; }
.lead .brand { flex: none; margin-inline-end: 10px; }
/* Language: a round globe that opens, in place, into the three languages (same as the app). */
.globe { position: relative; flex: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: width 0.38s cubic-bezier(.2, .8, .2, 1); }
.globe-row { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; align-items: center; padding-inline-end: 4px; white-space: nowrap; }
.globe-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.globe-ico { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; transition: stroke 0.2s; }
.globe.open .globe-ico { stroke: var(--emphasis); }
.globe-names { display: flex; gap: 2px; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity 0.14s, transform 0.26s cubic-bezier(.2, .8, .2, 1); }
[dir='ltr'] .globe-names { transform: translateX(-6px); }
.globe.open .globe-names { opacity: 1; transform: none; pointer-events: auto; transition-delay: 0.09s; transition-duration: 0.26s; }
.globe-names button { height: 32px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.globe-names button:hover { color: var(--text); }
.globe-names button[aria-pressed='true'] { background: var(--selected); color: var(--emphasis); font-weight: 700; box-shadow: inset 0 0 0 1px var(--selected-line); }
.top .contact-btn { flex: none; white-space: nowrap; transition: transform 0.15s, opacity 0.2s; }
.mode { flex: none; }
.mode { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; transition: transform 0.2s; }
.mode:active { transform: scale(0.94); }
.mode .mi { fill: var(--text); grid-area: 1 / 1; transition: opacity 0.3s, transform 0.4s cubic-bezier(.2, .8, .2, 1); }
[data-theme='dark'] .mode .moon, [data-theme='light'] .mode .sun { opacity: 0; transform: rotate(-60deg) scale(0.6); }

/* ---------- type ---------- */
h1, h2 { font-weight: 700; line-height: 1.12; color: var(--emphasis); text-wrap: balance; }
h1 { font-size: clamp(56px, 9.4vw, 132px); line-height: 1.04; }
html[lang='en'] h1, html[lang='en'] h2 { letter-spacing: -0.03em; }
html[lang='en'] h1 { font-size: clamp(50px, 7.6vw, 112px); }
h2 { font-size: clamp(34px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--muted); padding: 6px 14px 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.lede { font-size: clamp(19px, 1.9vw, 24px); color: var(--muted); max-width: 36ch; text-wrap: balance; }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px;
  border-radius: 16px; background: var(--primary); color: var(--on-primary);
  direction: ltr; user-select: none;
}
.store .mi { fill: currentColor; flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-txt small { font-size: 12px; opacity: 0.72; font-weight: 500; }
html[lang='ar'] .store-txt small, html[lang='he'] .store-txt small { direction: rtl; text-align: left; }
.store-txt b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.store + .store { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ---------- hero ---------- */
main { overflow: clip; }
.hero {
  min-height: min(100svh, 980px); display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: 120px clamp(16px, 6vw, 96px) 64px; max-width: 1440px; margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-stage { position: relative; display: grid; justify-items: center; gap: 18px; }
.hint { font-size: 14px; color: var(--dim); transition: opacity 0.6s; }
.hint.gone { opacity: 0; }

/* ---------- phones: the app, drawn in HTML at 390 x 844 and scaled ---------- */
.phone {
  --s: 0.78; --w: calc(390px * var(--s)); --h: calc(844px * var(--s));
  position: relative; width: calc(var(--w) + 22px * var(--s)); height: calc(var(--h) + 22px * var(--s));
  padding: calc(11px * var(--s)); border-radius: calc(60px * var(--s));
  background: var(--bezel); box-shadow: 0 0 0 1px var(--bezel-edge), inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
  flex: none;
}
.phone-glass { width: var(--w); height: var(--h); border-radius: calc(49px * var(--s)); overflow: hidden; position: relative; background: var(--ink); }
.screen {
  position: absolute; top: 0; inset-inline-start: 0; width: 390px; height: 844px; transform: scale(var(--s));
  transform-origin: top left; background: var(--ink); color: var(--text); font-size: 16px; line-height: 1.55;
  display: flex; flex-direction: column; text-align: start; user-select: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}
[dir='rtl'] .screen { transform-origin: top right; }
.hero-phone { --s: 0.86; touch-action: pan-x; cursor: grab; }
.hero-phone:active { cursor: grabbing; }
.mi { fill: currentColor; flex: none; display: block; }
[dir='rtl'] .flip, [dir='ltr'] .flip-ltr { transform: scaleX(-1); }
.mi.ok { fill: var(--success); }
.mi.dim { fill: var(--dim); }
.mi.on { fill: var(--emphasis); }
.veil { filter: blur(4.5px); opacity: 0.85; }
.veil-box { background: var(--raised); filter: blur(1.5px); }

/* status bar (stays left-to-right, like the phone's own) */
.sb { direction: ltr; height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 34px 0 44px; font-weight: 600; font-size: 16px; position: relative; }
.sb-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; align-items: center; gap: 6px; }
.sb-icons i { display: block; background: var(--text); }
.sig { width: 17px; height: 11px; clip-path: polygon(0 100%, 22% 100%, 22% 70%, 0 70%, 0 100%, 26% 100%, 48% 100%, 48% 45%, 26% 45%, 26% 100%, 52% 100%, 74% 100%, 74% 22%, 52% 22%, 52% 100%, 78% 100%, 100% 100%, 100% 0, 78% 0, 78% 100%); }
.wifi { width: 16px; height: 12px; clip-path: polygon(50% 100%, 0 30%, 15% 12%, 50% 0, 85% 12%, 100% 30%); border-radius: 2px; }
.bat { width: 25px; height: 12px; border-radius: 4px; }

/* app header and chips */
.app-head { display: flex; align-items: center; gap: 8px; padding: 6px 20px 10px; }
.app-wm { width: 58px; height: auto; }
.greet { flex: 1; font-size: 14px; color: var(--muted); }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); flex: none; }
.round.sm { width: 40px; height: 40px; }
.round.lg { width: 56px; height: 56px; }
.round.wa .mi { fill: var(--whatsapp); }
.app-chips { display: flex; align-items: center; gap: 6px; padding: 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip .mi { fill: var(--muted); }
.door { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); font-weight: 600; }
.door .ink { stroke: var(--muted); }
.door .mi { fill: var(--dim); }
.pos { padding: 10px 22px 8px; font-size: 13px; color: var(--muted); }

/* the swipe deck */
.deck { position: relative; flex: 1; margin: 0 20px; overflow: hidden; border-radius: 18px; touch-action: none; }
.card {
  position: absolute; inset: 0 0 7% 0; padding: 20px 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  transform: translateY(calc(var(--d, 1) * 106%)) scale(0.94); opacity: 0;
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1), opacity 0.45s ease;
}
.card.is-current { transform: none; opacity: 1; z-index: 2; }
.card.is-next { transform: translateY(102%); opacity: 0.6; z-index: 1; }
.card.is-prev { transform: translateY(-104%) scale(0.94); opacity: 0; }
.card.dragging { transition: none; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-kind { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.card-who { flex: 1; display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.card-who b { font-size: 16px; }
.card-who small { font-size: 13px; color: var(--muted); }
.card-title { font-size: 31px; line-height: 1.2; font-weight: 700; color: var(--emphasis); margin-top: 6px; }
.pay { font-size: 30px; font-weight: 700; color: var(--emphasis); margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta .mi { fill: var(--muted); }
.perks { display: flex; flex-wrap: wrap; gap: 6px; }
.perk { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.perk .mi { fill: var(--muted); }
.snip { font-size: 16px; color: var(--muted); margin-top: 4px; flex: 1; overflow: hidden; }
.more { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.more .mi { fill: var(--muted); }
.apply {
  margin: 14px 20px 12px; height: 56px; border-radius: 16px; background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 700; flex: none;
  transition: transform 0.15s;
}
.apply .mi { fill: currentColor; }
.apply:active { transform: scale(0.98); }
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 10px 6px 30px; background: var(--bar); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--dim); font-weight: 600; min-width: 70px; }
.tab .mi { fill: var(--dim); }
.tab.on { color: var(--emphasis); }
.tab.on .mi { fill: var(--emphasis); }

/* applied sheet */
.sheet-wrap { position: absolute; inset: 0; background: var(--overlay); display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 5; }
.sheet { width: 100%; padding: 30px 24px 40px; background: var(--surface); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transform: translateY(100%); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1); }
.sheet h4 { font-size: 26px; font-weight: 700; color: var(--emphasis); }
.sheet p { color: var(--muted); font-size: 16px; max-width: 30ch; }
.sheet .apply { width: 100%; margin: 12px 0 0; }
.apply.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tick .ink { stroke: var(--success); stroke-width: 1.5; }
.feed.applied .sheet-wrap { opacity: 1; }
.feed.applied .sheet { transform: none; }

/* job page */
.bar { display: flex; align-items: center; gap: 8px; padding: 4px 16px 6px; }
.bar .grow { flex: 1; }
.job-body { flex: 1; padding: 10px 22px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.job-who { display: flex; align-items: center; gap: 12px; }
.job-who .logo { width: 58px; height: 58px; border-radius: 15px; flex: none; }
.job-who > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.job-who b { font-size: 17px; }
.job-who small { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--dim); }
.job-body h3 { font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--emphasis); margin-top: 6px; }
.paybox { font-size: 26px; font-weight: 700; color: var(--emphasis); background: var(--selected); border-radius: 12px; padding: 10px 16px; }
.job-body h5 { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 10px; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.lines i { display: block; height: 11px; border-radius: 6px; background: var(--raised); }
.actbar { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 20px 34px; border-top: 1px solid var(--line); background: var(--bar); }
.actbar .apply { flex: 1; margin: 0; }

/* lists */
.scr-title { font-size: 32px; font-weight: 700; color: var(--emphasis); padding: 6px 22px 4px; }
.scr-sub { display: flex; align-items: center; gap: 5px; font-size: 14px; color: var(--muted); padding: 0 22px 12px; }
.seg { display: flex; margin: 8px 20px 14px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--muted); }
.seg3 span { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; padding: 7px 0; white-space: nowrap; }
.seg3 .mi { flex: none; fill: currentColor; }
.hrow .save { flex: none; align-self: flex-start; }
.seg .on { background: var(--selected); color: var(--emphasis); box-shadow: inset 0 0 0 1px var(--selected-line); }
.rows, .hrows { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 20px; overflow: hidden; }
.row, .hrow { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hrow { align-items: center; gap: 12px; }
.row-kind { padding-top: 4px; }
.row-kind .ink { stroke: var(--muted); }
.row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main b { font-size: 17px; line-height: 1.35; color: var(--emphasis); }
.row-main small { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.row-main small.strong { color: var(--text); font-size: 14px; }
.row-main small .mi { fill: var(--dim); }
.row-main em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--emphasis); }
.yrs { margin-inline-start: auto; color: var(--dim); }
.htile { width: 46px; height: 46px; border-radius: 13px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.join { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; padding: 13px 16px; border-radius: 12px; border: 1px dashed var(--line-strong); font-size: 15px; }
.join > span { flex: 1; }

/* ---------- ink: Sabab's motion signature ---------- */
.ink { fill: none; stroke: var(--text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; flex: none; }
.ink path { stroke-dasharray: 1 1.02; stroke-dashoffset: 0; }
.ink .dot { fill: currentColor; color: var(--text); stroke: none; }
.card-kind .ink, .htile .ink { stroke: var(--text); }
.js .ink path { stroke-dashoffset: 1.01; }
.js .ink .dot { opacity: 0; }
.drawn .ink path, .ink.drawn path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.62s cubic-bezier(.33, 0, .2, 1) calc(var(--i) * 0.13s + var(--delay, 0s));
}
.drawn .ink .dot, .ink.drawn .dot { opacity: 1; transition: opacity 0.3s calc(var(--n) * 0.13s + 0.35s + var(--delay, 0s)); }

/* ---------- trio ---------- */
section { padding: clamp(80px, 12vw, 160px) clamp(16px, 6vw, 96px); max-width: 1440px; margin: 0 auto; }
.trio { text-align: center; }
.trio h2 { margin-bottom: clamp(40px, 6vw, 80px); }
.trio-stage { display: flex; justify-content: center; align-items: center; perspective: 1600px; }
.trio .phone { --s: 0.74; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter 1.1s, opacity 1.1s; }
.trio .p-side { --s: 0.64; --tuck: -0.14; margin-inline: calc(var(--w) * var(--tuck)); filter: blur(1.6px) saturate(0.9); opacity: 0.8; }
.trio .p-a { transform: translateY(40px) rotate(-5deg); z-index: 0; }
.trio .p-b { transform: translateY(40px) rotate(5deg); z-index: 0; }
[dir='ltr'] .trio .p-a { transform: translateY(40px) rotate(5deg); }
[dir='ltr'] .trio .p-b { transform: translateY(40px) rotate(-5deg); }
.trio .p-main { z-index: 1; }
.trio:not(.in) .p-a, .trio:not(.in) .p-b { transform: translateY(90px) rotate(0); opacity: 0; }
.trio:not(.in) .p-main { transform: translateY(60px); opacity: 0; }

/* ---------- trust ---------- */
.trust { display: grid; justify-items: center; gap: 28px; text-align: center; padding-block: clamp(64px, 9vw, 120px); }
.trust h2 { max-width: 18ch; font-size: clamp(32px, 4.4vw, 58px); }
.seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.seal .mi { fill: var(--success); transition: transform 0.9s cubic-bezier(.2, 1.6, .4, 1) 0.2s; }
.trust:not(.in) .seal .mi { transform: scale(0.4) rotate(-40deg); }

/* ---------- trades: the second feature, set apart from jobs ---------- */
.trades { text-align: start; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(32px, 6vw, 96px); max-width: 1080px; margin: 0 auto clamp(48px, 6vw, 80px); }
.feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.feature-copy h2 { max-width: 15ch; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--emphasis); }
.tag .ink { stroke: var(--emphasis); }
.p-handy { --s: 0.7; }
.trade-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: 1080px; margin: 0 auto; }
.trade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; aspect-ratio: 1 / 1;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; font-weight: 600;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s;
  --delay: calc(var(--k) * 0.07s);
}
.trade:hover { border-color: var(--selected-line); transform: translateY(-3px); }
.trade .ink { stroke: var(--text); }

/* ---------- end and footer ---------- */
.end { display: grid; justify-items: center; gap: 22px; text-align: center; padding-bottom: clamp(80px, 10vw, 140px); }
.end-wm { width: clamp(220px, 30vw, 380px); height: auto; }
.end-soon { font-size: clamp(22px, 2.4vw, 30px); color: var(--muted); font-weight: 600; }
.end .stores { justify-content: center; margin-top: 8px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(16px, 6vw, 96px) 36px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); max-width: 1440px; margin: 0 auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* reveal once */
[data-reveal] h2 { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal]:not(.in) h2 { opacity: 0; transform: translateY(24px); }

/* ---------- smaller screens ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 112px; gap: 48px; }
  .hero-copy { align-items: center; }
  .lede { margin-inline: auto; }
  .stores { justify-content: center; }
  .trade-grid { grid-template-columns: repeat(4, 1fr); }
  .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .feature-copy { align-items: center; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { width: 72px; }
  .hero { padding-top: 96px; gap: 36px; min-height: auto; }
  .hero-copy { gap: 20px; }
  .hero-phone { --s: 0.72; }
  .store { height: 54px; padding: 0 18px 0 14px; gap: 10px; }
  .store-txt b { font-size: 17px; }
  .trio-stage { justify-content: center; }
  .trio .phone { --s: 0.58; }
  .trio .p-side { --s: 0.5; }
  .trio .p-side { --tuck: -0.4; }
  .trade-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .p-handy { --s: 0.62; }
  .trade { font-size: 14px; gap: 10px; border-radius: 16px; }
  .foot { flex-direction: column; align-items: center; }
}
@media (max-width: 380px) {
  .hero-phone { --s: 0.66; }
  .trio .phone { --s: 0.52; }
  .trio .p-side { --s: 0.44; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
  .js .ink path { stroke-dashoffset: 0; }
  .js .ink .dot { opacity: 1; }
}

/* Long place names end in an ellipsis; the years stay whole. */
.hrow .row-main small > span:not(.yrs) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hrow .yrs { flex: none; padding-inline-start: 8px; }

/* ---------- the Jobs | Handymen switch and one filter button (as in the app) ---------- */
.ctrl { display: flex; align-items: center; gap: 8px; padding: 0 18px; }
.fpill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.fpill .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpill .mi { fill: var(--text); }
.fpill .mi:last-child { fill: var(--muted); }
.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 44px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); flex: none; }
.sw { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 0 12px; height: 36px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.sw .ink { stroke: var(--muted); transition: stroke 0.3s; }
.sw-pill { position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--selected); box-shadow: inset 0 0 0 1px var(--selected-line); transition: transform 0.36s cubic-bezier(.2, .8, .2, 1); }
[data-side='jobs'] .sw-jobs, [data-side='handymen'] .sw-handy { color: var(--emphasis); font-weight: 700; }
[data-side='jobs'] .sw-jobs .ink, [data-side='handymen'] .sw-handy .ink { stroke: var(--emphasis); }
[data-side='handymen'] .sw-pill { transform: translateX(100%); }
[dir='rtl'] [data-side='handymen'] .sw-pill { transform: translateX(-100%); }
.hero-phone .sw { cursor: pointer; }
/* The resting side keeps its icon still and whole; only the chosen side draws itself. */
.js .sw:not(.inked) .ink path { stroke-dashoffset: 0; }
.js .sw:not(.inked) .ink .dot { opacity: 1; }

[data-side='jobs'] .handy-only, [data-side='handymen'] .jobs-only { display: none; }
.panes { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pane { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: paneIn 0.28s ease; }
[data-side='jobs'] .pane-handy, [data-side='handymen'] .pane-jobs { display: none; }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }
.pane-handy { padding-top: 12px; }
.tab-in { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab .tab-ink { stroke: var(--emphasis); }

/* ---------- contact ---------- */
.contact-btn { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 15px; font-weight: 700; transition: transform 0.15s; }
.contact-btn .mi { fill: currentColor; }
.contact-btn:active { transform: scale(0.97); }
.foot-contact { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.foot-contact:hover { color: var(--text); }

dialog.contact { margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
dialog.contact::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme='light'] dialog.contact::backdrop { background: rgba(20, 18, 11, 0.4); }
dialog.contact[open] .dlg { animation: dlgIn 0.34s cubic-bezier(.2, .8, .2, 1); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.dlg { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 26px 24px; box-shadow: var(--shadow); max-height: calc(100dvh - 24px); overflow: auto; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-head h2 { font-size: 28px; line-height: 1.25; }
.dlg-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); flex: none; }
.dlg-x .mi { fill: var(--muted); }
.dlg-intro p { color: var(--muted); margin: 8px 0 18px; font-size: 16px; }
.cform { display: flex; flex-direction: column; gap: 14px; }
.who { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who legend { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 8px; float: left; width: 100%; }
.who-opt input { position: absolute; opacity: 0; pointer-events: none; }
.who-opt > span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.who-opt input:checked + span { background: var(--selected); border-color: var(--primary); color: var(--emphasis); }
.who-opt input:focus-visible + span { outline: 2px solid var(--emphasis); outline-offset: 2px; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.fld input, .fld textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color 0.2s; resize: vertical; }
.fld input { height: 50px; }
.fld input:focus, .fld textarea:focus { border-color: var(--emphasis); }
.fld input[aria-invalid='true'], .fld textarea[aria-invalid='true'] { border-color: #f97066; }
[dir='rtl'] .fld input[dir='ltr'] { text-align: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cstatus { min-height: 22px; font-size: 14px; color: var(--muted); }
.cstatus[data-error] { color: #f97066; }
[data-theme='light'] .cstatus[data-error], [data-theme='light'] .fld input[aria-invalid='true'] { color: #b42318; border-color: #b42318; }
.csend { height: 54px; border-radius: 16px; background: var(--primary); color: var(--on-primary); font-size: 17px; font-weight: 700; transition: opacity 0.2s, transform 0.15s; }
.csend:active { transform: scale(0.99); }
.csend[aria-busy='true'] { opacity: 0.6; cursor: progress; }
.csend.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); width: 100%; }
.cdone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 0 4px; }
.cdone h3 { font-size: 24px; color: var(--emphasis); outline: none; }
.cdone p { color: var(--muted); margin-bottom: 10px; }
.tick.big .ink { stroke: var(--success); stroke-width: 1.4; }

@media (max-width: 720px) {
  .contact-btn { height: 38px; padding: 0 12px; font-size: 14px; }
  .contact-btn .mi { display: none; }
  .dlg { padding: 20px 18px 18px; border-radius: 20px; }
  .dlg-head h2 { font-size: 23px; }
}
/* On a phone the open globe needs the width: the other controls step aside until it folds back. */
@media (max-width: 560px) {
  .top.globe-open .contact-btn, .top.globe-open .mode { opacity: 0; pointer-events: none; }
  .top.globe-open .mode { width: 0; margin-inline-start: -8px; border-width: 0; overflow: hidden; }
  .mode { transition: transform 0.2s, opacity 0.2s, width 0.3s, margin 0.3s; }
  .globe-names button { padding: 0 10px; }
}
