/* Falcon Apply: sign-in, plan and account screens. Every rule here starts with acct-.
   Built on the variables and buttons in app.css. The price and the renewal terms are set
   large, at full contrast, and are never dimmed, even when the button is disabled. */

.acct-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header control ---------- */
#account-mount { display: inline-flex; }
.acct-head { min-height: 40px; }
.acct-me { gap: var(--s-2); padding: 0 12px 0 6px; }
.acct-initial { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: var(--t-13); }
.acct-tag { font-size: var(--t-13); font-weight: 600; color: var(--ink-2); }
.acct-tag-pro, .acct-tag-trial { color: var(--good); }

/* ---------- banner ---------- */
.acct-banner-in { display: flex; align-items: center; gap: var(--s-4); }
.acct-banner-text { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.acct-banner-x { flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid currentColor; border-radius: var(--r); background: transparent; color: inherit; font: 600 var(--t-13) var(--ui); cursor: pointer; }
.acct-banner-good { background: var(--good-wash); border-bottom-color: var(--line); color: var(--good); }
.acct-banner-warn { background: var(--pen-wash); border-bottom-color: var(--line); color: var(--pen); }

/* ---------- dialogs ---------- */
.acct-dlg { width: min(520px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(17, 20, 24, 0.25); font: 400 var(--t-16)/1.5 var(--ui); }
.acct-dlg.acct-dlg-plan { width: min(600px, calc(100% - 32px)); }
.acct-dlg::backdrop { background: rgba(17, 20, 24, 0.55); }
.acct-dlg[open] { display: flex; flex-direction: column; gap: var(--s-5); }
.acct-dlg-top { display: flex; align-items: flex-start; gap: var(--s-4); }
.acct-dlg-h { flex: 1 1 auto; min-width: 0; font-size: var(--t-25); }
.acct-x { flex: 0 0 auto; min-height: 36px; padding: 0 12px; font-size: var(--t-13); }
.acct-reason { padding: 12px 14px; border-left: 2px solid var(--pen); background: var(--pen-wash); font-weight: 600; }
.acct-dlg-body { display: flex; flex-direction: column; gap: var(--s-4); }
.acct-wide { width: 100%; }
.acct-or { text-align: center; }
.acct-email-form { display: flex; flex-direction: column; gap: 12px; }
.acct-email-form input[type="email"] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); font: 400 var(--t-16)/1.5 var(--ui); color: var(--ink); background: var(--paper); }
.acct-sent { padding: var(--s-4); border: 1px solid var(--good); border-radius: var(--r); background: var(--good-wash); color: var(--good); font-weight: 600; }
.acct-sent:focus { outline: none; }
.acct-fine { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.acct-fine a { color: var(--ink-2); }
.acct-note { color: var(--ink-2); }
.acct-status { font-size: var(--t-13); color: var(--ink-2); min-height: 0; }
.acct-status:empty { display: none; }

/* ---------- the offer ---------- */
.acct-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.acct-incl li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; line-height: 1.4; }
.acct-incl li::before { content: "\2713"; color: var(--good); font-weight: 800; }
.acct-terms { padding: var(--s-4); border: 1px solid var(--ink); border-radius: var(--r); background: var(--paper); color: var(--ink); font-size: var(--t-20); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.acct-buy { white-space: normal; text-align: center; padding-top: 10px; padding-bottom: 10px; }
.acct-buy[disabled] { opacity: 1; background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.acct-cancel-note { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.acct-cancel-note a { color: var(--ink); font-weight: 600; }

/* ---------- account page ---------- */
.acct-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.acct-h { font-size: var(--t-31); letter-spacing: -0.035em; }
.acct-h:focus { outline: none; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: var(--s-5); align-items: start; }
.acct-card { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.acct-card-h { font-size: var(--t-25); }
.acct-plan-name { font-size: var(--t-13); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.acct-big { font-size: var(--t-20); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.acct-warn { color: var(--pen); }
.acct-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.acct-confirm { display: flex; flex-direction: column; gap: 12px; padding: var(--s-4); border: 1px solid var(--ink); border-radius: var(--r); background: transparent; }
.acct-confirm p { font-weight: 600; }
.acct-confirm-danger { border-color: var(--pen); background: var(--pen-wash); }
.acct-danger { color: var(--pen); border-color: var(--pen); }

.acct-table { width: 100%; border-collapse: collapse; }
.acct-table caption { text-align: left; caption-side: bottom; padding-top: var(--s-2); }
.acct-table th, .acct-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.acct-table tr:last-child th, .acct-table tr:last-child td { border-bottom: 0; }
.acct-table th { font-weight: 400; padding-right: var(--s-4); }
.acct-table td { text-align: right; font-weight: 600; white-space: nowrap; }
.acct-table .acct-locked { color: var(--ink-3); font-weight: 400; }
.acct-table .acct-full { color: var(--pen); }

.acct-empty { color: var(--ink-2); }
.acct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.acct-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--s-4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.acct-item:first-child { padding-top: 0; }
.acct-item:last-child { border-bottom: 0; }
.acct-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.acct-item-title { font-weight: 600; overflow-wrap: anywhere; }
.acct-reader { margin-top: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: transparent; display: flex; flex-direction: column; gap: var(--s-4); }
.acct-reader-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.acct-reader-top h3 { font-size: var(--t-20); }
.acct-reader-top h3:focus { outline: none; }
.acct-reader-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 1.0625rem/1.65 var(--doc); max-width: 70ch; }
.acct-email-line { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Save buttons ---------- */
.acct-save { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s-2); }
.acct-save-note, .acct-save-status { max-width: 30ch; line-height: 1.3; }
.acct-save-status:empty { display: none; }

@media (max-width: 640px) {
  .acct-dlg { padding: var(--s-5); }
  .acct-dlg-h { font-size: var(--t-20); }
  .acct-terms { font-size: 1.125rem; }
  .acct-card { padding: var(--s-5); }
  .acct-reader { padding: var(--s-4); }
  .acct-table th { padding-right: var(--s-2); }
  .acct-h { font-size: var(--t-31); }
}
@media print {
  .acct-save, .acct-banner { display: none !important; }
}
