/* =========================================================
   HireSpec — styles.css
   Global freelance specialists directory
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --border: #e3e7ef;
  --border-strong: #d3d9e6;
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #7c8798;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #f3e8ff 55%, #e0f7fb 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px -8px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, .28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #0f1528;
  --surface: #131a2e;
  --surface-2: #182136;
  --border: #232c44;
  --border-strong: #2f3a56;
  --text: #eef2fb;
  --text-soft: #b3bdd2;
  --text-mute: #7f8aa3;
  --brand: #818cf8;
  --brand-2: #a78bfa;
  --brand-soft: #1c2340;
  --accent: #22d3ee;
  --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, #1a2140 0%, #241a3f 55%, #0f2b33 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 6px 20px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 1.02rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.eyebrow svg { width: 14px; height: 14px; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .92rem; border: 1px solid transparent;
  white-space: nowrap;
}

/* Reduced-motion guard for the .btn base transform transition.
   The base .btn declares a transform transition unconditionally so that
   hover lifts (e.g. .btn-primary:hover) animate smoothly. For users who
   prefer reduced motion the transform transition is removed entirely so
   no motion plays — the visual hover feedback (background, border, color,
   shadow) is preserved, only the transform motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--brand); color: var(--brand); }

/* Reduced-motion guard for primary/outline button hover lifts.
   The translateY(-1px) lift is only applied when the user has NOT
   requested reduced motion. Color, border and shadow feedback is
   preserved in both cases. */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgba(79, 70, 229, .7); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover { transform: none; box-shadow: 0 12px 26px -8px rgba(79, 70, 229, .7); }
  .btn-outline:hover { transform: none; }
}
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--text-soft); }

/* Reduced-motion guard for soft/ghost button hover feedback.
   The soft and ghost button variants transition their background and
   color on hover. For users who prefer reduced motion the hover feedback
   should be instant instead of animating in. The visual end state (hover
   background + text color) is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .btn-soft { transition: background .18s, color .18s; }
  .btn-ghost { transition: background .18s, color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-soft { transition: none !important; }
  .btn-ghost { transition: none !important; }
}

.btn-soft:hover { background: var(--brand); color: #fff; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- 4.1 Loading spinner for busy buttons ---------- */
/* When a button is marked aria-busy="true" (e.g. while a form is being
   submitted), a small spinner is rendered via the ::after pseudo-element
   and animated with the `btnSpin` keyframe animation.

   Reduced-motion guard: for users who prefer reduced motion the spinner
   must not rotate. Instead of the spinning animation we render a static
   indicator (a solid dot) so the busy state is still communicated
   visually — only the motion is removed. The visual end state (a small
   indicator next to the label) is preserved. */
.btn[aria-busy="true"] {
  position: relative;
  pointer-events: none;
}
.btn[aria-busy="true"]::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn[aria-busy="true"]::after {
    animation: btnSpin .7s linear infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn[aria-busy="true"]::after {
    animation: none !important;
    /* Static indicator: a solid dot instead of a rotating ring. */
    border-color: currentColor;
    background: currentColor;
    opacity: .75;
  }
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

/* Reduced-motion guard for the sticky header scroll state.
   The header transitions its border-color, box-shadow and background when
   the page is scrolled (`.is-scrolled`). For users who prefer reduced
   motion the shadow/border should appear instantly instead of animating
   in. The visual end state (border + shadow) is preserved — only the
   transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none !important;
  }
}

.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .7);
}

/* Reduced-motion guard for the brand mark shadow feedback.
   The brand mark (.brand-mark) renders a soft drop shadow that would
   otherwise animate in via a box-shadow transition when its state
   changes (e.g. theme switch swapping the gradient tokens, or the
   header re-rendering). For users who prefer reduced motion the shadow
   should appear instantly instead of transitioning in. The visual end
   state (brand gradient + drop shadow) is preserved — only the
   transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    transition: box-shadow .18s var(--ease), background .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    transition: none !important;
  }
}
.brand-mark svg { width: 19px; height: 19px; }
.brand span { color: var(--brand); }

.primary-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.primary-nav a {
  padding: 8px 14px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500;
  color: var(--text-soft);
}

/* Reduced-motion guard for primary nav link hover feedback.
   The nav links transition background/color on hover. For users who
   prefer reduced motion the hover feedback should be instant instead of
   animating in. The visual end state (hover background + text color) is
   preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .primary-nav a { transition: background .18s, color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav a { transition: none !important; }
}

.primary-nav a:hover { background: var(--surface-2); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; color: var(--text-soft);
}

/* Reduced-motion guard for the generic icon button hover feedback.
   The icon button transitions its background/color/border-color on hover.
   For users who prefer reduced motion the hover feedback should be instant
   instead of animating in. The visual end state (hover background, color
   and border) is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .icon-btn {
    transition: background .18s, color .18s, border-color .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn {
    transition: none !important;
  }
}

.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* Reduced-motion guard for the theme toggle hover lift.
   The theme toggle (.icon-btn#themeToggle) lifts by 1px on hover via a
   transform transition. For users who prefer reduced motion the transform
   transition and the hover lift are disabled so the button stays perfectly
   still — the visual hover feedback (background, color and border changes)
   is preserved, only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .theme-toggle:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: background .18s, color .18s, border-color .18s;
  }
  .theme-toggle:hover { transform: none; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 520px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(79, 70, 229, .16), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(6, 182, 212, .14), transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 18px; }
.hero-copy h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.08rem; color: var(--text-soft); max-width: 520px; margin-bottom: 28px; }

.hero-search {
  display: flex; gap: 8px; padding: 8px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); max-width: 560px;
}
.hero-search .hs-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; flex: 1; min-width: 0; }
.hero-search .hs-field svg { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; }
.hero-search input { border: 0; background: transparent; outline: none; width: 100%; padding: 10px 0; font-size: .95rem; }

/* Reduced-motion guard for the hero search focus ring.
   The focus ring is rendered via box-shadow on :focus-within; for users
   who prefer reduced motion the ring should appear instantly instead of
   transitioning in. The visual state (ring) is preserved — only the
   transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-search { transition: box-shadow .18s, border-color .18s; }
  .hero-search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); border-color: var(--brand); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search { transition: none !important; }
  .hero-search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); border-color: var(--brand); }
}
.hero-search select {
  border: 0; background: transparent; outline: none; padding: 10px 8px; font-size: .9rem;
  color: var(--text-soft); cursor: pointer; border-left: 1px solid var(--border); margin-left: 4px;
}
.hero-search .btn { flex-shrink: 0; }

.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-chip {
  padding: 7px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); font-size: .84rem; font-weight: 500; color: var(--text-soft);
  transition: background .18s, color .18s, border-color .18s;
}
/* Reduced-motion guard for the quick-chip hover lift.
   The chip lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the chip stays perfectly still — the visual hover
   feedback (color and border changes) is preserved, only the motion is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .quick-chip {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .quick-chip:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .quick-chip { transition: background .18s, color .18s, border-color .18s; }
  .quick-chip:hover { transform: none; }
}
.quick-chip:hover { border-color: var(--brand); color: var(--brand); }
.quick-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.hero-stats .stat span { font-size: .84rem; color: var(--text-mute); }

.hero-visual { position: relative; }
.hero-float-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-lg); position: relative;
  margin-top: -72px; margin-left: 32px; z-index: 2;
}

/* Reduced-motion guard for the floating hero card.
   The card gently bobs up and down via the `float` keyframe animation.
   For users who prefer reduced motion the animation is disabled so the
   card stays perfectly still. The visual end state (card at its resting
   position, full opacity, shadow intact) is preserved — only the motion
   is removed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-float-card { animation: float 6s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none !important; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float-card .hfc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-float-card .hfc-avatar {
  width: 48px; height: 48px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.hero-float-card .hfc-name { font-weight: 700; font-size: .98rem; }
.hero-float-card .hfc-role { font-size: .82rem; color: var(--text-mute); }
.hero-float-card .hfc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.hero-float-card .hfc-tags span { font-size: .74rem; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-soft); }

/* Reduced-motion guard for the hero card badge and tag pill feedback.
   The hero badge (.hero-badge) and the tag pills inside the floating hero
   card (.hfc-tags span) transition their background, color, border-color
   and box-shadow when their state changes (e.g. the badge re-rendering on
   theme switch, or tags being swapped when the hero card is refreshed).
   For users who prefer reduced motion those state changes should be
   instant instead of animating in. The visual end state (badge gradient,
   tag pill background + text color) is preserved — only the transitions
   are removed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-badge {
    transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  }
  .hero-float-card .hfc-tags span {
    transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge {
    transition: none !important;
  }
  .hero-float-card .hfc-tags span {
    transition: none !important;
  }
}
.hero-float-card .hfc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.hero-float-card .hfc-rate { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.hero-float-card .hfc-rate small { font-size: .74rem; font-weight: 500; color: var(--text-mute); }
.hero-float-card .hfc-loc { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-mute); }
.hero-float-card .hfc-loc svg { width: 14px; height: 14px; }

/* ---------- 6.1 Hero photo ---------- */
/* Rounded photo card that sits behind the floating profile card in the
   hero visual. The image is clipped by the figure so the hover zoom
   never bleeds outside the rounded corners. */
.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reduced-motion guard for hero photo hover zoom ---------- */
/* The hero photo (.hero-photo img) scales up to 1.04 on hover via a
   transform transition. For users who prefer reduced motion the zoom
   motion is disabled so the image stays at its resting scale — the
   visual end state (image visible, no transform) is preserved, only
   the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img {
    transition: transform .4s var(--ease);
  }
  .hero-photo:hover img,
  .hero-photo:focus-within img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img {
    transition: none !important;
    transform: none !important;
  }
  .hero-photo:hover img,
  .hero-photo:focus-within img {
    transform: none !important;
  }
}

.hero-badge {
  position: absolute; top: -14px; right: -14px;
  background: var(--grad); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 6px;
}
.hero-badge svg { width: 14px; height: 14px; }

/* ---------- 7. Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}

/* Reduced-motion guard for the category card hover lift.
   The card lifts by 3px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the card stays perfectly still — the visual hover
   feedback (shadow and border color changes) is preserved, only the
   motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .category-card {
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  }
  .category-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .category-card {
    transition: box-shadow .2s, border-color .2s;
  }
  .category-card:hover { transform: none; }
}

.category-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.category-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.category-card .cc-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft);
  display: grid; place-items: center; color: var(--brand);
}

/* Reduced-motion guard for the category card icon shadow feedback.
   The category icon (.category-card .cc-icon) renders a soft drop shadow
   that would otherwise animate in via a box-shadow transition when its
   state changes (e.g. the card becoming active, a theme switch swapping
   the gradient tokens, or the card being re-rendered after filtering).
   For users who prefer reduced motion the shadow should appear instantly
   instead of transitioning in. The visual end state (icon background +
   drop shadow) is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .category-card .cc-icon {
    transition: box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-card .cc-icon {
    transition: none !important;
  }
}
.category-card .cc-icon svg { width: 22px; height: 22px; }
.category-card h3 { font-size: 1rem; }
.category-card p { font-size: .82rem; color: var(--text-mute); }
.category-card .cc-count { font-size: .78rem; color: var(--brand); font-weight: 600; margin-top: auto; }

/* ---------- 8. Catalog ---------- */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.catalog-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.catalog-search svg { width: 18px; height: 18px; color: var(--text-mute); flex-shrink: 0; }
.catalog-search input { border: 0; background: transparent; outline: none; width: 100%; padding: 8px 0; font-size: .92rem; }

/* Reduced-motion guard for the catalog search focus ring.
   The focus ring is rendered via box-shadow on :focus-within; for users
   who prefer reduced motion the ring should appear instantly instead of
   transitioning in. The visual state (ring) is preserved — only the
   transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .catalog-search { transition: box-shadow .18s, border-color .18s; border-radius: var(--radius-sm); }
  .catalog-search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-search { transition: none !important; border-radius: var(--radius-sm); }
  .catalog-search:focus-within { box-shadow: 0 0 0 3px var(--brand-soft); }
}
.catalog-clear { border: 0; background: transparent; color: var(--text-mute); padding: 4px; border-radius: 6px; }

/* Reduced-motion guard for the catalog clear button hover feedback.
   The clear button transitions its background/color on hover. For users
   who prefer reduced motion the hover feedback should be instant instead
   of animating in. The visual end state (hover background + danger color)
   is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .catalog-clear { transition: background .18s, color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-clear { transition: none !important; }
}

.catalog-clear:hover { color: var(--danger); background: var(--surface-2); }
.catalog-clear svg { width: 16px; height: 16px; }

.catalog-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fav-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--text-soft);
  transition: background .18s, color .18s, border-color .18s;
}
/* Reduced-motion guard for the favorites filter hover lift.
   The button lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the button stays perfectly still — the visual hover
   feedback (color and border changes) is preserved, only the motion is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .fav-filter {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .fav-filter:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .fav-filter { transition: background .18s, color .18s, border-color .18s; }
  .fav-filter:hover { transform: none; }
}
.fav-filter:hover { border-color: var(--danger); color: var(--danger); }
.fav-filter[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: #fff; }
.fav-filter svg { width: 15px; height: 15px; }
.fav-filter .fav-count { font-size: .74rem; opacity: .8; }

/* Reduced-motion guard for the favorites filter active-state transition.
   The button transitions its background/color/border-color when toggled
   between pressed and unpressed. For users who prefer reduced motion the
   active state should switch instantly instead of animating in. The
   visual end state (pressed background + text color) is preserved — only
   the transition is removed. */
@media (prefers-reduced-motion: reduce) {
  .fav-filter[aria-pressed="true"] {
    transition: none !important;
  }
}

.catalog-sort {
  padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); font-size: .84rem; color: var(--text-soft); cursor: pointer;
}

/* Reduced-motion guard for the catalog sort select hover feedback.
   The sort select transitions its border-color on hover. For users who
   prefer reduced motion the hover feedback should be instant instead of
   animating in. The visual end state (hover border color) is preserved —
   only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .catalog-sort {
    transition: border-color .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-sort {
    transition: none !important;
  }
}

.catalog-sort:hover { border-color: var(--border-strong); }

.catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.catalog-meta p { font-size: .88rem; color: var(--text-mute); }
.catalog-meta strong { color: var(--text); }
.catalog-reset { font-size: .84rem; color: var(--brand); background: transparent; border: 0; font-weight: 600; }

/* Reduced-motion guard for the catalog meta + reset button feedback.
   The catalog meta line (.catalog-meta) and the reset button
   (.catalog-reset) transition their color/opacity when the result count
   updates or when the reset button is hovered. For users who prefer
   reduced motion those state changes should be instant instead of
   animating in. The visual end state (meta text color, reset hover
   underline + color) is preserved — only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .catalog-meta {
    transition: opacity .18s var(--ease), color .18s var(--ease);
  }
  .catalog-reset {
    transition: color .18s var(--ease), opacity .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-meta {
    transition: none !important;
  }
  .catalog-reset {
    transition: none !important;
  }
}

.catalog-reset:hover { text-decoration: underline; }

/* Reduced-motion guard for the catalog reset button entrance animation.
   The reset button fades + slides in via the `catalogResetIn` keyframe
   animation when it becomes visible (i.e. when filters are active). For
   users who prefer reduced motion the animation is disabled entirely so
   the button appears instantly in its final state (opacity 1, no
   transform) — only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .catalog-reset:not([hidden]) { animation: catalogResetIn .28s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-reset { animation: none !important; }
}

@keyframes catalogResetIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--text-soft);
  transition: background .18s, color .18s, border-color .18s;
}

/* Reduced-motion guard for the .chip hover lift.
   The chip lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the chip stays perfectly still — the visual hover
   feedback (color and border changes) is preserved, only the motion is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .chip {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .chip:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .chip { transition: background .18s, color .18s, border-color .18s; }
  .chip:hover { transform: none; }
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-count { font-size: .72rem; opacity: .75; }

/* Reduced-motion guard for the .chip active-state transition.
   The chip transitions its background/color/border-color when it becomes
   the active filter. For users who prefer reduced motion the active state
   should switch instantly instead of animating in. The visual end state
   (active background + text color) is preserved — only the transition is
   removed. */
@media (prefers-reduced-motion: reduce) {
  .chip.is-active {
    transition: none !important;
  }
}

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- 9. Profile card ---------- */
.profile-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer;
}

/* Reduced-motion guard for the profile card hover lift.
   The card lifts by 3px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the card stays perfectly still — the visual hover
   feedback (shadow and border color changes) is preserved, only the
   motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .profile-card {
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card {
    transition: box-shadow .2s, border-color .2s;
  }
}

/* Reduced-motion guard for the profile card entrance animation.
   The card fades + slides in via the `cardIn` keyframe animation with a
   staggered delay (--d). For users who prefer reduced motion the
   animation is disabled entirely so cards appear instantly in their
   final state (opacity 1, no transform) — only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .profile-card { animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0ms); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card { animation: none !important; }
}
.profile-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
@media (prefers-reduced-motion: no-preference) {
  .profile-card:hover { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-card:hover { transform: none; }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-avatar-wrap { position: relative; }
.pc-avatar { width: 48px; height: 48px; border-radius: 14px; }

/* Reduced-motion guard for the profile card avatar state transitions.
   The avatar (.pc-avatar) renders a gradient background that would
   otherwise animate in via a background transition when its state
   changes (e.g. a profile card being re-rendered after favoriting,
   filtering or sorting, or a theme switch swapping the gradient
   tokens). For users who prefer reduced motion those state changes
   should be instant instead of animating in. The visual end state
   (avatar gradient + initials) is preserved — only the transition is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .pc-avatar {
    transition: background .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-avatar {
    transition: none !important;
  }
}
.pc-dot { position: absolute; bottom: -2px; right: -2px; width: 13px; height: 13px; border-radius: 50%; background: var(--success); border: 2px solid var(--surface); }

/* Reduced-motion guard for the availability dot state transitions.
   The availability dot (.pc-dot) and its busy variant (.pc-dot--busy)
   transition their background color when the availability state changes
   (e.g. a profile card being re-rendered after filtering, sorting or
   favoriting, or a live availability update). For users who prefer
   reduced motion those state changes should be instant instead of
   animating in. The visual end state (available/busy dot color) is
   preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .pc-dot {
    transition: background .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-dot {
    transition: none !important;
  }
}

.pc-dot--busy { background: var(--warning); }
.pc-actions { display: flex; align-items: center; gap: 8px; }
.pc-new { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 3px 8px; border-radius: var(--radius-pill); }

/* Reduced-motion guard for the "New" badge state transitions.
   The badge transitions its background/color when its state changes
   (e.g. when a profile is re-rendered after favoriting or filtering).
   For users who prefer reduced motion those state changes should be
   instant instead of animating in. The visual end state (badge colors)
   is preserved — only the transition is removed.

   NOTE: The `.pc-new` badge is only rendered for `isNew` profiles, so
   this guard is scoped to that badge alone. The category badge
   (`.pc-cat`) is covered by its own dedicated guard below — including
   the instance rendered inside the profile detail modal, which reuses
   the same `.pc-cat` class (see `.pc-cat.pm-cat` in the modal markup). */
@media (prefers-reduced-motion: no-preference) {
  .pc-new {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-new {
    transition: none !important;
  }
}
.fav-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; color: var(--text-mute);
}

/* Reduced-motion guard for the favorite button hover lift.
   The button lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the button stays perfectly still — the visual hover
   feedback (color and border changes) is preserved, only the motion is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .fav-btn {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .fav-btn:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .fav-btn {
    transition: background .18s, color .18s, border-color .18s;
  }
  .fav-btn:hover { transform: none; }
}
.fav-btn:hover { color: var(--danger); border-color: var(--danger); }
.fav-btn.is-active { color: var(--danger); border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.fav-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fav-btn.is-active svg { fill: currentColor; }
.pc-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--text); }
.pc-rating svg { width: 14px; height: 14px; fill: var(--warning); stroke: var(--warning); }
.pc-rating span { color: var(--text-mute); font-weight: 500; }

/* Reduced-motion guard for the profile card rating feedback.
   The rating row (.pc-rating) and its star icon transition their color
   and fill when the rating state changes (e.g. a profile being re-rendered
   after favoriting/filtering, or the rating value updating). For users who
   prefer reduced motion those state changes should be instant instead of
   animating in. The visual end state (rating text color + star fill) is
   preserved — only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .pc-rating {
    transition: color .18s var(--ease);
  }
  .pc-rating svg {
    transition: fill .18s var(--ease), stroke .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-rating {
    transition: none !important;
  }
  .pc-rating svg {
    transition: none !important;
  }
}

.profile-card h3 { font-size: 1.05rem; }
.pc-role { font-size: .86rem; color: var(--text-soft); }
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-cat { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); }

/* Reduced-motion guard for the category badge state transitions.
   The badge transitions its background/color when its state changes
   (e.g. when a profile is re-rendered after filtering or when the
   active category highlight updates). For users who prefer reduced
   motion those state changes should be instant instead of animating
   in. The visual end state (badge colors) is preserved — only the
   transition is removed.

   NOTE: The same `.pc-cat` class is reused inside the profile detail
   modal (rendered as `.pc-cat.pm-cat` in the modal header). Because the
   selector below targets `.pc-cat` directly — not a descendant of
   `.profile-card` — the guard automatically covers the modal instance
   as well. The `.pm-cat` modifier only adds spacing (`margin-bottom`)
   and does not declare its own transition, so no additional rule is
   needed for the modal badge. */
@media (prefers-reduced-motion: no-preference) {
  .pc-cat {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-cat {
    transition: none !important;
  }
}
.pc-desc { font-size: .84rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span { font-size: .72rem; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-soft); }

/* Reduced-motion guard for profile card tag pill state transitions.
   The tag pills (.pc-tags span) transition their background and color
   when their state changes (e.g. a profile card being re-rendered after
   favoriting, filtering or sorting). For users who prefer reduced motion
   those state changes should be instant instead of animating in. The
   visual end state (tag pill background + text color) is preserved —
   only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .pc-tags span {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-tags span {
    transition: none !important;
  }
}
.pc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--border); }
.pc-rate { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.pc-rate small { font-size: .72rem; font-weight: 500; color: var(--text-mute); }

/* ---------- 10. Empty state ---------- */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state svg { width: 44px; height: 44px; color: var(--text-mute); }
.empty-state h3 { font-size: 1.15rem; }
.empty-state p { color: var(--text-soft); font-size: .92rem; max-width: 380px; }
.empty-state-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Reduced-motion guard for empty-state action button hover feedback.
   The empty-state action buttons (.empty-state-action) inherit the base
   .btn transitions (background, box-shadow, color, border-color and — for
   non-reduced-motion users — a transform lift). For users who prefer
   reduced motion the hover feedback should be instant instead of
   animating in, and the transform lift must not play. The visual end
   state (hover background, border, color and shadow) is preserved —
   only the transitions and the motion are removed.

   NOTE: The base `.empty-state` container itself declares no transition
   (it is a static layout wrapper), so it is intentionally NOT included
   in this guard — only the interactive `.empty-state-action` buttons
   need the reduced-motion treatment. */
@media (prefers-reduced-motion: no-preference) {
  .empty-state-action {
    transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empty-state-action {
    transition: none !important;
    transform: none !important;
  }
  .empty-state-action:hover,
  .empty-state-action:focus-visible {
    transform: none !important;
  }
}

/* ---------- 11. How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}

/* Reduced-motion guard for the step card hover lift.
   The card lifts by 3px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the card stays perfectly still — the visual hover
   feedback (shadow and border color changes) is preserved, only the
   motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .step-card {
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  }
  .step-card:hover { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .step-card {
    transition: box-shadow .2s, border-color .2s;
  }
  .step-card:hover { transform: none; }
}

.step-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; margin-bottom: 16px;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: .9rem; color: var(--text-soft); }

/* ---------- 12. Reviews ---------- */
.reviews-band { background: var(--grad-soft); border-radius: var(--radius-lg); padding: 48px 32px; }

/* Reduced-motion guard for the reviews band background transitions.
   The reviews band (.reviews-band) renders a soft gradient background
   that would otherwise animate in via a background transition when its
   state changes (e.g. a theme switch swapping the --grad-soft tokens).
   For users who prefer reduced motion the background change should be
   instant instead of animating in. The visual end state (band gradient)
   is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .reviews-band {
    transition: background .2s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-band {
    transition: none !important;
  }
}
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.reviews-score { display: flex; align-items: center; gap: 12px; }
.reviews-score strong { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.reviews-score .rs-stars { display: flex; gap: 2px; }
.reviews-score .rs-stars svg { width: 18px; height: 18px; fill: var(--warning); stroke: var(--warning); }
.reviews-score span { font-size: .84rem; color: var(--text-soft); }

/* Reduced-motion guard for the reviews score star feedback.
   The star icons inside the reviews score block (.reviews-score .rs-stars
   svg) transition their fill and stroke when the score state changes
   (e.g. the score being re-rendered on theme switch or a live update).
   For users who prefer reduced motion those state changes should be
   instant instead of animating in. The visual end state (star fill +
   stroke color) is preserved — only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .reviews-score .rs-stars svg {
    transition: fill .18s var(--ease), stroke .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-score .rs-stars svg {
    transition: none !important;
  }
}
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}

/* Reduced-motion guard for the review card hover lift.
   The card lifts by 4px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the card stays perfectly still — the visual hover
   feedback (shadow and border color changes) is preserved, only the
   motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .review-card {
    transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
  }
  .review-card:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .review-card {
    transition: box-shadow .2s, border-color .2s;
  }
  .review-card:hover { transform: none; }
}

.review-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.review-card .rc-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.review-card .rc-stars svg { width: 15px; height: 15px; fill: var(--warning); stroke: var(--warning); }
.review-card p { font-size: .9rem; color: var(--text-soft); margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author .ra-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; }
.review-author .ra-name { font-weight: 600; font-size: .88rem; }
.review-author .ra-role { font-size: .76rem; color: var(--text-mute); }

/* ---------- 13. Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-card { padding: 24px; }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { font-size: .86rem; color: var(--text-soft); }

/* Reduced-motion guard for the stat number gradient text transitions.
   The stat numbers (.hero-stats .stat strong and .stat-card strong) render
   their text with a gradient background clipped to the glyphs. When the
   theme changes (light <-> dark) the gradient tokens (--grad) swap, which
   would otherwise animate the background/color transition. For users who
   prefer reduced motion the color change should be instant instead of
   animating in. The visual end state (gradient text) is preserved — only
   the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stats .stat strong,
  .stat-card strong {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats .stat strong,
  .stat-card strong {
    transition: none !important;
  }
}

/* ---------- 14. CTA ---------- */
.cta-band {
  background: var(--grad); border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}

/* Reduced-motion guard for the CTA band background transitions.
   The CTA band (.cta-band) renders a gradient background that would
   otherwise animate in via a background transition when its state
   changes (e.g. a theme switch swapping the --grad tokens). For users
   who prefer reduced motion the background change should be instant
   instead of animating in. The visual end state (band gradient) is
   preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .cta-band {
    transition: background .2s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-band {
    transition: none !important;
  }
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 20%, rgba(255,255,255,.18), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-band p { font-size: 1.02rem; opacity: .92; max-width: 520px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { background: #f4f6fb; }

/* ---------- 15. Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { font-size: .88rem; color: var(--text-soft); margin: 14px 0 18px; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-soft); }
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Reduced-motion guard for the footer social icon hover lift.
   The icon lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the icon stays perfectly still — the visual hover
   feedback (background, border and color changes) is preserved, only
   the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .footer-socials a {
    transition: background .18s, color .18s, border-color .18s, transform .18s var(--ease);
  }
  .footer-socials a:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-socials a {
    transition: background .18s, color .18s, border-color .18s;
  }
  .footer-socials a:hover { transform: none; }
}
.footer-socials svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
/* Reduced-motion guard for footer link hover color.
   The footer links transition their color on hover. For users who prefer
   reduced motion the hover color change should be instant instead of
   animating in. The visual end state (hover color) is preserved — only
   the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .footer-col a { transition: color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-col a { transition: none !important; }
}

.footer-col a { font-size: .88rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--brand); }
.footer-newsletter h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 14px; }
.footer-newsletter p { font-size: .86rem; color: var(--text-soft); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface-2); font-size: .86rem; outline: none; }
.newsletter-form input:focus { border-color: var(--brand); }

/* Reduced-motion guard for the newsletter input focus ring.
   The focus ring is rendered via box-shadow; for users who prefer
   reduced motion the ring should appear instantly instead of
   transitioning in. The visual state (border + ring) is preserved —
   only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .newsletter-form input { transition: border-color .18s, box-shadow .18s; }
  .newsletter-form input:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
}

@media (prefers-reduced-motion: reduce) {
  /* Newsletter input border-color change must be instant for
     reduced-motion users — no transition on border-color (or box-shadow)
     so the focus border snaps into place. The visual end state
     (brand-colored border + focus ring) is preserved. */
  .newsletter-form input { transition: none !important; }
  .newsletter-form input:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
}
/* Reduced-motion guard for the newsletter submit button hover lift.
   The button lifts by 1px on hover via a transform transition. For users
   who prefer reduced motion the transform transition and the hover lift
   are disabled so the button stays perfectly still — the visual hover
   feedback (background, shadow, color and border changes) is preserved,
   only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .newsletter-form button {
    transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
  .newsletter-form button:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-form button {
    transition: background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
  .newsletter-form button:hover { transform: none; }
}
.newsletter-error { font-size: .78rem; color: var(--danger); margin-top: 8px; }

/* Reduced-motion guard for the newsletter error message reveal.
   When the newsletter email is invalid, the error message
   (.newsletter-error) is revealed via an opacity transition so it fades
   in smoothly. For users who prefer reduced motion the message should
   appear instantly instead of animating in. The visual end state (error
   text visible, danger color) is preserved — only the transition is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .newsletter-error {
    transition: opacity .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-error {
    transition: none !important;
  }
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-bottom p { font-size: .82rem; color: var(--text-mute); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { font-size: .82rem; color: var(--text-mute); }

/* Reduced-motion guard for footer legal link hover feedback.
   The legal links (.footer-legal a) transition their color on hover. For
   users who prefer reduced motion the hover color change should be instant
   instead of animating in. The visual end state (hover color) is preserved
   — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .footer-legal a { transition: color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-legal a { transition: none !important; }
}

.footer-legal a:hover { color: var(--brand); }

/* ---------- 16. Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px);
}
/* Reduced-motion guard for modal open animations.
   The modal backdrop fades in (fadeIn) and the modal card slides up +
   scales in (modalIn). For users who prefer reduced motion both
   animations are disabled so modals appear instantly. The visual end
   state (modal visible, card at final position/scale) is preserved —
   only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .modal.is-open { display: flex; animation: fadeIn .2s var(--ease); }
  .modal-card { animation: modalIn .28s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .modal.is-open { display: flex; animation: none !important; }
  .modal-card { animation: none !important; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); position: relative;
}
.modal-card--wide { max-width: 860px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center;
  color: var(--text-soft); z-index: 2;
}
/* Reduced-motion guard for the modal close button hover feedback.
   The close button transitions its background/color on hover. For users
   who prefer reduced motion the hover feedback should be instant instead
   of animating in. The visual end state (hover background + text color)
   is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .modal-close { transition: background .18s, color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-close { transition: none !important; }
}

.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-close svg { width: 18px; height: 18px; }
.modal-head { padding: 28px 28px 0; }
.modal-head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-head p { font-size: .9rem; color: var(--text-soft); }
.modal-body { padding: 24px 28px 28px; }

/* ---------- 17. Auth modal ---------- */
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--radius-pill); margin-bottom: 22px; }
.tab { flex: 1; padding: 9px; border-radius: var(--radius-pill); border: 0; background: transparent; font-size: .88rem; font-weight: 600; color: var(--text-soft); }

/* Reduced-motion guard for the auth modal tab switch.
   The tab background/color transition is only applied when the user has
   NOT requested reduced motion. For reduced-motion users the tab switch
   is instant — the visual end state (active tab background + text color)
   is preserved, only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .tab { transition: background .18s, color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .tab { transition: none !important; }
}
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Reduced-motion guard for the auth tab active-state box-shadow.
   The active tab renders a soft drop shadow (--shadow-sm) that would
   otherwise animate in via the .tab background/color transition. For
   users who prefer reduced motion the active state (including its
   box-shadow) must switch instantly — the visual end state (active tab
   background, text color and shadow) is preserved, only the transition
   is removed. */
@media (prefers-reduced-motion: no-preference) {
  .auth-tabs .tab.is-active {
    transition: background .18s, color .18s, box-shadow .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-tabs .tab.is-active {
    transition: none !important;
  }
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--text-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font-size: .92rem; outline: none;
}
/* Reduced-motion guard for form field focus rings and border changes.
   The focus ring is rendered via box-shadow and the border color changes
   on focus/error; for users who prefer reduced motion both should appear
   instantly instead of transitioning in. The visual state (border + ring)
   is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .field input, .field select, .field textarea { transition: border-color .18s, box-shadow .18s; }
}
@media (prefers-reduced-motion: reduce) {
  .field input, .field select, .field textarea {
    transition: none !important;
    /* Border-color changes (focus, .has-error) must be instant for
       reduced-motion users — no transition on border-color or box-shadow
       so the border snaps into place. The visual end state (brand-colored
       focus border + ring, or danger-colored error border) is preserved. */
    border-color: inherit;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    transition: none !important;
  }
  .field.has-error input, .field.has-error select, .field.has-error textarea {
    transition: none !important;
  }
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.field-error { display: none; font-size: .78rem; color: var(--danger); margin-top: 5px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

/* Reduced-motion guard for the validation error message reveal.
   When a field becomes invalid, the error message (.field-error) is
   revealed via a display/opacity transition so it fades in smoothly.
   For users who prefer reduced motion the message should appear
   instantly instead of animating in. The visual end state (error text
   visible, danger color) is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .field-error {
    opacity: 0;
    transition: opacity .18s var(--ease);
  }
  .field.has-error .field-error {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-error {
    opacity: 1;
    transition: none !important;
  }
  .field.has-error .field-error {
    opacity: 1;
  }
}

.is-hidden { display: none !important; }

/* ---------- 18. Wizard ---------- */
.wiz-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.wiz-step {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-size: .82rem; font-weight: 600;
  color: var(--text-mute);
}

/* Reduced-motion guard for the wizard step button state transition.
   The step buttons transition background/color/border-color when the
   active step changes. For users who prefer reduced motion the state
   change should be instant — the visual end state (active step styling)
   is preserved, only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-step { transition: background .18s, color .18s, border-color .18s; }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-step { transition: none !important; }
}
.wiz-step .ws-num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .74rem; }

/* Reduced-motion guard for the wizard step number badge state transition.
   The step number badge (.wiz-step .ws-num) transitions its background and
   color when the active step changes (e.g. the badge fills with the brand
   gradient when its step becomes active). For users who prefer reduced
   motion the state change should be instant instead of animating in. The
   visual end state (active badge background + text color) is preserved —
   only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-step .ws-num {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-step .ws-num {
    transition: none !important;
  }
}

.wiz-step.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.wiz-step.is-active .ws-num { background: var(--brand); color: #fff; }
/* Wizard panel fade-in. The animation is only applied when the user has
   NOT requested reduced motion. For reduced-motion users the panels swap
   instantly (no fade) so stepping through the wizard does not play any
   motion — the visual end state (panel visible) is preserved. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-panel { animation: fadeIn .2s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-panel { animation: none !important; }
}

/* Wizard step entrance animation (wizStepIn).
   The step buttons fade + slide in via the `wizStepIn` keyframe animation
   with a staggered delay (--d). For users who prefer reduced motion the
   animation is disabled entirely so steps appear instantly in their final
   state (opacity 1, no transform) — only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-step { animation: wizStepIn .35s var(--ease) both; animation-delay: var(--d, 0ms); }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-step { animation: none !important; }
}

@keyframes wizStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wiz-grid .field--full { grid-column: 1 / -1; }
.wiz-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* Reduced-motion guard for the wizard action buttons.
   The wizard action buttons (.wiz-actions .btn — Back / Next / Publish)
   inherit the base .btn transitions (background, box-shadow, color,
   border-color and — for non-reduced-motion users — a transform lift).
   For users who prefer reduced motion the hover/state feedback should be
   instant instead of animating in, and the transform lift must not play.
   The visual end state (hover background, border, color and shadow) is
   preserved — only the transitions and the motion are removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-actions .btn {
    transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s, border-color .18s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-actions .btn {
    transition: none !important;
    transform: none !important;
  }
  .wiz-actions .btn:hover,
  .wiz-actions .btn:focus-visible {
    transform: none !important;
  }
}

.wiz-preview {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-top: 8px;
}

/* Reduced-motion guard for the wizard live-preview state transitions.
   The preview card and its tag pills transition their background, border,
   color and box-shadow when the user edits fields in the wizard (e.g. the
   availability pill switching between "Available" and "Busy", or tags
   being added/removed). For users who prefer reduced motion those state
   changes should be instant instead of animating in. The visual end state
   (updated colors, borders and shadows) is preserved — only the
   transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-preview {
    transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .wiz-preview-tags span {
    transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-preview {
    transition: none !important;
  }
  .wiz-preview-tags span {
    transition: none !important;
  }
}
.wiz-preview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wiz-avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; }
.wiz-preview-name { font-weight: 700; font-size: 1rem; }
.wiz-preview-role { font-size: .84rem; color: var(--text-mute); }
.wiz-preview-cat { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.wiz-preview-desc { font-size: .86rem; color: var(--text-soft); margin-bottom: 12px; }
.wiz-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.wiz-preview-tags span { font-size: .72rem; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-soft); }
.wiz-preview-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.wiz-preview-rate { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.wiz-preview-rate small { font-size: .72rem; font-weight: 500; color: var(--text-mute); }
.wiz-preview-status { font-size: .78rem; color: var(--text-mute); margin-top: 10px; min-height: 1em; }
.wiz-preview-status.is-fallback { color: var(--brand); }

/* Reduced-motion guard for the wizard live-preview status text color.
   The status line (.wiz-preview-status) transitions its color when the
   preview state changes (e.g. the fallback style kicking in, or the
   status text being re-rendered after a field update). For users who
   prefer reduced motion the color change should be instant instead of
   animating in. The visual end state (status text color) is preserved —
   only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-preview-status {
    transition: color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-preview-status {
    transition: none !important;
  }
}

/* ---------- 19. Profile modal ---------- */
.pm-head { display: flex; align-items: flex-start; gap: 16px; padding: 28px 28px 20px; border-bottom: 1px solid var(--border); position: relative; }
.pm-avatar { width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; }

/* Reduced-motion guard for the profile modal avatar state transitions.
   The avatar (.pm-avatar) renders a gradient background that would
   otherwise animate in via a background transition when its state
   changes (e.g. the profile detail modal being re-rendered for a
   different specialist, or a theme switch swapping the gradient
   tokens). For users who prefer reduced motion those state changes
   should be instant instead of animating in. The visual end state
   (avatar gradient + initials) is preserved — only the transition is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-avatar {
    transition: background .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-avatar {
    transition: none !important;
  }
}
.pm-identity { flex: 1; min-width: 0; }
.pm-cat { margin-bottom: 6px; }
.pm-name { font-size: 1.4rem; margin-bottom: 4px; }
.pm-role { font-size: .9rem; color: var(--text-soft); margin-bottom: 10px; }
.pm-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pm-avail { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-pill); }

/* Reduced-motion guard for the availability badge state transitions.
   The availability badge (.pm-avail) transitions its background and color
   when the availability state changes (e.g. the wizard live preview
   switching between "Available" and "Busy", or a profile being re-rendered
   after a status update). For users who prefer reduced motion those state
   changes should be instant instead of animating in. The visual end state
   (available/busy background + text color) is preserved — only the
   transition is removed.

   NOTE: The same `.pm-avail` class is reused inside the wizard live
   preview (rendered as `.pm-avail.wiz-preview-avail` in the wizard
   markup). Because the selector below targets `.pm-avail` directly — not
   a descendant of `.pm-head` — the guard automatically covers the wizard
   preview instance as well. The `.wiz-preview-avail` modifier only adds
   no transition of its own, so no additional rule is needed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-avail {
    transition: background .18s var(--ease), color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-avail {
    transition: none !important;
  }
}

.pm-avail--free { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.pm-avail--busy { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.pm-fav { position: absolute; top: 24px; right: 60px; }
.pm-price { text-align: right; flex-shrink: 0; }
.pm-price strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.pm-price span { font-size: .76rem; color: var(--text-mute); }

/* Reduced-motion guard for the profile modal price text color transitions.
   The price value (.pm-price strong) and its "per hour" label (.pm-price
   span) transition their color when the price state changes (e.g. the
   profile modal being re-rendered for a different specialist, or a live
   price update). For users who prefer reduced motion those state changes
   should be instant instead of animating in. The visual end state (price
   text color + label color) is preserved — only the transitions are
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-price strong {
    transition: color .18s var(--ease);
  }
  .pm-price span {
    transition: color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-price strong {
    transition: none !important;
  }
  .pm-price span {
    transition: none !important;
  }
}
.pm-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; padding: 24px 28px 28px; }
.pm-section { margin-bottom: 22px; }
.pm-section h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 10px; }

/* Reduced-motion guard for profile modal section heading state transitions.
   The section headings (.pm-section h3) transition their color when their
   state changes (e.g. the profile detail modal being re-rendered for a
   different specialist, or a theme switch updating the muted text color).
   For users who prefer reduced motion those state changes should be
   instant instead of animating in. The visual end state (heading text
   color) is preserved — only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-section h3 {
    transition: color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-section h3 {
    transition: none !important;
  }
}
.pm-section p { font-size: .9rem; color: var(--text-soft); }
.pm-portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pm-work { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.pm-work img { width: 100%; height: 110px; object-fit: cover; }
.pm-work figcaption { font-size: .76rem; color: var(--text-mute); padding: 8px 10px; }

/* Reduced-motion guard for portfolio image hover zoom.
   The portfolio thumbnail (.pm-work img) scales up to 1.05 on hover via
   a transform transition. For users who prefer reduced motion the zoom
   motion is disabled so the image stays at its resting scale — the
   visual end state (image visible, no transform) is preserved, only
   the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-work img {
    transition: transform .35s var(--ease);
  }
  .pm-work:hover img,
  .pm-work:focus-within img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-work img {
    transition: none !important;
    transform: none !important;
  }
  .pm-work:hover img,
  .pm-work:focus-within img {
    transform: none !important;
  }
}

/* Reduced-motion guard for portfolio figure + caption hover feedback.
   The portfolio figure (.pm-work) and its caption (.pm-work figcaption)
   transition their border-color, background and color on hover/focus so
   the caption reads as an interactive affordance. For users who prefer
   reduced motion those transitions should be instant instead of
   animating in. The visual end state (hover border, caption background
   and text color) is preserved — only the transition is removed.

   NOTE: The hover/focus end states are declared once, outside the
   media queries, so they apply identically for both motion preferences.
   Only the `transition` declarations are gated by
   `prefers-reduced-motion`. This avoids duplicating the hover styles
   across both branches and keeps them from drifting out of sync with
   the earlier `.pm-work img` zoom rule (which only touches the image
   transform, not the figure/caption colors). */
.pm-work:hover,
.pm-work:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.pm-work:hover figcaption,
.pm-work:focus-within figcaption {
  background: var(--surface-2);
  color: var(--text-soft);
}

@media (prefers-reduced-motion: no-preference) {
  .pm-work {
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }
  .pm-work figcaption {
    transition: background .2s var(--ease), color .2s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-work {
    transition: none !important;
  }
  .pm-work figcaption {
    transition: none !important;
  }
}
.pm-contact { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; align-self: start; }
.pm-contact h3 { font-size: 1rem; margin-bottom: 4px; }
.pm-contact-sub { font-size: .82rem; color: var(--text-mute); margin-bottom: 16px; }
.pm-contact-note { font-size: .74rem; color: var(--text-mute); text-align: center; margin-top: 10px; }

/* Reduced-motion guard for the contact panel state transitions.
   The contact panel (.pm-contact) and its helper note (.pm-contact-note)
   transition their background, border-color and color when their state
   changes (e.g. the profile detail modal being re-rendered for a
   different specialist, a theme switch swapping the surface tokens, or
   the note being re-rendered after a message is sent). For users who
   prefer reduced motion those state changes should be instant instead
   of animating in. The visual end state (panel background, border and
   note text color) is preserved — only the transitions are removed. */
@media (prefers-reduced-motion: no-preference) {
  .pm-contact {
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  }
  .pm-contact-note {
    transition: color .18s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pm-contact {
    transition: none !important;
  }
  .pm-contact-note {
    transition: none !important;
  }
}
.pm-success { text-align: center; padding: 20px 0; }

/* Reduced-motion guard for the contact success state entrance.
   The success panel (.pm-success) fades + slides up and the success icon
   (.pm-success-icon) pops in with a scale animation when a contact message
   is sent. For users who prefer reduced motion both animations are
   disabled so the success state appears instantly in its final state
   (opacity 1, no transform) — only the motion is removed.

   IMPORTANT: The success panel is injected via `innerHTML` in
   js/main.js (openProfileModal → contact form submit handler). Because
   the panel is a brand-new DOM node each time it is rendered, the
   entrance animation would replay on every re-render (e.g. if the user
   reopens the same profile modal, or the modal body is re-rendered for
   any reason). To prevent the animation from replaying on re-render,
   the animation is scoped to a one-shot `.is-entering` class that
   js/main.js adds only on the first render of the success state. Once
   the animation completes (or immediately for reduced-motion users),
   the class is removed and the panel stays in its final state.

   The `.pm-success` / `.pm-success-icon` base rules below declare the
   final visual state (opacity 1, no transform) so the panel is fully
   visible even if the `.is-entering` class is never applied (e.g. when
   the panel is restored from a cached render or when JS is disabled). */
.pm-success {
  opacity: 1;
  transform: none;
}
.pm-success-icon {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .pm-success.is-entering {
    animation: pmSuccessIn .32s var(--ease) both;
  }
  .pm-success.is-entering .pm-success-icon {
    animation: pmSuccessIconIn .42s var(--ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Reduced-motion users: no entrance animation at all. The panel and
     icon render instantly in their final state (opacity 1, no
     transform). The `.is-entering` class is still added by JS for
     consistency, but it has no visual effect here. */
  .pm-success,
  .pm-success.is-entering {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .pm-success-icon,
  .pm-success.is-entering .pm-success-icon {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@keyframes pmSuccessIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pmSuccessIconIn {
  from { opacity: 0; transform: scale(.7); }
  to { opacity: 1; transform: scale(1); }
}

.pm-success-icon { width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); display: grid; place-items: center; margin: 0 auto 14px; }
.pm-success-icon svg { width: 24px; height: 24px; }
.pm-success h4 { font-size: 1.1rem; margin-bottom: 6px; }
.pm-success p { font-size: .88rem; color: var(--text-soft); margin-bottom: 16px; }

/* ---------- 20. Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: 12px 22px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 200;
  opacity: 0; pointer-events: none;
  max-width: calc(100vw - 40px);
}

/* Reduced-motion guard for the toast slide-in.
   The toast slides up 20px and fades in via a transform + opacity
   transition. For users who prefer reduced motion the toast should
   appear/disappear instantly (fade only, no slide) instead of animating
   in. The visual end state (visible position, opacity 1) is preserved —
   only the transform motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .toast {
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: opacity .15s linear;
    transform: translate(-50%, 0);
  }
  .toast.is-visible {
    transform: translate(-50%, 0);
  }
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Reduced-motion guard for the toast message swap.
   The toast message text (.toast-msg) fades between messages via an
   opacity transition so successive toasts cross-fade instead of
   snapping. For users who prefer reduced motion the message swap should
   be instant — the visual end state (message visible, opacity 1) is
   preserved, only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .toast-msg {
    transition: opacity .2s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast-msg {
    transition: none !important;
  }
}

/* ---------- 21. Reveal ---------- */
/* Scroll-reveal sections fade + slide in when they enter the viewport.
   The transition is only applied when the user has NOT requested reduced
   motion. For reduced-motion users the reveal elements are shown in their
   final state immediately (opacity 1, no transform) so no motion plays —
   this is more robust than relying solely on the global animation-duration
   override, which does not affect transitions on these elements. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 420px; }
  .hero-float-card { margin-top: -56px; margin-left: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pm-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
    transform: translateY(-120%);
    margin-left: 0;
  }
  /* Reduced-motion guard for the mobile nav slide-in.
     The menu slides down via a transform transition. For users who
     prefer reduced motion the menu should appear/disappear instantly
     instead of sliding. The visual end state (open/closed position) is
     preserved — only the transition is removed. The transition is only
     declared when the user has NOT requested reduced motion, so the
     base rule never applies a transform transition to reduced-motion
     users. */
  @media (prefers-reduced-motion: no-preference) {
    .primary-nav { transition: transform .3s var(--ease); }
  }
  @media (prefers-reduced-motion: reduce) {
    .primary-nav { transition: none !important; }
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav a { padding: 12px 14px; }
  .nav-toggle { display: grid; }
  .header-actions .btn { display: none; }
  .section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .hero-search { flex-direction: column; }
  .hero-search select { border-left: 0; border-top: 1px solid var(--border); margin-left: 0; width: 100%; }
  .wiz-grid { grid-template-columns: 1fr; }
  .pm-head { flex-wrap: wrap; }
  .pm-price { text-align: left; }
  .pm-fav { top: 20px; right: 56px; }
}

@media (max-width: 560px) {
  .category-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-float-card { margin-top: -40px; margin-left: 12px; }
  .cta-band { padding: 40px 24px; }
  .reviews-band { padding: 32px 20px; }
  .modal-card { max-height: 94vh; }
  .wiz-steps { flex-direction: column; }
}

/* ---------- 23. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .profile-card { animation: none; }
  .modal.is-open, .modal-card { animation: none; }
  .hero-search, .hero-float-card, .category-card, .profile-card, .step-card, .review-card { transform: none !important; }
}

/* ---------- 24. Reduced-motion guard for filter chip hover lifts ---------- */
/* Disable the translateY(-1px) hover lift on .chip, .fav-filter and
   .quick-chip for users who prefer reduced motion. The visual hover
   feedback (color and border changes) is preserved; only the motion is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .chip:hover { transform: translateY(-1px); }
  .fav-filter:hover { transform: translateY(-1px); }
  .quick-chip:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .chip:hover,
  .fav-filter:hover,
  .quick-chip:hover { transform: none; }
}

/* ---------- 25. Reduced-motion guard for theme toggle hover lift ---------- */
/* The theme toggle (.icon-btn#themeToggle) lifts by 1px on hover. Disable
   that motion for users who prefer reduced motion while keeping the
   color/border hover feedback intact. */
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle:hover { transform: none; }
}

/* ---------- 25.1 Reduced-motion guard for theme icon rotate/scale ---------- */
/* The sun/moon icon inside the theme toggle (.theme-icon) rotates and
   scales when the theme changes. For users who prefer reduced motion the
   icon should switch instantly instead of animating. The visual end state
   (rotation/scale values) is preserved — only the transition is removed. */
@media (prefers-reduced-motion: no-preference) {
  .theme-icon {
    transition: transform .35s var(--ease), opacity .25s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-icon {
    transition: none !important;
  }
}

/* ---------- 26. Wizard progress bar ---------- */
/* Thin progress bar rendered under the wizard step tabs. The inner span
   width is driven by JS (showStep) and reflects the current step. */
.wiz-bar {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
  margin: -12px 0 20px;
}
.wiz-bar span {
  display: block;
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: var(--grad);
}

/* Reduced-motion guard for wizard progress bar ---------- */
/* The wizard progress bar (.wiz-bar span) animates its width when the
   user moves between steps. For users who prefer reduced motion, the
   width should update instantly instead of transitioning. The bar's
   visual state (width value) is preserved — only the transition is
   removed. */
@media (prefers-reduced-motion: no-preference) {
  .wiz-bar span { transition: width .3s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  .wiz-bar span { transition: none !important; }
}

/* ---------- 26.1 Reduced-motion guard for scroll-spy nav underline ---------- */
/* The active nav link (.primary-nav a[aria-current="true"]) draws an
   animated underline via the `navUnderlineIn` keyframe animation on its
   ::after pseudo-element. For users who prefer reduced motion the
   underline should appear instantly in its final state (full width,
   opacity 1) instead of animating in — only the motion is removed, the
   visual end state is preserved.

   NOTE: the selector targets `.primary-nav` (the actual header nav in
   index.html). An earlier version targeted `.nav-list`, which does not
   exist in the markup, so the rule never matched.

   CSS HYGIENE: the ::after pseudo-element below uses `content: ''`
   (empty string) purely as a decorative underline — it renders no
   visible text. This is the only `content` declaration in the file and
   it is intentionally empty so no hardcoded copy leaks into the CSS. */
.primary-nav a[aria-current="true"] {
  position: relative;
}

.primary-nav a[aria-current="true"]::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .primary-nav a[aria-current="true"]::after {
    animation: navUnderlineIn .35s var(--ease) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-nav a[aria-current="true"]::after {
    animation: none !important;
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes navUnderlineIn {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}

/* ---------- 26.3 Skeleton card layout ---------- */
/* Placeholder cards rendered into #profileGrid while the initial results
   load. The shimmer animation lives on the .skeleton primitive (see
   section 26.2) and is disabled for reduced-motion users. */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton {
  border-radius: 8px;
  background: var(--surface-2);
}
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-avatar { width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.sk-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-line { height: 10px; }
.sk-line--sm { width: 40%; }
.sk-line--md { width: 65%; }
.sk-line--lg { width: 85%; }
.sk-block { height: 44px; border-radius: 10px; }
.sk-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.sk-price { width: 64px; height: 16px; }
.sk-btn { width: 96px; height: 30px; border-radius: var(--radius-pill); }

/* ---------- 26.2 Reduced-motion guard for skeleton shimmer ---------- */
/* Skeleton placeholders (.skeleton) animate a moving gradient via the
   `profil-skeleton-shimmer` keyframe animation to signal loading. For
   users who prefer reduced motion the shimmer should not play — the
   skeleton renders as a static block instead. The visual end state
   (a neutral placeholder block with the base gradient) is preserved;
   only the motion is removed. */
@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
    background-size: 400% 100%;
    animation: profil-skeleton-shimmer 1.4s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    background: var(--surface-2);
    background-size: auto;
    animation: none !important;
  }
}

@keyframes profil-skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 27. Skip link ---------- */
/* Keyboard-only "Skip to content" link. Hidden above the viewport by
   default and revealed on focus. The `top` transition is purely
   decorative — for users who prefer reduced motion the link should
   appear instantly on focus instead of sliding in.

   The base `.skip-link` rule intentionally does NOT declare a
   `transition` unconditionally. The `top` transition is only applied
   inside a `prefers-reduced-motion: no-preference` block so that
   reduced-motion users never get a transition on the skip link at all
   (rather than relying on an `!important` override). The visual end
   state (link revealed at `top: 12px` on focus) is preserved in both
   cases — only the motion is removed. */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: no-preference) {
  .skip-link {
    transition: top .2s var(--ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none !important;
  }
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- 28. Modal card focus fallback ---------- */
/* The modal card is programmatically focusable (tabindex="-1") so the
   focus trap has a safe fallback target when a modal contains no
   focusable elements. Suppress the default focus ring on the card
   itself — the trap moves focus to the first real control immediately
   after opening, so the card ring would only flash briefly. */
.modal-card:focus {
  outline: none;
}

/* ---------- 29. Screen-reader-only utility ---------- */
/* Visually hidden but still announced by assistive technology. Used for
   the global catalog live region (#catalogLiveRegion) so result-count
   announcements reach screen readers without affecting the visual
   layout. */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Small-screen fix: stats band must not overflow 360px ---------- */
.stats-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stat-card { padding: 16px 8px; }
  .stat-card strong { font-size: clamp(1.4rem, 7vw, 2rem); }
}

/* ---------- No-JS fallback banner ---------- */
.noscript-banner {
  position: relative; z-index: 1000;
  padding: 12px 20px; text-align: center;
  background: #fef3c7; color: #78350f;
  font-size: .92rem; font-weight: 500;
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .hero-search, .quick-chips, .hero-visual,
  .catalog-toolbar, .catalog-meta, .chips, .cta-band, .footer-newsletter,
  .footer-socials, .modal, .toast, .noscript-banner, .pc-fav, button { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding: 16px 0 !important; break-inside: avoid; }
  .profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .profile-card, .review-card, .step-card, .stat-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .stat-card strong { color: #000 !important; background: none !important; -webkit-text-fill-color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
