/* Home "feature spotlight" (2026-10-05): the full-screen dark promo block that
   replaced Professional Profiles. One scene per feature (resources/views/home/
   spotlight.blade.php holds the list - add an entry + a visual partial to add a
   feature), rotated by /assets/js/spotlight.js. Every class is sp-* so nothing
   here collides with style.css (.pro, .eyebrow, .cta ... already exist there).
   Waves at both edges take the colours of the neighbouring sections. */
.sp-spot {
  --ink: #150d15; --ink-2: #1f1626; --line: #3a2f44; --brand: #6865e7; --brand-2: #9a7bf0; --lav: #f1f0fd;
  --text: #ffffff; --muted: #b3aec6; --paper: #ffffff; --paper-ink: #150d15; --paper-muted: #6f6a85;
  --paper-line: #e3e1f0; --green: #17845a; --gold: #c9a227;
  color: var(--text); line-height: 1.5;
}
.sp-spot *, .sp-spot *::before, .sp-spot *::after { box-sizing: border-box; }
.sp-spot button { font: inherit; color: inherit; }
.sp-spot h2, .sp-spot h4, .sp-spot p { color: inherit; }
.sp-wave { position: absolute; left: 0; right: 0; z-index: 0; height: 110px; pointer-events: none; }
.sp-wave svg { display: block; width: 100%; height: 100%; }
.sp-wave--top { top: -1px; }
.sp-wave--bottom { bottom: -1px; }
.sp-spot > .container { position: relative; z-index: 1; }

/* ---------------- the block ---------------- */
.sp-spot {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: clamp(18px, 3vh, 34px);
  padding-block: clamp(120px, 15vh, 170px) clamp(130px, 16vh, 180px);
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(104,101,231,.34), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, rgba(154,123,240,.16), transparent 60%),
    var(--ink);
}
.sp-spot::before { /* dot field, like the site's decorative dots */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
}

.sp-spot__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-eyebrow { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.sp-nav { display: flex; align-items: center; gap: 10px; }
.sp-nav__count { font-size: .85rem; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

#scenes { align-self: center; }
.sp-scene { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
/* All scenes share one grid cell, so the block is always as tall as its
   tallest scene and the tab rail under it never moves when scenes change. */
.sp-scenes { display: grid; grid-template-columns: minmax(0, 1fr); }
.sp-scenes > .sp-scene { grid-area: 1 / 1; visibility: hidden; }
.sp-scenes > .sp-scene.sp-is-in { visibility: visible; }
.sp-scene.sp-is-in .sp-copy > * { animation: rise .5s both; }
.sp-scene.sp-is-in .sp-copy > *:nth-child(2) { animation-delay: .05s; }
.sp-scene.sp-is-in .sp-copy > *:nth-child(3) { animation-delay: .1s; }
.sp-scene.sp-is-in .sp-copy > *:nth-child(4) { animation-delay: .15s; }
.sp-scene.sp-is-in .sp-visual { animation: slide .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(26px) scale(.985); } to { opacity: 1; transform: none; } }

.sp-spot .sp-copy .sp-who { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sp-who i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.sp-who--customers i { background: #4fd39b; }
.sp-who--pros i { background: #f5c451; }
.sp-spot .sp-copy h2 { margin: 0 0 18px; font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; text-wrap: balance; }
.sp-spot .sp-copy h2 em { font-style: normal; color: var(--brand-2); }
.sp-spot .sp-copy p { margin: 0 0 26px; max-width: 520px; font-size: clamp(1rem, 1.25vw, 1.15rem); color: var(--muted); }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.sp-spot .sp-copy .sp-fact { margin: 22px 0 0; max-width: 520px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.sp-spot .sp-copy .sp-fact b { color: #fff; }

/* ---------------- visuals (drawn, no images) ---------------- */
.sp-visual { position: relative; width: 100%; aspect-ratio: 11 / 8; max-width: 100%; }
.sp-paper { background: var(--paper); color: var(--paper-ink); border-radius: 18px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.sp-tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--paper-ink); font-size: .8rem; font-weight: 800; box-shadow: 0 14px 30px rgba(0,0,0,.35); white-space: nowrap; }
.sp-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.sp-stars { color: #f5a623; letter-spacing: 2px; }

/* 1 - website */
.sp-browser { position: absolute; inset: 4% 6% 6% 0; overflow: hidden; }
.sp-browser__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #f5f4fc; border-bottom: 1px solid var(--paper-line); }
.sp-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6ee; }
.sp-browser__bar span { margin-left: 10px; flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--paper-line); font-size: .74rem; font-weight: 700; color: var(--paper-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-msite__nav { display: flex; align-items: center; gap: 16px; padding: 12px 18px; font-size: .72rem; font-weight: 700; color: var(--paper-muted); }
.sp-msite__nav b { color: var(--paper-ink); font-size: .86rem; margin-right: auto; }
.sp-msite__nav em { font-style: normal; background: #0f766e; color: #fff; padding: 6px 12px; border-radius: 999px; }
.sp-msite__hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; padding: 8px 18px 16px; align-items: center; }
.sp-msite__hero h4 { margin: 0 0 8px; font-size: clamp(1rem, 1.9vw, 1.5rem); line-height: 1.12; font-weight: 900; }
.sp-msite__hero p { margin: 0 0 12px; font-size: .72rem; color: var(--paper-muted); }
.sp-msite__btn { display: inline-block; background: #0f766e; color: #fff; font-size: .72rem; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.sp-msite__photo { aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(135deg, #bfe3dc 0%, #6fb7ab 45%, #2f7f76 100%); position: relative; overflow: hidden; }
.sp-msite__photo::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; border-radius: 50%; background: rgba(255,255,255,.28); }
.sp-msite__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 18px 18px; }
.sp-msite__row i { height: 46px; border-radius: 10px; background: #eef5f4; border: 1px solid #dcebe8; }
.sp-ticket { position: absolute; z-index: 3; right: 0; top: 0; width: clamp(120px, 26%, 170px); aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-content: center; text-align: center; box-shadow: 0 24px 50px rgba(104,101,231,.55); transform: rotate(8deg); }
.sp-ticket small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.sp-ticket b { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: .95; font-weight: 900; }
.sp-ticket span { font-size: .82rem; font-weight: 800; }

/* 2 - badges & widgets */

/* 3 - certificate */

/* 4 - professional profile */

/* 5 - write a review */
.sp-posted { position: absolute; inset: 0 22% auto 0; padding: 16px 18px; border-radius: 16px; opacity: .92; }
.sp-posted b { font-size: .86rem; }
.sp-posted p { margin: 6px 0 0; font-size: .76rem; color: var(--paper-muted); }
.sp-posted__reply { margin-top: 10px; padding: 9px 12px; border-left: 3px solid var(--brand); background: var(--lav); border-radius: 0 10px 10px 0; font-size: .72rem; color: #3d3850; }
.sp-composer { position: absolute; inset: 30% 0 0 12%; padding: 20px 22px; display: grid; align-content: space-between; gap: 12px; }
.sp-composer__biz { display: flex; align-items: center; gap: 12px; }
.sp-composer__logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #6865e7, #9a7bf0); color: #fff; display: grid; place-items: center; font-weight: 900; }
.sp-composer__biz b { display: block; font-size: .95rem; }
.sp-composer__biz small { color: var(--paper-muted); font-size: .74rem; font-weight: 700; }
.sp-composer__stars { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1; color: #f5a623; letter-spacing: 6px; }
.sp-composer__text { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--brand); font-size: .84rem; color: #3d3850; min-height: 3.6em; }
.sp-composer__text::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--brand); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sp-composer__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sp-composer__send { padding: 10px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 800; }

/* ---------------- rail: one entry per feature, grows with the list ---------------- */
.sp-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.sp-rail::-webkit-scrollbar { display: none; }
.sp-rail__item { position: relative; text-align: left; background: none; border: 0; cursor: pointer; padding: 16px 14px 6px 0; opacity: .5; transition: opacity .2s; }
.sp-rail__item:hover { opacity: .85; }
.sp-rail__item.sp-is-on { opacity: 1; }
.sp-rail__item::before { content: ""; position: absolute; left: 0; right: 14px; top: -1px; height: 3px; border-radius: 3px; background: var(--brand-2); transform: scaleX(0); transform-origin: left; }
.sp-rail__item.sp-is-on::before { transform: scaleX(1); }
.sp-rail__item.sp-is-on.sp-is-running::before { animation: fill var(--dur, 7s) linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sp-rail__item b { display: block; font-size: .98rem; font-weight: 800; line-height: 1.25; }
.sp-rail__item small { display: block; margin-top: 3px; font-size: .74rem; font-weight: 700; color: var(--muted); }

@media (max-width: 900px) {
  .sp-scene { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sp-visual { max-width: 560px; margin-inline: auto; }
  .sp-spot .sp-copy p { max-width: none; }
}
@media (max-width: 520px) {
  .sp-rail { grid-auto-columns: 62%; }
  .sp-tag { font-size: .7rem; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-scene.sp-is-in .sp-copy > *, .sp-scene.sp-is-in .sp-visual, .sp-rail__item.sp-is-on.sp-is-running::before, .sp-composer__text::after { animation: none; }
  .sp-rail__item.sp-is-on::before { transform: scaleX(1); }
}

@media (max-width: 900px) { .sp-spot { min-height: 0; padding-block: 110px 130px; } .sp-wave { height: 70px; } }

/* ---- Buttons: the same left-to-right wipe as .btn-cta on the rest of the site
   (same timing and curve); the wipe is white here because the block is dark. */
.sp-cta, .sp-nav__btn { position: relative; overflow: hidden; z-index: 1; background-clip: padding-box; }
.sp-cta::before, .sp-nav__btn::before { content: ""; position: absolute; inset: 0; margin: -2px; z-index: -1; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.38,.32,.36,.98); }
.sp-cta:hover::before, .sp-nav__btn:hover::before { transform: scaleX(1); }
.sp-spot .sp-cta { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 14px; border: 1px solid var(--brand); background-color: var(--brand); color: #fff; font-weight: 800; font-size: 1.02rem; text-decoration: none; box-shadow: 0 16px 36px rgba(104,101,231,.45); transition: color .3s, border-color .3s, box-shadow .3s; }
.sp-spot .sp-cta:hover { color: var(--ink); border-color: #fff; box-shadow: 0 16px 36px rgba(255,255,255,.14); }
.sp-nav__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background-color: transparent; cursor: pointer; display: grid; place-items: center; transition: color .3s, border-color .3s; }
.sp-spot .sp-nav__btn:hover { color: var(--ink); border-color: #fff; }
.sp-nav__btn svg { width: 18px; height: 18px; }
.sp-spot .sp-more { font-weight: 800; color: #fff; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.3); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.sp-spot .sp-more:hover { color: var(--brand-2); border-color: var(--brand-2); }
.sp-nav__btn:focus-visible, .sp-rail__item:focus-visible, .sp-cta:focus-visible, .sp-more:focus-visible, .sp-visual a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }

/* ---- Scene 2, badges: the real badges our generator serves (snapshots of a
   Recognized listing's /badge/{id}/{preset}.svg) laid out on a white sheet,
   with the real embed code underneath. */
.sp-bsheet { position: absolute; inset: 2% 6% 26% 0; padding: clamp(16px, 2.4vw, 26px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.sp-bsheet img { display: block; max-width: 100%; height: auto; }
.sp-bsheet__card { width: clamp(150px, 19vw, 230px); filter: drop-shadow(0 10px 22px rgba(21,13,21,.12)); }
.sp-bsheet__col { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.sp-bsheet__col small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); }
.sp-bseal { position: absolute; z-index: 3; right: 0; top: -4%; width: clamp(84px, 11vw, 128px); transform: rotate(8deg); filter: drop-shadow(0 16px 30px rgba(0,0,0,.45)); }
.sp-bcode { position: absolute; z-index: 2; left: 8%; right: 0; bottom: 0; padding: 16px 18px; border-radius: 16px; background: #0d0811; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.5); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.6; color: #d9d5e6; overflow: hidden; overflow-wrap: anywhere; }
.sp-bcode small { display: block; font-family: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sp-bcode .sp-k { color: #9a7bf0; } .sp-bcode .sp-s { color: #7fd6ad; }

/* ---- Scene 3, certificate: a real issued certificate (first page of the PDF)
   next to what the public check shows for its number. */
.sp-certshot { position: absolute; left: 4%; top: 0; height: 100%; aspect-ratio: 620 / 878; transform: rotate(-3deg); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.55); background: #fff; }
.sp-certshot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-vcard { position: absolute; z-index: 2; right: 0; top: 14%; width: 50%; padding: 18px 20px; display: grid; gap: 4px; text-decoration: none; }
.sp-vcard small { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); }
.sp-vcard b { font-size: 1.15rem; font-weight: 900; color: var(--paper-ink); }
.sp-vcard__ok { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin: 4px 0 6px; padding: 4px 10px; border-radius: 999px; background: #e3f6ec; color: #0f7a4d; font-size: .7rem; font-weight: 800; }
.sp-vcard__ok svg { width: 13px; height: 13px; }
.sp-vcard dl { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: .74rem; font-variant-numeric: tabular-nums; }
.sp-vcard dt { color: var(--paper-muted); font-weight: 700; } .sp-vcard dd { margin: 0; color: var(--paper-ink); font-weight: 800; }
.sp-pdfbtn { position: absolute; z-index: 3; right: 6%; bottom: 8%; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .84rem; font-weight: 800; text-decoration: none; box-shadow: 0 14px 30px rgba(0,0,0,.35); transition: background-color .3s, color .3s; }
.sp-spot .sp-pdfbtn:hover { background: #fff; color: var(--ink); }
.sp-pdfbtn svg { width: 16px; height: 16px; }

/* ---- Scene 4, professionals: a sample profile card with a quote request
   arriving on top of it. */
.sp-pcard { position: absolute; inset: 2% 20% 30% 0; padding: clamp(16px, 2.2vw, 24px); display: grid; align-content: start; gap: 14px; }
.sp-pcard__head { display: flex; align-items: center; gap: 14px; }
.sp-pcard__ava { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--lav); color: #524fd6; display: grid; place-items: center; font-weight: 900; font-size: 1.25rem; }
.sp-pcard__head h4 { margin: 0; font-size: 1.2rem; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--paper-ink); }
.sp-idv { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #e3f6ec; color: #0f7a4d; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.sp-pcard__meta { margin: 3px 0 0; font-size: .8rem; color: var(--paper-muted); font-weight: 700; }
.sp-pcard__rate { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; color: var(--paper-ink); }
.sp-pcard__rate span:last-child { color: var(--paper-muted); font-weight: 700; }
.sp-pcard__about { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--paper-muted); font-weight: 600; }
.sp-pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-pcard__tags span { padding: 5px 11px; border-radius: 999px; background: var(--lav); color: #524fd6; font-size: .72rem; font-weight: 800; }
.sp-req { position: absolute; z-index: 2; right: 0; bottom: 0; width: 60%; padding: 16px 18px; display: grid; gap: 6px; border: 1px solid var(--paper-line); }
.sp-req__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.sp-req__top span:last-child { color: var(--paper-muted); letter-spacing: 0; text-transform: none; font-weight: 700; }
.sp-req b { font-size: 1rem; font-weight: 900; color: var(--paper-ink); }
.sp-req p { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--paper-muted); font-weight: 600; }
.sp-req__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: .74rem; font-weight: 700; color: var(--paper-muted); }
.sp-req__btn { padding: 8px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .76rem; font-weight: 800; }

@media (max-width: 520px) {
  .sp-bsheet { inset: 0 0 34% 0; grid-template-columns: 42% 1fr; }
  .sp-bsheet__card { width: 100%; }
  .sp-bcode { left: 0; font-size: .64rem; padding: 12px 14px; }
  .sp-vcard { width: 60%; top: 0; padding: 14px; }
  .sp-vcard b { font-size: 1rem; }
  .sp-vcard dl { font-size: .66rem; gap: 2px 8px; }
  .sp-vcard dd { white-space: nowrap; }
  .sp-pdfbtn { right: 0; bottom: 2%; font-size: .78rem; padding: 9px 14px; }
  .sp-bseal { width: 66px; top: -14%; right: -2%; }
  /* the professional scene stacks: card, then the request slightly over it */
  .sp-visual:has(.sp-pcard) { aspect-ratio: auto; display: grid; }
  .sp-pcard { position: relative; inset: auto; margin-right: 8%; padding-bottom: 34px; }
  .sp-req { position: relative; width: auto; margin: -22px 0 0 10%; }
}
