/* app.handtap.ai's own pages (sign-in and the account home), on top of shell.css's colours and type. */
body { min-height: 100vh; min-height: 100dvh; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px;
       border-bottom: 1px solid var(--line); }
.top .brand { padding: 0; font-size: 1.25rem; }
.top-actions { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px;
          border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit;
          font-size: .9375rem; font-weight: 550; text-decoration: none; cursor: pointer;
          transition: transform 160ms var(--ease-out), background-color 120ms ease; }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.brand { border-color: var(--brand); background: var(--brand); color: #fff; }
.button.small { min-height: 34px; padding: 5px 12px; font-size: .875rem; }
.button:disabled { opacity: .55; cursor: default; }
.button:not(:disabled):active { transform: scale(0.97); }

/* Sign-in pages: one card in the middle. */
.auth { display: grid; place-items: center; padding: 56px 16px; }
.card { width: min(400px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
        box-shadow: var(--lift); }
.card h1 { margin: 0 0 6px; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; }
.card .lead { margin: 0 0 22px; color: var(--muted); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .875rem; font-weight: 550; }
.field input { min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
               color: var(--ink); font: inherit; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card .button { width: 100%; margin-top: 6px; }
.small-link { color: var(--muted); font-size: .875rem; }
.small-link a, .switch-line a { color: var(--ink); font-weight: 550; }
.switch-line { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: .875rem; }
.note:empty { display: none; }
.note.bad { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.note.good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.terms { margin: 14px 0 0; color: var(--muted); font-size: .8125rem; text-align: center; }

/* The account home. */
.home { max-width: 1040px; margin: 0 auto; padding: 44px 24px 64px; }
.home h1 { margin: 0 0 4px; font-size: 1.875rem; font-weight: 650; letter-spacing: -0.025em; }
.home .lead { margin: 0 0 28px; color: var(--muted); }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 36px; }
@media (max-width: 720px) { .status { grid-template-columns: 1fr; } }
.panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--lift); }
.panel h2 { margin: 0 0 4px; font-size: .875rem; font-weight: 550; color: var(--muted); }
.panel .big { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.panel .muted { color: var(--muted); font-size: .875rem; }
.panel .row { margin-top: 10px; }
.plans-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plans-head h2 { margin: 0; font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; }
.toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.toggle button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit;
                 font-size: .875rem; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--panel); color: var(--ink); font-weight: 550; box-shadow: var(--lift); }
.save { margin-left: 6px; color: var(--brand); font-size: .75rem; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 14px;
        background: var(--panel); box-shadow: var(--lift); }
.plan.popular { border-color: var(--brand); }
.plan h3 { margin: 0; font-size: 1.0625rem; font-weight: 650; }
.plan .tag { align-self: start; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent);
             color: var(--brand); font-size: .75rem; font-weight: 600; }
.plan .price { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; }
.plan .price small { color: var(--muted); font-size: .875rem; font-weight: 450; }
.plan .muted { color: var(--muted); font-size: .875rem; }
.plan .button { margin-top: auto; }
.soon { margin-top: 32px; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.fine { margin-top: 14px; color: var(--muted); font-size: .8125rem; }
[hidden] { display: none !important; }
