/* The account page (account.html, account.js), in the site's own parts: its colours, pill
   buttons, the pricing page's period switch, and rows divided by hairlines. */

.acct [hidden] { display: none !important; }

.acct-wait { color: var(--ink-4); font-size: 15px; }

/* Signing in: an email, then a code */
.acct-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.acct-form input {
  height: 50px; width: min(100%, 330px); padding: 0 24px; border-radius: 999px;
  background: rgba(22, 19, 16, .62); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink); font: inherit; font-size: 16px; letter-spacing: -.005em;
  transition: box-shadow .3s var(--ease);
}
.acct-form input::placeholder { color: var(--ink-4); }
.acct-form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink-3), 0 0 0 5px rgba(243, 178, 94, .1); }
.acct-form #code { width: 210px; text-align: center; letter-spacing: .32em; font-size: 20px; font-variant-numeric: tabular-nums; }
.acct-sent { flex-basis: 100%; margin-bottom: 6px; color: var(--ink-3); font-size: 15px; }
.acct-sent b { color: var(--ink); font-weight: 500; }
.acct-alt { flex-basis: 100%; margin-top: 8px; color: var(--ink-4); font-size: 14px; }
.acct-error { min-height: 1.5em; margin-top: 18px; color: var(--warn); font-size: 14px; line-height: 1.5; }
.acct-note { margin-top: 22px; color: var(--ink-4); font-size: 13px; line-height: 1.6; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link { color: var(--ink-3); font-size: 14px; text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 4px; transition: color .3s; }
.link:hover { color: var(--ink); }

/* Signed in */
.acct-wrap { max-width: 720px; margin: 64px auto 0; padding: 0 var(--gutter); }
.acct .page-head:not(.holding) { padding-bottom: 0; }
.acct-banner {
  margin-bottom: 28px; padding: 15px 20px; border-radius: 18px; font-size: 15px; line-height: 1.55;
  background: rgba(243, 178, 94, .07); box-shadow: inset 0 0 0 1px rgba(243, 178, 94, .24); color: var(--ink);
}
.acct-section { padding: 30px 0 32px; border-top: 1px solid var(--line); }
.acct-section:last-child { border-bottom: 1px solid var(--line); }
.acct-section h2 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.acct-line { margin-top: 12px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; letter-spacing: -.012em; color: var(--ink); }
.acct-sub { margin-top: 8px; max-width: 34em; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.acct-actions .acct-sub { margin-top: 0; flex: 1 1 18em; }
.acct-section .acct-error { margin-top: 14px; }
.acct-section .acct-error:empty { min-height: 0; margin-top: 0; }

/* Choosing a plan: the pricing page's switch and plans, compact */
.acct-buy { margin-top: 26px; }
.acct-buy .period { margin-top: 0; }
.acct-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
.acct-plan { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 28px 4px 0; }
.acct-plan + .acct-plan { padding: 4px 0 4px 28px; border-left: 1px solid var(--line); }
.acct-plan .name { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.acct-plan .tag { display: inline-flex; align-items: center; height: 21px; margin-left: 6px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; color: var(--amber); background: rgba(243, 178, 94, .1); }
.acct-plan .amt { margin-top: 12px; font-size: 40px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.acct-plan .amt small { margin-left: 4px; font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.acct-plan .pitch { flex: 1; margin: 14px 0 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.acct-plan .btn { height: 44px; padding: 0 22px; font-size: 14px; }
.acct-plan.plus { position: relative; isolation: isolate; }
.acct-plan.plus::before { content: ""; position: absolute; inset: -30px -20px -24px 0; z-index: -1; background: radial-gradient(closest-side, rgba(243, 178, 94, .08), transparent); pointer-events: none; }
.acct-fine { margin-top: 24px; font-size: 13px; color: var(--ink-4); }

/* The AI allowance */
.meter { height: 6px; margin-top: 16px; border-radius: 99px; background: var(--ink-5); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--copper), var(--amber)); transition: width 1s var(--ease); }

/* Devices */
.acct-devices { list-style: none; margin-top: 10px; }
.acct-devices li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.acct-devices li:first-child { border-top: 0; }
.acct-devices .what { font-size: 16px; color: var(--ink); }
.acct-devices .when { margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.acct-devices .this { color: var(--amber); }
.acct-devices .btn { height: 36px; padding: 0 16px; font-size: 13px; flex: none; }

/* Deleting */
.acct-delete { margin-top: 24px; padding: 22px 24px; border-radius: 20px; box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .28); background: rgba(255, 69, 58, .04); }
.acct-delete .acct-line { margin-top: 0; }
.btn.danger { background: #ff453a; color: #15120f; }
.btn.danger:hover { background: #ff6259; box-shadow: 0 10px 36px -12px rgba(255, 69, 58, .55); }

@media (max-width: 640px) {
  .acct-form { flex-direction: column; }
  .acct-form input, .acct-form .btn { width: 100%; }
  .acct-form #code { width: 100%; }
  .acct-plans { grid-template-columns: 1fr; }
  .acct-plan, .acct-plan + .acct-plan { padding: 22px 0; border-left: 0; }
  .acct-plan + .acct-plan { border-top: 1px solid var(--line); }
  .acct-plan.plus::before { inset: 0 -20px; }
  .acct-devices li { align-items: flex-start; }
}
