/* The sales funnel pages: reply lines on /start, /your-playbook, the sheet, the test checkout.
   Sizes follow docs/specs/funnel-page-design.md. Look: docs/specs/look.md. */

/* ---------- reply line on /start ---------- */
.reply {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 var(--s3);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.reply-mark {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ok);
}
.reply-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.niche-row {
  margin-top: var(--s4);
}
.niche-row .niche-hint {
  margin-bottom: var(--s2);
}

/* ---------- /your-playbook, Ready ---------- */
.pb {
  max-width: 35rem; /* 560 px column on wide screens */
  padding-block: var(--s6) var(--s12);
}
.pb[hidden] {
  display: none;
}
.pb-h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.08;
  text-wrap: balance; /* the last line is never one word */
  overflow-wrap: anywhere;
}
.pb-date {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}
.pb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.pb-row + .pb-row {
  border-top: 1px solid var(--line);
}
.pb-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pb-head:hover {
  background: var(--surface);
}
.pb-head:focus-visible {
  outline-offset: -3px;
}
.pb-tick {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok);
}
.pb-tick::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.pb-text {
  flex: 1 1 auto;
  min-width: 0;
}
.pb-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.pb-line {
  display: block;
  margin-top: 2px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--muted);
}
.pb-chev {
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0 6px 3px 4px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 150ms ease-out;
}
.pb-head[aria-expanded="true"] .pb-chev {
  margin-bottom: -3px;
  transform: rotate(-135deg);
}
.pb-box {
  margin: 0 14px 14px 52px;
  padding: 12px;
  background: var(--inset);
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
}
.pb-box[hidden] {
  display: none;
}
.pb-buy {
  margin-top: 24px;
  max-width: 420px;
  margin-inline: auto;
  text-align: center;
}
.pb-cta {
  width: 100%;
  min-height: 56px;
  padding-inline: 0.5rem;
  white-space: nowrap;
}
.pb-buy p {
  margin: 0;
}
.pb-price {
  margin-top: 10px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.pb-sub {
  margin-top: 4px !important;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.pb-change-wrap {
  margin: 28px 0 0;
  text-align: center;
}
.pb-change {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
@media (min-width: 900px) {
  .pb-h1 {
    font-size: 56px;
  }
}

/* ---------- the sheet ---------- */
html.sheet-open {
  overflow: hidden;
}
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.sheet-backdrop[hidden] {
  display: none;
}
.sheet {
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
}
.sheet-backdrop.is-open .sheet {
  transform: translateY(0);
  transition: transform 250ms ease-out;
}
.sheet-title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sheet-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: sheet;
}
.sheet-list li {
  position: relative;
  min-height: 24px;
  margin: 0 0 14px;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.45;
  counter-increment: sheet;
}
.sheet-list li::before {
  content: counter(sheet);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--inset);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.sheet-terms {
  margin: 0 0 16px;
  font-size: 14px;
}
.sheet-go {
  width: 100%;
  min-height: 56px;
}
.sheet-back {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.sheet .error {
  margin-bottom: 12px;
}
@media (min-width: 700px) {
  .sheet-backdrop {
    align-items: center;
  }
  .sheet {
    width: 440px;
    border-radius: 16px;
    transform: translateY(12px);
    opacity: 0;
  }
  .sheet-backdrop.is-open .sheet {
    transform: none;
    opacity: 1;
    transition: transform 250ms ease-out, opacity 250ms ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-backdrop.is-open .sheet {
    transition: none;
  }
  .pb-chev {
    transition: none;
  }
}

/* ---------- test checkout ---------- */
.tc-agree label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  cursor: pointer;
}
.tc-agree input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--text);
}
.niche-hint {
  margin: 0 0 var(--s2);
  font-size: 1rem;
  color: var(--muted);
}
