/*
 * offers.css — acquisition surfaces for www.mobieus.io
 *
 * Uses existing semantic tokens from styles.css:
 *   --ink, --night, --panel, --line, --line-strong, --green, --teal,
 *   --blue, --muted, --radius, --shadow
 *
 * Dark-theme by default; respects the `body[class^="page-"]` light
 * override (home, pricing, about, contact, faq, for-creators,
 * for-orgs, buy, welcome) via :where() guards where needed.
 *
 * NEVER ships a layout shift — announcement-bar height is pre-
 * reserved, and the header stays sticky but slides under the bar.
 */

/* ── 1) Announcement bar ─────────────────────────────────────── */
.mob-announce {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--green, #5f86ff), var(--teal, #37c7ff));
  color: var(--night, #070b0f);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  animation: mob-announce-in 320ms ease-out;
}

.mob-announce--out {
  animation: mob-announce-out 240ms ease-in forwards;
}

@keyframes mob-announce-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

@keyframes mob-announce-out {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-100%); opacity: 0; }
}

.mob-announce__link {
  color: var(--night, #070b0f);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.mob-announce__link:hover .mob-announce__cta {
  text-decoration: underline;
}

.mob-announce__tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(7, 11, 15, 0.18);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mob-announce__cta {
  font-weight: 900;
  white-space: nowrap;
}

.mob-announce__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--night, #070b0f);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0.65;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.mob-announce__close:hover,
.mob-announce__close:focus-visible {
  opacity: 1;
  background: rgba(7, 11, 15, 0.12);
  outline: none;
}

/* Push sticky header below the announcement bar when present */
body.mob-has-announce .site-header {
  top: 44px;
}

@media (max-width: 600px) {
  .mob-announce {
    font-size: 13px;
    padding: 8px 36px 8px 12px;
  }
  .mob-announce__link {
    gap: 6px;
  }
}

/* ── 2) Sticky button ────────────────────────────────────────── */
.mob-sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: stretch;
  background: linear-gradient(135deg, var(--green, #5f86ff), var(--teal, #37c7ff));
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(7, 11, 15, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: mob-sticky-in 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: Inter, Arial, sans-serif;
}

.mob-sticky--out {
  animation: mob-sticky-out 240ms ease-in forwards;
}

@keyframes mob-sticky-in {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

@keyframes mob-sticky-out {
  from { transform: translateY(0)    scale(1);    opacity: 1; }
  to   { transform: translateY(20px) scale(0.96); opacity: 0; }
}

.mob-sticky__btn {
  padding: 14px 20px;
  background: transparent;
  color: var(--night, #070b0f);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px 0 0 999px;
  letter-spacing: -0.005em;
  transition: filter 0.16s ease;
}

.mob-sticky__btn:hover,
.mob-sticky__btn:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.mob-sticky__close {
  width: 38px;
  padding: 0 14px 0 8px;
  margin: 0;
  background: transparent;
  color: var(--night, #070b0f);
  border: 0;
  border-left: 1px solid rgba(7, 11, 15, 0.18);
  border-radius: 0 999px 999px 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.16s ease;
}

.mob-sticky__close:hover,
.mob-sticky__close:focus-visible {
  opacity: 1;
  outline: none;
}

@media (max-width: 600px) {
  .mob-sticky {
    right: 12px;
    bottom: 12px;
  }
  .mob-sticky__btn {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* ── 3) Modal (trial nudge + exit-intent) ────────────────────── */
.mob-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 11, 15, 0.72);
  backdrop-filter: blur(8px);
  animation: mob-fade-in 240ms ease-out;
}

.mob-modal-overlay--out {
  animation: mob-fade-out 240ms ease-in forwards;
}

@keyframes mob-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes mob-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.mob-modal {
  position: fixed;
  z-index: 101;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 36px 32px 28px;
  background: linear-gradient(145deg, rgba(95, 134, 255, 0.18), rgba(13, 20, 25, 0.96));
  border: 1px solid rgba(95, 134, 255, 0.36);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  font-family: Inter, Arial, sans-serif;
  color: var(--ink, #f7f9ff);
  animation: mob-modal-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mob-modal--out {
  animation: mob-modal-out 240ms ease-in forwards;
}

@keyframes mob-modal-in {
  from { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
  to   { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
}

@keyframes mob-modal-out {
  from { transform: translate(-50%, -50%) scale(1);    opacity: 1; }
  to   { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
}

.mob-modal__close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  color: rgba(247, 249, 255, 0.7);
  border: 0;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.mob-modal__close:hover,
.mob-modal__close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.mob-modal__eyebrow {
  margin: 0 0 12px;
  color: #8fb0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mob-modal__eyebrow--accent {
  color: #37c7ff;
}

.mob-modal__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
}

.mob-modal__body {
  margin: 0 0 20px;
  color: #a5adc6;
  font-size: 15px;
  line-height: 1.55;
}

.mob-modal__list {
  margin: 0 0 22px;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid rgba(95, 134, 255, 0.22);
  border-radius: 8px;
  background: rgba(95, 134, 255, 0.06);
}

.mob-modal__list li {
  display: block;
  padding: 4px 0;
  color: #f7f9ff;
  font-size: 14px;
  font-weight: 700;
}

.mob-modal__cta {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--green, #5f86ff), var(--teal, #37c7ff));
  color: var(--night, #070b0f);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.16s ease;
}

.mob-modal__cta:hover,
.mob-modal__cta:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.mob-modal__skip {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: transparent;
  color: rgba(247, 249, 255, 0.55);
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.16s ease;
}

.mob-modal__skip:hover,
.mob-modal__skip:focus-visible {
  color: rgba(247, 249, 255, 0.92);
  outline: none;
}

@media (max-width: 480px) {
  .mob-modal {
    padding: 30px 22px 22px;
  }
  .mob-modal__title {
    font-size: 24px;
  }
}

/* ── 4) Funnel pages (shared) ────────────────────────────────── */
.mob-funnel {
  min-height: 80vh;
  padding: clamp(40px, 8vw, 90px) clamp(18px, 5vw, 70px);
}

.mob-funnel__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.mob-funnel__main {
  padding: clamp(28px, 4vw, 44px);
  background: rgba(13, 20, 25, 0.86);
  border: 1px solid rgba(127, 164, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.mob-funnel__aside {
  align-self: start;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(145deg, rgba(95, 134, 255, 0.14), rgba(17, 27, 32, 0.92));
  border: 1px solid rgba(127, 164, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.mob-funnel__eyebrow {
  margin: 0 0 12px;
  color: #8fb0ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mob-funnel h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.mob-funnel__lede {
  margin: 0 0 24px;
  color: #a5adc6;
  font-size: 17px;
  line-height: 1.6;
}

.mob-funnel__steps {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}

.mob-funnel__step {
  flex: 1;
  height: 4px;
  background: rgba(127, 164, 255, 0.18);
  border-radius: 999px;
}

.mob-funnel__step--active,
.mob-funnel__step--done {
  background: linear-gradient(90deg, var(--green, #5f86ff), var(--teal, #37c7ff));
}

.mob-funnel__field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.mob-funnel__label {
  font-size: 13px;
  font-weight: 700;
  color: #f7f9ff;
}

.mob-funnel__hint {
  margin: 0;
  color: #737d98;
  font-size: 13px;
  line-height: 1.4;
}

.mob-funnel__input,
.mob-funnel__select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: #f7f9ff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(127, 164, 255, 0.22);
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.mob-funnel__input:focus,
.mob-funnel__select:focus {
  border-color: var(--green, #5f86ff);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.mob-funnel__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.mob-funnel__row .mob-funnel__field {
  margin-bottom: 0;
}

.mob-funnel__slug {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  align-items: stretch;
}

.mob-funnel__slug input {
  border-right: 0;
  border-radius: 8px 0 0 8px;
}

.mob-funnel__slug-suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(95, 134, 255, 0.12);
  color: #8fb0ff;
  border: 1px solid rgba(127, 164, 255, 0.22);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mob-funnel__slug-status {
  margin: 6px 0 0;
  font-size: 13px;
  color: #737d98;
  min-height: 18px;
}

.mob-funnel__slug-status--ok    { color: #5f86ff; }
.mob-funnel__slug-status--bad   { color: #ff7a8a; }

.mob-funnel__submit {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--green, #5f86ff), var(--teal, #37c7ff));
  color: var(--night, #070b0f);
  font-size: 16px;
  font-weight: 900;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.16s ease, opacity 0.16s ease;
}

.mob-funnel__submit:hover:not(:disabled),
.mob-funnel__submit:focus-visible:not(:disabled) {
  filter: brightness(1.06);
  outline: none;
}

.mob-funnel__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mob-funnel__error {
  margin: 14px 0;
  padding: 12px 14px;
  background: rgba(255, 122, 138, 0.1);
  border: 1px solid rgba(255, 122, 138, 0.4);
  border-radius: 8px;
  color: #ff7a8a;
  font-size: 14px;
  font-weight: 600;
}

.mob-funnel__success {
  margin: 14px 0;
  padding: 14px;
  background: rgba(95, 134, 255, 0.1);
  border: 1px solid rgba(95, 134, 255, 0.4);
  border-radius: 8px;
  color: #8fb0ff;
  font-size: 14px;
  font-weight: 700;
}

.mob-funnel__trust {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(127, 164, 255, 0.18);
}

.mob-funnel__trust strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #f7f9ff;
  letter-spacing: 0.02em;
}

.mob-funnel__trust span {
  font-size: 13px;
  color: #a5adc6;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .mob-funnel__shell {
    grid-template-columns: 1fr;
  }
  .mob-funnel__row {
    grid-template-columns: 1fr;
  }
}

/* ── 5) Launch-deal plan picker ──────────────────────────────── */
.mob-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .mob-plans {
    grid-template-columns: 1fr;
  }
}

.mob-plan {
  display: grid;
  gap: 8px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(127, 164, 255, 0.18);
  border-radius: 10px;
  text-align: left;
  font: inherit;
  color: #f7f9ff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.mob-plan:hover {
  border-color: rgba(127, 164, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
}

.mob-plan.is-active {
  border-color: rgba(95, 134, 255, 0.7);
  background: rgba(95, 134, 255, 0.14);
  box-shadow: 0 0 24px rgba(95, 134, 255, 0.16);
}

.mob-plan__tier {
  font-size: 15px;
  font-weight: 900;
}

.mob-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.mob-plan__price-strike {
  color: #737d98;
  font-size: 14px;
  text-decoration: line-through;
}

.mob-plan__price-new {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.mob-plan__price-unit {
  color: #a5adc6;
  font-size: 12px;
}

.mob-plan__save {
  color: #5f86ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mob-plan__desc {
  margin: 0;
  color: #a5adc6;
  font-size: 13px;
  line-height: 1.5;
}

/* ── 6) Commitment terms screen ──────────────────────────────── */
.mob-commit {
  margin: 20px 0;
  padding: 20px;
  background: rgba(95, 134, 255, 0.08);
  border: 1px solid rgba(95, 134, 255, 0.28);
  border-radius: 10px;
}

.mob-commit h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}

.mob-commit p {
  margin: 0 0 10px;
  color: #a5adc6;
  font-size: 14px;
  line-height: 1.6;
}

.mob-commit__money {
  color: #fff;
  font-weight: 900;
}

.mob-commit__formula {
  display: block;
  margin: 8px 0;
  padding: 10px;
  background: rgba(7, 11, 15, 0.3);
  border-radius: 6px;
  color: #8fb0ff;
  font-family: "JetBrains Mono", "Source Code Pro", Menlo, monospace;
  font-size: 13px;
}

.mob-commit__check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  cursor: pointer;
}

.mob-commit__check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green, #5f86ff);
}

.mob-commit__check span {
  color: #f7f9ff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

/* ── 7) Provisioning waiter (re-uses /welcome's poller idea) ─── */
.mob-wait {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 40px 0;
  text-align: center;
}

.mob-wait__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(127, 164, 255, 0.2);
  border-top-color: var(--green, #5f86ff);
  animation: mob-spin 0.9s linear infinite;
}

@keyframes mob-spin {
  to { transform: rotate(360deg); }
}

.mob-wait__lede {
  color: #a5adc6;
  font-size: 16px;
  max-width: 380px;
  line-height: 1.55;
}

/* ── 8) Trial decision page (day 14) ─────────────────────────── */
.mob-decision {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.mob-decision__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: rgba(13, 20, 25, 0.86);
  border: 1px solid rgba(127, 164, 255, 0.22);
  border-radius: 10px;
}

.mob-decision__option--primary {
  border-color: rgba(95, 134, 255, 0.7);
  background: linear-gradient(145deg, rgba(95, 134, 255, 0.16), rgba(17, 27, 32, 0.92));
}

.mob-decision__option h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.mob-decision__option p {
  margin: 0;
  color: #a5adc6;
  font-size: 14px;
  line-height: 1.5;
}

.mob-decision__btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--green, #5f86ff), var(--teal, #37c7ff));
  color: var(--night, #070b0f);
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.16s ease;
}

.mob-decision__btn--secondary {
  background: rgba(255, 255, 255, 0.07);
  color: #f7f9ff;
  border: 1px solid rgba(127, 164, 255, 0.22);
}

.mob-decision__btn:hover,
.mob-decision__btn:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

@media (max-width: 600px) {
  .mob-decision__option {
    grid-template-columns: 1fr;
  }
}

/* Light-theme override for the announcement bar's offset on
   page-* pages (their header is already styled differently but the
   sticky offset still applies) */
body[class^="page-"].mob-has-announce .site-header {
  top: 44px;
}

/* OFFER-FUNNEL-THEME-OVERRIDE
   The 3 offer-funnel pages (/start-trial, /launch-deal, /trial-decision)
   inherit class="page-buy" which triggers the global LIGHT-THEME token
   override in styles.css (--ink becomes dark). But our pages render
   against the DARK :root backdrop, so the light-theme tokens produce
   dark text on dark backgrounds — unreadable form inputs.
   Re-apply the dark-theme :root values here, scoped to body.page-buy. */
body.page-buy {
    --ink: #f7f9ff;
    --ink-secondary: #cfd6ec;
    --muted: #a5adc6;
    --dim: #737d98;
}
