/* Home page. A port of the Figma Make build (alias-needle-65654172.figma.site):
 * every size, colour, shadow and timing below is lifted from its source.
 * The nav, buttons and footer live in chrome.css, shared with every page. */

* { box-sizing: border-box; margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }
html { scroll-behavior: smooth; scrollbar-width: none; }
[hidden] { display: none !important; }

body.fm {
  background: #fff; color: #1a0a3c; font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden; min-height: 100vh; font-size: 16px; line-height: 1.5;
}
.fm a { color: inherit; }
.fm img { max-width: none; }
.fm button { font: inherit; color: inherit; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  33%      { transform: translateY(-14px) rotate(1deg); }
  66%      { transform: translateY(-6px) rotate(-1deg); }
}

/* ---------- hero ---------- */
.fm-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 80px; padding-bottom: 38px; overflow: hidden; background: #fff;
}
.float-icon { display: block; position: absolute; pointer-events: none; z-index: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.14)); }
.float-icon img { object-fit: contain; display: block; }
.fi-1 { top: 147px; left: 240px; animation: floatIcon 5.2s ease-in-out 0s infinite; }
.fi-1 img { width: 220px; height: 220px; }
.fi-2 { top: 496px; left: 160px; animation: floatIcon 4.8s ease-in-out 1.4s infinite; filter: none; }
.fi-2 img { width: 260px; height: 260px; }
.fi-3 { top: 675px; right: 200px; animation: floatIcon 5.6s ease-in-out 0.4s infinite; }
.fi-3 img { width: 200px; height: 200px; }
.fi-4 { top: 200px; right: 200px; animation: floatIcon 5.4s ease-in-out 1s infinite; }
.fi-4 img { width: 300px; height: 300px; }

.fm-hero-copy { position: relative; text-align: center; max-width: 660px; padding: 0; margin: 0 0 56px; }
.fm-hero-copy h1 {
  font-family: 'Poppins', sans-serif; font-size: clamp(3rem, 6.5vw, 5.5rem); font-weight: 300; line-height: 1.05;
  letter-spacing: -2px; color: #1a0a3c; margin-bottom: 28px; padding-top: 37px;
}
.fm-hero-copy h1 span { font-weight: 700; }
.fm-lead { font-size: 16px; color: rgba(74,63,114,0.55); margin-bottom: 8px; line-height: 1.6; }
.fm-rotator { font-size: 18px; font-weight: 500; margin-bottom: 36px; min-height: 28px; line-height: 1.5; margin-top: -13px; }
.fm-rotator span { display: inline-block; color: #a78bfa; transition: opacity 0.35s ease, transform 0.35s ease; opacity: 1; transform: translateY(0); }
.fm-rotator span.out { opacity: 0; transform: translateY(6px); }
.fm-actions { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 28px; }
.fm-sub { font-size: 12px; color: rgba(74,63,114,0.55); max-width: 480px; line-height: 1.7; text-align: center; margin: 12px auto 0; }

/* the launch form in a browser window, tilting towards the pointer */
.fm-tilt { position: relative; width: 100%; max-width: 920px; padding: 0 24px; perspective: 1400px; margin: 0 auto; cursor: default; }
.fm-tilt .fm-tilt-inner { transform: rotateX(6deg) rotateY(0deg); transform-origin: center center; transition: transform 0.15s ease-out; will-change: transform; }
.fm-browser { border-radius: 20px; overflow: hidden; background: #0d0a1a; box-shadow: 0 32px 80px rgba(100,60,200,0.22), 0 8px 24px rgba(0,0,0,0.25); border: 1px solid rgba(167,139,250,0.15); }
.fm-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.07); }
.fm-bar i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.fm-url { flex: 1; background: rgba(255,255,255,0.08); border-radius: 6px; padding: 4px 12px; margin-left: 8px; }
.fm-url span { font-size: 11px; color: rgba(255,255,255,0.4); font-family: monospace; }
.fm-screen { position: relative; aspect-ratio: 16/9; background: linear-gradient(135deg,#0d0a1a 0%,#1a0a3c 100%); }
.fm-screen img, .fm-screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-screen-fade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(13,10,26,0.6) 0%, transparent 60%); pointer-events: none; }
.fm-screen video { cursor: zoom-in; }
/* "click to watch it big": sits over the mock, out of the way until hovered. */
.fm-expand {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; cursor: pointer;
  background: rgba(26,10,60,0.55); backdrop-filter: blur(6px); color: #fff;
  font-family: 'Poppins', sans-serif; font-size: 12px; opacity: 0.85; transition: opacity 0.15s ease, transform 0.15s ease;
}
.fm-expand:hover { opacity: 1; transform: translateY(-1px); }

/* The big player. Hidden until asked for; the page behind it stops scrolling. */
.fm-lightbox {
  position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  padding: 24px; border: none; background: transparent; overflow: hidden;
}
/* display lives on [open] so the closed dialog stays hidden: an author rule here
   would otherwise beat the browser's own dialog:not([open]) { display: none }. */
.fm-lightbox[open] { display: grid; place-items: center; }
.fm-lightbox::backdrop { background: rgba(10,6,24,0.9); backdrop-filter: blur(8px); }
.fm-lightbox video { width: min(1280px, 100%); max-height: calc(100vh - 120px); border-radius: 14px; background: #000; display: block; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.fm-lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.1); color: #fff; font-size: 22px; line-height: 1;
}
.fm-lightbox-close:hover { background: rgba(255,255,255,0.2); }
body.fm-locked { overflow: hidden; }

/* Only drawn when autoplay is off (reduced motion) -- see home.js. */
.fm-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.5); background: rgba(26,10,60,0.55); backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: transform 0.15s ease, background 0.15s ease;
}
.fm-play::before { content: ''; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.fm-play:hover { transform: scale(1.08); background: rgba(26,10,60,0.75); }

.fm-powered { display: flex; align-items: center; gap: 32px; margin-top: 48px; opacity: 0.7; }
.fm-powered > span { font-size: 11px; color: rgba(74,63,114,0.55); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.fm-logos { display: flex; align-items: center; gap: 28px; }
.fm-logos img { height: 28px; width: auto; object-fit: contain; display: block; }

/* ---------- how it works ---------- */
.fm-how { background: #fff; padding: 55px 24px 110px; }
.fm-how-title { text-align: center; margin-bottom: 56px; }
.fm-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(200,139,250); margin-bottom: 20px; text-align: center; }
.fm-how-title .fm-eyebrow { margin-bottom: 16px; }
.fm-how-title h2 {
  font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 400; color: #1a0a3c; letter-spacing: -1px;
  line-height: 1.2; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.fm-how-title h2 img { width: 111px; height: 56px; display: inline-block; vertical-align: middle; object-fit: contain; }
.fm-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm-card { background: #fff; border-radius: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04); overflow: hidden; display: flex; flex-direction: column; }
.fm-card-text { padding: 28px 28px 20px; }
.fm-num { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #a78bfa; margin-bottom: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.fm-card h3 { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 500; color: #1a0a3c; margin-bottom: 8px; line-height: 1.25; }
.fm-card-text > p:last-child { font-size: 13px; color: rgba(74,63,114,0.55); line-height: 1.65; }
.fm-card-img { flex: 1; min-height: 200px; margin: 0 12px 12px; border-radius: 12px; overflow: hidden; background: #fff; }
.fm-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fm-card.wide { grid-column: 1 / -1; flex-direction: row; min-height: 300px; }
.fm-card.wide .fm-card-text { padding: 36px; display: flex; flex-direction: column; justify-content: flex-start; width: 40%; }
.fm-card.wide .fm-num { margin-bottom: 16px; }
.fm-card.wide h3 { font-size: 26px; margin-bottom: 12px; line-height: 1.2; }
.fm-card.wide .fm-card-text > p:last-child { line-height: 1.7; }
.fm-card.wide .fm-card-img { min-height: 0; margin: 12px 12px 12px 0; }
.fm-card.wide .fm-card-img img { object-fit: contain; }

/* ---------- comparison + faq ---------- */
.fm-section { background: #fff; padding: 100px 24px 110px; border-top: 1px solid #ede9fe; }
.fm-inner { margin: 0 auto; }
.fm-h2 { font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: #1a0a3c; letter-spacing: -1px; line-height: 1.15; text-align: center; }
.fm-tilt-img { perspective: 1200px; cursor: default; width: 100%; }
.fm-tilt-img .fm-tilt-inner {
  transform: rotateX(4deg) rotateY(0deg); transform-origin: center center; transition: transform 0.12s ease-out; will-change: transform;
  border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(167,139,250,0.25), 0 8px 24px rgba(0,0,0,0.08);
}
.fm-tilt-img img { display: block; width: 100%; height: auto; }

.fm-faq { display: flex; flex-direction: column; gap: 0; }
.fm-q { border-bottom: 1px solid #ede9fe; }
.fm-q button { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 16px; text-align: left; }
.fm-q button > span:first-child { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; color: #1a0a3c; line-height: 1.4; }
.fm-plus { font-size: 20px; color: #a78bfa; flex-shrink: 0; line-height: 1; transform: rotate(0deg); transition: transform 0.2s; }
.fm-q.open .fm-plus { transform: rotate(45deg); }
.fm-a { padding-bottom: 22px; }
.fm-a p { font-size: 13px; color: rgba(74,63,114,0.75); line-height: 1.7; margin-bottom: 12px; white-space: pre-line; }
.fm-a p:last-child { margin-bottom: 0; }
.fm-a a { text-decoration: none; }
.fm-a a:hover { color: #a78bfa; }

/* ---------- smaller screens (the Figma build only hides the icons; the rest keeps it readable) ---------- */
@media (max-width: 768px) {
  .float-icon { display: none !important; }
  .fm-hero { min-height: 0; padding: 110px 20px 48px; }
  .fm-hero-copy h1 { letter-spacing: -1px; padding-top: 0; }
  .fm-tilt { padding: 0; }
  .fm-powered { flex-direction: column; gap: 14px; }
  .fm-logos { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .fm-grid { grid-template-columns: minmax(0, 1fr); }
  .fm-card.wide { flex-direction: column; }
  .fm-card.wide .fm-card-text { width: auto; padding: 28px 28px 20px; }
  .fm-card.wide .fm-card-img { margin: 0 12px 12px; }
  .fm-section { padding: 72px 20px 80px; }
}

/* replaces inline style attributes (csp.test.mjs keeps them out of the markup) */
.fm-bar i.red { background: #ff5f57; } .fm-bar i.amber { background: #febc2e; } .fm-bar i.green { background: #28c840; }
.fm-inner.w960 { max-width: 960px; } .fm-inner.w720 { max-width: 720px; }
.fm-h2.mb48 { margin-bottom: 48px; } .fm-h2.mb64 { margin-bottom: 64px; }

/* ---------- the comparison, as a real table so it stays sharp at any size ---------- */
.fm-inner.w1160 { max-width: 1160px; }
.cmp { background: #fff; padding: 44px 48px 40px; }
.cmp-row { display: grid; grid-template-columns: 0.9fr 1.25fr 1.25fr; }
.cmp-row > span { padding: 22px 26px; font-size: 15px; line-height: 1.6; }
.cmp-row:not(.cmp-head):nth-child(even) > span { background: #faf9ff; }
.cmp-row:not(.cmp-head) > span { border-bottom: 1px solid #f1eef9; }
.cmp-row > span:first-child { font-weight: 500; color: #1a0a3c; }
.cmp-row > span:nth-child(2) { color: #a19bb5; }
.cmp-row > span:nth-child(3) { color: #2a1f4d; border-left: 2px solid #a78bfa; background: rgba(167,139,250,0.07) !important; }
.cmp-head > span { padding-top: 0; padding-bottom: 16px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #a19bb5 !important; }
.cmp-head > span:nth-child(3) { color: #a78bfa !important; background: none !important; border-left: 0; border-bottom: 2px solid #a78bfa; }
.cmp-head > span:first-child { border-bottom: 0; }
.cmp-head > span:nth-child(2) { border-bottom: 1px solid #ede9fe; }
@media (max-width: 768px) {
  .cmp { padding: 18px 14px; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > span { padding: 12px 12px; font-size: 13px; }
  .cmp-row > span:first-child { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0 !important; }
  .cmp-row > span:nth-child(2)::before { content: 'Pons'; }
  .cmp-row > span:nth-child(3)::before { content: 'Tithe'; color: #a78bfa; }
  .cmp-row > span:nth-child(2)::before, .cmp-row > span:nth-child(3)::before { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
}

/* ---------- recent launches ---------- */
.fm-recent { padding-top: 90px; padding-bottom: 100px; }
.rc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rc-card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid #ede9fe; border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.rc-card:hover { transform: translateY(-4px); border-color: #d9ccfd; box-shadow: 0 16px 40px rgba(167,139,250,0.22); }
.rc-img { aspect-ratio: 1; background: linear-gradient(135deg, #f5f0ff, #e4d9ff); display: grid; place-items: center; overflow: hidden; }
.rc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-img span { font-family: 'Poppins', sans-serif; font-size: 34px; font-weight: 500; color: #a78bfa; }
.rc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; }
.rc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rc-name { font-family: 'Poppins', sans-serif; font-weight: 500; font-size: 15px; color: #1a0a3c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-when { font-size: 11px; color: rgba(74,63,114,0.55); flex-shrink: 0; }
.rc-symbol { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: rgba(74,63,114,0.55); }
.rc-for { font-size: 12.5px; color: #4b3f72; margin-top: 6px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-for b { color: #7c4fe0; font-weight: 600; }
.rc-cap { font-size: 12px; color: rgba(74,63,114,0.55); margin-top: 4px; }
.rc-empty { text-align: center; padding: 48px 24px; border: 1.5px dashed #d9ccfd; border-radius: 20px; background: #faf9ff; }
.rc-empty p { font-size: 15px; color: #4b3f72; margin-bottom: 20px; }
.rc-empty .fm-btn { display: inline-flex; }
.rc-more { display: flex; justify-content: center; margin-top: 32px; }
.rc-empty:not([hidden]) + .rc-more { display: none; }
@media (max-width: 1000px) { .rc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .fm-recent { padding-top: 64px; padding-bottom: 72px; } }
