/* ============================================================
   /start/ — paid-social web onboarding
   Layered on top of /styles.css (tokens, fonts, .btn).
   Mobile-first: nearly all ad traffic lands in the FB/IG in-app browser.
   ============================================================ */

.lp-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--pale-blue) 0%, rgba(234, 246, 253, 0) 70%),
    var(--cream);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------- top bar ---------------- */
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px 8px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.lp-brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(41, 54, 92, 0.12); }
.lp-top-get {
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--sky-deep);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(79, 195, 247, 0.14);
}

/* ---------------- card ---------------- */
.lp {
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 16px 20px;
}
.lp-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(41, 54, 92, 0.08), 0 2px 0 var(--line);
  padding: 14px 20px 26px;
  min-height: min(640px, calc(100svh - 150px));
  display: flex;
  flex-direction: column;
}

.lp-bar { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; min-height: 40px; }
.lp-back {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: none; border-radius: 12px;
  background: transparent; color: var(--ink-soft);
  cursor: pointer;
}
.lp-back:hover { background: var(--cream); }
.lp-back svg { width: 26px; height: 26px; }
.lp-back[hidden] { display: grid; visibility: hidden; }

.lp-dots { display: flex; justify-content: center; gap: 8px; }
.lp-dots span {
  height: 10px; width: 10px;
  border-radius: 999px;
  background: rgba(60, 60, 60, 0.12);
  transition: width 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.3s;
}
.lp-dots span.on { background: var(--sky); }
.lp-dots span.now { width: 26px; }

/* ---------------- steps ---------------- */
.lp-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 10px;
  animation: lp-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.lp-step[hidden] { display: none; }
.lp-step h1, .lp-step h2 { outline: none; }
.lp-step h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
.lp-step h2 { font-size: clamp(1.45rem, 6.2vw, 1.8rem); }
@keyframes lp-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

.lp-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 26em; }
.lp-fine { color: var(--ink-soft); font-size: 0.82rem; line-height: 1.45; }

.lp-cta { width: 100%; margin-top: auto; }
.lp-cta:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }
.lp-arrow { width: 20px; height: 20px; }

.lp-mascot { width: 76px; height: auto; flex-shrink: 0; }
.lp-mascot-big { width: 170px; margin-top: 10px; animation: lp-bob 2.6s ease-in-out infinite; }
.lp-mascot-mid { width: 96px; }
@keyframes lp-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }

/* Dino + speech bubble, like MascotSpeech in the app */
.lp-speech { display: flex; align-items: flex-end; gap: 10px; width: 100%; text-align: left; margin-top: 8px; }
.lp-bubble {
  position: relative;
  flex: 1;
  background: var(--pale-blue);
  border-radius: 20px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: clamp(1.25rem, 5.4vw, 1.5rem) !important;
}
.lp-bubble::before {
  content: "";
  position: absolute;
  left: -8px; bottom: 14px;
  border: 9px solid transparent;
  border-right-color: var(--pale-blue);
  border-left: 0;
}

/* ---------------- inputs & options ---------------- */
.lp-name-form { display: flex; flex-direction: column; gap: 12px; width: 100%; flex: 1; }
.lp-input {
  width: 100%;
  font: 800 1.35rem var(--font-body);
  text-align: center;
  color: var(--ink);
  padding: 16px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: var(--cream);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lp-input:focus { border-color: var(--sky); background: #fff; }
.lp-input::placeholder { color: #B9B2A5; font-weight: 700; }

.lp-options { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.lp-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 800 1.05rem var(--font-body);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--line);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.08s;
}
.lp-option:active { transform: scale(0.97); }
.lp-option > span:first-of-type { flex: 1; }
.lp-opt-ic { width: 24px; height: 24px; color: var(--sky-deep); flex-shrink: 0; }
.lp-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.lp-option[aria-pressed="true"] {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  box-shadow: 0 3px 0 var(--sky-dark);
}
.lp-option[aria-pressed="true"] .lp-opt-ic { color: #fff; }
.lp-option[aria-pressed="true"] .lp-check {
  border-color: #fff;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232BA3DC' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.lp-option:focus-visible, .lp-cta:focus-visible, .lp-back:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }

/* ---------------- building ---------------- */
.lp-building { justify-content: center; }
.lp-spin-clock { width: 150px; height: 150px; }
.lp-spin-clock svg { width: 100%; height: 100%; }
.lp-spin-clock svg g g { transform-box: view-box; }
.lp-build-list { list-style: none; display: grid; gap: 10px; text-align: left; color: var(--ink-soft); font-weight: 800; }
.lp-build-list li { display: flex; align-items: center; gap: 10px; opacity: 0.35; transition: opacity 0.3s, color 0.3s; }
.lp-build-list li::before {
  content: "";
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.lp-build-list li.done { opacity: 1; color: var(--ink); }
.lp-build-list li.done::before {
  border-color: var(--mint);
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------------- plan ---------------- */
.lp-plan-meta { font-weight: 800; color: var(--sky-deep); margin-top: -6px; }
.lp-skipped { font-size: 0.88rem; color: var(--mint-dark); font-weight: 800; margin-top: -6px; }
.lp-plan { list-style: none; width: 100%; display: grid; gap: 10px; text-align: left; }
.lp-unit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--cream);
  border-left: 5px solid var(--u);
}
.lp-unit[hidden] { display: none; }
.lp-unit .mini-clock { width: 44px; height: 44px; flex-shrink: 0; }
.lp-unit .mini-clock svg { width: 100%; height: 100%; }
.lp-unit strong { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; }
.lp-unit span { font-size: 0.85rem; color: var(--ink-soft); }
.lp-start-here { display: none; margin-left: auto; font-style: normal; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; color: #fff; background: var(--u); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.lp-unit.first .lp-start-here { display: inline-block; }
.lp-unit.first { background: #fff; box-shadow: 0 0 0 2px var(--u) inset; }

.lp-proof { margin-top: -4px; }
.lp-stars { color: var(--amber); letter-spacing: 1px; }

.lp-howto {
  width: 100%;
  text-align: left;
  background: var(--pale-blue);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.lp-howto strong { font-family: var(--font-display); font-size: 1rem; }
.lp-howto p { margin-top: 4px; line-height: 1.5; color: var(--ink); }

/* ---------------- Pro (web checkout) ---------------- */
.lp-pro {
  width: 100%;
  text-align: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
}
.lp-pro strong { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
.lp-pro > p { font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
.lp-pro-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-pro-plan {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 12px 8px 10px;
  border: 0;
  border-radius: 14px;
  background: var(--pale-blue);
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.lp-pro-plan:active { transform: scale(0.98); }
.lp-pro-plan b { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.1; color: var(--navy); }
.lp-pro-plan span { font-size: 0.8rem; font-weight: 800; color: var(--ink-soft); }
.lp-pro-plan[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 3px var(--sky) inset; }
.lp-pro-plan em {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--mint);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.lp-pro-cta { width: 100%; min-width: 0; white-space: normal; }
.lp-pro > * { min-width: 0; }
.lp-pro .lp-fine { font-size: 0.78rem; }

.lp-steps { list-style: none; width: 100%; display: grid; gap: 10px; text-align: left; font-size: 0.9rem; line-height: 1.45; }
.lp-steps li { display: flex; gap: 10px; align-items: flex-start; }
.lp-steps strong { font-family: var(--font-display); }
.lp-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: #fff; font-weight: 900; font-size: 0.85rem;
  box-shadow: 0 3px 0 var(--sky-dark);
}

/* ---------------- trust + footer ---------------- */
.lp-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-soft);
}
.lp-trust li::before { content: "✓ "; color: var(--mint); }
.lp-foot { text-align: center; padding: 8px 16px max(18px, env(safe-area-inset-bottom)); font-size: 0.75rem; color: var(--ink-soft); }
.lp-foot a { text-decoration: underline; }

@media (min-width: 560px) {
  .lp-card { padding: 18px 32px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-step, .lp-mascot-big { animation: none; }
  .lp-dots span, .lp-option, .lp-build-list li { transition: none; }
}
