/* Sign-up (pages/signup.html.twig). */

/* The page opens drawn as it is (pages/signup.ts adds .is-ready after the first paint): nothing moves until then. */
.su:not(.is-ready), .su:not(.is-ready) *, .su:not(.is-ready) *::before, .su:not(.is-ready) *::after { transition: none !important; }

/* Opening on yearly, the term switch is drawn on Monthly, as a selected segment, and pages/signup.ts slides it across
   once the page is ready. With reduced motion it is drawn on Yearly straight away. */
@media (prefers-reduced-motion: no-preference) {
  .su-head .seg.is-intro .thumb { transform: none; }
  .su-head .seg.is-intro button[data-term="monthly"] { color: var(--ld-on-green); }
  .su-head .seg.is-intro button[data-term="annual"] { color: var(--ld-text-muted); }
}

/* Signup */
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ld-line-strong); font: 700 12px/1 var(--font-sans); transition: background-color var(--ld-ease-enter), color var(--ld-ease-enter); }
.step.is-current .step-dot { background: var(--ld-green); border-color: var(--ld-green); color: var(--ld-on-green); }
.step.is-done .step-dot { background: var(--ld-green-surface); border-color: var(--ld-green-line); color: var(--ld-green); }

@media (max-width: 760px) {
  .step:not(.is-current) .step-label { display: none; }
  .pb-offers { padding: 0 12px; }
  .pb-go { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  /* A compact bar: the price line says what renews, so the next-steps line goes, and the deal chip shortens to fit. */
  .su-bar-next { display: none; }
  .paybar:has(.su-bar-text) .paybar-in { gap: 8px; padding-top: 8px; padding-bottom: 10px; }
  .su-bar-title { gap: 6px; min-width: 0; font-size: 15px; line-height: 20px; }
  .su-bar-title > [data-bar-name] { flex: none; white-space: nowrap; }
  .su-bar-deal { min-width: 0; height: 20px; padding: 0 8px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 18px; }
  .su-bar-deal[hidden] { display: none; }
  .su-bar-text [data-bar-line] { font-size: 12px; line-height: 16px; }
  .paybar .pb-offers, .paybar .pb-go { height: 44px; min-height: 44px; font-size: 15px; }
}

/* Sign-up, its offers and its account step */
.su { max-width: 1180px; padding-top: 32px; padding-bottom: 160px; }
.su-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.su-head .t-body-lg { max-width: 640px; }
.su-head .seg { margin-top: 8px; }
.su-center { text-align: center; margin-top: 16px; }
.su-test { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px auto 0; color: var(--ld-warning); font: 500 13px/18px var(--font-sans); }
.su-note { display: flex; align-items: flex-start; gap: 10px; max-width: 640px; padding: 12px 14px; border-radius: var(--ld-radius-md); border: 1px solid var(--ld-line-strong); background: var(--ld-surface-2); color: var(--ld-text-secondary); font: 400 14px/20px var(--font-sans); text-align: left; }
.su-note svg { flex: none; margin-top: 2px; color: var(--ld-green); }
.su-bar-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.su-bar-title { display: flex; align-items: center; gap: 8px; }
.su-bar-deal { height: 22px; }
.su-bar-status, .su-bar-next { width: 100%; margin: 0; }
.su-bar-status:empty { display: none; }
.pb-go.is-busy, .su-form [data-create].is-busy { pointer-events: none; opacity: .8; }
.su-account { max-width: 640px; margin: 28px auto 0; }
.su-paid { padding: 16px 18px; display: flex; align-items: center; gap: 14px; border-color: var(--ld-green-line); background: var(--ld-green-surface); }
.su-paid > svg { flex: none; color: var(--ld-green); }
.su-paid-text { flex: 1; min-width: 0; }
.su-acct-title { margin-top: 28px; }
.su-form { margin-top: 20px; }
.su-form .fld-in .btn-icon { margin-right: 4px; }
.su-billing { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.su-billing summary { cursor: pointer; }
.su-end { max-width: 560px; margin: 48px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.su-end > svg { color: var(--ld-green); }
@media (max-width: 640px) {
  .su-paid { flex-wrap: wrap; }
}

/* Wide screens: the plan cards fill the page's full width. */
@media (min-width: 1200px) {
  .su[data-stage="plans"], .su[data-stage="checkout"] { max-width: 1600px; }
}

/* The account step on wide screens: the form keeps its width on the left and the hero lens fills the rest. */
.su-art { display: none; }
@media (min-width: 1100px) {
  .su-account { max-width: none; display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .su-account > * { grid-column: 1; }
  .su-account > .su-art { display: block; position: sticky; top: 96px; grid-column: 2; grid-row: 1 / span 4; height: 560px; overflow: hidden; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); mask-image: radial-gradient(closest-side, #000 70%, transparent); }
  .su-art-fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ld-surface-0) 0%, rgba(5,6,8,.85) 22%, rgba(5,6,8,0) 55%), linear-gradient(0deg, var(--ld-surface-0) 0%, transparent 22%), linear-gradient(180deg, var(--ld-surface-0) 0%, transparent 14%); }
}
