/* Shared by every page on redlinehq.app. */
@font-face { font-family: Rajdhani; src: url(/fonts/Rajdhani-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(/fonts/Rajdhani-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #0a0a0c; --surface: #141417; --surface-2: #1c1c21; --border: #26262b;
  --text: #f5f5f7; --muted: #a1a1aa; --faint: #6f6f78; --accent: #e5202e; --accent-2: #ff3b47;
  --ok: #34c759; --warn: #f5a524;
  --display: Rajdhani, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { font: 700 1.5rem/1 var(--display); font-style: italic; letter-spacing: .12em; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.langs { display: flex; gap: 6px; }
.langs button {
  background: var(--surface); color: var(--muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: .85rem; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }

/* Type */
.display { font: 700 clamp(2.4rem, 7vw, 4.2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.display em, h1 em { font-style: normal; color: var(--accent); }
h1.page { font: 700 clamp(2.1rem, 6vw, 3rem)/1.05 var(--display); text-transform: uppercase; margin: 24px 0 8px; }
.eyebrow { margin: 0; color: var(--accent); font: 700 .95rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn:not(.primary):hover { border-color: #3a3a42; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 7px 12px; font-size: .9rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Store buttons: plain text until the apps are live and the official
   badges can be used. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start; min-width: 180px; padding: 9px 16px;
  border-radius: 12px; border: 1px solid var(--border); background: #000; text-decoration: none; line-height: 1.2;
}
.store small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.store b { font-size: 1.1rem; }
.store[aria-disabled="true"] { cursor: default; }
.soon { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(229,32,46,.16); color: var(--accent-2); font-size: .7rem; font-weight: 700; vertical-align: middle; }

/* Cards and forms */
.card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer;
}
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: rgba(229,32,46,.12); }
.error { color: var(--accent-2); font-size: .92rem; min-height: 1.2em; }

dialog {
  width: min(440px, calc(100vw - 32px)); padding: 22px; border-radius: 18px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
dialog::backdrop { background: rgba(0,0,0,.65); }

footer.bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 64px; padding-block: 24px 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem;
}
footer.bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.bottom a { text-decoration: none; }
footer.bottom a:hover { color: var(--text); }

@media (max-width: 720px) {
  .store { flex: 1 1 160px; }
}
