/* go.husseinfht.com: the APX VSL page in the husseinfht.com look.
   Tokens are copied from husseinfht.com app/globals.css:3-14 (main 20dace7). */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/anton-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-400-800.woff2") format("woff2");
}

:root {
  --accent: #f25c05;
  --accent-hover: #ff7a2e;
  --accent-glow: rgba(242, 92, 5, 0.15);
  --bg-dark: #000000;
  --bg-section: #0a0a0a;
  --bg-card: #111111;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-muted: #888;
  --text-secondary: #aaa;
  --nav-h: 52px;
  --gutter: 16px;
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1 { margin: 0; }

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

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-in {
  max-width: 56rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-block;
  padding: 12px 0;
  line-height: 20px;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand span, .foot-brand span { color: var(--accent); }
.nav-apply {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.nav-apply:hover { background: var(--accent-hover); }

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px var(--gutter) 40px;
}
.orb {
  position: absolute;
  top: -150px;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--accent);
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.hero-copy {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}
/* Below 360px: tighter tracking keeps the eyebrow on one line. If a very narrow screen
   still wraps it, the 16px radius keeps the corners off the text. */
@media (max-width: 359px) {
  .eyebrow { padding: 6px 12px; letter-spacing: 0.05em; border-radius: 16px; }
}
.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes dot-pulse { 50% { opacity: 0.45; } }

h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 31px;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.acc { color: var(--accent); }
.sub {
  max-width: 40rem;
  margin: 10px auto 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.45;
  text-wrap: pretty;
}
.lead {
  max-width: 40rem;
  margin: 8px auto 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* VSL: sized from the height that is left over, so the headline, the video and
   the apply button share the first screen (husseinfht.com .vsl-frame idea). */
.vsl-frame {
  --vsl-chrome: 330px;
  --vsl-floor: 320px;
  position: relative;
  width: 100%;
  max-width: min(100%, 56rem, max(var(--vsl-floor), calc((100vh - var(--nav-h) - var(--vsl-chrome)) * 16 / 9)));
  max-width: min(100%, 56rem, max(var(--vsl-floor), calc((100svh - var(--nav-h) - var(--vsl-chrome)) * 16 / 9)));
  margin: 16px auto 0;
}
.vsl {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.vsl-host, .vsl iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vsl-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vsl-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.vsl-poster:hover img { transform: scale(1.02); }
.shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  transition: background-color 0.3s ease;
}
.vsl-poster:hover .shade { background: rgba(0, 0, 0, 0.3); }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  animation: pulse-play 2.5s ease-in-out infinite;
}
.play-btn svg { margin-left: 4px; }
@keyframes pulse-play {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.06); }
}
.vsl.is-live .vsl-poster { display: none; }
.vsl.is-booting .play-btn { animation: none; opacity: 0.7; }

/* ─── CTA ─── */
.cta-wrap {
  position: relative;
  max-width: 56rem;
  margin: 18px auto 0;
  text-align: center;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(242, 92, 5, 0.35);
  animation: cta-pulse-ring 2s ease-out infinite;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.cta:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 50px rgba(242, 92, 5, 0.55);
  transform: translateY(-2px);
  animation: none;
}
.cta svg { flex: none; }
.cta > span { text-wrap: balance; }
.nw { white-space: nowrap; }
@keyframes cta-pulse-ring {
  0% { box-shadow: 0 0 30px rgba(242, 92, 5, 0.45), 0 0 0 0 rgba(242, 92, 5, 0.55); }
  70% { box-shadow: 0 0 30px rgba(242, 92, 5, 0.45), 0 0 0 18px rgba(242, 92, 5, 0); }
  100% { box-shadow: 0 0 30px rgba(242, 92, 5, 0.45), 0 0 0 0 rgba(242, 92, 5, 0); }
}
.note {
  max-width: 34rem;
  margin: 16px auto 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* ─── THANK-YOU PAGE (/thanks) ───
   The message fills the space between the nav and the footer, so the footer always sits at the bottom. */
body.is-thanks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.is-thanks main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}
.hero.thanks {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}
.thanks .hero-copy { width: 100%; }
.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 22px auto 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(242, 92, 5, 0.35);
}
.check svg { width: 30px; height: 30px; }
.thanks h1 { margin-top: 18px; }
.thanks .sub { margin-top: 12px; }

/* ─── FOOTER ─── */
.foot {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-section);
}
.foot-in {
  max-width: 56rem;
  margin: 0 auto;
  padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  text-align: center;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}
.disclaimer {
  max-width: 40rem;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}
.divider {
  height: 1px;
  margin: 22px auto 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}
.legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 12px;
}
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.legal a:hover { color: var(--accent); }
.sep { color: rgba(255, 255, 255, 0.15); }
.sep-wide { display: none; }

/* ─── LARGER SCREENS ─── */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero { padding-top: 26px; }
  .eyebrow { font-size: 11.5px; letter-spacing: 0.16em; border-radius: 999px; padding: 6px 16px; }
  h1 { font-size: 42px; }
  .sub { font-size: 16px; }
  .lead { font-size: 14px; }
  .vsl-frame { --vsl-chrome: 380px; }
  .cta { font-size: 16px; padding: 16px 40px; min-height: 60px; }
  .play-btn { width: 84px; height: 84px; }
  .play-btn svg { width: 34px; height: 34px; }
  .legal { flex-direction: row; justify-content: center; gap: 4px; }
  .sep-wide { display: inline; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 30px; padding-bottom: 48px; }
  .orb { width: 520px; height: 520px; top: -230px; }
  h1 { font-size: 52px; }
  .sub { font-size: 17px; }
  .vsl-frame { --vsl-chrome: 400px; }
  .vsl { border-radius: 18px; }
  .cta { font-size: 17px; padding: 18px 48px; }
}

/* ─── SHORT VIEWPORTS ───
   In-app browsers on small phones (iPhone SE in Facebook or Instagram, about 375x560)
   leave little height: tighten the hero so the apply button stays on the first screen. */
@media (max-height: 600px) {
  .hero { padding-top: 10px; }
  h1 { margin-top: 8px; }
  .sub { margin-top: 6px; }
  .lead { margin-top: 4px; }
  .vsl-frame { --vsl-floor: 280px; margin-top: 10px; }
  .cta-wrap { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .dot, .play-btn, .cta { animation: none; }
  .vsl-poster img, .cta, .nav-apply { transition: none; }
}
