/* The joining wizard.
 *
 * A full-screen sheet rather than a panel inside the page: one question at a time only works
 * if nothing else is on screen.
 *
 * The palette is the landing page's own — navy on near-white with a gold accent — and not the
 * violet and magenta of the Facebook creatives. Those colours belong to the advertising and
 * stop at the ad: someone who clicks through should land in the studio's own house, not
 * inside the poster. It also puts the character's cut-out back on a light background, which
 * is what it was rendered against.
 */

#tp-wiz {
  --wiz-ink: #0f1b33;
  --wiz-mut: #5b6880;
  --wiz-line: #e6e9f0;
  --wiz-soft: #f6f8fb;
  --wiz-gold: #fbbc05;
  --wiz-green: #1e8e4e;

  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  direction: rtl;
  background:
    radial-gradient(90% 55% at 50% 0%, #fff 0%, rgba(255, 255, 255, 0) 72%),
    var(--wiz-soft);
  color: var(--wiz-ink);
  font-family: inherit;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#tp-wiz.is-open { display: block; }
html.tp-wiz-lock, body.tp-wiz-lock { overflow: hidden; }

/* The site's chat bubble is fixed to the viewport and would float over the sheet — and it
   already intercepts clicks on the CTA that opens it. It has nothing to offer mid-flow. */
html.tp-wiz-lock #wb-root,
html.tp-wiz-lock #wb-launcher { display: none !important; }

.wiz-sheet {
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 54px 20px 40px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.wiz-bar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: var(--wiz-line);
  z-index: 2;
}
.wiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--wiz-gold);
  transition: width .45s cubic-bezier(.2, .7, .3, 1);
}

.wiz-x {
  position: fixed;
  top: 14px; left: 14px;
  width: 38px; height: 38px;
  border: 1px solid var(--wiz-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wiz-mut);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}
.wiz-x:hover { color: var(--wiz-ink); border-color: #cfd6e2; }

#tp-wiz section { display: none; }
#tp-wiz section.is-active { display: block; animation: wizIn .32s ease both; }
@keyframes wizIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wiz-char {
  display: block;
  margin: 2px auto 10px;
  height: 190px;
  width: auto;
  filter: drop-shadow(0 14px 20px rgba(15, 27, 51, .16));
}

#tp-wiz h2 {
  font-size: clamp(25px, 7vw, 36px);
  line-height: 1.18;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--wiz-ink);
}
#tp-wiz .wiz-sub { color: var(--wiz-mut); margin: 0 0 20px; font-size: 16px; line-height: 1.6; }

#tp-wiz input[type=text],
#tp-wiz input[type=email],
#tp-wiz input[type=tel] {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 2px solid var(--wiz-line);
  border-radius: 14px;
  background: #fff;
  color: var(--wiz-ink);
  font-size: 17px;
  font-family: inherit;
  text-align: right;
  margin-bottom: 12px;
}
#tp-wiz input::placeholder { color: #9aa6bb; }
#tp-wiz input:focus {
  outline: 0;
  border-color: var(--wiz-ink);
  box-shadow: 0 0 0 4px rgba(15, 27, 51, .07);
}
#tp-wiz input[dir=ltr] { text-align: left; direction: ltr; }

#tp-wiz button[data-next] {
  width: 100%;
  padding: 17px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--wiz-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 27, 51, .22);
}
#tp-wiz button[data-next]:hover { background: #16274a; }
#tp-wiz button[data-next]:disabled { opacity: .5; cursor: default; box-shadow: none; }

#tp-wiz [data-skip] {
  display: inline-block;
  margin-top: 16px;
  color: var(--wiz-mut);
  font-size: 15px;
  text-decoration: underline;
}

.wiz-err { color: #c0392b; font-size: 15px; margin: 8px 0 0; min-height: 20px; }
.wiz-tick { color: var(--wiz-mut); font-size: 17px; min-height: 26px; margin-top: 6px; }

/* ---- findings ---- */

.wiz-card {
  background: #fff;
  border: 1px solid var(--wiz-line);
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 14px;
  text-align: right;
  box-shadow: 0 2px 10px rgba(15, 27, 51, .05);
}
.wiz-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: var(--wiz-ink); }
.wiz-card p { margin: 0; color: var(--wiz-mut); font-size: 15px; line-height: 1.65; }
.wiz-biz { display: flex; gap: 12px; align-items: flex-start; }
.wiz-biz img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.wiz-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.wiz-tag {
  background: var(--wiz-soft);
  border: 1px solid var(--wiz-line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--wiz-ink);
}
.wiz-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  vertical-align: -1px;
  margin-left: 5px;
  box-shadow: 0 0 0 1px rgba(15, 27, 51, .18);
}

.wiz-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.wiz-num {
  background: #fff;
  border: 1px solid var(--wiz-line);
  border-radius: 16px;
  padding: 14px 8px;
  box-shadow: 0 2px 10px rgba(15, 27, 51, .05);
}
.wiz-num b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; color: var(--wiz-ink); }
.wiz-num span { display: block; font-size: 12px; color: var(--wiz-mut); margin-top: 4px; }

.wiz-list { list-style: none; margin: 0; padding: 0; text-align: right; }
.wiz-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--wiz-line);
  font-size: 15px;
}
.wiz-list li:last-child { border-bottom: 0; }
.wiz-list small { color: var(--wiz-mut); font-size: 13px; white-space: nowrap; }

.wiz-more { margin-top: 10px; }
.wiz-more summary { cursor: pointer; color: var(--wiz-mut); font-size: 15px; }
.wiz-check { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; }
.wiz-check i { font-style: normal; }
.wiz-ok { color: var(--wiz-green); }
.wiz-bad { color: #c0392b; }

/* ---- offer ---- */

.wiz-price { font-size: 46px; font-weight: 900; line-height: 1; margin: 6px 0 2px; color: var(--wiz-ink); }
.wiz-price small { font-size: 16px; font-weight: 600; color: var(--wiz-mut); }
.wiz-inc { list-style: none; margin: 16px 0 0; padding: 0; text-align: right; }
.wiz-inc li { padding: 8px 0; font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.wiz-inc li::before { content: "✓"; color: var(--wiz-green); font-weight: 900; }

.wiz-done { text-align: center; }
.wiz-done h2 { margin-bottom: 10px; }

@media (min-width: 720px) {
  .wiz-sheet { padding-top: 64px; }
  .wiz-char { height: 230px; }
}

/* ---- the variant page's address field ---------------------------------------------------
 *
 * Lives on /seo-check/ in the page itself, not inside the overlay, so these rules are
 * deliberately unscoped. It stands where the joining button stood and has to carry the same
 * visual weight: one row, one field, one button, in the landing page's own navy.
 */

.sq-check {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  direction: rtl;
}
/* It replaces the hero's button row, so it has to claim the whole row rather than sit in it
   as one more item beside the others. */
.sq-btns .sq-check { flex: 1 1 100%; }

.sq-check input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 21px 26px;
  border: 2px solid #e6e9f0;
  border-radius: 999px;
  background: #fff;
  color: #0f1b33;
  font: inherit;
  font-size: 19px;
  direction: ltr;
  text-align: left;
}
.sq-check input::placeholder { color: #9aa6bb; }
.sq-check input:focus {
  outline: 0;
  border-color: #0f1b33;
  box-shadow: 0 0 0 4px rgba(15, 27, 51, .07);
}
.sq-check button {
  flex: none;
  white-space: nowrap;
  padding: 21px 38px;
  border: 0;
  border-radius: 999px;
  background: #0f1b33;
  color: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 27, 51, .22);
}
.sq-check button:hover { background: #16274a; }

@media (max-width: 560px) {
  .sq-check { flex-direction: column; }
  .sq-check button { width: 100%; }
}

/* ---- the wizard's band on the service pages ---------------------------------------------
 *
 * Appended after the content of the SEO service pages by the theme, so it has to carry its own
 * full-bleed background and not inherit whatever the page around it is doing. Navy, because at
 * the end of a long white page a band that matches the page is a band nobody sees.
 */

.tp-wiz-band {
  margin: 56px 0 0;
  padding: 54px 20px 58px;
  background:
    radial-gradient(120% 140% at 50% 0%, #1b2d52 0%, rgba(27, 45, 82, 0) 70%),
    #0f1b33;
  color: #fff;
  direction: rtl;
  text-align: center;
}
.tp-wiz-band-in { max-width: 680px; margin: 0 auto; }

.tp-wiz-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 15px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fbbc05;
}
.tp-wiz-band h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 4.2vw, 34px);
  font-weight: 800;
  line-height: 1.22;
}
.tp-wiz-band p {
  margin: 0 auto 26px;
  max-width: 560px;
  color: rgba(255, 255, 255, .8);
  font-size: 16.5px;
  line-height: 1.7;
}
.tp-wiz-band-btn {
  padding: 18px 42px;
  border: 0;
  border-radius: 999px;
  background: #fbbc05;
  color: #0f1b33;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tp-wiz-band-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .34);
}

@media (max-width: 560px) {
  .tp-wiz-band { padding: 42px 18px 46px; }
  .tp-wiz-band-btn { width: 100%; padding: 18px 20px; }
}
