/* Salesforge rebuild, version 2, round 2: the instant outbound plan.
   Frank's homepage asks for an email, then promises a strategy "in your mailbox in 5 minutes". Here the visitor answers
   three questions and the plan builds itself on the page as they go: emails, mailboxes, domains, the Forge stack and
   its price, worked out with the rules and price tables of Frank's own price builder. Then it offers to email it. */

#plan { scroll-margin-top: 88px; }
.outbound__card.plan {
  height: auto; flex-direction: row; align-items: flex-start; gap: 56px; padding: 64px;
}

/* ---------------------------------------------------------------- the questions (left, on the dark card) */
.plan__ask { position: relative; z-index: 1; flex: 0 0 420px; display: flex; flex-direction: column; gap: 22px; min-width: 0; color: var(--white); }
.plan__badge-row { justify-content: flex-start; }
.plan__title { text-align: left; }
.plan__lead { margin-top: -10px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.plan__q { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.plan__label { display: block; padding: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: rgba(255, 255, 255, .72); }
.plan__field.field { width: 100%; min-width: 0; height: 48px; font-size: 15px; }
.plan__opts { display: flex; gap: 8px; }
.plan__opt {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  background: rgba(255, 255, 255, .06); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.plan__opt:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .34); }
.plan__opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.plan__opt-main { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--white); transition: color .25s; }
.plan__opt-sub { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .6); transition: color .25s; }
.plan__opt.is-on { background: var(--white); border-color: var(--white); box-shadow: 0 8px 22px -6px rgba(110, 64, 215, .55); }
.plan__opt.is-on .plan__opt-main { color: var(--ink); }
.plan__opt.is-on .plan__opt-sub { color: var(--violet); }
.plan__opt:has(input:focus-visible) { outline: 2px solid #b692f6; outline-offset: 2px; }
.plan__opts--small .plan__opt { min-height: 40px; padding: 6px 10px; text-align: center; }
.plan__opts--small .plan__opt-main { font-size: 13px; }
/* round 6 fix: on a 320 px phone "Primeforge" (70 px) did not fit its chip (63 px inside); slimmer side padding and
   12 px words there give it room */
@media (max-width: 359px) {
  .plan__opts--small .plan__opt { padding-left: 4px; padding-right: 4px; }
  .plan__opts--small .plan__opt-main { font-size: 12px; }
}

.plan__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan__out { font-size: 24px; line-height: 1; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; }
.plan__range {
  --fill: 43%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; margin: 10px 0 2px;
  border-radius: 9999px; outline: none; cursor: pointer;
  background: linear-gradient(to right, #9e77ed var(--fill), rgba(255, 255, 255, .18) var(--fill));
}
.plan__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 6px solid var(--violet); box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: grab;
}
.plan__range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 6px solid var(--violet);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: grab;
}
.plan__range:focus-visible { outline: 2px solid #b692f6; outline-offset: 8px; }
.plan__ticks { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, .5); }
.plan__hint { font-size: 12px; line-height: 16px; color: #d6bbfb; }
.plan__hint[hidden] { display: none; }
.plan__fine { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.plan__fine[hidden] { display: none; }

/* ---------------------------------------------------------------- the plan document (right) */
.plan__doc {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; padding: 28px 28px 22px; border-radius: 16px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 60px -10px rgba(110, 64, 215, .45);
}
.plan__doc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__kicker { font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--violet); }
.plan__live {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 9999px;
  background: #ecfdf3; color: #067647; font-size: 12px; line-height: 18px; font-weight: 600;
}
.plan__live-dot { width: 6px; height: 6px; border-radius: 50%; background: #17b26a; animation: plan-pulse 1.8s ease-in-out infinite; }
@keyframes plan-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(23, 178, 106, .55); } 60% { box-shadow: 0 0 0 6px rgba(23, 178, 106, 0); } }
.plan__doc-title { margin-top: 10px; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.4px; overflow-wrap: anywhere; }
.plan__name { color: var(--violet); }
.plan__doc-sub { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--gray-500); }

.plan__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0 0; }
.plan__stat {
  min-width: 0; padding: 12px 12px 10px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50);
  transition: background-color .7s, border-color .7s;
}
.plan__stat.is-bump { background: var(--violet-50); border-color: #d6bbfb; transition: none; }
.plan__stat dt { font-size: 12px; line-height: 16px; color: var(--gray-500); }
.plan__stat dd { margin: 4px 0 0; font-size: 22px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; }

.plan__h { margin-top: 24px; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-500); }
.plan__stack { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--gray-200); }
.plan__row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--gray-200);
}
.plan__row.is-new { animation: plan-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes plan-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.plan__logo { display: flex; align-items: center; min-width: 0; }
.plan__logo img { display: block; width: auto; height: 20px; }
.plan__logo--agent { gap: 8px; font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.plan__logo--agent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.plan__what { display: flex; flex-direction: column; min-width: 0; }
.plan__tag { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.plan__detail { font-size: 13px; line-height: 18px; color: var(--gray-500); }
.plan__price { font-size: 16px; line-height: 20px; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 12px; font-weight: 500; color: var(--gray-500); }
.plan__price--free { color: #067647; }

.plan__total { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.plan__total-label { margin-right: auto; font-size: 15px; font-weight: 600; }
.plan__total strong { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.5px; color: var(--violet); font-variant-numeric: tabular-nums; }
.plan__per { font-size: 14px; color: var(--gray-500); }
.plan__note { margin-top: 4px; font-size: 12px; line-height: 17px; color: var(--gray-500); text-align: right; }

.plan__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: plan; }
.plan__step { position: relative; padding: 12px 12px 12px 40px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50); }
.plan__step::before {
  counter-increment: plan; content: counter(plan); position: absolute; left: 12px; top: 12px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--violet-100); color: var(--violet); font-size: 12px; font-weight: 700;
}
.plan__when { display: block; font-size: 12px; line-height: 18px; font-weight: 600; color: var(--violet); }
.plan__step-text { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--gray-700); }

.plan__send { display: flex; gap: 8px; margin-top: 22px; }
.plan__send[hidden] { display: none; }   /* round 6 fix: after sending, only the thank-you message shows */
.plan__email.field { flex: 1 1 auto; width: auto; min-width: 0; height: 48px; font-size: 15px; }
.plan__send-btn.btn { flex: none; min-height: 48px; height: 48px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
.plan__done {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 10px;
  background: #ecfdf3; color: #067647; font-size: 15px; font-weight: 600;
}
.plan__done[hidden] { display: none; }
.plan__done svg { width: 22px; height: 22px; flex: none; }
.plan__rules { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--gray-400); }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1199px) {
  .outbound__card.plan { gap: 40px; padding: 56px 48px; }
  .plan__ask { flex-basis: 360px; }
  .plan__row { grid-template-columns: 112px minmax(0, 1fr) auto; }
}
@media (max-width: 991px) {
  .outbound__card.plan { flex-direction: column; align-items: stretch; gap: 36px; padding: 48px 40px 40px; }
  .plan__ask { flex: none; width: 100%; max-width: 560px; margin: 0 auto; }
  .plan__doc { flex: none; width: 100%; }
}
@media (max-width: 767px) {
  .outbound__card.plan { padding: 44px 24px 24px; }
  .plan__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan__steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .outbound__card.plan { gap: 28px; padding: 40px 12px 12px; }
  .plan__ask { gap: 20px; padding: 0 8px; }
  .plan__doc { padding: 20px 16px 18px; border-radius: 14px; }
  .plan__doc-title { font-size: 22px; }
  .plan__stat dd { font-size: 20px; }
  .plan__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .plan__logo { grid-column: 1 / -1; }
  .plan__total strong { font-size: 30px; }
  .plan__note { text-align: left; }
  .plan__send { flex-direction: column; }
  .plan__send-btn.btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .plan__live-dot { animation: none; }
  .plan__row.is-new { animation: none; }
  .plan__stat, .plan__stat.is-bump { transition: none; }
}
