/* nocas.app: black, one grey for all text, white for numbers and the main button. Amber only on the demo strip. */
:root {
  --bg: #000;
  --panel: #0c0e14;
  --line: rgba(255, 255, 255, 0.1);
  /* For now every piece of text is the one grey of the home page's heading; tune case by case later. */
  --grey: rgba(255, 255, 255, 0.55);
  --text: var(--grey);
  --quiet: var(--grey);
  --faint: var(--grey);
  --sky: #38bdf8;
  --amber: #fbbf24;
  --radius: 12px;
  --width: 1080px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.wait[data-loading] { visibility: hidden; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--grey); text-underline-offset: 3px; }
a:hover { color: var(--grey); }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.top, .bottom, main > section, .page { max-width: var(--width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { color: var(--grey); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand:hover { color: var(--grey); }
.top nav { display: flex; gap: 24px; }
.top nav a { color: var(--quiet); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--text); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 650; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; letter-spacing: 0; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--quiet); max-width: 640px; }
.eyebrow { color: var(--grey); font-size: 15px; margin-bottom: 12px; }

main > section { padding-top: 72px; padding-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.button.primary, button { background: #fff; color: #000; }
.button.primary:hover, button:hover { background: rgba(255, 255, 255, 0.85); color: #000; }
.button.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.button.ghost:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
button:disabled { background: rgba(255, 255, 255, 0.12); color: var(--faint); cursor: not-allowed; }

.shot { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #000; }
.shot img, .shot video { width: 100%; display: block; }
.page .shot { margin-top: 28px; margin-bottom: 32px; }
.caption { color: var(--faint); font-size: 14px; margin-top: 10px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }

.points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.points li { padding-left: 28px; position: relative; color: var(--quiet); }
.points li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.points strong { color: var(--text); }

table.prices { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.prices th, .prices td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.prices th { color: var(--faint); font-weight: 500; font-size: 14px; }
.prices td.price { font-weight: 650; font-variant-numeric: tabular-nums; }
.prices td.state { color: var(--quiet); }
.prices tr.now td { color: var(--text); }
.prices tr.now td.state { color: var(--sky); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.signup { display: grid; gap: 14px; max-width: 480px; margin-top: 24px; }
.field { display: grid; gap: 6px; font-size: 15px; color: var(--quiet); }
.field input { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 46px; padding: 0 14px; }
.field input:focus { border-color: #fff; }
.field input:disabled { opacity: 0.6; }
.signup button { justify-self: start; }
.fine { font-size: 14px; color: var(--faint); margin: 0; }

.band { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 24px; }

.page { padding-top: 48px; padding-bottom: 24px; max-width: 760px; }
.page h2 { font-size: 24px; margin-top: 40px; }
.page h3 { margin-top: 28px; }
.page p, .page li { color: var(--quiet); }
.page strong { color: var(--text); }
.page ul, .page ol { padding-left: 22px; margin: 0 0 16px; }
.page li { margin-bottom: 8px; }
.updated { color: var(--faint); font-size: 14px; }

.bottom { border-top: 1px solid var(--line); margin-top: 96px; padding-top: 28px; padding-bottom: 40px; color: var(--faint); font-size: 14px; }
.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.bottom nav a { color: var(--quiet); text-decoration: none; }
.bottom nav a:hover { color: var(--text); }
.bottom p { margin: 0 0 6px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top, .bottom, main > section, .page { padding-left: 16px; padding-right: 16px; }
  .top { padding-top: 14px; padding-bottom: 14px; }
  .top nav { gap: 16px; }
  main > section { padding-top: 56px; }
  .band { padding: 22px; }
  .prices th:nth-child(1), .prices td:nth-child(1) { display: none; }
  .prices th, .prices td { padding: 12px 8px; }
  .actions .button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* The waiting list (home page): all black, one thing in the middle at a time. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.bare { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #000; }
body.bare main { flex: 1; display: flex; position: relative; z-index: 1; }
body.bare .corner { position: relative; z-index: 1; }
canvas.field { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 0; }
html.fits { touch-action: pinch-zoom; overscroll-behavior: none; }
/* Holding a finger down shouldn't select text or open the phone's menu over the symbols on the join screen. */
@media (pointer: coarse) {
  body.bare.on-join { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  body.bare.on-join input, body.bare.on-join textarea { -webkit-user-select: text; user-select: text; }
}
.wait { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 72px; width: 100%; }
.wait .screen { width: 100%; max-width: 560px; text-align: center; }
.wait h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 28px; }
.wait .quiet { color: var(--quiet); }
.wait .fine { font-size: 13px; color: var(--faint); margin-top: 12px; }
.error, .page .error, .wait .error { color: #f87171; font-size: 14px; margin-top: 12px; }

.line { max-width: 420px; margin: 0 auto; display: grid; gap: 10px; }
.line input { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 10px; padding: 12px 14px; text-align: center; caret-color: var(--text); }
.line input:focus { border-color: #fff; }
.line button[type="submit"] { width: 100%; background: #fff; color: #000; border-radius: 10px; }
.line button[type="submit"]:hover { background: rgba(255, 255, 255, 0.85); color: #000; }
.line input::placeholder { color: var(--grey); }

button.text { background: none; border: 0; min-height: 0; padding: 4px 6px; border-radius: 6px; color: var(--faint); font-size: 14px; font-weight: 500; }
button.text:hover { background: none; color: var(--text); }

.wait .status { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.status .side { padding: 8px 40px; }
.status .label { font-size: 15px; color: var(--faint); margin-bottom: 8px; }
.status .big { font-size: clamp(40px, 10vw, 96px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.status .pay .quiet { font-size: 14px; margin-top: 10px; }
.status .about { grid-column: 1 / -1; padding: 28px 40px 0; font-size: 14px; color: var(--grey); text-align: center; }

.tiers { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 8px; }
.tiers li { display: grid; grid-template-columns: 72px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-variant-numeric: tabular-nums; opacity: 0.6; }
.tiers .t-price { font-weight: 600; font-size: 17px; }
.tiers .t-left { font-size: 13px; }
.tiers .t-mark { display: flex; align-self: center; }
.tiers li.open { opacity: 1; border-color: rgba(255, 255, 255, 0.6); }

button.buy { width: 100%; background: #fff; color: #000; border-radius: 10px; }
button.buy:hover { background: rgba(255, 255, 255, 0.85); color: #000; }
button.buy:disabled { background: rgba(255, 255, 255, 0.5); color: #000; }

.login-link { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; }
body:not(.bare) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:not(.bare) main { flex: 1; }
body:not(.bare) .corner { padding-top: 48px; }
.corner { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; padding: 0 16px 20px; font-size: 12px; }
.corner a { color: var(--grey); text-decoration: none; }
body.on-inbox .corner { display: none; }
.wait .num { color: #fff; }
.wait .one-line { overflow-wrap: anywhere; }
.corner a:hover { color: var(--quiet); }

.demo { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 6px 16px; border-bottom: 1px dashed rgba(251, 191, 36, 0.5); background: #000; font-size: 12px; color: var(--amber); }
.demo button { min-height: 28px; padding: 0 10px; font-size: 12px; font-weight: 500; border-radius: 6px; background: rgba(251, 191, 36, 0.12); color: var(--amber); }
.demo button:hover { background: rgba(251, 191, 36, 0.25); color: var(--amber); }

@media (max-width: 720px) {
  .wait .status { grid-template-columns: 1fr; }
  .status .side { padding: 8px 0; }
  .status .pay { padding-top: 28px; margin-top: 20px; }
  .status .about { padding: 24px 0 0; }
}

/* The activate page: an unlock code to copy, and room between its fields. */
[data-activate] form, [data-activate] .fine { margin-top: 28px; }
[data-activate] .field { margin-bottom: 16px; }
[data-code] { width: 100%; font: 13px ui-monospace, Consolas, monospace; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; word-break: break-all; resize: none; }

/* The coming-soon home page (comingSoon in site.config.json): two lines in the middle of the black. */
body.soon { min-height: 100vh; min-height: 100dvh; margin: 0; display: flex; align-items: center; justify-content: center; background: #000; text-align: center; padding: 24px; }
body.soon main { flex: none; }
body.soon h1 { margin: 0 0 8px; }
body.soon p { margin: 0; }
