/* ==========================================================================
   WIZKET — search-yourself.css · "Search yourself" (Marketing page, #found)
   A big search bar with real-style suggestions, then a results page that builds itself
   with you on top, and a flip to your social ads. js/search-yourself.js.
   The results page and the social cards keep app palettes. Prefix: se-
   ========================================================================== */
.se {
  --side: clamp(20px, 6vw, 110px);
  position: relative;
  padding: clamp(90px, 14vh, 150px) var(--side) clamp(70px, 11vh, 120px);
  background:
    radial-gradient(50% 50% at 50% 30%, var(--petrol) 0%, transparent 70%),
    var(--bg);
}
.se__pin { position: relative; width: min(860px, 100%); margin: 0 auto; }
.se__head { display: grid; justify-items: center; text-align: center; }
.se__head .ws-eyebrow { justify-content: center; }
.se__title { margin: 0; font: 400 clamp(2.8rem, min(6.6vw, 12vh), 7rem)/0.9 var(--font-display); text-transform: uppercase; color: var(--text); }
.se__sub { margin: clamp(10px, 1.8vh, 16px) 0 0; font: 500 clamp(0.98rem, 1.15vw, 1.1rem)/1.45 var(--font-body); color: var(--muted); }

/* bridge C: the ad that rockets up into the bar */
.se-rocket {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  background: linear-gradient(160deg, #ff8a3d, var(--accent));
  box-shadow: 0 0 40px rgba(253, 95, 7, 0.6), 0 60px 60px -30px rgba(253, 95, 7, 0.5);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* ---- the bar ---- */
.se-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 68px;
  margin-top: clamp(26px, 5vh, 44px);
  padding: 0 10px 0 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.se-bar:focus-within { border-color: var(--text); box-shadow: 0 0 0 5px var(--accent-soft), 0 24px 50px -28px rgba(0, 0, 0, 0.6); }
.se-bar > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.se-bar__input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; font: 500 clamp(1.05rem, 1.5vw, 1.3rem)/1 var(--font-body); color: var(--text); }
.se-bar__input::placeholder { color: var(--muted); }
.se-bar__btn { flex: none; padding: 14px 20px; border-radius: 999px; background: var(--accent); font: 700 14px/1 var(--font-body); color: var(--on-accent); }
.se-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
}
.se-suggest.is-on { opacity: 1; visibility: visible; transform: none; }
.se-suggest li { padding: 11px 24px 11px 58px; font: 500 15px/1.3 var(--font-body); color: var(--muted); background: no-repeat 26px 50% / 15px; position: relative; }
.se-suggest li::before { content: "\2315"; position: absolute; left: 28px; top: 50%; translate: 0 -50%; font-size: 16px; color: var(--muted); }
.se-suggest b { font-weight: 700; color: var(--accent); }
.se-suggest li:first-child { color: var(--text); }

.se__try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font: 600 12.5px/1 var(--font-body); color: var(--muted); }
.se__try button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line2); font: 600 12.5px/1 var(--font-body); color: var(--text); transition: border-color 0.3s; }
@media (hover: hover) and (pointer: fine) { .se__try button:hover { border-color: var(--accent); } }
.se__try button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- the results page, and its back side ---- */
.se-flip { position: relative; margin-top: clamp(24px, 4.5vh, 40px); perspective: 1800px; }
.se-flip__in { position: relative; min-height: 330px; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.65, 0, 0.25, 1); }
.se-flip.is-flipped .se-flip__in { transform: rotateY(180deg); }
.se-flip__front, .se-flip__back { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.se-flip__back { position: absolute; inset: 0; transform: rotateY(180deg); }

.se-page {
  min-height: 330px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #fff;
  color: #15191c;
  font-family: var(--font-body);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.se-page p { margin: 0; }
.se-ghost { display: block; height: 14px; border-radius: 7px; background: #eceff1; }
.se-ghost:nth-child(2) { width: 82%; } .se-ghost:nth-child(3) { width: 64%; } .se-ghost:nth-child(4) { width: 74%; }
.se-ghost.is-gone { display: none; }
.se-res { display: grid; gap: 14px; }
.se-res[hidden] { display: none; }
[data-se-part] { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
[data-se-part].is-in { opacity: 1; transform: none; }

.se-ad { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: #fff7f1; box-shadow: inset 4px 0 0 #fd5f07; }
.se-ad__sp { font: 700 12px/1 var(--font-body); color: #15191c; }
.se-ad__sp span { font-weight: 500; color: #4d5960; }
.se-ad__t { font: 600 clamp(17px, 1.7vw, 21px)/1.2 var(--font-body); color: #1a4fd6; }
.se-ad__d { font: 400 14px/1.4 var(--font-body); color: #4d5960; }

.se-map { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; perspective: 700px; }
.se-map__tile { position: relative; height: 120px; border-radius: 12px; overflow: hidden; background: #e8efe6; transform: rotateX(48deg); transform-origin: 50% 100%; transition: transform 0.9s var(--ease-out) 0.15s; }
.se-map.is-in .se-map__tile { transform: none; }
.se-map__road { position: absolute; background: #fff; }
.se-map__road:nth-child(1) { left: 0; right: 0; top: 55%; height: 12px; }
.se-map__road:nth-child(2) { top: 0; bottom: 0; left: 30%; width: 10px; transform: skewX(-14deg); }
.se-map__pin { position: absolute; left: 58%; top: 48%; width: 28px; height: 28px; margin: -28px 0 0 -14px; border-radius: 50% 50% 50% 0; background: #fd5f07; transform: translateY(-80px) rotate(-45deg); opacity: 0; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); }
.se-map__pin::after { content: ""; position: absolute; left: 9px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.se-map.is-in .se-map__pin { animation: se-drop 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.6s forwards; }
@keyframes se-drop { from { transform: translateY(-80px) rotate(-45deg); opacity: 0; } to { transform: rotate(-45deg); opacity: 1; } }
.se-map__card { display: grid; gap: 6px; }
.se-map__card b { font: 700 16px/1.2 var(--font-body); }
.se-map__card span { font: 600 13px/1.2 var(--font-body); color: #b06d00; }
.se-map__card em { font: 500 13px/1.2 var(--font-body); font-style: normal; color: #66727a; }
.se-org { display: grid; gap: 8px; }
.se-org i { display: block; height: 12px; border-radius: 6px; background: #eceff1; }
.se-org i:nth-child(2) { width: 78%; } .se-org i:nth-child(3) { width: 58%; }

.se-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 22px;
  border-radius: 22px;
  background: radial-gradient(70% 90% at 50% 40%, #2a1306 0%, #0b0e10 80%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  font-family: var(--font-body);
}
.se-social p { margin: 0; }
.se-ig, .se-li { width: 230px; display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: #fff; color: #15191c; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8); }
.se-ig__who { display: flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-body); }
.se-ig__who i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #fd5f07, #c13584); font: 400 14px/1 var(--font-display); font-style: normal; color: #fff; }
.se-ig__who span { margin-left: auto; font: 500 10.5px/1 var(--font-body); color: #8a959b; }
.se-ig__img { aspect-ratio: 1; display: grid; place-items: end start; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, #ff8a3d, #c2410c); }
.se-ig__img p { font: 400 26px/0.95 var(--font-display); text-transform: uppercase; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.se-ig__cta { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; background: #f3f5f6; font: 700 12px/1 var(--font-body); color: #1a4fd6; }
.se-li[hidden] { display: none; }
.se-li__t { font: 500 12.5px/1.4 var(--font-body); }
.se-li__doc { height: 150px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 10px; background: #15191c; color: #fff; }
.se-li__doc b { font: 400 24px/0.95 var(--font-display); text-transform: uppercase; }
.se-li__doc span { align-self: flex-end; font: 600 10.5px/1 var(--font-body); opacity: 0.7; }

.se-flip__btn { position: absolute; right: 14px; bottom: -40px; font: 600 13px/1 var(--font-body); color: var(--muted); transition: color 0.3s; }
.se-flip__btn[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .se-flip__btn:hover { color: var(--text); } }
.se-flip__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.se__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: clamp(56px, 8vh, 72px); }
.se-count { margin: 0; display: grid; gap: 6px; }
.se-count em { font: 600 11px/1 var(--font-body); font-style: normal; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.se-count b { font: 400 clamp(2.4rem, 4vw, 3.4rem)/0.9 var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.se-count small { font: 500 12.5px/1 var(--font-body); color: var(--muted); }

@media (max-width: 767px) {
  .se-bar { height: 58px; padding-left: 18px; gap: 10px; }
  .se-bar__btn { display: none; }
  .se-suggest li { padding-left: 46px; font-size: 14px; }
  .se-suggest li::before { left: 20px; }
  .se-page { padding: 16px; }
  .se-map { grid-template-columns: 110px 1fr; gap: 12px; }
  .se-map__tile { height: 90px; }
  .se-flip__in { min-height: 420px; }
  .se-social { flex-direction: column; gap: 14px; padding: 16px; }
  .se-ig, .se-li { width: min(240px, 100%); }
  .se-ig__img { aspect-ratio: 4 / 3; }
  .se-social:has(.se-li:not([hidden])) .se-ig__img { aspect-ratio: 16 / 9; }
  .se-social:has(.se-li:not([hidden])) .se-li__doc { height: 80px; }
  .se__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .se__foot .cta { width: 100%; }
}
