/*
  Rebuild of frinq.in (Framer subscription lapsed 2026-07-22).
  Fonts confirmed by Ronak: Crimson Pro (headline + button), Jacques Francois (body) —
  both loaded via Google Fonts, see index.html's <link>. Brand red is confirmed #7C1C0B,
  sampled from the real fq-logo.png asset (matches the app's --color-red token). Text ink
  color derives from the app's --color-brown token (#2A1810) — still not pixel-sampled
  from the original Framer site itself, only inferred from the shared brand palette.
*/

:root {
  --bg: #ffffff;
  --ink: #2a1810;                  /* inferred from app's --color-brown token */
  --ink-soft: rgba(42, 24, 16, 0.62);
  --brand-red: #7c1c0b;            /* confirmed — sampled from fq-logo.png */
  --brand-red-hover: #631509;

  --font-heading: "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-body: "Jacques Francois", Georgia, serif;

  --gutter: clamp(20px, 6vw, 80px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100dvh;
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) 20px;
}

/* ── nav ─────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
}

.logo img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.85;
}

.social-icon:hover { opacity: 1; }

.social-icon svg { width: 21px; height: 21px; }

.social-divider {
  width: 1px;
  height: 20px;
  background: var(--ink);
  opacity: 0.3;
}

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(16px, 5vh, 56px) 0 24px;
  min-height: 0;
}

.hero-copy {
  flex: 0 1 560px;
  max-width: 600px;
}

.headline {
  margin: 0 0 26px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.subhead {
  margin: 0 0 32px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.subhead em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  padding: 15px 15px 15px 28px;
  border-radius: 999px;
  transition: background 0.15s ease;
}

.cta:hover { background: var(--brand-red-hover); }

.cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.4px solid rgba(255, 255, 255, 0.75);
}

.cta-arrow svg { width: 14px; height: 14px; }

.hero-art {
  flex: 1 1 55%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

/* WebKit/Safari doesn't apply mix-blend-mode directly on a <video> element reliably
   (known engine limitation — it silently no-ops instead of blending), so the blend is
   applied to this wrapper div instead, with the video/img as plain children. Verified
   with Playwright's WebKit engine: blend-mode on the wrapper renders correctly where
   blend-mode on the <video> itself did not. */
.hero-art-blend {
  width: 100%;
  max-width: 780px;
  mix-blend-mode: multiply;
}

.hero-video,
.hero-still {
  width: 100%;
  height: auto;
  display: block;
}

/* ── tablet / small laptop ──────────────────────────────────────────── */

@media (max-width: 1100px) {
  .hero-copy { flex-basis: 46%; }
}

/* ── mobile & tablet-portrait ────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Desktop stacks headline + subhead/button together in one column beside the art.
     On mobile the art belongs BETWEEN the headline and the subhead/button instead —
     `display: contents` unwraps .hero-copy so its two children become direct flex
     items of .hero, and `order` places them: headline, art, then subhead+button. */
  .hero-copy {
    display: contents;
  }

  .headline { order: 1; }
  .hero-art { order: 2; }
  .hero-subcta { order: 3; }

  .hero-art {
    flex: none;
    width: 100%;
  }

  .headline {
    font-size: clamp(26px, 8vw, 36px);
    white-space: normal;
    margin-bottom: 0;
  }

  .hero-subcta { width: 100%; }

  .subhead { margin-bottom: 26px; }

  .cta {
    /* TODO: confirm with Ronak — desktop screenshot shows "Create my profile" (capital C),
       mobile shows lowercase. Defaulting to lowercase everywhere (matches the product's
       established all-lowercase voice) until confirmed either way. */
    margin: 0 auto;
  }
}

@media (max-width: 380px) {
  .headline { font-size: 24px; }
  .cta { padding: 13px 13px 13px 22px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
