/* Builderlab hiring funnel: Meta Ads Specialist.
   Look and feel matches the appointment funnel (apply.builderlab.com). */
:root {
  --bg: #08120E;
  --bg-2: #0D1A15;
  --card: #10201A;
  --line: rgba(244, 244, 249, 0.10);
  --text: #F4F4F9;
  --muted: rgba(244, 244, 249, 0.70);
  --green: #38B685;
  --green-2: #8EF0C9;
  --sage: #8CC5A6;
  --sage-hover: #7DBA99;
  --on-sage: #0F1411;
  --radius: 16px;
  --gutter: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.page { overflow-x: hidden; }

/* Placeholder text: replace before publishing. Highlighted so it can't be missed. */
mark.ph {
  background: rgba(255, 193, 7, .16);
  color: #FFD666;
  border: 1px dashed rgba(255, 193, 7, .6);
  border-radius: 6px;
  padding: 0 .3em;
}

/* ---------- Header ---------- */
.logo-bar {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px; padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.logo { width: 104px; }
@media (min-width: 640px) { .logo { width: 130px; } }

/* ---------- Hero ---------- */
.hero {
  max-width: 840px; margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  text-align: center;
}
.tagline {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px;
  margin: 0 0 14px; padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.tagline li + li::before { content: "·"; margin-right: 10px; color: rgba(244,244,249,.4); }
.headline {
  margin: 0;
  font-size: clamp(36px, 10vw, 64px); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.03em; text-wrap: balance;
}
.accent { color: var(--sage); }
.subheadline {
  max-width: 40rem; margin: 14px auto 0;
  font-size: 17px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
}
.watch-label {
  margin: 30px 0 0;
  font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage);
}
.watch-note { margin: 14px auto 0; font-size: 15px; color: var(--muted); }
.hero-cta { margin-top: 22px; }
@media (min-width: 600px) {
  .hero { padding-top: 48px; }
  .subheadline { font-size: 19px; }
}

/* ---------- Video (same "Click for sound" box as the appointment funnel) ---------- */
.vsl {
  position: relative;
  max-width: 720px; margin: 12px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  background: #000; border: 1px solid var(--line);
}
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-media { position: absolute; inset: 0; }
.vsl-media iframe.preview { pointer-events: none; }
.vsl-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, #16302A, #0B1512 70%);
  background-size: cover; background-position: center;
}
.vsl-sound {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}
.vsl-sound .box {
  display: flex; align-items: center; gap: .5em;
  padding: .85em 1.3em;
  background: var(--sage); color: var(--on-sage);
  font-size: 16px; font-size: clamp(14px, 2.7cqw, 24px);
  font-weight: 700; line-height: 1; white-space: nowrap;
  transition: background-color .15s;
}
.vsl-sound:hover .box { background: var(--sage-hover); }
.vsl-sound svg { width: 1.55em; height: 1.55em; flex: none; }
.vsl-sound .vs-click { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vsl-sound .vs-click { display: inline; }
  .vsl-sound .vs-tap { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sage); color: var(--on-sage);
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--sage-hover); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .arr { display: inline-flex; flex: none; transition: transform .25s ease; }
.btn .arr svg { width: 18px; height: 18px; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Job description sections ---------- */
.job {
  max-width: 840px; margin: 0 auto;
  padding: 8px var(--gutter) 24px;
}
.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 40px; padding: 0; list-style: none;
}
.facts li {
  padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.facts .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.facts .v { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, 1fr); } }

.block { padding: 36px 0; border-top: 1px solid var(--line); }
.block:first-of-type { border-top: 0; padding-top: 0; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.block h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 5vw, 36px); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 700;
}
.block p { margin: 0 0 14px; font-size: 17px; color: var(--muted); }
.block p:last-child { margin-bottom: 0; }
.block p b { color: var(--text); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li {
  position: relative; padding-left: 32px;
  font-size: 17px; line-height: 1.5; color: var(--muted);
}
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(56,182,133,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%2338B685' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks.no li::before {
  background: rgba(255,107,107,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23FF8A8A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (min-width: 720px) { .checks.two { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }

.cards { display: grid; gap: 12px; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  padding: 22px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.card-num {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  font-size: 15px; font-weight: 700; color: var(--green); border: 1.5px solid var(--green);
}
.card h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.card .card-tag { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--sage); }
.card p { font-size: 15.5px; }

.pay {
  padding: 26px 22px; text-align: center;
  background: #16302A; border: 1px solid rgba(56,182,133,.6); border-radius: var(--radius);
}
.pay-amount { margin: 0; font-size: clamp(28px, 6vw, 40px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.pay-sub { margin: 6px 0 0; font-size: 16px; color: var(--green-2); }
.pay-note { margin: 14px auto 0 !important; max-width: 34rem; font-size: 15px !important; }
.pay-fine { margin: 12px auto 0 !important; font-size: 13px !important; color: var(--muted); }

.final-cta { text-align: center; padding: 48px var(--gutter) 16px; border-top: 1px solid var(--line); max-width: 840px; margin: 0 auto; }
.final-cta h2 { margin: 0 0 22px; font-size: clamp(28px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
.final-cta p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 760px; margin: 0 auto;
  padding: 28px var(--gutter) 110px; /* room for the sticky bar */
  text-align: center; font-size: 12px; color: rgba(244,244,249,.45);
}
.footer p { margin: 0 0 8px; }
.footer a { color: rgba(244,244,249,.65); }

/* ---------- Sticky Apply bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(8,18,14,.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .3s ease;
  pointer-events: none;
}
.sticky-cta.show { transform: none; pointer-events: auto; }
@media (min-width: 640px) {
  .sticky-cta { display: flex; justify-content: center; }
  .sticky-cta .btn { width: auto; min-width: 280px; }
}

/* ---------- APPLICATION (one question at a time) ---------- */
.apply-hero { max-width: 680px; margin: 0 auto; padding: 32px var(--gutter) 8px; text-align: center; }
.apply-hero .headline { font-size: clamp(30px, 8vw, 46px); }
.apply-hero .subheadline { font-size: 16px; }
.apply {
  margin: 20px auto 48px; max-width: 640px;
  text-align: left; color: #fff;
  background: #1C2520;
  border: 1px solid rgba(154, 203, 179, .28);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
}
.apply-wrap { padding: 0 var(--gutter); }
.apply-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.apply-progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; margin-bottom: 18px; }
.apply-progress span { display: block; height: 100%; width: 0; background: #6FB592; transition: width .35s ease; }

.step { display: none; }
.step.on { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-h { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.step-sub { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.step-h + .tiles, .step-h + .fld, .step-h + .vals { margin-top: 14px; }

.tiles { display: grid; gap: 8px; }
.tile {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left; cursor: pointer;
  min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; font-weight: 500; color: #fff;
  background: #141A16; border: 1px solid rgba(245,241,233,.16); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.tile:hover { border-color: #6FB592; background: #18201B; }
.tile.sel { border-color: #6FB592; background: rgba(42,127,90,.28); }
.tile .box {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,.35);
  display: grid; place-items: center;
}
.tile.sel .box { background: #6FB592; border-color: #6FB592; }
.tile.sel .box::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: solid var(--on-sage); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg);
}
.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vals .tile { min-height: 46px; font-size: 15px; }

.fld { display: block; margin: 0 0 10px; }
.fld > span { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fld.sr > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.in {
  width: 100%; min-width: 0;
  height: 50px; padding: 0 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: #fff; background: #141A16;
  border: 1px solid rgba(255,255,255,.2); border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.in { height: auto; min-height: 150px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
select.in {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
select.in:invalid { color: rgba(255,255,255,.45); }
select.in option { color: #0E1A15; background: #fff; }
/* Self-rating card: rows of 0-5 buttons. */
.rate-group { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rate { display: grid; gap: 6px; }
.rate-row {
  display: grid; gap: 8px; align-items: center; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #141A16;
}
.rate-row.missing { border-color: #E8A33D; }
.rate-label { font-size: 15px; font-weight: 600; }
.rate-btns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.rate-btn {
  height: 38px; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer;
  border: 1px solid rgba(255,255,255,.2); background: transparent;
}
.rate-btn:hover { border-color: #6FB592; }
.rate-btn.sel { border-color: #6FB592; background: #6FB592; color: #0E1A15; }
@media (min-width: 600px) {
  .rate-row { grid-template-columns: 1fr 252px; }
  .rate-btns { gap: 4px; }
}
/* A card with several questions: each label reads as a question. */
.step-stack .fld { margin-bottom: 18px; }
.step-stack .fld > span { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.4; }
.fld > span a { color: var(--green-2); text-decoration: underline; text-underline-offset: 2px; }
.in::placeholder { color: rgba(255,255,255,.45); }
.in:focus { border-color: #6FB592; box-shadow: 0 0 0 3px rgba(111,181,146,.22); }
.in.invalid { border-color: #ff6b6b; }
.in:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #141A16 inset; caret-color: #fff; }
.count { margin: -4px 0 10px; font-size: 12px; color: var(--muted); text-align: right; }
.row2 { display: grid; gap: 0 10px; }
@media (min-width: 520px) { .row2 { grid-template-columns: 1fr 1fr; } }

.err { margin: 0 0 10px; font-size: 13px; color: #ff8a8a; }
.err:empty { display: none; }
.consent { margin: 2px 0 12px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.8); }
.consent a { color: #fff; }
.step .btn { margin-top: 4px; }
.back { display: block; margin: 10px 0 0; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; color: #fff; }
.back:hover { opacity: .8; }
.preview-note {
  margin: 0 0 14px; padding: 10px 12px; font-size: 13px; color: #FFD666;
  border: 1px dashed rgba(255,193,7,.6); border-radius: 10px; background: rgba(255,193,7,.08);
}
.preview-note[hidden] { display: none; }

/* ---------- APPLICATION POPUP (on the job page) ---------- */
.apply-modal {
  padding: 0; border: 0; background: transparent; color: #fff;
  width: 100%; max-width: 640px; max-height: 100dvh; margin: auto;
  overflow-y: auto; overscroll-behavior: contain;
}
.apply-modal::backdrop { background: rgba(3, 8, 6, .78); backdrop-filter: blur(4px); }
.apply-modal .apply { margin: 0; min-height: 100dvh; border-radius: 0; border-width: 0; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.modal-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.modal-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.modal-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
}
.modal-close:hover { background: rgba(255,255,255,.14); }
.modal-close svg { width: 18px; height: 18px; }
body:has(.apply-modal[open]) { overflow: hidden; }
@media (min-width: 700px) {
  .apply-modal { max-height: 92dvh; border-radius: var(--radius); }
  .apply-modal .apply { min-height: 0; border-radius: var(--radius); border-width: 1px; }
}

@media (min-width: 640px) {
  .apply { padding: 28px; }
  .step-h { font-size: 22px; }
}

/* ---------- THANK-YOU ---------- */
.ty-hero { max-width: 680px; margin: 0 auto; padding: 44px var(--gutter) 8px; text-align: center; }
.ty-check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--bg);
  box-shadow: 0 0 0 8px rgba(56,182,133,.16), 0 0 0 16px rgba(56,182,133,.06);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
.ty-check svg { width: 32px; height: 32px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ty-h1 { margin: 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.ty-lead { max-width: 34rem; margin: 16px auto 0; font-size: 17px; color: var(--muted); text-wrap: pretty; }
.ty-steps { max-width: 680px; margin: 0 auto; padding: 28px var(--gutter) 24px; display: grid; gap: 12px; }
.ty-step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 18px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.ty-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--green); border: 1.5px solid var(--green); }
.ty-step h2 { margin: 5px 0 4px; font-size: 18px; line-height: 1.3; }
.ty-step p { margin: 0; font-size: 15px; color: var(--muted); }
.ty-step p b { color: var(--text); }
@media (min-width: 640px) {
  .ty-step { grid-template-columns: 40px 1fr; gap: 18px; padding: 22px; }
  .ty-num { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Turnstile bot check: only takes space if Cloudflare asks the visitor to click */
.ts { display: flex; justify-content: center; }
.ts iframe { margin-top: 14px; }
