/*
  FARZI Studio - public landing page (signed-out visitors only).
  body.farzi-signed-out is set by the inline check right after the auth
  bridge. For a signed-out visitor the landing IS the page: the app
  shell's sidebar, top bar and app views are not shown (the legal pages,
  sign-in modal, pricing modal and toast stay usable). Signed-in users
  never see the landing and never download its images.
*/

/* ------------------------------------------------ public / app boundary */
#farziPublicLanding { display: none; }

body.farzi-signed-out #farziSidebar,
body.farzi-signed-out header.topbar,
body.farzi-signed-out #homeView,
body.farzi-signed-out #workspaceView,
body.farzi-signed-out #modelsView,
body.farzi-signed-out #projectsView,
body.farzi-signed-out #galleryView,
body.farzi-signed-out #comingSoonView,
body.farzi-signed-out #profileMenu,
body.farzi-signed-out #renderModal,
body.farzi-signed-out .fz-nav-backdrop { display: none !important; }
body.farzi-signed-out .app-shell { min-height: 0; }
/* Terms / Privacy / Support open over the landing, full width. */
body.farzi-signed-out.farzi-has-sidebar #legalView { margin-left: 0; }
body.farzi-signed-out:has(#legalView:not(.hidden)) #farziPublicLanding { display: none; }

body.farzi-signed-out #farziPublicLanding {
  --fpl-bg: #06070a;
  --fpl-ink: #ece7df;
  --fpl-ink-soft: rgba(236, 231, 223, 0.86);
  --fpl-ink-faint: rgba(236, 231, 223, 0.64);
  --fpl-line: rgba(236, 231, 223, 0.14);
  --fpl-pad: clamp(20px, 5.4vw, 96px);
  display: block;
  position: relative;
  background:
    radial-gradient(1100px 620px at 78% 30%, rgba(120, 104, 200, 0.10), transparent 70%),
    radial-gradient(900px 520px at 70% 70%, rgba(210, 170, 110, 0.06), transparent 70%),
    var(--fpl-bg);
  color: var(--fpl-ink);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: clip;
}

/* ------------------------------------------------------------------ nav */
#farziPublicLanding .fpl-nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.8vh, 30px) var(--fpl-pad);
}
#farziPublicLanding .fpl-wordmark {
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--fpl-ink);
  text-decoration: none;
  white-space: nowrap;
}
#farziPublicLanding .fpl-wordmark b { font-weight: 600; letter-spacing: 0.02em; }
#farziPublicLanding .fpl-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
#farziPublicLanding .fpl-link {
  font: inherit;
  font-size: 15px;
  color: var(--fpl-ink-soft);
  background: none;
  border: 0;
  padding: 8px 2px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
#farziPublicLanding .fpl-link:hover { color: #fff; }
/* SIGN IN TO FREE - white, clean, clearly the sign-in action */
#farziPublicLanding .fpl-signin {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
#farziPublicLanding .fpl-signin:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* ----------------------------------------------------------------- hero */
#farziPublicLanding .fpl-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(24px, 3vw, 56px);
  min-height: calc(100svh - 92px);
  padding: 0 0 clamp(28px, 6vh, 72px) var(--fpl-pad);
}
#farziPublicLanding .fph-copy { position: relative; z-index: 2; }
#farziPublicLanding .fph-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--fpl-ink);
}
#farziPublicLanding .fph-title span { display: block; }
#farziPublicLanding .fph-sub {
  margin: clamp(14px, 2vh, 22px) 0 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
  color: var(--fpl-ink-soft);
}
#farziPublicLanding .fph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(24px, 4vh, 40px);
}
#farziPublicLanding .fph-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
#farziPublicLanding .fph-cta-primary {
  color: #15161a;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, #f1ede6 0%, #c9c2b6 100%);
  box-shadow: 0 10px 34px rgba(236, 222, 196, 0.2);
}
#farziPublicLanding .fph-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(236, 222, 196, 0.3); }
#farziPublicLanding .fph-cta-primary svg { width: 11px; height: 12px; flex: none; }
#farziPublicLanding .fph-cta-ghost {
  color: var(--fpl-ink);
  border: 1px solid rgba(236, 231, 223, 0.38);
  background: rgba(10, 11, 15, 0.3);
}
#farziPublicLanding .fph-cta-ghost:hover { border-color: rgba(236, 231, 223, 0.7); background: rgba(255, 255, 255, 0.04); }
#farziPublicLanding .fph-caps {
  margin: clamp(26px, 5vh, 52px) 0 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--fpl-ink-faint);
}

/* --------------------------------------------------------------- slider */
#farziPublicLanding .fpl-slider { position: relative; min-width: 0; outline: none; }
#farziPublicLanding .fpl-slides {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 18px 0 0 18px;
  background: #0b0c11;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}
/* Soft edges into the page background (no hard card frame). */
#farziPublicLanding .fpl-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--fpl-bg) 0%, rgba(6, 7, 10, 0) 7%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.55) 0%, rgba(6, 7, 10, 0) 6%, rgba(6, 7, 10, 0) 92%, rgba(6, 7, 10, 0.7) 100%);
}
#farziPublicLanding .fpl-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
#farziPublicLanding .fpl-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.1s ease, visibility 0s;
}
#farziPublicLanding .fpl-slide picture,
#farziPublicLanding .fpl-slide img {
  display: block;
  width: 100%;
  height: 100%;
}
#farziPublicLanding .fpl-slide img { object-fit: cover; }

#farziPublicLanding .fpl-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-right: var(--fpl-pad);
  justify-content: flex-end;
}
#farziPublicLanding .fpl-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: var(--fpl-ink-soft);
  background: transparent;
  border: 1px solid var(--fpl-line);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
#farziPublicLanding .fpl-ctrl:hover { color: #fff; border-color: rgba(236, 231, 223, 0.45); background: rgba(255, 255, 255, 0.05); }
#farziPublicLanding .fpl-ctrl svg { width: 15px; height: 15px; }
#farziPublicLanding .fpl-ctrl .fpl-icon-play { display: none; }
#farziPublicLanding .fpl-slider.is-paused .fpl-ctrl .fpl-icon-play { display: block; }
#farziPublicLanding .fpl-slider.is-paused .fpl-ctrl .fpl-icon-pause { display: none; }
#farziPublicLanding .fpl-dots { display: flex; align-items: center; gap: 2px; margin: 0 8px; }
#farziPublicLanding .fpl-dot {
  position: relative;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
#farziPublicLanding .fpl-dot::before {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: rgba(236, 231, 223, 0.26);
  transition: background-color 0.3s ease;
}
#farziPublicLanding .fpl-dot[aria-current='true']::before { background: #f1ede6; }

/* ------------------------------------------------------- below the hero */
#farziPublicLanding .fpl-section { padding: clamp(56px, 10vh, 120px) var(--fpl-pad) clamp(40px, 6vh, 72px); scroll-margin-top: 12px; }
#farziPublicLanding .fpl-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(214, 186, 140, 0.9); }
#farziPublicLanding .fpl-section h2,
#farziPublicLanding .fpl-band h2 { margin: 0; font-size: clamp(30px, 3.2vw, 50px); font-weight: 300; line-height: 1.08; color: var(--fpl-ink); }
#farziPublicLanding .fpl-lede { max-width: 640px; margin: 16px 0 0; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: var(--fpl-ink-soft); }
#farziPublicLanding .fpl-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: clamp(32px, 5vh, 56px) 0 0;
  padding: 0;
  list-style: none;
  background: var(--fpl-line);
  border: 1px solid var(--fpl-line);
  border-radius: 18px;
  overflow: hidden;
}
#farziPublicLanding .fpl-tile { padding: clamp(22px, 2.4vw, 36px); background: rgba(9, 10, 14, 0.96); }
#farziPublicLanding .fpl-tile h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fpl-ink); }
#farziPublicLanding .fpl-tile p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fpl-ink-faint); }

#farziPublicLanding .fpl-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin: clamp(24px, 4vh, 48px) var(--fpl-pad) 0;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--fpl-line);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(214, 186, 140, 0.08), rgba(120, 104, 200, 0.08));
}
#farziPublicLanding .fpl-band p { margin: 10px 0 0; font-size: 17px; color: var(--fpl-ink-soft); }
#farziPublicLanding .fpl-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

#farziPublicLanding .fpl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: clamp(56px, 9vh, 104px);
  padding: 28px var(--fpl-pad) 36px;
  border-top: 1px solid var(--fpl-line);
  font-size: 14px;
  color: var(--fpl-ink-faint);
}
#farziPublicLanding .fpl-footer-brand { font-size: 18px; font-weight: 300; color: var(--fpl-ink); }
#farziPublicLanding .fpl-footer-brand b { font-weight: 600; }
#farziPublicLanding .fpl-footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
#farziPublicLanding .fpl-footer-links a,
#farziPublicLanding .fpl-footer-links button {
  font: inherit;
  color: var(--fpl-ink-soft);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
}
#farziPublicLanding .fpl-footer-links a:hover,
#farziPublicLanding .fpl-footer-links button:hover { color: #fff; }

/* Keyboard focus: clearly visible on the dark page and on artwork. */
#farziPublicLanding a:focus-visible,
#farziPublicLanding button:focus-visible,
#farziPublicLanding .fpl-slider:focus-visible .fpl-slides {
  outline: 2px solid #f1ede6;
  outline-offset: 4px;
}
#farziPublicLanding a:focus-visible,
#farziPublicLanding button:focus-visible { border-radius: 999px; }

/* --------------------------------------------- <=1100: tighter desktop */
@media (max-width: 1100px) {
  #farziPublicLanding .fpl-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  #farziPublicLanding .fpl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------ <=900: stacked hero (tablet portrait, phones) */
@media (max-width: 900px) {
  #farziPublicLanding .fpl-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 0 0 clamp(28px, 5vh, 56px);
  }
  /* artwork first, full width, no side cropping (all four are 16:9) */
  #farziPublicLanding .fpl-slider { order: 1; }
  #farziPublicLanding .fph-copy { order: 2; padding: 26px var(--fpl-pad) 0; }
  #farziPublicLanding .fpl-slides { border-radius: 0; box-shadow: none; }
  #farziPublicLanding .fpl-slides::after {
    background: linear-gradient(180deg, rgba(6, 7, 10, 0) 0%, rgba(6, 7, 10, 0) 86%, rgba(6, 7, 10, 0.75) 100%);
  }
  #farziPublicLanding .fpl-controls { justify-content: center; margin-top: 10px; padding-right: 0; }
  #farziPublicLanding .fph-title { font-size: clamp(38px, 9.6vw, 66px); }
}

/* --------------------------------------------------------------- phones */
@media (max-width: 560px) {
  #farziPublicLanding .fpl-hide-sm { display: none; }
  #farziPublicLanding .fpl-nav { padding-top: 14px; padding-bottom: 14px; }
  #farziPublicLanding .fpl-signin { font-size: 12px; letter-spacing: 0.12em; padding: 0 16px; min-height: 40px; }
  #farziPublicLanding .fph-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
  #farziPublicLanding .fph-cta { width: 100%; }
  #farziPublicLanding .fph-caps { margin-top: 22px; font-size: 12px; letter-spacing: 0.12em; }
  #farziPublicLanding .fpl-tiles { grid-template-columns: minmax(0, 1fr); }
  #farziPublicLanding .fpl-band-actions { width: 100%; flex-direction: column; }
  #farziPublicLanding .fpl-band-actions .fph-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #farziPublicLanding .fpl-slide,
  #farziPublicLanding .fpl-slide.is-active { transition: none; }
  #farziPublicLanding .fph-cta,
  #farziPublicLanding .fpl-dot::before { transition: none; }
}
