/* 2mrw — brand tokens straight from the logo artwork */
:root {
  --ink:      #071426;  /* logo background navy */
  --ink-soft: #0E2137;
  --cyan:     #12C9FF;
  --red:      #FE3900;
  --amber:    #FBC34E;
  --text:     #E8EFF6;
  --text-dim: #8AA1B8;
  --maxw:     32rem;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
}

.logo {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  margin: 0 auto 2rem;
}

.wordmark {
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Wordmark colours echo the logo: white dots, red loop, cyan loop.
   Contrast on --ink: white 18.5:1, red 5.1:1, cyan 9.5:1 — all pass WCAG AA. */
.wm-2   { color: #FFFFFF; }
.wm-mrw { color: var(--red); }
.wm-lab { color: var(--cyan); }

.tagline {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 1.0625rem;
}

.rule {
  width: 84px;
  height: 4px;
  margin: 2.25rem auto;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--amber) 50%, var(--cyan) 100%);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(251, 195, 78, 0.35);
  border-radius: 999px;
  background: rgba(251, 195, 78, 0.08);
  color: var(--amber);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.blurb {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
}

.blurb a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 201, 255, 0.35);
}

.blurb a:hover,
.blurb a:focus-visible { border-bottom-color: var(--cyan); }

.contact {
  margin: 2rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

.contact a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 201, 255, 0.35);
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--cyan);
}

/* Email fallback with scripting off: stored reversed in the markup so the
   address never appears in source order, flipped back visually here. */
.rmail {
  unicode-bidi: bidi-override;
  direction: rtl;
  color: var(--cyan);
  white-space: nowrap;
}

footer {
  flex-shrink: 0;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise 0.5s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ---- Document pages (privacy, terms, …) ---- */
.doc {
  flex: 1 0 auto;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.doc-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.doc-head img { width: 44px; height: auto; }

.doc-head a {
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: -0.02em;
}

.doc .updated {
  margin: 0 0 2.5rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.doc p, .doc li { color: #C6D4E2; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }

.doc a { color: var(--cyan); }

.notice {
  margin: 0 0 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(251, 195, 78, 0.35);
  border-left-width: 3px;
  border-radius: 8px;
  background: rgba(251, 195, 78, 0.07);
}

.notice strong { color: var(--amber); }
.notice p { margin: 0.5rem 0 0; font-size: 0.9375rem; }
