/* ============================================================================
   SCHEDMATE DISCOVER — CUSTOMER MARKETPLACE DESIGN SYSTEM
   ============================================================================

   RELATIONSHIP TO THE REST OF SCHEDMATE
   -------------------------------------
   This stylesheet is deliberately standalone. It shares the brand's colour
   family, radius language and button shapes with the marketing site
   (css/homepage-v121-0-34.css) but imports nothing from it and is loaded by
   nothing else. Discover ships as its own Cloudflare Pages project, so a change
   here cannot reach the dashboard or the marketing site.

   Every class is prefixed `dx-`. The admin dashboard uses `sm-`, the marketing
   site uses unprefixed utility names. No collision is possible.

   CHARACTER
   ---------
   The dashboard is dense because an owner lives in it all day. A marketplace is
   the opposite: a customer arrives once, scans, and decides. So this system is
   spacious, photo-forward, high-contrast on the things that build trust
   (rating, verification, location) and quiet everywhere else.

   Deliberately NOT "AI purple everywhere": violet appears only on the brand
   mark and on one primary action per view.
============================================================================ */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand — same hue family as the SchedMate marketing site. */
  --dx-brand:        #4f5ee8;
  --dx-brand-deep:   #3b47c4;
  --dx-brand-soft:   #eef0ff;
  --dx-brand-tint:   #f6f7ff;
  --dx-violet:       #7c4ddb;

  /* Ink — deep navy reads as trustworthy where pure black reads as harsh. */
  --dx-ink:          #141a2e;
  --dx-ink-2:        #4a5468;
  --dx-ink-3:        #6b7488;
  --dx-ink-4:        #8c94a6;

  /* Surfaces */
  --dx-bg:           #fbfbfd;
  --dx-bg-tint:      #f4f5fa;
  --dx-surface:      #ffffff;
  --dx-line:         #e4e7f0;
  --dx-line-soft:    #eef0f6;

  /* Semantic */
  --dx-verified:     #1a7f5a;
  --dx-verified-bg:  #e8f6f0;
  --dx-star:         #f0a02a;
  --dx-warn:         #b4601a;
  --dx-warn-bg:      #fdf3e8;
  --dx-danger:       #b32d3a;
  --dx-sample:       #6b5bd2;
  --dx-sample-bg:    #f1eefc;

  /* Dark band used for the hero and the footer. */
  --dx-dark:         #131a35;
  --dx-dark-2:       #1c2547;
  --dx-dark-line:    #2e3860;
  --dx-dark-ink:     #eceefb;
  --dx-dark-ink-2:   #a9b1d4;

  /* Shape & rhythm */
  --dx-r-xs: 8px;
  --dx-r-sm: 12px;
  --dx-r:    18px;
  --dx-r-lg: 26px;
  --dx-r-pill: 999px;
  --dx-pad:  clamp(18px, 4.5vw, 40px);
  --dx-sec:  clamp(56px, 7vw, 104px);
  --dx-maxw: 1180px;

  --dx-shadow-xs: 0 1px 2px rgba(20, 26, 46, .05);
  --dx-shadow-sm: 0 1px 2px rgba(20, 26, 46, .05), 0 4px 14px rgba(20, 26, 46, .05);
  --dx-shadow:    0 2px 6px rgba(20, 26, 46, .06), 0 14px 40px rgba(20, 26, 46, .08);
  --dx-shadow-lg: 0 4px 12px rgba(20, 26, 46, .08), 0 30px 70px rgba(20, 26, 46, .14);

  --dx-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
             "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --dx-ease: cubic-bezier(.2, .7, .3, 1);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--dx-bg);
  color: var(--dx-ink);
  font: 400 16px/1.6 var(--dx-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* A marketplace grid must never produce a sideways scroll on a phone. */
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -.022em; line-height: 1.14; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--dx-brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Focus is visible everywhere, and never removed. */
:focus-visible {
  outline: 3px solid var(--dx-brand);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.dx-wrap { width: 100%; max-width: var(--dx-maxw); margin-inline: auto; padding-inline: var(--dx-pad); }
.dx-sec { padding-block: var(--dx-sec); }
.dx-sec--tint { background: var(--dx-bg-tint); border-block: 1px solid var(--dx-line-soft); }
.dx-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.dx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--dx-surface); color: var(--dx-ink);
  padding: 12px 18px; border-radius: 0 0 var(--dx-r-sm) 0; box-shadow: var(--dx-shadow);
}
.dx-skip:focus { left: 0; }

/* ── Typography helpers ──────────────────────────────────────────────────── */
.dx-eyebrow {
  font: 600 12px/1 var(--dx-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--dx-ink-3);
}
.dx-lede { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--dx-ink-2); max-width: 64ch; }
.dx-h1 { font-size: clamp(31px, 5.2vw, 56px); }
.dx-h2 { font-size: clamp(25px, 3.4vw, 38px); }
.dx-h3 { font-size: clamp(18px, 2vw, 22px); }
.dx-sechead { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.dx-sechead .dx-h2 { margin-block: 12px 14px; }
.dx-sechead--center { margin-inline: auto; text-align: center; }
.dx-sechead--center .dx-lede { margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.dx-btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding-inline: 20px;
  border: 1px solid transparent; border-radius: var(--dx-r-pill);
  font-weight: 620; font-size: 15px; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .18s var(--dx-ease), border-color .18s var(--dx-ease),
              color .18s var(--dx-ease), transform .18s var(--dx-ease), box-shadow .18s var(--dx-ease);
}
.dx-btn:hover { text-decoration: none; transform: translateY(-1px); }
.dx-btn:active { transform: translateY(0); }
.dx-btn[disabled], .dx-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.dx-btn--primary {
  background: var(--dx-brand); color: #fff;
  box-shadow: 0 1px 2px rgba(59, 71, 196, .28), 0 8px 22px rgba(79, 94, 232, .26);
}
.dx-btn--primary:hover { background: var(--dx-brand-deep); color: #fff; }
.dx-btn--quiet {
  background: var(--dx-surface); color: var(--dx-ink);
  border-color: var(--dx-line); box-shadow: var(--dx-shadow-xs);
}
.dx-btn--quiet:hover { border-color: #cbd1e0; color: var(--dx-ink); }
.dx-btn--ghost { background: transparent; color: var(--dx-ink-2); border-color: transparent; }
.dx-btn--ghost:hover { background: var(--dx-bg-tint); color: var(--dx-ink); }
.dx-btn--onDark { background: rgba(255,255,255,.10); color: var(--dx-dark-ink); border-color: rgba(255,255,255,.20); }
.dx-btn--onDark:hover { background: rgba(255,255,255,.17); color: #fff; }
.dx-btn--lg { --h: 54px; padding-inline: 28px; font-size: 16px; }
.dx-btn--sm { --h: 38px; padding-inline: 15px; font-size: 14px; }
.dx-btn--block { width: 100%; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.dx-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 251, 253, .86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--dx-line-soft);
}
.dx-nav__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.dx-brand { display: flex; align-items: center; gap: 10px; color: var(--dx-ink); font-weight: 660; letter-spacing: -.02em; }
.dx-brand:hover { text-decoration: none; }
.dx-brand img { width: 32px; height: 32px; border-radius: 9px; }
.dx-brand small {
  display: block; font: 600 10px/1 var(--dx-mono);
  letter-spacing: .16em; text-transform: uppercase; color: var(--dx-ink-3); margin-top: 3px;
}
.dx-nav__spacer { flex: 1; }
.dx-nav__links { display: flex; align-items: center; gap: 6px; }
/* :not(.dx-btn) matters: without it this rule repaints the primary button's
   label ink-grey on a blue fill, which fails contrast. Buttons keep their own
   button colours; only plain nav links are styled here. */
.dx-nav__links a:not(.dx-btn) {
  color: var(--dx-ink-2); font-size: 14.5px; font-weight: 540;
  padding: 8px 12px; border-radius: var(--dx-r-xs);
}
.dx-nav__links a:not(.dx-btn):hover { background: var(--dx-bg-tint); color: var(--dx-ink); text-decoration: none; }
.dx-nav__links .dx-btn--primary,
.dx-nav__links .dx-btn--primary:hover { color: #fff; }
.dx-nav__cta-short { display: none; }
@media (max-width: 720px) { .dx-nav__links a.dx-nav__hide-sm { display: none; } }
@media (max-width: 560px) {
  .dx-nav__links a.dx-nav__hide-xs { display: none; }
  .dx-nav__cta-long { display: none; }
  .dx-nav__cta-short { display: inline; }
  .dx-brand small { letter-spacing: .12em; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.dx-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(78% 120% at 12% -10%, rgba(124, 77, 219, .40) 0%, transparent 62%),
    radial-gradient(70% 110% at 92% 0%, rgba(79, 94, 232, .38) 0%, transparent 60%),
    var(--dx-dark);
  color: var(--dx-dark-ink);
  padding-block: clamp(52px, 8vw, 104px) clamp(72px, 9vw, 128px);
}
.dx-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.dx-hero__in { position: relative; z-index: 1; max-width: 780px; }
.dx-hero .dx-eyebrow { color: #a9b1d4; }
.dx-hero h1 { margin-block: 16px 18px; color: #fff; }
.dx-hero p { color: var(--dx-dark-ink-2); font-size: clamp(16px, 1.5vw, 19px); max-width: 58ch; }

/* ── Search bar ──────────────────────────────────────────────────────────── */
.dx-searchbar {
  display: grid; gap: 8px; margin-top: clamp(24px, 3.5vw, 36px);
  grid-template-columns: 1fr 1fr auto;
  background: var(--dx-surface); padding: 8px;
  border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow-lg);
}
.dx-searchbar--page { box-shadow: var(--dx-shadow-sm); border: 1px solid var(--dx-line); }
.dx-field { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: var(--dx-r); }
.dx-field + .dx-field { box-shadow: inset 1px 0 0 var(--dx-line-soft); }
.dx-field:focus-within { background: var(--dx-brand-tint); box-shadow: none; }
.dx-field__ico { flex: none; width: 20px; height: 20px; color: var(--dx-ink-4); }
.dx-field__body { flex: 1; min-width: 0; }
.dx-field label {
  display: block; font: 600 11px/1.4 var(--dx-sans);
  letter-spacing: .04em; text-transform: uppercase; color: var(--dx-ink-3);
}
.dx-field input {
  width: 100%; border: 0; background: transparent; padding: 2px 0 4px;
  font-size: 16px; color: var(--dx-ink); /* 16px stops iOS zooming on focus */
}
.dx-field input::placeholder { color: var(--dx-ink-4); }
.dx-field input:focus { outline: none; }
.dx-searchbar .dx-btn { --h: 52px; }
@media (max-width: 780px) {
  .dx-searchbar { grid-template-columns: 1fr; padding: 10px; }
  .dx-field + .dx-field { box-shadow: none; border-top: 1px solid var(--dx-line-soft); }
  .dx-searchbar .dx-btn { width: 100%; margin-top: 4px; }
}

/* Autosuggest */
.dx-suggest {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: var(--dx-r); box-shadow: var(--dx-shadow); overflow: hidden;
  max-height: 320px; overflow-y: auto;
}
.dx-suggest[hidden] { display: none; }
.dx-suggest button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 14px; border: 0; background: transparent; cursor: pointer; font-size: 15px;
}
.dx-suggest button:hover, .dx-suggest button[aria-selected="true"] { background: var(--dx-brand-soft); }
.dx-suggest button img { width: 22px; height: 22px; flex: none; opacity: .85; }
.dx-suggest button span { color: var(--dx-ink-3); font-size: 13px; margin-left: auto; }

/* ── Trust strip ─────────────────────────────────────────────────────────── */
.dx-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; position: relative; z-index: 1; }
.dx-trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dx-dark-ink-2); }
.dx-trust svg { width: 17px; height: 17px; flex: none; color: #8ad7b4; }

/* ── Category tiles ──────────────────────────────────────────────────────── */
.dx-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.dx-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--dx-surface);
  border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  color: var(--dx-ink); box-shadow: var(--dx-shadow-xs);
  transition: transform .18s var(--dx-ease), box-shadow .18s var(--dx-ease), border-color .18s var(--dx-ease);
}
.dx-cat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--dx-shadow-sm); border-color: #cfd5e6; }
.dx-cat__ico {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--dx-bg-tint); border-radius: 13px;
}
.dx-cat__ico img { width: 26px; height: 26px; }
.dx-cat > span:last-child { min-width: 0; }
.dx-cat__t { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.dx-cat__n { display: block; font-size: 12.5px; color: var(--dx-ink-3); margin-top: 2px; }

/* ── Business card ───────────────────────────────────────────────────────── */
.dx-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.dx-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: var(--dx-r-lg); overflow: hidden; box-shadow: var(--dx-shadow-xs);
  transition: transform .2s var(--dx-ease), box-shadow .2s var(--dx-ease), border-color .2s var(--dx-ease);
}
.dx-card:hover { transform: translateY(-3px); box-shadow: var(--dx-shadow); border-color: #d6dbe9; }
.dx-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--dx-bg-tint); }
/* :not(.dx-card__logo) matters: the overlapping logo is a child of the media
   box, and a bare `.dx-card__media img` rule out-specifies `.dx-card__logo`,
   which made the logo expand to fill the cover. */
.dx-card__media > img:not(.dx-card__logo) { width: 100%; height: 100%; object-fit: cover; }
.dx-card__logo {
  position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px;
  border-radius: 16px; border: 3px solid var(--dx-surface); background: var(--dx-surface);
  object-fit: cover; box-shadow: var(--dx-shadow-sm);
}
.dx-card__flags { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dx-card__body { padding: 32px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.dx-card__title { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dx-card__title h3 { font-size: 17.5px; }
.dx-card__title a { color: var(--dx-ink); }
.dx-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole-card target */
.dx-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--dx-ink-3); }
.dx-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.dx-card__meta svg { width: 15px; height: 15px; flex: none; }
.dx-card__desc {
  font-size: 14.5px; color: var(--dx-ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dx-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-card__foot {
  display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--dx-line-soft);
}
/* The Request Quote button must sit above the card-wide link overlay. */
.dx-card__foot .dx-btn { position: relative; z-index: 2; }
.dx-card__foot .dx-btn:first-child { flex: 1; }

/* ── Badges & chips ──────────────────────────────────────────────────────── */
.dx-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--dx-r-pill);
  font-size: 12px; font-weight: 640; letter-spacing: -.005em; white-space: nowrap;
}
.dx-badge svg { width: 13px; height: 13px; flex: none; }
.dx-badge--verified { background: var(--dx-verified-bg); color: var(--dx-verified); }
.dx-badge--sample   { background: var(--dx-sample-bg); color: var(--dx-sample); }
.dx-badge--neutral  { background: var(--dx-bg-tint); color: var(--dx-ink-2); }
.dx-badge--onMedia  { background: rgba(19, 26, 53, .72); color: #fff; backdrop-filter: blur(6px); }
.dx-chip {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: var(--dx-r-pill); background: var(--dx-bg-tint);
  border: 1px solid var(--dx-line-soft); font-size: 12.5px; color: var(--dx-ink-2);
}

/* ── Rating ──────────────────────────────────────────────────────────────── */
.dx-rating { display: inline-flex; align-items: center; gap: 6px; }
.dx-stars { display: inline-flex; gap: 1px; }
.dx-stars svg { width: 15px; height: 15px; color: var(--dx-line); }
.dx-stars svg.is-on { color: var(--dx-star); }
.dx-rating b { font-weight: 640; color: var(--dx-ink); font-size: 14px; }
.dx-rating small { color: var(--dx-ink-3); font-size: 13px; }
.dx-rating--none small { color: var(--dx-ink-4); }

/* ── Filters / toolbar ───────────────────────────────────────────────────── */
.dx-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-block: 18px; border-bottom: 1px solid var(--dx-line-soft);
}
.dx-toolbar__count { font-size: 14.5px; color: var(--dx-ink-2); }
.dx-toolbar__count b { color: var(--dx-ink); }
.dx-toolbar__spacer { flex: 1; }
.dx-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.dx-filter {
  flex: none; padding: 7px 14px; border-radius: var(--dx-r-pill);
  border: 1px solid var(--dx-line); background: var(--dx-surface);
  font-size: 13.5px; font-weight: 560; color: var(--dx-ink-2); cursor: pointer;
}
.dx-filter:hover { border-color: #cbd1e0; }
.dx-filter[aria-pressed="true"] { background: var(--dx-ink); border-color: var(--dx-ink); color: #fff; }

/* ── Business profile ────────────────────────────────────────────────────── */
.dx-cover { position: relative; height: clamp(180px, 30vw, 340px); background: var(--dx-bg-tint); overflow: hidden; }
.dx-cover img { width: 100%; height: 100%; object-fit: cover; }
.dx-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,26,53,0) 45%, rgba(19,26,53,.32) 100%);
}
.dx-phead { position: relative; margin-top: clamp(-56px, -6vw, -40px); z-index: 2; }
.dx-phead__card {
  background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow);
  padding: clamp(18px, 3vw, 26px);
  display: grid; gap: 18px; grid-template-columns: auto 1fr auto; align-items: start;
}
.dx-phead__logo {
  width: clamp(72px, 10vw, 96px); height: clamp(72px, 10vw, 96px);
  border-radius: 22px; object-fit: cover; border: 1px solid var(--dx-line-soft); background: var(--dx-bg-tint);
}
.dx-phead__id { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.dx-phead__id h1 { font-size: clamp(23px, 3.4vw, 33px); }
.dx-phead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dx-metaitem { display: inline-flex; align-items: center; gap: 6px; color: var(--dx-ink-3); font-size: 14.5px; }
.dx-metaitem svg { width: 16px; height: 16px; flex: none; }
.dx-phead__cta { display: flex; flex-direction: column; gap: 8px; min-width: 208px; }
@media (max-width: 860px) {
  .dx-phead__card { grid-template-columns: auto 1fr; }
  .dx-phead__cta { grid-column: 1 / -1; min-width: 0; }
  .dx-phead__cta .dx-btn { width: 100%; }
}

.dx-plane { display: grid; gap: clamp(24px, 4vw, 44px); grid-template-columns: minmax(0, 1fr) 332px; align-items: start; padding-block: clamp(28px, 4vw, 48px); }
@media (max-width: 980px) { .dx-plane { grid-template-columns: 1fr; } }

.dx-panel {
  background: var(--dx-surface); border: 1px solid var(--dx-line);
  border-radius: var(--dx-r-lg); padding: clamp(18px, 2.6vw, 26px);
}
.dx-panel + .dx-panel { margin-top: 18px; }
.dx-panel > h2 { font-size: 19px; margin-bottom: 14px; }
.dx-panel p + p { margin-top: 12px; }
.dx-prose { color: var(--dx-ink-2); font-size: 15.5px; line-height: 1.68; white-space: pre-line; }

.dx-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 980px) { .dx-aside { position: static; } }

.dx-deflist { display: grid; gap: 10px; }
.dx-deflist div { display: flex; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.dx-deflist dt { color: var(--dx-ink-3); }
.dx-deflist dd { margin: 0; color: var(--dx-ink); font-weight: 560; text-align: right; }

.dx-hours { display: grid; gap: 7px; }
.dx-hours div { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.dx-hours div + div { border-top: 1px solid var(--dx-line-soft); }
.dx-hours dt { color: var(--dx-ink-2); text-transform: capitalize; }
.dx-hours dd { margin: 0; color: var(--dx-ink); font-variant-numeric: tabular-nums; }
.dx-hours .is-closed dd { color: var(--dx-ink-4); }
.dx-hours .is-today { font-weight: 640; }

.dx-services { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.dx-service {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--dx-line); border-radius: var(--dx-r); background: var(--dx-bg);
}
.dx-service img { width: 26px; height: 26px; flex: none; }
.dx-service b { font-size: 14.5px; font-weight: 600; display: block; }
.dx-service span { font-size: 12.5px; color: var(--dx-ink-3); }

.dx-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.dx-gallery button {
  padding: 0; border: 1px solid var(--dx-line); border-radius: var(--dx-r);
  overflow: hidden; background: var(--dx-bg-tint); cursor: zoom-in; aspect-ratio: 4 / 3;
}
.dx-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--dx-ease); }
.dx-gallery button:hover img { transform: scale(1.04); }

.dx-review { padding: 16px 0; }
.dx-review + .dx-review { border-top: 1px solid var(--dx-line-soft); }
.dx-review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.dx-review__who { font-weight: 620; font-size: 14.5px; }
.dx-review__when { font-size: 13px; color: var(--dx-ink-4); margin-left: auto; }
.dx-review p { font-size: 15px; color: var(--dx-ink-2); line-height: 1.62; }

.dx-ratingsum { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); flex-wrap: wrap; margin-bottom: 6px; }
.dx-ratingsum__big { font-size: 44px; font-weight: 680; line-height: 1; letter-spacing: -.03em; }
.dx-bars { flex: 1; min-width: 190px; display: grid; gap: 5px; }
.dx-bars div { display: grid; grid-template-columns: 34px 1fr 30px; align-items: center; gap: 9px; font-size: 12.5px; color: var(--dx-ink-3); }
.dx-bars i { height: 7px; border-radius: 4px; background: var(--dx-line); display: block; overflow: hidden; }
.dx-bars i b { display: block; height: 100%; background: var(--dx-star); border-radius: 4px; }

/* ── Sticky mobile CTA ───────────────────────────────────────────────────── */
.dx-stickycta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 55;
  display: none; gap: 10px; padding: 12px var(--dx-pad) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--dx-line);
}
.dx-stickycta .dx-btn { flex: 1; }
@media (max-width: 980px) {
  .dx-stickycta { display: flex; }
  body.dx-has-stickycta { padding-bottom: 84px; }
}

/* ── Sheet / dialog ──────────────────────────────────────────────────────── */
.dx-sheet[hidden] { display: none; }
.dx-sheet { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.dx-sheet__scrim { position: absolute; inset: 0; background: rgba(15, 20, 40, .55); border: 0; cursor: pointer; }
.dx-sheet__panel {
  position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88vh, 860px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--dx-surface); border-radius: var(--dx-r-lg); box-shadow: var(--dx-shadow-lg);
}
.dx-sheet__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 14px;
  padding: 20px clamp(18px, 3vw, 26px) 14px;
  background: var(--dx-surface); border-bottom: 1px solid var(--dx-line-soft);
}
.dx-sheet__head h2 { font-size: 20px; }
.dx-sheet__head p { font-size: 14px; color: var(--dx-ink-3); margin-top: 4px; }
.dx-sheet__x {
  margin-left: auto; flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--dx-line); background: var(--dx-surface); cursor: pointer;
  display: grid; place-items: center; color: var(--dx-ink-2); font-size: 19px; line-height: 1;
}
.dx-sheet__x:hover { background: var(--dx-bg-tint); }
.dx-sheet__body { padding: clamp(18px, 3vw, 26px); }
@media (max-width: 620px) {
  .dx-sheet { padding: 0; place-items: end stretch; }
  .dx-sheet__panel { width: 100%; max-height: 94vh; border-radius: var(--dx-r-lg) var(--dx-r-lg) 0 0; }
}

/* ── Forms ───────────────────────────────────────────────────────────────── */
.dx-form { display: grid; gap: 16px; }
.dx-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 640px) { .dx-row { grid-template-columns: 1fr; } }
.dx-input { display: grid; gap: 6px; min-width: 0; align-content: start; align-self: start; }
.dx-input > label { font-size: 13.5px; font-weight: 620; color: var(--dx-ink-2); }
.dx-input > label .dx-req { color: var(--dx-danger); margin-left: 2px; }
.dx-input input, .dx-input select, .dx-input textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font-size: 16px;
  background: var(--dx-surface); color: var(--dx-ink);
  border: 1px solid var(--dx-line); border-radius: var(--dx-r-sm);
  transition: border-color .15s var(--dx-ease), box-shadow .15s var(--dx-ease);
}
.dx-input textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.dx-input input:focus, .dx-input select:focus, .dx-input textarea:focus {
  outline: none; border-color: var(--dx-brand); box-shadow: 0 0 0 3px rgba(79, 94, 232, .16);
}
.dx-input .dx-hint { font-size: 12.5px; color: var(--dx-ink-3); }
.dx-input .dx-err { font-size: 12.5px; color: var(--dx-danger); font-weight: 560; }
.dx-input [aria-invalid="true"] { border-color: var(--dx-danger); }
.dx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--dx-ink-2); line-height: 1.5; }
.dx-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--dx-brand); }
/* Honeypot. Off-screen rather than display:none so a naive bot still fills it. */
.dx-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; }

/* ── States ──────────────────────────────────────────────────────────────── */
.dx-note {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: var(--dx-r); font-size: 14px; line-height: 1.55;
  background: var(--dx-brand-tint); border: 1px solid #dfe3fb; color: var(--dx-ink-2);
}
.dx-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--dx-brand); }
.dx-note--warn { background: var(--dx-warn-bg); border-color: #f3ddc2; }
.dx-note--warn svg { color: var(--dx-warn); }
.dx-note--ok { background: var(--dx-verified-bg); border-color: #c9e8db; }
.dx-note--ok svg { color: var(--dx-verified); }
.dx-note b { color: var(--dx-ink); }

.dx-empty { text-align: center; padding: clamp(40px, 7vw, 76px) 20px; max-width: 520px; margin-inline: auto; }
.dx-empty__ico { width: 62px; height: 62px; margin: 0 auto 18px; opacity: .55; }
.dx-empty h2 { font-size: 21px; margin-bottom: 10px; }
.dx-empty p { color: var(--dx-ink-2); font-size: 15px; }
.dx-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

/* Skeletons. Shape-matched to the card so the layout does not jump. */
.dx-skel { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); overflow: hidden; }
.dx-skel__media { aspect-ratio: 16 / 9; }
.dx-skel__body { padding: 32px 18px 18px; display: grid; gap: 10px; }
.dx-shimmer {
  background: linear-gradient(100deg, var(--dx-bg-tint) 30%, #fff 50%, var(--dx-bg-tint) 70%);
  background-size: 220% 100%; animation: dx-shimmer 1.35s linear infinite;
}
.dx-skel__line { height: 12px; border-radius: 6px; }
.dx-skel__line--sm { width: 58%; }
.dx-skel__line--md { width: 82%; }
@keyframes dx-shimmer { from { background-position: 180% 0; } to { background-position: -60% 0; } }

/* ── How it works ────────────────────────────────────────────────────────── */
.dx-steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: dxs; }
.dx-step { position: relative; padding: 22px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: var(--dx-r-lg); }
.dx-step::before {
  counter-increment: dxs; content: counter(dxs);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px;
  border-radius: 11px; background: var(--dx-brand-soft); color: var(--dx-brand-deep);
  font-weight: 680; font-size: 15px;
}
.dx-step h3 { font-size: 16.5px; margin-bottom: 7px; }
.dx-step p { font-size: 14.5px; color: var(--dx-ink-2); line-height: 1.58; }

/* ── Conversion band ─────────────────────────────────────────────────────── */
.dx-band {
  background:
    radial-gradient(64% 130% at 50% 0%, rgba(124, 77, 219, .34) 0%, transparent 68%),
    var(--dx-dark);
  color: var(--dx-dark-ink); text-align: center;
}
.dx-band h2 { color: #fff; }
.dx-band p { color: var(--dx-dark-ink-2); margin: 16px auto 26px; max-width: 60ch; }
.dx-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.dx-footer { background: var(--dx-dark); color: var(--dx-dark-ink-2); padding-block: clamp(40px, 5vw, 64px) 30px; }
.dx-footer__top { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 820px) { .dx-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dx-footer__top { grid-template-columns: 1fr; } }
.dx-footer h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #7f89b4; margin-bottom: 12px; }
.dx-footer a { color: var(--dx-dark-ink-2); font-size: 14.5px; }
.dx-footer a:hover { color: #fff; }
.dx-footer li + li { margin-top: 8px; }
.dx-footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 620; margin-bottom: 12px; }
.dx-footer__brand img { width: 30px; height: 30px; border-radius: 9px; }
.dx-footer__bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--dx-dark-line);
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 13.5px;
}
.dx-footer__bottom p { color: #7f89b4; }

/* ── Sample-mode banner ──────────────────────────────────────────────────── */
.dx-samplebar {
  background: var(--dx-sample-bg); color: #4b3fa8;
  border-bottom: 1px solid #ded6f7; font-size: 13.5px;
}
.dx-samplebar .dx-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 9px; }
.dx-samplebar b { font-weight: 680; }

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.dx-lightbox[hidden] { display: none; }
.dx-lightbox { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(10, 14, 30, .9); padding: 22px; }
.dx-lightbox img { max-width: min(1100px, 96vw); max-height: 88vh; border-radius: var(--dx-r); object-fit: contain; }
.dx-lightbox__x {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
  font-size: 21px; cursor: pointer;
}
.dx-lightbox figcaption { color: #cdd3ea; font-size: 14px; text-align: center; margin-top: 12px; max-width: 60ch; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.dx-pager { display: flex; justify-content: center; gap: 10px; padding-block: 30px; align-items: center; }
.dx-pager span { font-size: 14px; color: var(--dx-ink-3); }
