/* ==========================================================================
   Task.mk — Design system
   Built on Apple's Human Interface Guidelines, adapted for the web:
   · Clarity   — system font, a strict type scale, generous spacing,
                 content first, colour used to mean something.
   · Deference — quiet surfaces and hairline separators; translucent
                 "material" for the header; the listings carry the colour.
   · Depth     — soft layered shadows, springy motion that responds to
                 touch, and a real dark mode (not an inverted light one).
   Brand tint: Task.mk red. Accessibility: WCAG AA contrast, 44px touch
   targets, visible focus rings, reduced-motion support throughout.
   ========================================================================== */

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

  /* Type — the platform's own UI font (SF Pro on Apple devices, Segoe UI
     on Windows, Roboto on Android). All three cover Cyrillic, nothing to
     download, no third-party requests. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* HIG text styles (rem so they follow the user's text-size setting) */
  --t-hero: clamp(2.375rem, 1.5rem + 3vw, 3.625rem);
  --t-large: clamp(1.875rem, 1.45rem + 1.6vw, 2.75rem);
  --t-title1: 1.75rem;
  --t-title2: 1.375rem;
  --t-title3: 1.25rem;
  --t-headline: 1.0625rem;
  --t-body: 1.0625rem;
  --t-callout: 1rem;
  --t-subhead: .9375rem;
  --t-footnote: .8125rem;
  --t-caption: .75rem;

  /* Colour — light appearance */
  --tint-fill: #e31c25;            /* filled buttons, brand mark (white text 4.6:1) */
  --tint-fill-hover: #c8141c;
  --tint: #d0121b;                 /* tinted text & links on light surfaces (5.4:1) */
  --tint-soft: rgba(227, 28, 37, .09);
  --tint-soft-2: rgba(227, 28, 37, .16);
  --focus: #0071e3;
  --focus-soft: rgba(0, 113, 227, .22);

  --label: #1d1d1f;
  --label-2: #5f5f64;              /* secondary text, 6.4:1 on white */
  --label-3: #86868b;              /* placeholders, icons — not for body text */
  --intro-sub: #48484a;            /* "dark grey" line on the intro screen */

  --bg: #ffffff;
  --bg-grouped: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-3: #e8e8ed;
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --separator: rgba(60, 60, 67, .13);
  --field-border: #8e8e93;         /* 3.3:1 against white: visible field edges */
  --material: rgba(255, 255, 255, .72);
  --material-solid: #ffffffee;

  --green: #1f7a35;   --green-soft: rgba(52, 199, 89, .14);
  --orange: #b44a00;  --orange-soft: rgba(255, 149, 0, .15);
  --blue: #0060c7;    --blue-soft: rgba(0, 122, 255, .11);
  --purple: #8338ec;  --purple-soft: rgba(175, 82, 222, .13);
  --red: #c4151e;     --red-soft: rgba(255, 59, 48, .1);
  --star: #f5a300;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .05), 0 14px 40px rgba(0, 0, 0, .1);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .16);
  --shadow-tint: 0 8px 24px rgba(227, 28, 37, .28);

  --danger-fill: #c4151e;
  --segment-active: #ffffff;
  --glow-opacity: .5;
  --bg-section: #f5f5f7;
  --intro-red: #e31c25;
  --hc-label-2: #3a3a3c;
  --hc-separator: rgba(60, 60, 67, .45);
  --moon-display: block;   /* theme switch shows the moon in light mode… */
  --sun-display: none;

  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .8, .2, 1);          /* standard */
  --spring: cubic-bezier(.34, 1.56, .64, 1);    /* a little overshoot */
  --dur: .22s;

  --wrap: 1200px;
  --header-h: 60px;

  /* Legacy names used by a few inline styles in the templates */
  --primary: var(--tint);
  --ink: var(--label);
  --ink-soft: var(--label-2);
  --line: var(--separator);
  --paper: var(--surface);
  --paper-2: var(--surface-2);
  --danger: var(--red);
  --head: var(--font);
  --display: var(--font);
  --body: var(--font);

  accent-color: var(--tint-fill);
}

/* Dark appearance — surfaces step up in brightness instead of shadows.
   Applies when the device is in dark mode (unless the visitor pinned light
   with the switch), or when the visitor pinned dark. The token list is
   repeated once because a media query and a plain selector can't share a block. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --tint-fill: #e5262f;
    --tint-fill-hover: #f23b43;
    --tint: #ff6961;
    --tint-soft: rgba(255, 69, 58, .16);
    --tint-soft-2: rgba(255, 69, 58, .26);
    --focus: #2997ff;
    --focus-soft: rgba(41, 151, 255, .3);

    --label: #f5f5f7;
    --label-2: #a1a1a6;
    --label-3: #6e6e73;
    --intro-sub: #aeaeb2;

    --bg: #000000;
    --bg-grouped: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --surface-3: #3a3a3c;
    --fill: rgba(120, 120, 128, .24);
    --fill-2: rgba(120, 120, 128, .32);
    --separator: rgba(84, 84, 88, .55);
    --field-border: #7c7c80;
    --material: rgba(22, 22, 23, .72);
    --material-solid: #161617ee;

    --green: #30d158;   --green-soft: rgba(48, 209, 88, .16);
    --orange: #ff9f0a;  --orange-soft: rgba(255, 159, 10, .16);
    --blue: #409cff;    --blue-soft: rgba(10, 132, 255, .18);
    --purple: #bf5af2;  --purple-soft: rgba(191, 90, 242, .18);
    --red: #ff6961;     --red-soft: rgba(255, 69, 58, .16);
    --star: #ffb340;

    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .06);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .5);
    --shadow-3: 0 30px 80px rgba(0, 0, 0, .7);
    --shadow-tint: 0 8px 26px rgba(229, 38, 47, .35);

    --danger-fill: #d70015;
    --segment-active: #3a3a3c;
    --glow-opacity: .38;
    --bg-section: #0b0b0c;
    --intro-red: #ff4d55;
    --hc-label-2: #d1d1d6;
    --hc-separator: rgba(200, 200, 205, .5);
    --moon-display: none;    /* …and the sun in dark mode */
    --sun-display: block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --tint-fill: #e5262f;
  --tint-fill-hover: #f23b43;
  --tint: #ff6961;
  --tint-soft: rgba(255, 69, 58, .16);
  --tint-soft-2: rgba(255, 69, 58, .26);
  --focus: #2997ff;
  --focus-soft: rgba(41, 151, 255, .3);

  --label: #f5f5f7;
  --label-2: #a1a1a6;
  --label-3: #6e6e73;
  --intro-sub: #aeaeb2;

  --bg: #000000;
  --bg-grouped: #000000;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .32);
  --separator: rgba(84, 84, 88, .55);
  --field-border: #7c7c80;
  --material: rgba(22, 22, 23, .72);
  --material-solid: #161617ee;

  --green: #30d158;   --green-soft: rgba(48, 209, 88, .16);
  --orange: #ff9f0a;  --orange-soft: rgba(255, 159, 10, .16);
  --blue: #409cff;    --blue-soft: rgba(10, 132, 255, .18);
  --purple: #bf5af2;  --purple-soft: rgba(191, 90, 242, .18);
  --red: #ff6961;     --red-soft: rgba(255, 69, 58, .16);
  --star: #ffb340;

  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .06);
  --shadow-2: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .5);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, .7);
  --shadow-tint: 0 8px 26px rgba(229, 38, 47, .35);

  --danger-fill: #d70015;
  --segment-active: #3a3a3c;
  --glow-opacity: .38;
  --bg-section: #0b0b0c;
  --intro-red: #ff4d55;
  --hc-label-2: #d1d1d6;
  --hc-separator: rgba(200, 200, 205, .5);
  --moon-display: none;
  --sun-display: block;
}
:root[data-theme="light"] { color-scheme: light; }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--fill-2) transparent;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  letter-spacing: -.011em;
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html.intro-open { overflow: hidden; }
main { display: block; outline: none; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
ul, ol { padding-left: 1.25em; }
strong, b { font-weight: 650; }
code { font-family: var(--mono); font-size: .9em; background: var(--fill); padding: .1em .35em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--separator); margin: 1rem 0; }
::selection { background: var(--tint-soft-2); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
:where(input, select, textarea):focus-visible { outline: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }
.wrap-narrow { max-width: 820px; }
.board-texture { display: none; }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; width: 1px !important; height: 1px !important;
  margin: -1px !important; padding: 0 !important; overflow: hidden !important;
  clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--label); color: var(--bg); font-weight: 600; font-size: var(--t-subhead);
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: none; }

.text-link { color: var(--tint); font-weight: 600; text-underline-offset: 3px; }
.text-link:hover { text-decoration: underline; }
.muted-link { color: var(--label-2); }
.muted-link:hover { color: var(--label); }
.danger-link { color: var(--red); font-weight: 600; }
.danger-link:hover { text-decoration: underline; }
.fine-print { color: var(--label-2); font-size: var(--t-footnote); line-height: 1.5; margin: 14px 0 0; }
.fine-print a { color: var(--tint); font-weight: 600; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button-row-center { justify-content: center; }
.subhead { font-size: var(--t-headline); margin: 28px 0 10px; }

/* --------------------------------------------------------------------------
   3. Buttons — capsules, 44px minimum, press feedback
   -------------------------------------------------------------------------- */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: 600 var(--t-callout)/1.2 var(--font); letter-spacing: -.01em;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  text-align: center; white-space: nowrap; user-select: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), transform .18s var(--spring), opacity var(--dur);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn:disabled { opacity: .55; cursor: default; }

.btn-pin { background: var(--tint-fill); color: #fff; }
.btn-pin:hover { background: var(--tint-fill-hover); box-shadow: var(--shadow-tint); }
.btn-tinted { background: var(--tint-soft); color: var(--tint); }
.btn-tinted:hover { background: var(--tint-soft-2); }
.btn-outline { background: var(--surface); color: var(--label); box-shadow: inset 0 0 0 1px var(--field-border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-dark, .btn-on-dark { background: #fff; color: #1d1d1f; }
.btn-on-dark:hover { background: #f0f0f2; }
.btn-danger { background: var(--danger-fill); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-destructive { color: var(--red); box-shadow: inset 0 0 0 1px currentColor; background: transparent; }
.btn-destructive:hover { background: var(--red-soft); }

.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: var(--t-headline); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--t-subhead); }

.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading .icon { visibility: hidden; }
.btn.is-loading::after {
  content: ''; position: absolute; inset: 50% auto auto 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.btn-outline.is-loading::after, .btn-tinted.is-loading::after { border-color: var(--fill-2); border-top-color: var(--label); }
@keyframes spin { to { transform: rotate(360deg); } }

.back-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--tint); font-weight: 600; font-size: var(--t-subhead); margin-bottom: 10px;
}
.back-link .icon { transform: rotate(180deg); }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   4. Header — translucent material, sticky
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--material-solid);
  border-bottom: 1px solid var(--separator);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--material);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.logo {
  display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0;
  font: 750 1.25rem/1 var(--font); letter-spacing: -.03em; color: var(--label);
}
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #f23a42, #d9141d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(227, 28, 37, .35);
}
.logo-dot { color: var(--tint); }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--r-pill); color: var(--label-2); font-size: var(--t-subhead); font-weight: 500;
  transition: color var(--dur), background var(--dur);
}
.main-nav a:hover { color: var(--label); background: var(--fill); }
.main-nav a[aria-current="page"] { color: var(--label); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 2px; border-radius: var(--r-pill); background: var(--fill); }
.lang-switch a {
  min-width: 36px; min-height: 30px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; border-radius: var(--r-pill); font-size: var(--t-caption); font-weight: 600; color: var(--label-2);
  transition: background var(--dur), color var(--dur);
}
.lang-switch a.active { background: var(--segment-active); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--fill); color: var(--label); cursor: pointer;
  transition: background var(--dur), transform .3s var(--spring);
}
.theme-toggle:hover { background: var(--fill-2); }
.theme-toggle:active { transform: scale(.9); }
.theme-toggle .icon-moon { display: var(--moon-display); }
.theme-toggle .icon-sun { display: var(--sun-display); }
.theme-toggle .icon { animation: theme-spin .5s var(--spring); }
@keyframes theme-spin { from { transform: rotate(-90deg) scale(.4); opacity: 0; } }
/* Smooth cross-fade between themes (View Transitions; instant where unsupported) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

.account-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 4px;
  border-radius: var(--r-pill); font-size: var(--t-subhead); font-weight: 600; color: var(--label); white-space: nowrap;
}
.account-link:hover { background: var(--fill); }
.account-link:not(:has(.avatar-img, .avatar-fallback)) { padding: 0 12px; }
.header-cta .icon { margin-left: -4px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; cursor: pointer; color: var(--label);
}
.nav-toggle:hover { background: var(--fill); }
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--separator); padding: 8px 20px 18px; }
.mobile-menu.is-open { display: block; animation: sheet-in .28s var(--ease); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 0 6px;
  font-size: var(--t-body); font-weight: 500; color: var(--label); border-radius: var(--r-sm);
}
.mobile-menu a .icon { color: var(--tint); }
.mobile-menu a:active { background: var(--fill); }
.mobile-menu hr { margin: 6px 0; }
.mobile-lang-switch { display: flex; gap: 8px; padding-top: 10px; }
.mobile-lang-switch a { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--fill); font-size: var(--t-subhead); }
.mobile-lang-switch a.active { background: var(--label); color: var(--bg); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; }
.hero-glow span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--glow-opacity);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-glow span:nth-child(1) { width: 520px; height: 520px; right: 4%; top: 6%; background: radial-gradient(circle, rgba(255, 59, 48, .45), transparent 65%); }
.hero-glow span:nth-child(2) { width: 420px; height: 420px; right: 26%; top: 40%; background: radial-gradient(circle, rgba(255, 159, 10, .35), transparent 65%); animation-delay: -7s; animation-duration: 26s; }
.hero-glow span:nth-child(3) { width: 460px; height: 460px; left: -6%; top: -4%; background: radial-gradient(circle, rgba(10, 132, 255, .2), transparent 65%); animation-delay: -14s; animation-duration: 30s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(30px, -20px, 0) scale(.96); }
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.hero-live {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--shadow-1);
  font-size: var(--t-footnote); color: var(--label-2);
}
.hero-live strong { color: var(--label); }
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex-shrink: 0;
}
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }

.hero h1 { font-size: var(--t-hero); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; }
.hero-copy { container-type: inline-size; }
/* One line at every width: "Ти треба работник?" is ≈9.6em wide, so the size
   follows the column's width (cqi) — capped at 4rem on big screens. */
.hero .hero-title { font-size: clamp(1.75rem, 1.2rem + 3.4vw, 4rem); line-height: 1.05; }
@supports (font-size: 1cqi) { .hero .hero-title { font-size: clamp(1.75rem, 10.2cqi, 4rem); } }
.hero-title-line { white-space: nowrap; }

/* Typewriter — the CSS-Tricks technique (width + steps() + overflow:hidden +
   white-space:nowrap + a blinking border-right caret), with two words
   stacked in ONE fixed-width slot so "Ти треба" never moves; the "?" is the last letter of each word, typed and deleted with it and in the same colour.
   Timeline (8.84s loop): empty 0.5s → type "работа" → hold → delete →
   pause → type "работник" → hold → delete → pause → again.
   These keyframes are the no-JS version (equal steps, as in the article);
   main.js swaps in keyframes measured letter-by-letter so every step lands
   exactly on a letter edge in this proportional font. */
.tw-slot { display: inline-grid; justify-items: start; vertical-align: baseline; white-space: nowrap; }
.tw-word { grid-area: 1 / 1; display: grid; opacity: 0; }   /* both words in the same cell → slot = longest word */
.tw-ghost, .tw-type { grid-area: 1 / 1; }
.tw-ghost { visibility: hidden; }                 /* invisible copy: gives the word its full width, so 100% = the whole word */
.tw-type {
  display: block; box-sizing: content-box; width: 0;
  overflow: hidden; white-space: nowrap;
  border-right: .075em solid transparent;        /* the caret */
  margin-right: -.075em;                          /* caret doesn't push the slot wider */
  animation: tw-caret .75s step-end infinite;
}
.tw-text {
  display: inline-block; white-space: nowrap;
  background: linear-gradient(100deg, #ff3b30 10%, #e31c25 45%, #ff7a1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tw-word-1 { animation: tw-show-1 8.84s step-end infinite; }
.tw-word-2 { animation: tw-show-2 8.84s step-end infinite; }
.tw-word-1 .tw-type { animation: tw-type-1 8.84s infinite, tw-caret .75s step-end infinite; }
.tw-word-2 .tw-type { animation: tw-type-2 8.84s infinite, tw-caret .75s step-end infinite; }
.tw-slot.is-waiting .tw-word, .tw-slot.is-waiting .tw-type,
.tw-slot.is-paused .tw-word, .tw-slot.is-paused .tw-type { animation-play-state: paused; }

@keyframes tw-caret { from, to { border-color: transparent; } 50% { border-color: var(--tint-fill); } }
@keyframes tw-show-1 { 0% { opacity: 1; } 45.02% { opacity: 0; } 94.91% { opacity: 1; } }
@keyframes tw-show-2 { 0% { opacity: 0; } 45.02% { opacity: 1; } 94.91% { opacity: 0; } }
@keyframes tw-type-1 {
  0%     { width: 0;    animation-timing-function: step-end; }
  5.66%  { width: 0;    animation-timing-function: steps(7, end); }   /* typing */
  17.53% { width: 100%; animation-timing-function: step-end; }        /* hold */
  37.90% { width: 100%; animation-timing-function: steps(7, end); }   /* deleting */
  45.02%, 100% { width: 0; }
}
@keyframes tw-type-2 {
  0%, 50.11% { width: 0; animation-timing-function: steps(9, end); }
  65.38% { width: 100%; animation-timing-function: step-end; }
  85.75% { width: 100%; animation-timing-function: steps(9, end); }
  94.91%, 100% { width: 0; }
}
/* The typewriter keeps running with "reduce motion" on: letters appearing in
   place isn't movement (nothing slides, zooms or scrolls), and it's the
   headline's core message. See the exclusion in section 19. */
@media (forced-colors: active) { .tw-text { color: CanvasText; background: none; } }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff3b30 10%, #e31c25 45%, #ff7a1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (forced-colors: active) { .hero h1 em { color: CanvasText; background: none; } }
.hero-sub { font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.45; color: var(--label-2); max-width: 36em; margin: 0 0 30px; }

.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 560px;
  padding: 6px 6px 6px 18px; margin-bottom: 18px;
  background: var(--surface); border-radius: var(--r-pill);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator);
  transition: box-shadow var(--dur) var(--ease);
}
.hero-search:focus-within { box-shadow: var(--shadow-2), 0 0 0 4px var(--focus-soft), inset 0 0 0 1.5px var(--focus); }
.hero-search > .icon { color: var(--label-3); }
.hero-search input {
  flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none;
  font: 400 var(--t-body) var(--font); color: var(--label);
}
.hero-search input::placeholder { color: var(--label-3); }
.hero-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hero-chips a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px 0 6px;
  border-radius: var(--r-pill); background: var(--fill); font-size: var(--t-subhead); font-weight: 500; color: var(--label);
  transition: background var(--dur), transform .18s var(--spring);
}
.hero-chips a:hover { background: var(--fill-2); }
.hero-chips a:active { transform: scale(.96); }
.hero-chips .cat-glyph { width: 26px; height: 26px; border-radius: 50%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-board { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.hero-board-stack, .hero-example { position: relative; width: 100%; max-width: 380px; }
.hero-board-stack .card-listing:nth-child(1), .hero-example .card-listing:nth-of-type(1) {
  position: relative; z-index: 2; box-shadow: var(--shadow-3);
  animation: float 7s ease-in-out infinite;
}
.hero-board-stack .card-listing:nth-child(2), .hero-example .card-listing:nth-of-type(2) {
  position: absolute; z-index: 1; top: 72px; left: 44px; right: -44px;
  transform: rotate(4deg) scale(.94); opacity: .55; box-shadow: var(--shadow-2);
  filter: saturate(.5) blur(.6px);
  animation: float-b 8s ease-in-out infinite;
}
.hero-board-stack .card-listing:nth-child(2).is-visible { opacity: .55; transform: rotate(4deg) scale(.94); }
.hero-example-label {
  position: absolute; top: -40px; left: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--label); color: var(--bg); font-size: var(--t-caption); font-weight: 600;
}
.card-listing.is-example { pointer-events: none; }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes float-b { 50% { translate: 0 8px; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 56px 0 0;
  border-radius: var(--r-lg); overflow: hidden; background: var(--separator);
  box-shadow: var(--shadow-1);
}
.hero-stat { display: flex; flex-direction: column-reverse; gap: 2px; padding: 20px 24px; background: var(--surface); }
.hero-stat dt { font-size: var(--t-footnote); color: var(--label-2); }
.hero-stat dd { margin: 0; font: 700 2rem/1.1 var(--font-round); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stat dd small { font-size: 1rem; font-weight: 600; color: var(--label-2); }

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-page { padding: 36px 0 88px; }
.section-roomy { padding: 96px 0 120px; }
.section-light { background: var(--bg-section); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: var(--t-large); letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { font-size: 1.1875rem; color: var(--label-2); margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; text-align: left; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: var(--t-large); letter-spacing: -.03em; margin-bottom: 8px; }
.page-head p { color: var(--label-2); font-size: 1.125rem; margin: 0; max-width: 40em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px;
  font-size: var(--t-subhead); font-weight: 600; color: var(--tint);
}
.eyebrow-on-dark { color: #ff8a84; }

/* page hero for inner pages (business, legal) */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 40px; text-align: center; isolation: isolate; }
.page-hero::before {
  content: ''; position: absolute; inset: -40% 10% auto; height: 140%; z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, var(--tint-soft-2), transparent 60%);
}
.page-hero h1 { font-size: var(--t-hero); letter-spacing: -.035em; max-width: 16em; margin: 0 auto 16px; }
.page-hero-sub { font-size: 1.1875rem; color: var(--label-2); max-width: 36em; margin: 0 auto; }
.page-hero-legal { padding-bottom: 20px; }
.page-hero-legal h1 { font-size: var(--t-large); }
.page-hero-legal .page-hero-sub { font-size: var(--t-subhead); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 30px 28px; border-radius: var(--r-lg);
  background: var(--surface-2); counter-increment: step;
}
.step::after {
  content: counter(step); position: absolute; top: 22px; right: 26px;
  font: 700 3.25rem/1 var(--font-round); color: var(--fill-2); letter-spacing: -.04em;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 15px; margin-bottom: 20px; color: #fff;
  background: linear-gradient(180deg, #f23a42, #d9141d); box-shadow: 0 6px 16px rgba(227, 28, 37, .3);
}
.step:nth-child(2) .step-icon { background: linear-gradient(180deg, #34c759, #248a3d); box-shadow: 0 6px 16px rgba(52, 199, 89, .3); }
.step:nth-child(3) .step-icon { background: linear-gradient(180deg, #0a84ff, #0060c7); box-shadow: 0 6px 16px rgba(10, 132, 255, .3); }
.step h3 { font-size: var(--t-title3); margin-bottom: 8px; }
.step p { color: var(--label-2); font-size: var(--t-callout); margin: 0; }

/* Categories — iOS Settings-style icon tiles */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform .25s var(--spring), box-shadow var(--dur) var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.cat-card:active { transform: scale(.97); }
.cat-card .cat-glyph { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; transition: transform .3s var(--spring); }
.cat-card:hover .cat-glyph { transform: rotate(-8deg) scale(1.06); }
.cat-name { font-size: var(--t-callout); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.cat-count { font-size: var(--t-footnote); color: var(--label-2); }

.cat-glyph {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: #fff; background: #8e8e93;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.cat-ugostitelstvo  { background: linear-gradient(180deg, #ffa733, #ff8a00); }
.cat-dostava        { background: linear-gradient(180deg, #3395ff, #0a6cff); }
.cat-chuvanje       { background: linear-gradient(180deg, #ff5a7a, #ff2d55); }
.cat-chistenje      { background: linear-gradient(180deg, #4fc3f7, #1aa3dc); }
.cat-selidbi        { background: linear-gradient(180deg, #b8977a, #97775b); }
.cat-gradezhnistvo  { background: linear-gradient(180deg, #ffd23f, #f5b800); color: #3a2a00; }
.cat-it             { background: linear-gradient(180deg, #7b79f0, #5856d6); }
.cat-administracija { background: linear-gradient(180deg, #a1a1a8, #7c7c83); }
.cat-edukacija      { background: linear-gradient(180deg, #4cd964, #28b347); }
.cat-drugo          { background: linear-gradient(180deg, #c77dff, #a64fe0); }

/* Business teaser */
.business-teaser {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: var(--r-xl); color: #f5f5f7;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 59, 48, .45), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 149, 0, .22), transparent 60%),
    #1d1d1f;
  box-shadow: var(--shadow-3);
}
.business-teaser h2 { font-size: var(--t-title1); color: #fff; margin-bottom: 10px; }
.business-teaser p { color: #d2d2d7; margin: 0; max-width: 40em; }
.business-teaser strong { color: #fff; }
.business-teaser-copy { flex: 1 1 420px; }

/* --------------------------------------------------------------------------
   7. Listing cards
   -------------------------------------------------------------------------- */
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.board-grid-single { grid-template-columns: 1fr; }

.card-listing {
  position: relative; display: flex; flex-direction: column;
  padding: 20px 20px 18px; border-radius: var(--r-lg);
  background: var(--surface); color: var(--label);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--separator);
  transition: transform .3s var(--spring), box-shadow .25s var(--ease);
}
.card-listing:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator); }
.card-listing:active { transform: scale(.985); }
.card-listing::before {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--tint-fill); opacity: .9;
}
.card-listing.is-worker::before { background: var(--blue); }

.cl-top { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: var(--t-caption); font-weight: 600; letter-spacing: 0; white-space: nowrap;
}
.tag-job { background: var(--tint-soft); color: var(--tint); }
.tag-worker { background: var(--blue-soft); color: var(--blue); }
.tag-urgent { background: var(--orange-soft); color: var(--orange); }
.tag-new { background: var(--green-soft); color: var(--green); gap: 7px; padding-left: 9px; }
.tag-new .live-dot { width: 6px; height: 6px; }
.tag-cat { background: var(--fill); color: var(--label-2); padding-left: 4px; }
.tag-cat .cat-glyph { width: 18px; height: 18px; border-radius: 50%; }

.cl-title { font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.02em; margin: 0 0 6px; }
.cl-desc {
  font-size: var(--t-subhead); line-height: 1.45; color: var(--label-2); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.cl-freshness { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-footnote); color: var(--label-2); }
.cl-poster { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; font-size: var(--t-footnote); color: var(--label-2); }
.cl-poster-name { font-weight: 600; color: var(--label); }
.cl-rating { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; font-weight: 600; color: var(--label); }
.cl-rating .star-filled { color: var(--star); }
.cl-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--separator);
}
.cl-price { font: 700 1.3125rem/1.1 var(--font-round); letter-spacing: -.02em; color: var(--label); font-variant-numeric: tabular-nums; }
.cl-price small { font: 500 var(--t-footnote) var(--font); color: var(--label-2); margin-left: 2px; }
.cl-city { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-footnote); color: var(--label-2); text-align: right; }

.badge-business {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: var(--r-pill);
  background: var(--blue-soft); color: var(--blue); font-size: var(--t-caption); font-weight: 650; white-space: nowrap;
}
.profile-business { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; }

/* Skeleton (search results loading) */
.skeleton-card { padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--separator); }
.skeleton-line {
  height: 12px; border-radius: 6px; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--fill) 25%, var(--fill-2) 37%, var(--fill) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite;
}
.skeleton-line.w-40 { width: 40%; height: 22px; margin-bottom: 16px; border-radius: 11px; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-70 { width: 70%; margin-bottom: 20px; }
.skeleton-line.w-30 { width: 34%; height: 20px; margin-top: 14px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --------------------------------------------------------------------------
   8. Browse — segmented control + filter bar
   -------------------------------------------------------------------------- */
.type-toggle {
  display: inline-flex; padding: 3px; margin-bottom: 16px; gap: 2px;
  border-radius: var(--r-pill); background: var(--fill);
}
.type-toggle a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px;
  border-radius: var(--r-pill); font-size: var(--t-subhead); font-weight: 600; color: var(--label-2);
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.type-toggle a:hover { color: var(--label); }
.type-toggle a.active { background: var(--segment-active); color: var(--label); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

.filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px; margin-bottom: 20px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--separator);
}
.filter-search { position: relative; flex: 1 1 220px; }
.filter-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--label-3); pointer-events: none; }
.filters input[type="search"], .filters input[type="text"], .filters select {
  min-height: 44px; padding: 0 14px; width: 100%;
  font: 400 var(--t-subhead) var(--font); color: var(--label);
  background: var(--surface-2); border: 0; border-radius: var(--r-sm);
  transition: box-shadow var(--dur);
}
.filters input[type="search"] { padding-left: 40px; }
.filters select {
  width: auto; min-width: 150px; padding-right: 36px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.filters input:focus, .filters select:focus { outline: none; box-shadow: 0 0 0 3px var(--focus-soft), inset 0 0 0 1.5px var(--focus); }
.filter-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-size: var(--t-subhead); font-weight: 500; white-space: nowrap; cursor: pointer; }
.filter-check input { width: 20px; height: 20px; margin: 0; }
.filter-check .icon { color: var(--orange); }
.filters .btn { margin-left: auto; }
.results-count { color: var(--label-2); font-size: var(--t-subhead); margin: 0 0 16px; }
.results-count strong { color: var(--label); }

/* --------------------------------------------------------------------------
   9. Empty states, alerts, banners, status pills
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center; padding: 56px 24px; border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--label-2);
}
.empty-state h2, .empty-state h3 { color: var(--label); font-size: var(--t-title2); margin: 0 0 8px; }
.empty-state p { max-width: 34em; margin: 0 auto; }
.empty-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  margin-bottom: 16px; border-radius: 50%; background: var(--surface); color: var(--tint); box-shadow: var(--shadow-1);
}
.empty-state.compact { padding: 22px 24px; text-align: left; }
.empty-state.compact p { margin: 0; }
.launch-state { background: linear-gradient(160deg, var(--surface-2), var(--tint-soft)); }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r);
  font-size: var(--t-subhead); line-height: 1.45;
}
.alert ul { margin: 0; padding-left: 1.1em; }
.alert-success { background: var(--green-soft); color: var(--label); }
.alert-error { background: var(--red-soft); color: var(--label); }
.alert-error::before {
  content: '!'; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--red); color: #fff;
  font: 800 13px/1 var(--font);
}
.alert-success::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2334C759'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' stroke-dasharray='14' stroke-dashoffset='14'%3E%3Canimate attributeName='stroke-dashoffset' from='14' to='0' dur='0.35s' fill='freeze' begin='0.12s' calcMode='spline' keySplines='0.2 0.8 0.2 1'/%3E%3C/path%3E%3C/svg%3E");
  animation: pop .35s var(--spring) both;
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

.status-banner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  padding: 16px 20px; margin-bottom: 20px; border-radius: var(--r-lg); background: var(--surface-2);
}
.status-banner p { flex: 1; min-width: 220px; margin: 0; font-size: var(--t-subhead); }
.status-banner form { margin: 0; }
.status-banner-paused { background: var(--orange-soft); }
.status-banner-pending_payment { background: var(--tint-soft); }
.status-banner-filled { background: var(--green-soft); }

.status-pill {
  display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font-size: var(--t-caption); font-weight: 600; white-space: nowrap;
}
.status-active { background: var(--fill); color: var(--label); }
.status-pending_payment { background: var(--orange-soft); color: var(--orange); }
.status-paused { background: var(--purple-soft); color: var(--purple); }
.status-filled { background: var(--green-soft); color: var(--green); }
.status-expired { background: var(--fill); color: var(--label-2); }

.safety-note {
  display: flex; align-items: flex-start; gap: 14px; max-width: 760px; margin: 28px auto 0;
  padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface-2);
  font-size: var(--t-subhead); color: var(--label-2);
}
.safety-note .icon { color: var(--green); margin-top: 1px; }
.safety-note strong { color: var(--label); white-space: nowrap; }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.form-card {
  position: relative; max-width: 760px; margin: 0 auto; padding: 40px;
  border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator);
}
.form-card h1 { font-size: var(--t-title1); letter-spacing: -.028em; margin-bottom: 8px; }
.card-title { font-size: var(--t-title2); margin-bottom: 8px; }
.form-card .form-sub { color: var(--label-2); font-size: var(--t-callout); margin: 0 0 28px; }
.form-foot { margin: 20px 0 0; text-align: center; color: var(--label-2); font-size: var(--t-subhead); }
.form-foot a { color: var(--tint); font-weight: 600; }
.form-card.danger-zone h1 { color: var(--red); }
.danger-zone-link { max-width: 640px; margin: 20px auto 0; text-align: center; font-size: var(--t-subhead); color: var(--label-2); }

.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: var(--t-subhead); font-weight: 600; color: var(--label); }
.field .hint { font-weight: 400; color: var(--label-2); }
.field-link { display: inline-flex; align-items: center; min-height: 36px; margin-top: 4px; font-size: var(--t-subhead); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 var(--t-body)/1.35 var(--font); color: var(--label);
  background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-sm);
  transition: border-color var(--dur), box-shadow var(--dur);
}
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) no-repeat right 16px center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--label-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--focus-soft);
}
.field input:disabled { background: var(--surface-2); color: var(--label-2); border-color: var(--separator); }
.field input[type="file"] { min-height: 0; padding: 10px; border-style: dashed; background: var(--surface-2); font-size: var(--t-subhead); color: var(--label-2); }
.field input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: var(--tint-soft); color: var(--tint); font: 600 var(--t-subhead) var(--font); cursor: pointer;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.type-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.type-picker label {
  position: relative; display: block; padding: 18px 18px 18px 20px; border-radius: var(--r);
  background: var(--surface-2); cursor: pointer;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow var(--dur), background var(--dur), transform .2s var(--spring);
}
.type-picker label:active { transform: scale(.98); }
.type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.type-picker label:has(input:checked) { background: var(--tint-soft); box-shadow: inset 0 0 0 2px var(--tint-fill); }
.type-picker label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.type-picker .tp-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: var(--t-headline); margin-bottom: 4px; }
.type-picker .tp-title .icon { color: var(--tint); }
.type-picker .tp-sub { display: block; font-size: var(--t-subhead); color: var(--label-2); }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; font-size: var(--t-subhead); line-height: 1.4; cursor: pointer; }
.checkbox-row input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; }
.checkbox-row a { color: var(--tint); font-weight: 600; }
.checkbox-row .icon { color: var(--orange); display: inline; vertical-align: -3px; }
.checkbox-urgent span { font-weight: 600; }
.checkbox-urgent small { display: block; margin-top: 2px; font-weight: 400; font-size: var(--t-footnote); color: var(--label-2); }
.contact-preferences {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center;
  padding: 16px; margin: 0 0 20px; border-radius: var(--r); background: var(--surface-2);
}
.contact-preferences .checkbox-row { margin: 0; }
.contact-preferences .field { margin: 0; }

.fee-box {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; margin: 8px 0 20px; border-radius: var(--r); background: var(--tint-soft);
}
.fee-box p { margin: 0; font-size: var(--t-subhead); color: var(--label); max-width: 46ch; }
.fee-box b { font: 700 1.5rem/1 var(--font-round); color: var(--tint); white-space: nowrap; }
.fee-box.is-business { background: var(--green-soft); }
.fee-box.is-business b { color: var(--green); }
.fee-box.is-business.is-paid { background: var(--tint-soft); }
.fee-box.is-business.is-paid b { color: var(--tint); }

.avatar-upload-row { display: flex; align-items: center; gap: 16px; }
.avatar-upload-row input[type="file"] { flex: 1; min-width: 0; }

/* Registration loading overlay */
.register-loading-overlay {
  position: absolute; inset: 0; z-index: 20; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: var(--material); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-in .25s ease both;
}
.register-loading-mark { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.register-loading-mark .ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--tint-soft-2); border-top-color: var(--tint-fill); animation: spin .9s linear infinite; }
.register-loading-mark .icon { width: 34px; height: 34px; animation: breathe 1.4s ease-in-out infinite; }
.register-loading-text { display: flex; gap: 2px; font-weight: 600; }
.register-loading-text .dots span { opacity: 0; animation: dots 1.4s infinite; }
.register-loading-text .dots span:nth-child(2) { animation-delay: .2s; }
.register-loading-text .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .75; } }
@keyframes dots { 0%, 20% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* --------------------------------------------------------------------------
   11. Listing detail, profiles, ratings
   -------------------------------------------------------------------------- */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.detail-wrap-single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.detail-card {
  padding: 36px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--separator);
}
.detail-card h1 { font-size: var(--t-title1); letter-spacing: -.028em; margin: 14px 0 16px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-desc { font-size: var(--t-body); line-height: 1.6; color: var(--label); white-space: pre-line; max-width: 68ch; }

/* iOS "inset grouped" list */
.detail-facts { list-style: none; padding: 0; margin: 28px 0 0; border-radius: var(--r); background: var(--surface-2); overflow: hidden; }
.detail-facts li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 46px; padding: 11px 16px; font-size: var(--t-subhead); position: relative;
}
.detail-facts li + li::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--separator); }
.detail-facts li span:first-child { color: var(--label-2); }
.detail-facts li span:last-child { font-weight: 600; text-align: right; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.contact-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 26px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator);
}
.contact-kicker { margin: 0 0 4px; font-size: var(--t-footnote); font-weight: 600; color: var(--label-2); text-transform: none; }
.contact-price { font: 700 2.25rem/1.05 var(--font-round); letter-spacing: -.03em; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.contact-price small { font: 500 var(--t-subhead) var(--font); color: var(--label-2); letter-spacing: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; border-radius: var(--r); background: var(--surface-2); }
.contact-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; position: relative; font-size: var(--t-subhead); }
.contact-row + .contact-row::before { content: ''; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--separator); }
.contact-row > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-soft); color: var(--tint); flex-shrink: 0; }
.contact-sub, .contact-rating { font-size: var(--t-footnote); color: var(--label-2); }
.contact-rating .stars { font-size: var(--t-footnote); }
.contact-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.contact-secondary form { margin: 0; }
.contact-note { margin: 14px 0 0; font-size: var(--t-footnote); color: var(--label-2); text-align: center; }
.owner-actions { display: grid; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--separator); }
.owner-actions form { margin: 0; }

.profile-page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 640px; margin: 0 auto 18px; }
.profile-page-head h1 { font-size: var(--t-large); letter-spacing: -.03em; margin: 0; }
.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-header h1 { font-size: var(--t-title1); }
.profile-board { max-width: var(--wrap); margin: 0 auto; }
.profile-board .section-head { text-align: left; margin: 56px 0 20px; max-width: none; }
.profile-board .section-head h2 { font-size: var(--t-title1); }
.profile-board .section-head p { font-size: var(--t-callout); }
.plan-status {
  display: grid; gap: 6px; max-width: 640px; margin: 20px auto 0; padding: 20px 22px;
  border-radius: var(--r-lg); background: var(--surface-2);
}
.plan-status p { margin: 0 0 8px; color: var(--label-2); font-size: var(--t-subhead); }
.plan-status > div { display: flex; align-items: center; gap: 8px; }
.plan-status .btn { justify-self: start; }

.avatar-img { border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 1px var(--separator); }
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(180deg, #f5565c, #d9141d); color: #fff; font-weight: 650; line-height: 1;
}
.account-link .avatar-fallback { font-size: 12px !important; }

.stars { display: inline-flex; align-items: center; gap: 1px; font-size: var(--t-subhead); color: var(--label); }
.stars .star { color: var(--fill-2); line-height: 1; }
.stars .star-filled { color: var(--star); }
.stars-num { margin-left: 4px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stars-count { color: var(--label-2); font-size: .92em; }
.stars-empty { color: var(--label-2); font-size: var(--t-subhead); }

.rate-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 26px; border-radius: var(--r-xl); background: var(--surface);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator);
}
.rate-card h3 { font-size: var(--t-title3); margin-bottom: 14px; }
.rate-card p { color: var(--label-2); font-size: var(--t-subhead); }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 16px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  font-size: 32px; line-height: 1; color: var(--fill-2); cursor: pointer; border-radius: 50%;
  transition: color .15s, transform .25s var(--spring);
}
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--star); }
.star-input label:hover { transform: scale(1.15); }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   12. Business plans
   -------------------------------------------------------------------------- */
.page-hero-business h1 { max-width: 14em; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; padding: 0; border: 0; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 32px 30px 28px; border-radius: var(--r-xl); background: var(--surface); cursor: pointer;
  box-shadow: var(--shadow-1), inset 0 0 0 1px var(--separator);
  transition: transform .3s var(--spring), box-shadow .25s var(--ease);
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator); }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { box-shadow: var(--shadow-2), inset 0 0 0 2.5px var(--tint-fill); }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.plan-card.is-featured { background: linear-gradient(170deg, var(--surface) 40%, var(--tint-soft)); }
.plan-flag {
  position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--tint-fill); color: #fff; font-size: var(--t-caption); font-weight: 650;
}
.plan-name { font-size: var(--t-title3); font-weight: 650; }
.plan-price { font-size: var(--t-headline); color: var(--label-2); }
.plan-price b { font: 750 3.25rem/1 var(--font-round); letter-spacing: -.04em; color: var(--label); }
.plan-sub { font-size: var(--t-footnote); color: var(--label-2); }
.plan-perks { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 10px; font-size: var(--t-subhead); }
.plan-perks li { display: flex; gap: 10px; align-items: flex-start; }
.plan-perks li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: var(--green-soft) no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2334C759' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-select {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: var(--r-pill); background: var(--fill); color: var(--label-2); font-weight: 600; font-size: var(--t-subhead);
}
.plan-select-on { display: none; align-items: center; gap: 6px; }
.plan-card:has(input:checked) .plan-select { background: var(--tint-fill); color: #fff; }
.plan-card:has(input:checked) .plan-select-on { display: inline-flex; }
.plan-card:has(input:checked) .plan-select-off { display: none; }
.plan-compare { text-align: center; color: var(--label-2); font-size: var(--t-subhead); margin: 20px auto 36px; max-width: 40em; }

/* --------------------------------------------------------------------------
   13. Legal pages
   -------------------------------------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-toc {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 18px; border-radius: var(--r-lg); background: var(--surface-2); font-size: var(--t-subhead);
}
.legal-toc-title { font-weight: 650; margin: 0 0 8px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 2px; color: var(--label-2); }
.legal-toc a { display: inline-block; padding: 5px 0; color: var(--label-2); }
.legal-toc a:hover { color: var(--tint); }
.legal-toc-switch { display: flex; gap: 6px; margin: 14px 0 0; padding: 3px; border-radius: var(--r-pill); background: var(--fill); }
.legal-toc-switch a { flex: 1; text-align: center; min-height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-weight: 600; color: var(--label-2); }
.legal-toc-switch a.active { background: var(--segment-active); color: var(--label); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.legal-body { max-width: 72ch; }
.legal-intro { font-size: 1.125rem; color: var(--label-2); margin-bottom: 20px; }
.legal-section { padding: 28px 0; border-top: 1px solid var(--separator); }
.legal-section h2 { font-size: var(--t-title2); display: flex; gap: 8px; }
.legal-num { color: var(--tint); font-variant-numeric: tabular-nums; }
.legal-section ul { display: grid; gap: 10px; padding-left: 1.2em; }
.legal-section li::marker { color: var(--label-3); }
.legal-section p, .legal-section li { line-height: 1.6; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 0; padding: 56px 0 24px; background: var(--bg-section); border-top: 1px solid var(--separator); font-size: var(--t-footnote); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.footer-brand p { color: var(--label-2); max-width: 30ch; margin-top: 14px; font-size: var(--t-subhead); }
.footer-col h2 { font-size: var(--t-footnote); font-weight: 650; letter-spacing: 0; color: var(--label); margin: 4px 0 12px; }
.footer-col a:not(.logo) { display: block; padding: 4px 0; color: var(--label-2); }
.footer-col a:not(.logo):hover { color: var(--label); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  padding-top: 18px; border-top: 1px solid var(--separator); color: var(--label-2);
}

/* --------------------------------------------------------------------------
   15. Intro screen — "Добредојде во Task.mk" / "Пронајди работа/работник"
   -------------------------------------------------------------------------- */
.intro-loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--bg); cursor: pointer;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.intro-loader::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 45%, var(--tint-soft-2), transparent 70%);
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.intro-loader.is-playing::before { opacity: 1; }
.intro-loader.is-fading { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-inner { position: relative; text-align: center; }
.intro-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 26px;
  border-radius: 21px; background: linear-gradient(180deg, #f23a42, #d9141d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 40px rgba(227, 28, 37, .35);
  opacity: 0; transform: scale(.4);
}
.intro-heading {
  margin: 0; font-size: clamp(2rem, 1.2rem + 4vw, 4rem); font-weight: 750; line-height: 1.08; letter-spacing: -.04em;
  opacity: 0; transform: translateY(18px); filter: blur(8px);
}
.intro-part-ink { color: var(--label); }
.intro-part-red { color: var(--intro-red); }
.intro-sub {
  margin: 14px 0 0; font-size: clamp(1.0625rem, .9rem + .9vw, 1.5rem); font-weight: 500; letter-spacing: -.015em;
  color: var(--intro-sub); opacity: 0; transform: translateY(12px);
}
.intro-loader.is-playing .intro-mark { animation: intro-mark .7s var(--spring) .05s forwards; }
.intro-loader.is-playing .intro-heading { animation: intro-rise .8s var(--ease) .35s forwards; }
.intro-loader.is-playing .intro-sub { animation: intro-rise .7s var(--ease) 1s forwards; }
@keyframes intro-mark { to { opacity: 1; transform: none; } }
@keyframes intro-rise { to { opacity: 1; transform: none; filter: none; } }

/* --------------------------------------------------------------------------
   16. 404, back-to-top, admin
   -------------------------------------------------------------------------- */
.not-found { max-width: 560px; margin: 0 auto; text-align: center; }
.not-found-code {
  display: block; margin-bottom: 8px; font: 800 7rem/1 var(--font-round); letter-spacing: -.06em;
  background: linear-gradient(180deg, var(--tint-fill), #ff9f0a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found h1 { font-size: var(--t-title1); }
.not-found p { color: var(--label-2); margin-bottom: 28px; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.back-to-top {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--label);
  background: var(--material-solid); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--separator);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--spring), background var(--dur);
}
@supports (backdrop-filter: blur(1px)) { .back-to-top { background: var(--material); backdrop-filter: saturate(180%) blur(20px); } }
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:active { transform: scale(.92); }

.admin-body { min-height: 100vh; background: var(--bg-grouped); }
.admin-wrap { max-width: 1240px; margin: 0 auto; padding: 36px 24px 64px; }
.admin-title { font-size: var(--t-title1); margin: 0; }
.admin-subtitle { font-size: var(--t-title2); margin: 44px 0 14px; }
.admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.admin-actions form { display: inline; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 28px; }
.admin-stats .hero-stat { border-radius: var(--r); box-shadow: var(--shadow-1); padding: 16px 18px; }
.admin-stats .hero-stat b { display: block; font: 700 1.5rem/1.1 var(--font-round); letter-spacing: -.02em; }
.admin-stats .hero-stat span { font-size: var(--t-footnote); color: var(--label-2); }
.admin-stats .hero-stat { flex-direction: column; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--separator); }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--t-subhead); }
.admin-table th { padding: 12px 14px; text-align: left; font-size: var(--t-caption); font-weight: 600; color: var(--label-2); background: var(--surface-2); white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-top: 1px solid var(--separator); vertical-align: middle; }
.admin-table td form { margin: 2px 0; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-empty { text-align: center; padding: 30px !important; color: var(--label-2); }
.admin-login { max-width: 400px; margin: 12vh auto 0; padding: 36px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2); }
.admin-login h1 { font-size: var(--t-title1); margin-bottom: 22px; }

/* --------------------------------------------------------------------------
   17. Scroll reveal (JS adds .is-visible; content is visible without JS
   because the hidden state only applies once the class hook exists)
   -------------------------------------------------------------------------- */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: none; }
}
.steps .reveal:nth-child(2), .cat-grid .reveal:nth-child(2), .board-grid .reveal:nth-child(2), .plan-grid .reveal:nth-child(3) { transition-delay: .06s; }
.steps .reveal:nth-child(3), .cat-grid .reveal:nth-child(3), .board-grid .reveal:nth-child(3) { transition-delay: .12s; }
.cat-grid .reveal:nth-child(4), .board-grid .reveal:nth-child(4) { transition-delay: .16s; }
.cat-grid .reveal:nth-child(5), .board-grid .reveal:nth-child(5) { transition-delay: .2s; }
.cat-grid .reveal:nth-child(6), .board-grid .reveal:nth-child(6) { transition-delay: .24s; }
.cat-grid .reveal:nth-child(n+7) { transition-delay: .28s; }
.hero .reveal:nth-child(2) { transition-delay: .05s; }
.hero .reveal:nth-child(3) { transition-delay: .1s; }
.hero .reveal:nth-child(4) { transition-delay: .15s; }
.hero .reveal:nth-child(5) { transition-delay: .2s; }
.hero .reveal:nth-child(6) { transition-delay: .25s; }
/* cards keep their spring hover after revealing */
.card-listing.reveal.is-visible, .cat-card.reveal.is-visible, .plan-card.reveal.is-visible {
  transition: opacity .6s var(--ease), transform .3s var(--spring), box-shadow .25s var(--ease);
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav a { padding: 0 9px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-board { min-height: 0; padding-top: 40px; }
  .hero-board-stack, .hero-example { max-width: 440px; }
  .hero-board-stack .card-listing:nth-child(2), .hero-example .card-listing:nth-of-type(2) { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-wrap { grid-template-columns: 1fr; }
  .contact-card, .rate-card { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; }
}
@media (max-width: 820px) {
  .main-nav, .lang-switch, .account-link { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { gap: 6px; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .wrap { padding-inline: 16px; }
  .header-cta span { display: none; }
  .header-cta { width: 44px; min-height: 44px; padding: 0; }
  .header-cta .icon { margin: 0; width: 20px; height: 20px; }
  .logo { font-size: 1.125rem; }
  .logo-mark { width: 28px; height: 28px; }
  .hero { padding: 36px 0 40px; }
  .hero h1 br { display: none; }
  .hero-search { padding: 5px 5px 5px 14px; }
  .hero-search .btn { padding: 0 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 36px; }
  .hero-stat { padding: 16px; }
  .hero-stat dd { font-size: 1.625rem; }
  .section { padding: 64px 0; }
  .section-page { padding: 20px 0 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: var(--t-callout); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .board-grid { grid-template-columns: 1fr; gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { padding: 16px; }
  .step { padding: 24px 22px; }
  .business-teaser { padding: 32px 24px; border-radius: var(--r-lg); }
  .business-teaser .btn { width: 100%; }
  .row-2, .row-3, .type-picker, .contact-preferences { grid-template-columns: 1fr; }
  .row-2, .row-3 { row-gap: 0; }
  .form-card, .detail-card { padding: 24px 20px; border-radius: var(--r-lg); }
  .contact-card, .rate-card { padding: 22px 20px; border-radius: var(--r-lg); }
  .filters { flex-direction: column; align-items: stretch; }
  .filters select { width: 100%; }
  .filters .btn { margin-left: 0; width: 100%; }
  .type-toggle { display: flex; }
  .type-toggle a { flex: 1; justify-content: center; padding: 0 8px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 26px 22px 22px; }
  .page-hero { padding: 48px 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .safety-note { flex-wrap: wrap; }
  .admin-actions { flex-direction: column; align-items: flex-start; }
  .admin-table { min-width: 720px; }
}
@media (pointer: coarse) {
  .hero-chips a, .type-toggle a, .lang-switch a { min-height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .legal-toc a { padding: 9px 0; }
}

/* --------------------------------------------------------------------------
   19. Reduced motion & increased contrast
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Everything stops moving — except the typewriter and the intro, which
     switch to motion-free versions (typing / pure fades) just below. */
  *:not(.tw-word, .tw-type, .intro-loader, .intro-loader *), *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro-mark, .intro-heading, .intro-sub { transform: none !important; filter: none !important; }  /* fade in, don't rise or zoom */
  .intro-loader.is-fading { transform: none; }
  .hero-glow span, .hero-board-stack .card-listing, .hero-example .card-listing { animation: none !important; }
  .live-dot::after { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media (prefers-contrast: more) {
  :root { --separator: var(--hc-separator) !important; --label-2: var(--hc-label-2) !important; --fill: rgba(120, 120, 128, .28) !important; }
  .card-listing, .cat-card, .form-card { box-shadow: inset 0 0 0 1.5px var(--label-3); }
}

/* --------------------------------------------------------------------------
   19. Expiry countdown, apply flow, applicants
   -------------------------------------------------------------------------- */
.cl-expiry { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-footnote); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); }
.cl-expiry-soon { background: var(--orange-soft); color: var(--orange); }
.cl-expiry-critical { background: var(--red-soft); color: var(--red); }
.expiry-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--r-pill); font-size: var(--t-caption); font-weight: 650; margin-left: 6px; }
.expiry-chip-soon { background: var(--orange-soft); color: var(--orange); }
.expiry-chip-critical { background: var(--red-soft); color: var(--red); }
.expiry-chip-fresh { background: var(--fill); color: var(--label-2); }

.apply-form { display: grid; gap: 8px; margin-bottom: 10px; }
.apply-form textarea { min-height: 60px; }

.applicant-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.applicant-row { padding-bottom: 10px; border-bottom: 1px solid var(--separator); }
.applicant-row:last-child { border-bottom: 0; padding-bottom: 0; }
.applicant-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.applicant-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.applicant-info strong { color: var(--label); font-size: var(--t-subhead); }
.applicant-meta { font-size: var(--t-caption); color: var(--label-2); }
.applicant-message { margin: 6px 0 0 46px; font-size: var(--t-footnote); color: var(--label-2); }

.badge-count { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--blue); font-size: var(--t-caption); font-weight: 650; vertical-align: middle; }

/* --------------------------------------------------------------------------
   20. Worker & employer profiles
   -------------------------------------------------------------------------- */
.profile-kicker { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 4px; font-size: var(--t-footnote); font-weight: 650; color: var(--blue); text-transform: uppercase; letter-spacing: .02em; }
.profile-header-business .avatar-img, .profile-header-business .avatar-fallback { box-shadow: 0 0 0 3px var(--blue-soft); }
.business-description { margin-top: 10px; }

.profile-experience-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 18px; }
.badge-experience {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: var(--t-caption); font-weight: 650; background: var(--fill); color: var(--label-2);
}
.badge-experience-0 { background: var(--fill); color: var(--label-2); }
.badge-experience-1 { background: var(--blue-soft); color: var(--blue); }
.badge-experience-2 { background: var(--green-soft); color: var(--green); }
.badge-experience-3 { background: var(--green-soft); color: var(--green); }
.badge-experience-4 { background: var(--orange-soft); color: var(--orange); }
.badge-experience-5 { background: var(--orange-soft); color: var(--orange); }
.skill-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--label); font-size: var(--t-caption); font-weight: 550;
  box-shadow: inset 0 0 0 1px var(--separator);
}

.profile-guidelines {
  margin: 8px 0 10px; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--blue-soft); color: var(--label);
}
.profile-guidelines summary {
  cursor: pointer; font-size: var(--t-footnote); font-weight: 650; color: var(--blue);
  display: flex; align-items: center; gap: 6px; list-style: none;
}
.profile-guidelines summary::-webkit-details-marker { display: none; }
.profile-guidelines ul { margin: 10px 0 2px; padding-left: 18px; font-size: var(--t-footnote); color: var(--label-2); display: grid; gap: 6px; }

.business-description-editor { margin-top: 12px; }
.business-description-editor summary { cursor: pointer; font-size: var(--t-footnote); font-weight: 600; color: var(--blue); list-style: none; }
.business-description-editor summary::-webkit-details-marker { display: none; }
.business-description-editor textarea { width: 100%; min-height: 90px; margin-top: 10px; }

/* --------------------------------------------------------------------------
   21. Breadcrumbs (category landing pages)
   -------------------------------------------------------------------------- */
.breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: var(--t-footnote); color: var(--label-3); flex-wrap: wrap; }
.breadcrumbs a { color: var(--label-2); }
.breadcrumbs a:hover { color: var(--label); }
.breadcrumbs [aria-current="page"] { color: var(--label); font-weight: 600; }

/* --------------------------------------------------------------------------
   22. Category email-alert "island" toast + subscription list
   -------------------------------------------------------------------------- */
.sub-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 500;
  width: min(340px, calc(100vw - 36px));
  background: var(--bg-card, #fff); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  padding: 18px 18px 16px; border: 1px solid var(--separator, #e5e5e5);
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .32s ease, transform .32s ease;
}
.sub-toast.sub-toast-show { opacity: 1; transform: translateY(0) scale(1); }
.sub-toast.sub-toast-hidden { opacity: 0; transform: translateY(10px) scale(.98); }
.sub-toast-close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 20px; line-height: 1; color: var(--label-3); cursor: pointer; padding: 4px;
}
.sub-toast-close:hover { color: var(--label); }
.sub-toast-icon { font-size: 22px; margin: 0 0 6px; }
.sub-toast-msg { margin: 0 0 14px; font-size: var(--t-footnote); line-height: 1.45; color: var(--label); padding-right: 14px; }
.sub-toast-actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) {
  .sub-toast { left: 14px; right: 14px; bottom: 14px; width: auto; }
}

.subscription-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.subscription-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bg-tinted, #f6f8f6); border-radius: 10px; padding: 10px 14px;
  font-size: var(--t-footnote);
}
