/* The public pages (pricing, sign-up, passwords, terms, privacy, refunds) on top of site.css. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* header: the wordmark and the optional links give way on a phone */
.site-head .theme-switch { flex: none; }
.site-head nav a.btn { margin-left: 4px; }
@media (max-width: 720px) {
  .site-head .in { gap: 10px; padding: 9px 14px; }
  .site-head .brand .name { display: none; }
  .site-head nav { flex-wrap: nowrap; gap: 0; }
  .site-head nav a.opt { display: none; }
  .site-head nav a { padding: 6px 8px; white-space: nowrap; }
}
@media (max-width: 360px) { .site-head .theme-switch { display: none; } }

.site-foot .in > span { margin-right: auto; }

/* long-form pages */
.prose { max-width: 68ch; }
.prose h2 { font-size: 19px; margin: 34px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.2em; margin: 8px 0 14px; }
.prose li { margin: 4px 0; }
.updated { color: var(--faint); font-size: 13.5px; margin: 0 0 22px; }

/* sign-up, sign-in and password pages: one centred card, like the sign-in page */
body.authpage { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; position: relative; }
body.authpage::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.1px); background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}
body.authpage > .theme-switch { position: fixed; top: 16px; right: 16px; z-index: 2; }
body.authpage .card { position: relative; z-index: 1; width: min(410px, 100%); border-radius: 16px; padding: 30px 28px 24px; }
@media (max-width: 420px) { body.authpage .card { padding: 26px 20px 20px; } body.authpage { padding-top: 64px; } }
.card-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.card-brand .logo { width: 68px; height: 65px; background: var(--logo) center / contain no-repeat; }
.card-brand .name { width: 230px; max-width: 100%; height: 25px; background: var(--wordmark) center / contain no-repeat; }
body.authpage h1 { font-size: 22px; font-weight: 500; text-align: center; margin: 20px 0 4px; }
body.authpage .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
body.authpage .btn.block { margin-top: 6px; padding: 12px 16px; }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center;
  font-size: 13.5px; color: var(--faint); display: grid; gap: 6px; }
.card-foot a { color: var(--muted); }
.card-foot a:hover { color: var(--ink); }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
