/* Hosted-site additions on top of the dashboard's Graphite Ice styles (/static/styles.css). */
.site { max-width: 1080px; margin: 0 auto; padding: 28px; display: grid; gap: 22px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.hero h1 { font: 600 40px/1.1 "Cinzel", Georgia, serif; letter-spacing: .04em; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 16px; margin: 0 0 12px; max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.facts .stat { border-radius: 10px; padding: 14px; }
.facts b { display: block; font-size: 20px; color: var(--accent); font-family: var(--mono); }
.facts span { color: var(--muted); font-size: 12.5px; }
.signin { display: grid; gap: 12px; }
.signin[hidden], .signin [hidden] { display: none !important; }
.signin .primary, .signin button.ghost { width: 100%; justify-content: center; }
.signin .or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.signin .or::before, .signin .or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
input[type=email], input[type=password], #signin input[type=text], .signin input[type=text], input.code { width: 100%; height: 40px; padding: 0 14px; border: 0; background: none;
  border-image: url(/static/assets/field-well.svg) 10 fill / 10px stretch; border-style: solid; border-radius: 10px; }
input[type=email]:focus, input[type=password]:focus, .signin input[type=text]:focus, input.code:focus { border-image-source: url(/static/assets/field-well-focus.svg); outline: none; }
/* Sign-in panel: Create account / Sign in tabs, labelled fields, quiet text buttons. */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 4px;
  border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.auth-tabs button { height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted);
  font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; }
.auth-tabs button[aria-selected=true] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.auth-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.signin form.signin { gap: 8px; }
.signin .fl { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.signin .fl-row { display: flex; justify-content: space-between; align-items: baseline; }
.signin .primary[type=submit] { margin-top: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.linkish.small { justify-self: center; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 60px; }
.pw-show { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.check-h { margin: 0; font-size: 18px; }
.site.narrow { max-width: 440px; }
input.code { font-family: var(--mono); letter-spacing: .3em; text-align: center; font-size: 18px; }
.topbar { max-width: 1560px; margin: 0 auto; padding: 22px 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.credits-pill { font-family: var(--mono); color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; }
/* Account: the same pill frame as the credits balance, in neutral colours. */
.account-pill { color: var(--text); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; }
.account-pill:hover, .credits-pill:hover { border-color: var(--accent); }
.account-pill:focus-visible, .credits-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.welcome { border-radius: 14px; padding: 22px; }
.legal { color: var(--faint); font-size: 12px; text-align: center; padding: 10px 0 28px; }
.legal a { color: var(--muted); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .facts { grid-template-columns: 1fr; }
  .site, .topbar { padding-left: 16px; padding-right: 16px; }
}
/* Apple's guidelines: a plain black or white button with their wording. Swap in Apple's
   official button artwork before launch (hosting plan, section 2). */
button.ghost.apple { background: #fff; color: #000; }
.gsi { display: flex; justify-content: center; min-height: 44px; color-scheme: normal; }
button.ghost.apple::before { border-image: none; }

/* The hosted dashboard (/app): signed-in bar, notices and the upload area. */
.brandbar.hosted { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brandbar .who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; min-width: 0; }
.brandbar .who #who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.hosted-notice { max-width: 1560px; margin: 14px auto 0; padding: 12px 16px; display: flex; gap: 14px; align-items: center;
  justify-content: space-between; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 12px; color: var(--text); font-size: 14px; }
.hosted-notice.ok { border-color: var(--accent-line); background: var(--accent-soft); }
.uploads { display: grid; gap: 8px; margin-bottom: 12px; }
.upload-zone { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px dashed var(--accent-line);
  border-radius: 12px; color: var(--muted); font-size: 13px; cursor: pointer; line-height: 1.4; }
.upload-zone b { color: var(--text); font-size: 14px; }
.upload-zone:hover, .upload-zone.over, .upload-zone:focus-visible { background: var(--accent-soft); outline: none; }
.upload-manage summary { cursor: pointer; color: var(--faint); font-size: 12px; }
.upload-list { display: grid; gap: 4px; margin-top: 8px; max-height: 220px; overflow: auto; }
.upload-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; }
.upload-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row .tag { color: var(--faint); font-family: var(--mono); font-size: 11px; }

/* Buy credits (/credits.html). */
.topbar .brand { text-decoration: none; color: inherit; }
.ghost-link { color: var(--muted); font-size: 13px; }
.packs { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 6px; }
.pack-card { display: grid; gap: 2px; min-width: 180px; height: auto; padding: 14px 20px; text-align: left; }
.pack-card b { font-size: 17px; }
.ledger { display: grid; gap: 2px; }
.ledger-row { display: grid; grid-template-columns: 11rem 1fr auto; gap: 12px; font-size: 13px; padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ledger-row .when { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.ledger-row .amt { font-family: var(--mono); }
.ledger-row .amt.pos { color: var(--accent); }
.ledger-row .amt.neg { color: var(--muted); }
@media (max-width: 760px) { .ledger-row { grid-template-columns: 1fr auto; } .ledger-row .when { grid-column: 1 / -1; } }

/* legal pages and the account page */
.legal-text { max-width: 760px; line-height: 1.6; }
.legal-text h1 { margin: 0 0 4px; font-size: 26px; }
.legal-text h2 { margin: 22px 0 6px; font-size: 17px; }
.legal-text ul { padding-left: 20px; }
.legal-text li { margin: 4px 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
