/* ============================================================================
   account.css — what the account pages add to site.css: login, signup,
   password recovery and reset, the payment result, unsubscribe, the two legal
   pages and Full Access. Loaded by those templates through
   {% block head_extra %}. Prefix acct-: no older stylesheet uses it.

   Order: the single column · form pieces · signup steps · payment result ·
   legal · Full Access · phones · reduced motion.
   ========================================================================== */

/* ── the single column: a plate, what this is, the form, one way out ── */
.lp .acct { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(4rem, 9vw, 7rem); }
.lp .acct-wrap { --maxw: 27rem; }
.lp .acct-wrap--form { --maxw: 34rem; }
.lp .acct-wrap--mid { --maxw: 40rem; }
.lp .acct__plate { width: 84px; height: auto; margin-bottom: 1.5rem; }
.lp .acct__head { margin-bottom: clamp(1.6rem, 3.5vw, 2.1rem); }
.lp .acct__head .lp-h1 { font-size: clamp(2rem, 4.2vw, 2.7rem); }
.lp .acct__head .lp-lead { margin-top: 0.8rem; }
.lp .acct__foot { display: grid; gap: 0.55rem; margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.lp .acct__foot .lp-link { font-size: inherit; }
.lp .acct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem 1.5rem; margin-top: 1.6rem; }

/* ── form pieces ── */
/* a small link at the far end of a label's line ("Contraseña" … "¿La olvidaste?"). It comes after the
   field in the document, so Tab does not stop on it between the two fields. */
.lp .acct-field--aside { position: relative; }
.lp .acct-field__aside { position: absolute; top: 0; right: 0; font-size: 0.84rem; }
.lp .acct-phone { display: grid; grid-template-columns: minmax(8.5rem, 0.8fr) minmax(0, 1.6fr); gap: 0.6rem; }
/* while a field shows what is wrong with it, its hint (which says the same) steps aside */
.lp .lp-field:has(> .lp-error:not([hidden])) > .lp-help { display: none; }
/* a button that is working says so and cannot be pressed twice */
.lp .lp-btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.lp .acct-notice + .acct-notice, .lp .acct-notice + .lp-form, .lp .lp-form + .acct-notice { margin-top: 1.15rem; }
.lp .acct-notice a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp .acct-small { font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.lp .acct-small a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lp fieldset.acct-set { min-width: 0; margin: 0; padding: 0; border: 0; display: grid; gap: 1.15rem; }

/* ── signup: two steps, one on screen ── */
.lp .acct-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.9rem; }
.lp .acct-steps li { padding-top: 0.75rem; border-top: 1px solid var(--line-2); font: 500 0.7rem/1.4 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out); }
.lp .acct-steps li[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); }
.lp .acct-steps b { margin-right: 0.5rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── payment result ── */
.lp .acct-sum { display: grid; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.lp .acct-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.lp .acct-sum dt { font: 500 0.66rem/1.4 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lp .acct-sum dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp .acct-sum .is-total dd { font: 600 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.lp .acct-sum__code { margin-left: 0.6rem; font: 500 0.66rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lp .acct-sum__ref dd { font: 500 0.82rem "JetBrains Mono", ui-monospace, monospace; }
.lp .acct-guide { margin-top: 1.6rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line-2); border-radius: var(--radius); }
.lp .acct-guide .lp-h3 { margin-top: 0.5rem; }
.lp .acct-guide p { margin-top: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.lp .acct-guide ul { display: grid; gap: 0.45rem; margin-top: 0.8rem; padding-left: 1.1rem; list-style: disc; font-size: 0.95rem; }
.lp .acct-help { margin-top: 1.75rem; font-size: 0.92rem; color: var(--muted); }

/* ── legal: the text, and beside it the way to its sections ── */
.lp .acct-legal { padding-bottom: clamp(4rem, 9vw, 7rem); }
.lp .acct-legal .lp-prose section + section { margin-top: 2.4em; }
.lp .acct-legal .lp-prose section > * + * { margin-top: 0.8em; }
.lp .acct-legal .lp-prose h2 { margin-top: 0; scroll-margin-top: calc(var(--bar) + 1.5rem); }
.lp .acct-index { display: grid; gap: 0.15rem; padding: 1.2rem 0 0; border-top: 1px solid var(--line-2); }
.lp .acct-index__title { margin-bottom: 0.5rem; }
body .lp .acct-index a { display: block; padding: 0.625rem 0; font-size: 0.94rem; color: var(--muted); transition: color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { body .lp .acct-index a:hover { color: var(--ink); } }

/* ── Full Access: what it is on one side, the two plans on the other ── */
.lp .acct-plans { display: grid; gap: 1rem; }
.lp .acct-plan { padding: clamp(1.3rem, 2.4vw, 1.75rem); border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.lp .acct-plan__price { margin-top: 0.7rem; font: 600 clamp(1.9rem, 3vw, 2.35rem)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lp .acct-plan__period { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
.lp .acct-plan .lp-checks { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.lp .acct-plan .lp-btn { margin-top: 1.25rem; }
.lp .acct-active { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.lp .acct-active p { margin-top: 0.3rem; color: var(--muted); }
.lp .acct-fa-notices { display: grid; gap: 0.75rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.lp .acct-fa-notices:not(:has(> :not([hidden]))) { display: none; }

/* ── phones ── */
@media (max-width: 991.98px) {
  .lp .acct-index { margin-bottom: 0.5rem; }
}
@media (max-width: 560px) {
  .lp .acct__plate { width: 68px; margin-bottom: 1.2rem; }
  .lp .acct__actions .lp-btn, .lp .acct-active .lp-btn { width: 100%; }
  .lp .acct-phone { grid-template-columns: 1fr; }
  .lp .acct-sum > div { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lp .acct-steps li, .lp .acct-index a { transition: none; }
}
