/* RAUSCH campaign pages. Tokens taken 1:1 from the rausch.studio MUI theme:
   html 14px, "Neue Haas Unica Pro", sans-serif, everything uppercase,
   h1-h6 .875rem/700, body1 .75rem/400, body2/overline/caption .625rem, button .625rem/700 lh 24/14,
   radius 0, button padding 4px, outlined input border rgba(145,158,171,.32), placeholder #919EAB 500,
   error #FF4842, text.secondary #637381, logo 100px wide in a 34.5px box, header top 14px (xs) / 38px (md+). */

:root {
  --fg: #000; --bg: #fff; --muted: #637381; --disabled: #919EAB;
  --line: rgba(145, 158, 171, .32); --error: #FF4842; --blue: #0055ff;
  --btn-bg: #000; --btn-fg: #fff;
  --font: "Neue Haas Unica Pro", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; height: 100%; }
body {
  min-height: 100%; font-family: var(--font); font-size: .75rem; font-weight: 400; line-height: 1.5;
  text-transform: uppercase; color: var(--fg); background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; text-transform: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.r-h { font-size: .875rem; font-weight: 700; line-height: 1.5; }
.r-sub { font-size: .75rem; font-weight: 700; }
.r-small { font-size: .625rem; line-height: 1.5; }
.r-muted { color: var(--muted); }

.r-top { position: relative; z-index: 2; display: flex; justify-content: center; padding-top: 14px; }
.r-logo { display: block; width: 100px; height: 34.5px; color: inherit; }
.r-logo svg { width: 100%; height: 100%; display: block; }
@media (min-width: 960px) { .r-top { padding-top: 38px; } }

.r-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .625rem; font-weight: 700; line-height: 1.714; text-transform: uppercase;
  min-width: 30px; padding: 4px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); -webkit-tap-highlight-color: transparent;
}
.r-btn[disabled] { opacity: .48; cursor: default; }
.r-btn--outline { background: transparent; color: var(--fg); border: 1px solid var(--fg); }
.r-btn--text { background: transparent; color: inherit; }
.r-btn--text:hover { opacity: .6; }

.r-input {
  display: block; width: 100%; min-width: 0; height: 48px; padding: 0 14px;
  font-size: .75rem; font-weight: 400; line-height: 1.4375; text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 0; outline: 0;
  -webkit-appearance: none; appearance: none;
}
.r-input::placeholder { color: var(--disabled); opacity: 1; font-weight: 500; }
.r-input:hover { border-color: var(--fg); }
.r-input:focus { border-color: var(--fg); }
.r-input[aria-invalid="true"] { border-color: var(--error); }

/* Newsletter form: same grid as the site's existing newsletter component (input 8/12 + button 4/12 from md). */
.r-form { display: grid; grid-template-columns: 1fr; row-gap: 16px; }
.r-form .r-btn { height: 48px; width: 100%; }
@media (min-width: 960px) { .r-form { grid-template-columns: 8fr 4fr; } }
.r-hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.r-msg { min-height: 1.5em; margin-top: 12px; text-align: center; }
.r-msg.is-error { color: var(--error); }
.r-consent { margin-top: 8px; font-size: .625rem; color: var(--muted); text-align: center; }

.r-check { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; text-align: left; font-size: .625rem; cursor: pointer; }
.r-check input { width: 14px; height: 14px; margin-top: 1px; accent-color: var(--fg); border-radius: 0; }

/* Countdown: same structure as the site's existing launch countdown (label above, two-digit numbers, colons). */
.r-count { display: flex; justify-content: center; gap: 3px; margin: 20px 0 4px; }
.r-count__unit { display: flex; flex-direction: column; align-items: center; min-width: 2ch; }
.r-count__label { height: 16px; font-size: .625rem; white-space: nowrap; }
.r-count__num, .r-count__sep { font-size: .875rem; font-weight: 700; line-height: 1; }
.r-count__sep { padding-top: 16px; }

/* Light / dark (admin: Design). Only surface colours change, never type, sizes, grid or images. */
.theme-light { --fg: #000; --bg: #fff; --muted: #637381; --disabled: #919EAB; --line: rgba(145, 158, 171, .32); --btn-bg: #000; --btn-fg: #fff; }
.theme-dark  { --fg: #fff; --bg: #000; --muted: #919EAB; --disabled: #919EAB; --line: rgba(145, 158, 171, .56); --btn-bg: #fff; --btn-fg: #000; }
html.theme-dark, body.theme-dark { background: #000; color: #fff; }

/* ---------- Coming Soon page ---------- */
.lp { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--bg); color: var(--fg); }
.lp-main { flex: 1; display: flex; flex-direction: column; align-items: stretch; padding: 0 16px; position: relative; z-index: 1; }
/* Logo -> form: the headline block sits slightly below the middle of this stretch. */
.lp-upper { flex: 1.25 1 0; display: flex; flex-direction: column; align-items: center; min-height: 120px; }
.lp-sp--top { flex: 1.15 1 0; }
.lp-sp--bottom { flex: .85 1 0; min-height: 24px; }
.lp-lower { flex: 1 1 0; min-height: 40px; }
.lp-block { display: inline-flex; flex-direction: column; align-items: stretch; text-align: center; max-width: 100%; }
.lp-headline { white-space: nowrap; }
.lp-text { margin-top: 4px; white-space: normal; }
/* Countdown spans exactly the headline width: D of DAYS at its left edge, end of SECONDS at its right edge. */
.lp-block .r-count { justify-content: space-between; gap: 0; margin: 10px 0 0; }
.lp-block .r-count__label { text-align: left; }
.lp-formzone { width: 100%; max-width: 600px; margin: 0 auto; text-align: center; }
.lp-consent {
  margin: 14px auto 0; max-width: var(--block-w, 240px); font-size: .5625rem; line-height: 1.6;
  color: var(--muted); text-align: center;
}
.lp-consent a { color: inherit; text-underline-offset: 2px; }
.lp-consent a:hover, .lp-consent a:focus-visible { color: var(--fg); }
@media (min-width: 600px) { .lp-main { padding: 0 24px; } }

/* One quiet "Legal" link instead of a footer menu. */
.lp-legal { position: relative; z-index: 2; display: flex; justify-content: center; padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); }
.lp-legal details { position: relative; }
.lp-legal summary {
  list-style: none; cursor: pointer; font-size: .625rem; color: var(--muted); padding: 6px 8px;
  -webkit-tap-highlight-color: transparent;
}
.lp-legal summary::-webkit-details-marker { display: none; }
.lp-legal summary:hover, .lp-legal summary:focus-visible, .lp-legal details[open] summary { color: var(--fg); }
.lp-legal summary:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.lp-legal ul {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); list-style: none;
  display: grid; gap: 2px; padding: 8px 12px; margin-bottom: 2px; background: var(--bg); border: 1px solid var(--line);
  font-size: .625rem; text-align: center; white-space: nowrap;
}
.lp-legal li a { display: block; padding: 4px 6px; text-decoration: none; color: var(--fg); }
.lp-legal li a:hover, .lp-legal li a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }

/* Private Early Access: "Password" link under the signup and the code window (pop-up look). */
.lp-pass { margin-top: 16px; text-align: center; }
.lp-pass__link {
  background: none; border: 0; padding: 6px 8px; cursor: pointer; font-size: .625rem; font-weight: 700;
  color: var(--fg); -webkit-tap-highlight-color: transparent;
}
.lp-pass__link:hover { opacity: .6; }
.lp-pass__link:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.lp-modal {
  position: fixed; left: 0; right: 0; top: 0; height: 100%; z-index: 20; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(0, 0, 0, .56);
}
.lp-modal[hidden] { display: none; }
.lp-modal__box { width: 100%; max-width: 560px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); padding: 20px 16px 8px; text-align: left; }
.lp-modal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.lp-modal__close { padding: 0; }
.lp-modal .r-msg { margin-top: 8px; text-align: left; }
@media (min-width: 600px) { .lp-modal__box { padding: 24px 24px 12px; } }

/* Arcade footer (kept as a small link row). */
.lp-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 16px 16px 20px; font-size: .625rem; }
.lp-foot a { text-decoration: none; }
.lp-foot a:hover { opacity: .6; }

/* Variant B: campaign image/video full-bleed, newsletter towards the bottom. */
.lp-media { position: fixed; inset: 0; z-index: 0; }
.lp-media img, .lp-media video { width: 100%; height: 100%; object-fit: cover; }
.lp--b { --line: rgba(255, 255, 255, .56); }
.lp--b.theme-light { --line: rgba(0, 0, 0, .4); --muted: rgba(0, 0, 0, .72); }
.lp--b.theme-dark { --muted: rgba(255, 255, 255, .8); }
.lp--b .lp-upper { flex-grow: 3; }
.lp--b .lp-lower { flex: 0 0 24px; min-height: 24px; }
.lp--b .lp-legal ul { background: var(--bg); }
@media (min-width: 960px) { .lp--b .lp-lower { flex-basis: 40px; } }
