/* Phoenix sign-up site: plain, white, one column. */

:root {
  --bg: #fff;
  --text: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f1f3f4;
  --foot: #f2f2f2;
  --blue: #1a73e8;
  --blue-dark: #1765cc;
  --on-blue: #fff;
  --error: #d93025;
  --flame: #f4511e;
  --core: #fbbc04;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202124;
    --text: #e8eaed;
    --muted: #9aa0a6;
    --line: #5f6368;
    --soft: #303134;
    --foot: #171717;
    --blue: #8ab4f8;
    --blue-dark: #aecbfa;
    --on-blue: #202124;
    --error: #f28b82;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 Arial, "Helvetica Neue", Helvetica, sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

[hidden] { display: none !important; }

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  font-size: 13px;
}

.home { color: var(--text); font-size: 15px; }
.home:hover { text-decoration: none; }
body:has(.home-main) .home { visibility: hidden; } /* the big logo is on the page */

.langs { display: flex; gap: 16px; }
.langs a { color: var(--muted); }
.langs a[aria-current] { color: var(--text); font-weight: bold; }

/* ---------- sign-up page ---------- */

main { flex: 1; width: 100%; margin: 0 auto; padding: 0 16px; }

.home-main { max-width: 460px; padding-top: 6vh; padding-bottom: 64px; }

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 56px;
  font-weight: normal;
  letter-spacing: -1.5px;
  line-height: 1;
}
.logo svg { width: 52px; height: 52px; }
.logo .flame { fill: var(--flame); }
.logo .core { fill: var(--core); }

.tagline { margin: 0; text-align: center; font-size: 16px; color: var(--muted); }
.status { margin: 16px 0 36px; text-align: center; font-size: 13px; color: var(--muted); }

.quota { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.quota.full { color: var(--error); }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

input[type="text"], input[type="email"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
input[type="text"]:hover, input[type="email"]:hover { border-color: var(--muted); }
input[type="text"]:focus, input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input[aria-invalid="true"] { border-color: var(--error); }

.checks { margin: 24px 0 8px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.checks input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }

.note { font-size: 12px; color: var(--muted); }

.primary {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: var(--on-blue);
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}
.primary:hover { background: var(--blue-dark); text-decoration: none; }
.primary:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.msg { min-height: 1.6em; margin: 12px 0 0; color: var(--error); font-size: 13px; }

button.text {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- after sign-up ---------- */

.done h2 { margin: 0 0 24px; font-size: 22px; font-weight: normal; }
.done h3 { margin: 32px 0 8px; font-size: 16px; font-weight: normal; }
.label { margin: 0 0 4px; font-size: 13px; color: var(--muted); }

.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.invite code { font: 20px/1.3 Consolas, "Courier New", monospace; letter-spacing: 1px; overflow-wrap: anywhere; }

.download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 4px; }
.download small { color: var(--muted); font-size: 12px; }
.sum { margin: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }

.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 12px; }

pre {
  position: relative;
  margin: 6px 0 0;
  padding: 10px 72px 10px 12px;
  border-radius: 8px;
  background: var(--soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code { font: 13px/1.5 Consolas, "Courier New", monospace; }
pre button.text { position: absolute; top: 4px; right: 4px; }

/* ---------- legal pages ---------- */

.doc { max-width: 720px; padding-top: 24px; padding-bottom: 64px; }
.doc h1 { margin: 0 0 4px; font-size: 28px; font-weight: normal; }
.doc h2 { margin: 28px 0 8px; font-size: 18px; font-weight: normal; }
.doc .meta { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.doc .note { padding: 10px 12px; border-radius: 8px; background: var(--soft); }
.doc .box { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--foot);
  color: var(--muted);
  font-size: 13px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); }

@media (max-width: 480px) {
  .top { padding: 12px 16px; }
  .home-main { padding-top: 3vh; }
  .logo { font-size: 44px; }
  .logo svg { width: 40px; height: 40px; }
  .foot { padding: 14px 16px; }
}
