/* flmm public landing — shared styles for the pause notice + legal pages.
   Brand system: near-black stage, Thmanyah Sans (no letter-spacing ever),
   flmm red used as light (bleed/glow), glass surfaces, no white borders.

   The marketing hero and the downloads grid were removed when the app was
   pulled from sale (see index.html); what remains is the notice register plus
   the .doc styles the legal pages carry inline. */

@font-face {
  font-family: 'Thmanyah Sans';
  font-weight: 400;
  font-display: swap;
  src: url('/font/thmanyah%20typeface/thmanyahsans/woff2/thmanyahsans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Thmanyah Sans';
  font-weight: 500;
  font-display: swap;
  src: url('/font/thmanyah%20typeface/thmanyahsans/woff2/thmanyahsans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Thmanyah Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/font/thmanyah%20typeface/thmanyahsans/woff2/thmanyahsans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'Thmanyah Sans';
  font-weight: 900;
  font-display: swap;
  src: url('/font/thmanyah%20typeface/thmanyahsans/woff2/thmanyahsans-Black.woff2') format('woff2');
}

:root {
  --bg: #0b0b0e;
  --ink: #ffffff;
  --dim: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --red: #e50914;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-hover: rgba(255, 255, 255, 0.09);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Thmanyah Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* English numerals even inside Arabic text. */
body { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

a { color: inherit; text-decoration: none; }

.page {
  width: min(1060px, 100% - 48px);
  margin-inline: auto;
  flex: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Red bleed: the brand accent as stage light, not as a border ── */
.bleed {
  position: fixed;
  inset-inline-start: 50%;
  top: -340px;
  width: 900px;
  height: 620px;
  transform: translateX(50%);
  background: radial-gradient(closest-side, rgba(229, 9, 20, 0.34), rgba(229, 9, 20, 0.08) 55%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}
[dir='rtl'] .bleed { transform: translateX(50%); }

/* Standby: while flmm is paused the stage light is turned down rather than
   off, and breathes on a slow cycle. It is the one expressive element on the
   page — everything below it stays flat and quiet. */
body.paused .bleed {
  background: radial-gradient(closest-side, rgba(229, 9, 20, 0.17), rgba(229, 9, 20, 0.045) 55%, transparent 75%);
}

header.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px 0;
}
.wordmark {
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
}
.wordmark .dot { color: var(--red); }
.top nav { display: flex; gap: 28px; font-size: 15px; color: var(--dim); }
.top nav a:hover { color: var(--ink); }

/* ── Unavailable notice ──
   One statement and one field. The page says the whole of what it has to say
   in its heading, so everything here is sized for a single held moment: the
   notice column is centred between header and footer rather than stacked
   under the masthead. */
body.paused .page { display: flex; flex-direction: column; }

.notice {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 34rem;
  margin-inline: auto;
  padding-block: clamp(48px, 9vh, 88px);
}

.notice h1 {
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.18;
}

.notice form { margin-top: 36px; }

.notice-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.notice-field input {
  flex: 1 1 15rem;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.notice-field input::placeholder { color: var(--faint); }
.notice-field button {
  background: var(--red);
  border: 0;
  border-radius: 12px;
  padding: 13px 26px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.notice-field button:hover { background: #f6121d; }
.notice-field button[disabled] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--faint);
  cursor: default;
}

/* Honeypot: never shown, never announced, never tab-reachable. */
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.notice-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--dim);
  min-height: 1.4em;
}
.notice-note a { text-decoration: underline; }
.notice-note.is-error { color: #ff8b8b; }

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
  padding-block: 28px;
}
footer a:hover { color: var(--dim); }
footer small { display: block; margin-top: 8px; font-size: 11.5px; opacity: 0.8; }

/* ── Motion: the standby breath, plus one quiet load reveal ── */
@media (prefers-reduced-motion: no-preference) {
  body.paused .bleed { animation: standby 12s ease-in-out infinite; }
  @keyframes standby {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  .notice h1, .notice form {
    opacity: 0;
    translate: 0 12px;
    animation: rise 0.6s ease forwards;
  }
  .notice form { animation-delay: 0.1s; }
  @keyframes rise { to { opacity: 1; translate: 0 0; } }
}

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 560px) {
  .page { width: calc(100% - 36px); }
  .top nav { gap: 18px; }
  .notice-field button { flex: 1 1 auto; }
}
