/* fahemni coming-soon page.
   Ported from design-source/Main.dc.html (Mint palette). Mobile first:
   base rules are the 390px design, the 768px query carries the 1440px design. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(assets/fonts/nunito-latin-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(assets/fonts/quicksand-latin-var.woff2) format('woff2');
}

:root {
  --fm-bg: #E2F5EB;
  --fm-grid: #C8EAD8;
  --fm-tint: #FFFFFF;
  --fm-surface: #FFFFFF;
  --fm-ink: #2B2A33;
  --fm-ink-2: #41404B;
  --fm-muted: #6B665E;
  --fm-saffron: #F0A500;
  --fm-slate: #2D3748;
  --fm-error: #A3361F;
  --fm-coral: #FF7A59;
  --fm-green: #2FB37A;
  --fm-lilac: #8B7BF0;
  --fm-pale-green: #CDEFDD;
  --fm-track: #ECE7DE;
  --fm-halo: 0 0 0 2px var(--fm-bg), 0 0 0 5px var(--fm-saffron), 0 0 0 6.5px var(--fm-ink);
}

html { -webkit-text-size-adjust: 100%; }
html.fm-locked { overflow: hidden; }
body { margin: 0; background: var(--fm-bg); }

.fm-root { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; box-sizing: border-box; color: var(--fm-ink); font-family: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; background-color: var(--fm-bg); background-image: linear-gradient(var(--fm-grid) 1px, transparent 1px), linear-gradient(90deg, var(--fm-grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
.fm-root *, .fm-root *::before, .fm-root *::after { box-sizing: border-box; }
.fm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Margin doodles. One set per breakpoint, swapped at 768px. */
.fm-decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fm-decor-d, .fm-decor-t { display: none; }
.dk { fill: none; stroke: var(--fm-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dk2 { fill: none; stroke: var(--fm-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dw4 { stroke-width: 4; }
.dd { stroke-dasharray: 2 9; }
.dc-cor { stroke: var(--fm-coral); }
.dc-grn { stroke: var(--fm-green); }
.dc-lil { stroke: var(--fm-lilac); }
.dc-saf { stroke: var(--fm-saffron); }
.ff-saf { fill: var(--fm-saffron); }
.ff-cor { fill: var(--fm-coral); }
.ff-grn { fill: var(--fm-green); }
.ff-lil { fill: var(--fm-lilac); }
.ff-wht { fill: #FFFFFF; }
.ff-pgrn { fill: var(--fm-pale-green); }
.dt { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 34px; }
.tf-grn { fill: var(--fm-green); }
.tf-cor { fill: var(--fm-coral); }
.fm-float { animation: fm-float 5s ease-in-out infinite alternate; }
.fm-float2 { animation: fm-float 6s ease-in-out -3s infinite alternate; }
@keyframes fm-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Page column */
.fm-main { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px 76px; }
.fm-col { width: 100%; max-width: 342px; display: flex; flex-direction: column; align-items: center; }

.fm-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border: 2px solid var(--fm-ink); border-radius: 12px; background: var(--fm-saffron); color: var(--fm-ink); font-size: 14px; font-weight: 800; letter-spacing: 0.02em; transform: rotate(-2deg); box-shadow: 3px 3px 0 var(--fm-ink); }
.fm-bdot { width: 8px; height: 8px; border-radius: 50%; background: var(--fm-ink); }

.fm-word { margin: 0; line-height: 1; color: var(--fm-ink); }
.fm-wm { position: relative; display: inline-block; vertical-align: top; width: 250px; }
.fm-word-s .fm-wm { width: 190px; }
.fm-wmimg { display: block; width: 100%; height: auto; aspect-ratio: 2358 / 482; }
.fm-dot2 { position: absolute; left: 98.73%; top: 6.64%; width: 2.6%; aspect-ratio: 1 / 1; margin-left: -1.3%; margin-top: -1.3%; border-radius: 50%; background: var(--fm-saffron); }
.fm-lift { animation: fm-lift 900ms cubic-bezier(.3,.7,.3,1) 1; }
@keyframes fm-lift {
  0% { transform: translateY(0); }
  40% { transform: translateY(-160%); }
  70% { transform: translateY(15%); }
  100% { transform: translateY(0); }
}

.fm-pron { margin: 10px 0 0; line-height: 1; }
.fm-pronimg { display: inline-block; vertical-align: top; height: 18px; width: auto; aspect-ratio: 3390 / 445; }

.fm-tag { margin: 16px 0 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--fm-ink); text-wrap: balance; }

/* Explainer card */
.fm-watch { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 20px; padding: 10px 18px 10px 10px; border: 2px solid var(--fm-ink); border-radius: 16px; background: var(--fm-surface); color: var(--fm-ink); font: inherit; text-align: left; cursor: pointer; box-shadow: 4px 4px 0 var(--fm-ink); transition: transform 150ms, box-shadow 150ms; }
.fm-watch:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--fm-ink); }
.fm-watch:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fm-ink); }
.fm-thumb { position: relative; flex: 0 0 auto; width: 96px; height: 64px; border-radius: 10px; background: var(--fm-tint); border: 1.5px solid var(--fm-ink); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fm-thumb svg { position: absolute; inset: 0; }
.fm-tplay { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--fm-ink); display: inline-flex; align-items: center; justify-content: center; }
.fm-tplay svg { position: static; }
.fm-wt { display: block; font-size: 16px; line-height: 22px; font-weight: 800; }
.fm-ws { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--fm-muted); font-weight: 600; }

/* Waitlist */
.fm-form { width: 100%; margin: 20px 0 0; }
.fm-row { display: flex; flex-direction: column; gap: 12px; }
.fm-input { flex: 1 1 auto; min-width: 0; width: 100%; height: 52px; padding: 0 16px; border: 2px solid var(--fm-ink); border-radius: 12px; background: var(--fm-surface); color: var(--fm-ink); font: inherit; font-size: 16px; outline: none; transition: box-shadow 150ms; }
.fm-input::placeholder { color: var(--fm-muted); }
.fm-input:focus { box-shadow: var(--fm-halo); }
.fm-input[aria-invalid="true"] { border-color: var(--fm-error); }
.fm-btn { flex: 0 0 auto; height: 52px; padding: 0 24px; border: 2px solid var(--fm-ink); border-radius: 12px; background: var(--fm-ink); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; box-shadow: 4px 4px 0 var(--fm-saffron); transition: transform 150ms, box-shadow 150ms, background-color 150ms; }
.fm-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--fm-saffron); }
.fm-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fm-saffron); }
.fm-btn:disabled { cursor: progress; background: var(--fm-ink-2); transform: none; }
.fm-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; border-radius: 50%; animation: fm-rot 800ms linear infinite; }
@keyframes fm-rot {
  to { transform: rotate(360deg); }
}
.fm-root button:focus-visible, .fm-root a:focus-visible { outline: none; box-shadow: var(--fm-halo); }

.fm-err { margin: 10px 0 0; display: flex; align-items: flex-start; justify-content: center; gap: 8px; color: var(--fm-error); font-size: 14px; line-height: 20px; font-weight: 700; text-align: left; }
.fm-err svg { flex: 0 0 auto; margin-top: 1px; }
.fm-help { margin: 12px 0 0; color: var(--fm-muted); font-size: 13px; line-height: 19px; font-weight: 600; }
.fm-help a { white-space: nowrap; }
.fm-help a, .fm-doc a { color: var(--fm-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; border-radius: 4px; }
.fm-help a:hover, .fm-doc a:hover { text-decoration-color: var(--fm-saffron); }
.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fm-success { width: 100%; margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; border: 2px solid var(--fm-ink); border-radius: 16px; background: var(--fm-surface); box-shadow: 4px 4px 0 var(--fm-ink); outline: none; }
.fm-done { margin: 0; font-size: 20px; line-height: 28px; font-weight: 800; color: var(--fm-ink); }

.fm-foot { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--fm-slate); }

/* Explainer overlay */
.fm-ovl { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; }
.fm-scrim { position: absolute; inset: 0; background: rgba(43,42,51,.5); }
.fm-dialog { position: absolute; inset: 12px 14px 14px 12px; display: flex; flex-direction: column; gap: 16px; padding: 16px; background: var(--fm-surface); border: 2px solid var(--fm-ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--fm-ink); outline: none; }
.fm-top { display: flex; align-items: center; gap: 16px; }
.fm-segs { flex: 1 1 auto; display: flex; gap: 6px; }
.fm-seg { flex: 1 1 0; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; display: flex; align-items: center; }
.fm-track { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--fm-track); overflow: hidden; }
.fm-fill { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--fm-ink); transition: width 100ms linear; }
.fm-ib { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--fm-ink); background: var(--fm-surface); color: var(--fm-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fm-ib:hover { background: var(--fm-tint); }
.fm-ib:disabled { opacity: .35; cursor: default; background: var(--fm-surface); }
.fm-play { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--fm-ink); background: var(--fm-ink); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 3px 3px 0 var(--fm-saffron); }
.fm-stage { flex: 1 1 auto; min-height: 0; padding: 12px; background: var(--fm-tint); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fm-ill { display: block; width: 100%; height: auto; }
.fm-capbox { display: flex; flex-direction: column; gap: 6px; }
.fm-stitle { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--fm-muted); }
.fm-cap { margin: 0; font-size: 18px; line-height: 26px; min-height: 104px; font-weight: 600; color: var(--fm-ink); }
.fm-ctrls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; }
.fm-count { position: absolute; right: 16px; bottom: 32px; font-size: 14px; font-weight: 700; color: var(--fm-muted); font-variant-numeric: tabular-nums; }
.fm-s5 { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.fm-s5 .fm-badge { margin: 0; }

/* Scene drawings */
.fm-ln { fill: none; stroke: var(--fm-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fm-ln2 { fill: none; stroke: var(--fm-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fm-mu { fill: none; stroke: #C9C2B6; stroke-width: 2; stroke-linecap: round; }
.fm-gh { fill: none; stroke: #B9B2A6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 6; }
.fm-sf { fill: none; stroke: var(--fm-saffron); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.fm-sff { fill: var(--fm-saffron); stroke: none; }
.fm-pw { fill: #FFFFFF; }
.fm-t { fill: var(--fm-ink); font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 600; }
.fm-t2 { fill: var(--fm-ink); font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 600; }
.fm-tm { fill: var(--fm-muted); }
.fm-ts { fill: var(--fm-muted); font-family: 'Nunito', sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; }
.fm-tb { fill: var(--fm-ink); font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; }
.fm-mid { text-anchor: middle; }
.fm-end { text-anchor: end; }
.fm-draw { stroke-dasharray: 600; stroke-dashoffset: 600; animation: fm-draw 1.6s ease-out 300ms forwards; }
@keyframes fm-draw {
  to { stroke-dashoffset: 0; }
}
.fm-fade { opacity: 0; animation: fm-fade 500ms ease-out forwards; }
.fm-d1 { animation-delay: 250ms; }
.fm-d2 { animation-delay: 600ms; }
.fm-d3 { animation-delay: 950ms; }
@keyframes fm-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.fm-scan { animation: fm-scan 2.4s ease-in-out infinite alternate; }
@keyframes fm-scan {
  from { transform: translateY(0); }
  to { transform: translateY(76px); }
}

/* Desktop: the 1440px design */
@media (min-width: 768px) {
  .fm-decor-m { display: none; }
  .fm-decor-d { display: block; }
  .fm-main { padding: 64px 64px 96px; }
  .fm-col { max-width: 600px; }
  .fm-badge { margin-bottom: 32px; font-size: 15px; }
  .fm-wm { width: 480px; }
  .fm-word-s .fm-wm { width: 300px; }
  .fm-pron { margin-top: 16px; }
  .fm-pronimg { height: 24px; }
  .fm-tag { font-size: 26px; line-height: 36px; margin-top: 28px; }
  .fm-watch { margin-top: 36px; max-width: 440px; }
  .fm-form, .fm-success { margin-top: 36px; }
  .fm-row { flex-direction: row; }
  .fm-row .fm-btn { min-width: 196px; }
  .fm-help { font-size: 14px; line-height: 21px; }
  .fm-done { font-size: 24px; line-height: 32px; }
  .fm-foot { bottom: 32px; }

  .fm-dialog { position: relative; inset: auto; width: min(880px, calc(100vw - 48px)); max-height: calc(100vh - 32px); overflow: auto; padding: 24px 32px 28px; gap: 20px; }
  .fm-stage { flex: 0 0 auto; height: 420px; padding: 24px; }
  .fm-ill { max-width: 640px; }
  .fm-cap { font-size: 22px; line-height: 32px; min-height: 64px; }
  .fm-ctrls { justify-content: flex-start; margin-top: 0; }
  .fm-count { position: static; margin-left: auto; }
}

/* Tablet portrait: the 768 x 1024 design, layered on the desktop rules */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .fm-decor-d { display: none; }
  .fm-decor-t { display: block; }
  .fm-main { padding: 64px 48px 96px; }
  .fm-col { max-width: 520px; }
  .fm-wm { width: 400px; }
  .fm-word-s .fm-wm { width: 260px; }
  .fm-tag { font-size: 24px; line-height: 34px; }
  .fm-row .fm-btn { min-width: 180px; }
  .fm-dialog { width: min(704px, calc(100vw - 64px)); padding: 24px; }
  .fm-stage { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .fm-root *, .fm-root *::before, .fm-root *::after { animation: none !important; transition: none !important; }
  .fm-draw { stroke-dashoffset: 0; }
  .fm-fade { opacity: 1; }
}

/* Privacy notice page */
.fm-docpage { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 32px; }
.fm-dochead { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 28px; }
.fm-dochead .fm-wm { width: 160px; }
.fm-dochead .fm-badge { margin: 0; }
.fm-home { display: inline-block; border-radius: 8px; line-height: 0; }
.fm-doc { width: 100%; max-width: 680px; padding: 28px 22px; border: 2px solid var(--fm-ink); border-radius: 16px; background: var(--fm-surface); box-shadow: 4px 4px 0 var(--fm-ink); font-size: 16px; line-height: 26px; font-weight: 500; }
.fm-doc h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 800; }
.fm-doc h2 { margin: 28px 0 6px; font-size: 18px; line-height: 26px; font-weight: 800; }
.fm-doc p { margin: 0 0 10px; }
.fm-doc ul { margin: 0 0 10px; padding-left: 22px; }
.fm-doc li { margin-bottom: 4px; }
.fm-updated { color: var(--fm-muted); font-size: 14px; font-weight: 600; }
.fm-docfoot { margin: 28px 0 0; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--fm-slate); }
@media (min-width: 768px) {
  .fm-docpage { padding: 56px 32px 40px; }
  .fm-dochead .fm-wm { width: 220px; }
  .fm-dochead .fm-badge { margin: 0; }
  .fm-doc { padding: 40px 48px; font-size: 17px; line-height: 28px; }
  .fm-doc h1 { font-size: 34px; line-height: 42px; }
}
