/* Phone visitors' "email me the link" offer. See offer.js. */

/* ---- Form (hero and sheet) ------------------------------------------- */

.al-offer { width: 100%; max-width: 34rem; }
.al-offer--inline { margin: 0 0 1.5rem; }
.hero-actions .al-offer--inline { margin: 0; flex-basis: 100%; }

.al-offer-form, .al-offer-sent { display: grid; gap: 0.75rem; }

.al-offer-lede {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}
.al-offer-lede strong { color: var(--amber); font-weight: 500; }

.al-offer-row { display: grid; gap: 0.6rem; }

.al-offer-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.al-offer-input {
  width: 100%;
  /* 16px stops iOS Safari zooming the page when the field gets focus. */
  font: 400 16px/1.3 'DM Sans', sans-serif;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 0.85rem 1.25rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.al-offer-input::placeholder { color: var(--muted); }
.al-offer-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 190, 111, 0.25);
}

.al-offer-submit {
  width: 100%;
  font: 500 1rem/1 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--amber);
  border: 0;
  border-radius: 100px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.al-offer-submit:hover { background: var(--amber-soft); }
.al-offer-submit:disabled { opacity: 0.6; cursor: default; }

.al-offer-fine {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.al-offer-fine a, .al-offer-again {
  color: var(--mid);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.al-offer-again {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.al-offer-status:empty { display: none; }
.al-offer-status { color: var(--amber-soft); font-size: 0.88rem; }

/* Honeypot: invisible to people, filled in by form-spamming bots. */
.al-offer-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---- Bottom bar and sheet --------------------------------------------- */

.al-offer-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1001;
  background: var(--panel-strong);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35);
}
.al-offer-bar[hidden] { display: none; }

.al-offer-bar-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.al-offer-bar-text {
  flex: 1;
  color: var(--mid);
  font-size: 0.85rem;
  line-height: 1.35;
}
.al-offer-bar-text strong { color: var(--text); font-weight: 500; }
.al-offer-bar-done { display: none; }
.al-offer-bar.is-sent .al-offer-bar-ask { display: none; }
.al-offer-bar.is-sent .al-offer-bar-done { display: inline; }

.al-offer-bar-open {
  flex: none;
  font: 500 0.88rem/1 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--amber);
  border: 0;
  border-radius: 100px;
  padding: 0.65rem 1rem;
  cursor: pointer;
}
.al-offer-bar.is-sent .al-offer-bar-open,
.al-offer-bar.is-open .al-offer-bar-open { display: none; }

.al-offer-bar-close {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  font: 400 1.4rem/1 'DM Sans', sans-serif;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.al-offer--sheet { display: none; max-width: none; padding-top: 0.75rem; }
.al-offer-bar.is-open .al-offer--sheet { display: block; }
.al-offer-bar.is-open .al-offer-bar-text { display: none; }
.al-offer-bar.is-open .al-offer-bar-strip { justify-content: flex-end; }

/* Keep the footer clear of the bar. */
body.al-has-offer-bar { padding-bottom: 5.5rem; }

/* ---- Back on the Mac: the discount banner ----------------------------- */

.al-offer-banner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 1100px;
  margin: 1.25rem auto 0;
  padding: 1.1rem 3.25rem 1.1rem 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 190, 111, 0.35);
  border-radius: 14px;
}

.al-offer-banner-text {
  flex: 1 1 28rem;
  color: var(--mid);
  font-size: 0.95rem;
  line-height: 1.6;
}
.al-offer-banner-text strong { color: var(--text); font-weight: 500; }

.al-offer-code {
  font-family: Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--amber);
  background: rgba(255, 190, 111, 0.1);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.al-offer-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
/* ---- Pricing cards with the code applied ------------------------------ */

.price-head.al-offer-priced { flex-wrap: wrap; }

.al-offer-was {
  font-size: 0.55em;
  color: var(--muted);
  text-decoration-thickness: 1.5px;
  margin-right: 0.35em;
  vertical-align: 0.25em;
}
.al-offer-now { color: var(--amber); }
.al-offer-was-inline { color: var(--muted); }

.al-offer-price-note {
  margin: -0.2rem 0 0.8rem;
  color: var(--mid);
  font-size: 0.85rem;
}

.al-offer-banner-close {
  position: absolute;
  top: 0.6rem; right: 0.75rem;
  width: 2rem; height: 2rem;
  font: 400 1.3rem/1 'DM Sans', sans-serif;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}

@media (max-width: 1160px) {
  .al-offer-banner { margin-left: 1.5rem; margin-right: 1.5rem; }
}
